Method: RuboCop::AST::MethodDispatchNode#receiver

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

#receiverNode?

The receiving node of the method dispatch.

Returns:

  • (Node, nil)

    the receiver of the dispatched method or ‘nil`



14
15
16
# File 'lib/rubocop/ast/node/mixin/method_dispatch_node.rb', line 14

def receiver
  node_parts[0]
end