module PubSub
module_function
# Publishes a notification
#
# @param [String] resource the name of the resource
# @param [Hash] opts the options to create a message with.
# @option opts [String, Symbol] :action the action to notify about
# @option opts [Object] :payload (nil) The notification payload
def notify(resource, opts = {})
end
end
Removing either the opts documentation or module_function eliminates the problem.
When processing the included Ruby file, YARD generates the following output:
The Ruby code that causes this is:
Removing either the
opts
documentation ormodule_function
eliminates the problem.