class Rubocop::Cop::Style::OpMethod
parameter named other.
This cop makes sure that certain operator methods have their sole
def on_def(node)
def on_def(node) name, args, _body = *node if name !~ /\A\w/ && !BLACKLISTED.include?(name) && args.children.size == 1 && args != TARGET_ARGS add_offence(:convention, args.children[0].loc.expression, sprintf(MSG, name)) end end