Represents a set of arguments to a method or a keyword.

return foo, bar, baz
       ^^^^^^^^^^^^^
Attributes
Read

The list of arguments, if present. These can be any [non-void expressions](github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression).

foo(bar, baz)
    ^^^^^^^^
Class Methods

Initialize a new ArgumentsNode node.

Return a symbol representation of this node type. See ‘Node::type`.

Instance Methods

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

def accept: (Visitor visitor) -> void

def child_nodes: () -> Array[nil | Node]

def comment_targets: () -> Array[Node | Location]

def contains_forwarding?: () -> bool

def contains_keyword_splat?: () -> bool

def contains_keywords?: () -> bool

def contains_multiple_splats?: () -> bool

def contains_splat?: () -> bool

def copy: (?node_id: Integer, ?location: Location, ?flags: Integer, ?arguments: Array) -> ArgumentsNode

An alias for child_nodes

def deconstruct_keys: (Array keys) -> { node_id: Integer, location: Location, arguments: Array }

def inspect -> String

Return a symbol representation of this node type. See ‘Node#type`.