class RuboCop::Cop::InternalAffairs::MethodNameEqual

Checks that method names are checked using ‘method?` method.

@example

# bad
node.method_name == :do_something

# good
node.method?(:do_something)

# bad
node.method_name != :do_something

# good
!node.method?(:do_something)