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

Mark a parameter as optional (or has a default) with YARD

YARD now supports param defaults automatically. YARD automatically figures out the default value based on the method definition. Sweedish! For example, the following code documentation will produce the subsequent YARD doc: Code Documentation # Squares a number. # # @param number [Integer] The number to square. # def square_a_number(number = 2) number * number end … Read more

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