class RuboCop::AST::YieldNode
A node extension for `yield` nodes. This will be used in place of a plain node when the builder constructs the AST
, making its methods available to all `yield` nodes within RuboCop
.
Public Instance Methods
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/yield_node.rb, line 16 def node_parts [nil, :yield, *to_a] end