module RuboCop::AST::ParameterizedNode::WrappedArguments
A specialized `ParameterizedNode` for node that have a single child containing either `nil`, an argument, or a `begin` node with all the arguments
Public Instance Methods
arguments()
click to toggle source
@return [Array] The arguments of the node.
# File lib/rubocop/ast/node/mixin/parameterized_node.rb, line 69 def arguments first = children.first if first&.begin_type? first.children else children end end