class RuboCop::AST::ForwardArgsNode
if user ‘AST::Builder.modernize` or `AST::Builder.emit_lambda=true`
The main RuboCop runs in legacy mode; this node is only used
Note the extra ’s’ with legacy form.
(forward-args) nil)
(def :foo
$ ruby-parse –legacy -e “->(foo) { bar }”
(forward-arg)) nil)
(args
(def :foo
$ ruby-parse -e “def foo(…); end”
Not used with modern emitters:
available to all ‘forward-args` nodes within RuboCop.
of a plain node when the builder constructs the AST, making its methods
A node extension for `forward-args` nodes. This will be used in place
def to_a
Node wraps itself in an array to be compatible with other
def to_a [self] end