module RuboCop::AST::MethodIdentifierPredicates

def method?(name)

Returns:
  • (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