class RuboCop::AST::SendNode

A node extension for `send` nodes. This will be used in place of a plain node when the builder constructs the AST, making its methods available to all `send` nodes within RuboCop.

Public Instance Methods

negation_method?() click to toggle source
# File lib/rubocop/ast/node/send_node.rb, line 19
def negation_method?
  keyword_bang? || keyword_not?
end
node_parts() click to toggle source

Custom destructuring method. This can be used to normalize destructuring for different variations of the node.

@return [Array] the different parts of the `send` node

# File lib/rubocop/ast/node/send_node.rb, line 15
def node_parts
  to_a
end