1. Prism::
  2. ForwardingArgumentsNode

class Prism::ForwardingArgumentsNode

Represents forwarding all arguments to this method to another method.

def foo(...)  bar(...)      ^^^end

Public Class Methods

Source
# File lib/prism/node.rb, line 7440definitialize(source,node_id,location,flags)@source =source@node_id =node_id@location =location@flags =flagsend

Initialize a newForwardingArgumentsNode node.

Source
# File lib/prism/node.rb, line 7491defself.type:forwarding_arguments_nodeend

Return a symbol representation of this node type. SeeNode::type.

Public Instance Methods

Source
# File lib/prism/node.rb, line 7497def===(other)other.is_a?(ForwardingArgumentsNode)end

Implements case-equality for the node. This is effectively == but without comparing the value of locations. Locations are checked only for presence.

Source
# File lib/prism/node.rb, line 7448defaccept(visitor)visitor.visit_forwarding_arguments_node(self)end

def accept: (Visitor visitor) -> void

Source
# File lib/prism/node.rb, line 7453defchild_nodes  []end

defchild_nodes: () ->Array

Also aliased as:deconstruct
Source
# File lib/prism/node.rb, line 7463defcomment_targets  []#: Array[Prism::node | Location]end

defcomment_targets: () -> Array[Node | Location]

Source
# File lib/prism/node.rb, line 7458defcompact_child_nodes  []end

defcompact_child_nodes: () ->Array

Source
# File lib/prism/node.rb, line 7468defcopy(node_id:self.node_id,location:self.location,flags:self.flags)ForwardingArgumentsNode.new(source,node_id,location,flags)end

def copy: (?node_id:Integer, ?location:Location, ?flags:Integer) ->ForwardingArgumentsNode

def deconstruct: () ->Array

Alias for:child_nodes
Source
# File lib/prism/node.rb, line 7476defdeconstruct_keys(keys)  {node_id:node_id,location:location }end

defdeconstruct_keys: (Array keys) -> { node_id:Integer, location:Location }

Source
# File lib/prism/node.rb, line 7481definspectInspectVisitor.compose(self)end

def inspect ->String

Source
# File lib/prism/node.rb, line 7486deftype:forwarding_arguments_nodeend

Return a symbol representation of this node type. SeeNode#type.