module RuboCop::AST::MethodDispatchNode
def command?(name)
-
(Boolean)
- whether the method name matches the argument
Parameters:
-
name
(Symbol, String
) -- the method name to check for
def command?(name) !receiver && method?(name) end