How should I provide YARD/RDoc documentation for Ruby keyword arguments?

Should I just continue to use the @param keyword? Yes. YARD recognizes keyword arguments. Use @param to document a single method parameter (either regular or keyword) with a given name, type and optional description: # @param query [String] The search string # @param exact_match [Boolean] whether to do an exact match # @param results_per_page [Integer] … Read more

What is the difference between ri and rdoc

RDoc [..] is the embedded documentation generator for the Ruby programming language. [..] RDoc is included as part of the Ruby core distribution. RDoc also provides the engine for creating Ruby ri data files. ri is (more or less) Ruby’s version of man pages, serving up API information from the command line. From: http://en.wikipedia.org/wiki/RDoc

Is there a good, solid reference for proper RDoc syntax?

An official rdoc example can be found here, with its GitHub source. The documentation at rdoc.rubyforge.org seems to be more complete than the version at rdoc.sourceforge.net (which incidentally has a 2003 modified date). Also, there is a great source of examples: the Ruby core and stdlib documentation. For example, take a look at one of … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)