# File lib/yard/handlers/ruby/dsl_handler_methods.rb, line 12 def handle_comments return if IGNORE_METHODS[caller_method] @docstring = statement.comments || "" @docstring = @docstring.join("\n") if @docstring.is_a?(Array) if macro = find_attached_macro @docstring += "\n" + macro.expand([caller_method, *call_params], statement.source) elsif !statement.comments_hash_flag && !implicit_docstring? return register_docstring(nil) end # ignore DSL definitions if @method/@attribute directive is used if @docstring =~ /^@!?(method|attribute)\b/ return register_docstring(nil) end object = MethodObject.new(namespace, method_name, scope) object.signature = method_signature register(object) end
Generated with the Darkfish Rdoc Generator 2.