class RuboCop::AST::SendNode
to all ‘send` nodes within RuboCop.
node when the builder constructs the AST, making its methods available
A node extension for `send` nodes. This will be used in place of a plain
def lambda?
-
(Boolean)
- whether this method is a lambda
def lambda? parent && parent.block_type? && method?(:lambda) end
def negation_method?
-
(Boolean)
- whether this method is a negation method
def negation_method? keyword_bang? || keyword_not? end
def stabby_lambda?
-
(Boolean)
- whether this method is a staby lambda
def stabby_lambda? selector = loc.selector selector && selector.source == ARROW end