Class: YARP::ForwardingSuperNode
- Inherits:
-
YARPNode
- Object
- YARPNode
- YARP::ForwardingSuperNode
- Defined in:
- lib/yarp/node.rb,
ext/yarp/api_node.c
Overview
Represents the use of the ‘super` keyword without parentheses or arguments.
super
^^^^^
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
attr_reader block: Node?.
Instance Method Summary collapse
-
#accept(visitor) ⇒ Object
def accept: (visitor: Visitor) -> void.
-
#child_nodes ⇒ Object
(also: #deconstruct)
def child_nodes: () -> Array[nil | Node].
- #deconstruct_keys(keys) ⇒ Object
-
#initialize(block, location) ⇒ ForwardingSuperNode
constructor
def initialize: (block: Node?, location: Location) -> void.
Constructor Details
#initialize(block, location) ⇒ ForwardingSuperNode
def initialize: (block: Node?, location: Location) -> void
2553 2554 2555 2556 |
# File 'lib/yarp/node.rb', line 2553 def initialize(block, location) @block = block @location = location end |
Instance Attribute Details
#block ⇒ Object (readonly)
attr_reader block: Node?
2550 2551 2552 |
# File 'lib/yarp/node.rb', line 2550 def block @block end |
Instance Method Details
#accept(visitor) ⇒ Object
def accept: (visitor: Visitor) -> void
2559 2560 2561 |
# File 'lib/yarp/node.rb', line 2559 def accept(visitor) visitor.visit_forwarding_super_node(self) end |
#child_nodes ⇒ Object Also known as: deconstruct
def child_nodes: () -> Array[nil | Node]
2565 2566 2567 |
# File 'lib/yarp/node.rb', line 2565 def child_nodes [block] end |