Represents the use of the super keyword without parentheses or arguments, but which might have a block.

super
^^^^^

super { 123 }
^^^^^^^^^^^^^

If it has any other arguments, it would be a SuperNode instead.

Attributes
Read

All other arguments are forwarded as normal, except the original block is replaced with the new block.

Class Methods

Initialize a new ForwardingSuperNode 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

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

def copy: (?node_id: Integer, ?location: Location, ?flags: Integer, ?block: BlockNode?) -> ForwardingSuperNode

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

def inspect -> String

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