Class: YARP::ForwardingArgumentsNode
- Inherits:
-
YARPNode
- Object
- YARPNode
- YARP::ForwardingArgumentsNode
- Defined in:
- lib/yarp/node.rb,
ext/yarp/api_node.c
Overview
Represents forwarding all arguments to this method to another method.
def foo(...)
bar(...)
^^^^^^^^
end
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(location) ⇒ ForwardingArgumentsNode
constructor
def initialize: (location: Location) -> void.
Constructor Details
#initialize(location) ⇒ ForwardingArgumentsNode
def initialize: (location: Location) -> void
2489 2490 2491 |
# File 'lib/yarp/node.rb', line 2489 def initialize(location) @location = location end |
Instance Method Details
#accept(visitor) ⇒ Object
def accept: (visitor: Visitor) -> void
2494 2495 2496 |
# File 'lib/yarp/node.rb', line 2494 def accept(visitor) visitor.visit_forwarding_arguments_node(self) end |
#child_nodes ⇒ Object Also known as: deconstruct
def child_nodes: () -> Array[nil | Node]
2500 2501 2502 |
# File 'lib/yarp/node.rb', line 2500 def child_nodes [] end |