class RuboCop::Cop::Style::OptionalArguments
def on_def(node)
def on_def(node) _method, arguments, = *node arguments = *arguments each_misplaced_optional_arg(arguments) do |argument| add_offense(argument) end end
def on_def(node) _method, arguments, = *node arguments = *arguments each_misplaced_optional_arg(arguments) do |argument| add_offense(argument) end end