Class: YARP::RetryNode
- Inherits:
-
YARPNode
- Object
- YARPNode
- YARP::RetryNode
- Defined in:
- lib/yarp/node.rb,
ext/yarp/api_node.c
Overview
Represents the use of the ‘retry` keyword.
retry
^^^^^
Instance Method Summary collapse
-
#accept(visitor) ⇒ Object
def accept: (visitor: Visitor) -> void.
-
#child_nodes ⇒ Object
(also: #deconstruct)
def child_nodes: () -> Array[nil | Node].
-
#comment_targets ⇒ Object
def comment_targets: () -> Array[Node | Location].
-
#copy(**params) ⇒ Object
def copy: (**params) -> RetryNode.
- #deconstruct_keys(keys) ⇒ Object
-
#initialize(location) ⇒ RetryNode
constructor
def initialize: (location: Location) -> void.
- #inspect(inspector = NodeInspector.new) ⇒ Object
Constructor Details
#initialize(location) ⇒ RetryNode
def initialize: (location: Location) -> void
9020 9021 9022 |
# File 'lib/yarp/node.rb', line 9020 def initialize(location) @location = location end |
Instance Method Details
#accept(visitor) ⇒ Object
def accept: (visitor: Visitor) -> void
9025 9026 9027 |
# File 'lib/yarp/node.rb', line 9025 def accept(visitor) visitor.visit_retry_node(self) end |
#child_nodes ⇒ Object Also known as: deconstruct
def child_nodes: () -> Array[nil | Node]
9030 9031 9032 |
# File 'lib/yarp/node.rb', line 9030 def child_nodes [] end |
#comment_targets ⇒ Object
def comment_targets: () -> Array[Node | Location]
9035 9036 9037 |
# File 'lib/yarp/node.rb', line 9035 def comment_targets [] end |
#copy(**params) ⇒ Object
def copy: (**params) -> RetryNode
9040 9041 9042 9043 9044 |
# File 'lib/yarp/node.rb', line 9040 def copy(**params) RetryNode.new( params.fetch(:location) { location }, ) end |
#deconstruct_keys(keys) ⇒ Object
9050 9051 9052 |
# File 'lib/yarp/node.rb', line 9050 def deconstruct_keys(keys) { location: location } end |
#inspect(inspector = NodeInspector.new) ⇒ Object
9054 9055 9056 9057 |
# File 'lib/yarp/node.rb', line 9054 def inspect(inspector = NodeInspector.new) inspector << inspector.header(self) inspector.to_str end |