Method: RuboCop::AST::BlockNode#arguments
- Defined in:
- lib/rubocop/ast/node/block_node.rb
#arguments ⇒ Array<Node>
The arguments of this block. Note that if the block has destructured arguments, arguments will return a mlhs node, whereas argument_list will return only actual argument nodes.
50 51 52 53 54 55 56 |
# File 'lib/rubocop/ast/node/block_node.rb', line 50 def arguments if block_type? node_parts[1] else [].freeze # Numblocks and itblocks have no explicit block arguments. end end |