Method: RuboCop::AST::MethodDispatchNode#implicit_call?

Defined in:
lib/rubocop/ast/node/mixin/method_dispatch_node.rb

#implicit_call?Boolean

Checks whether the method dispatch is the implicit form of ‘#call`, e.g. `foo.(bar)`.

Returns:

  • (Boolean)

    whether the method is the implicit form of ‘#call`



124
125
126
# File 'lib/rubocop/ast/node/mixin/method_dispatch_node.rb', line 124

def implicit_call?
  method?(:call) && !loc.selector
end