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
2508 2509 2510 |
# File 'lib/yarp/node.rb', line 2508 def initialize(location) @location = location end |
Instance Method Details
#accept(visitor) ⇒ Object
def accept: (visitor: Visitor) -> void
2513 2514 2515 |
# File 'lib/yarp/node.rb', line 2513 def accept(visitor) visitor.visit_forwarding_arguments_node(self) end |
#child_nodes ⇒ Object Also known as: deconstruct
def child_nodes: () -> Array[nil | Node]
2518 2519 2520 |
# File 'lib/yarp/node.rb', line 2518 def child_nodes [] end |