module RuboCop::AST::MethodIdentifierPredicates
def method?(name)
-
(Boolean)
- whether the method name matches the argument
Parameters:
-
name
(Symbol, String
) -- the method name to check for
def method?(name) method_name == name.to_sym end