When trying to create the documentation of my rails controller and the used parameters I'm getting stuck because yard seems to expect, that the parameters exists as method parameters.
# Renders a list of items
# @param params [Hash] the search parameters
# @option params [String] 'info' Only return items with this specific info
# @option params [Integer] 'limit' Only return <limit> items
def index
# ... do something smart here
end
So for this documentation yard will raise a warning and doesn't create the documentation:
[warn]: @param tag has unknown parameter name: params
in file `app/controllers/items_controller.rb' near line 8
Is there a way to document these kinds of items using yard or will I need to do this manually?