class YARP::RetryNode

Represents the use of the ‘retry` keyword.

retry
^^^^^

Public Class Methods

new(location) click to toggle source

def initialize: (location: Location) -> void

# File lib/yarp/node.rb, line 10227
def initialize(location)
  @location = location
end

Public Instance Methods

accept(visitor) click to toggle source

def accept: (visitor: Visitor) -> void

# File lib/yarp/node.rb, line 10232
def accept(visitor)
  visitor.visit_retry_node(self)
end
child_nodes() click to toggle source

def child_nodes: () -> Array[nil | Node]

# File lib/yarp/node.rb, line 10237
def child_nodes
  []
end
Also aliased as: deconstruct
comment_targets() click to toggle source

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

# File lib/yarp/node.rb, line 10247
def comment_targets
  []
end
compact_child_nodes() click to toggle source

def compact_child_nodes: () -> Array

# File lib/yarp/node.rb, line 10242
def compact_child_nodes
  []
end
copy(**params) click to toggle source

def copy: (**params) -> RetryNode

# File lib/yarp/node.rb, line 10252
def copy(**params)
  RetryNode.new(
    params.fetch(:location) { location },
  )
end
deconstruct()

def deconstruct: () -> Array[nil | Node]

Alias for: child_nodes
deconstruct_keys(keys) click to toggle source

def deconstruct_keys: (keys: Array) -> Hash[Symbol, nil | Node | Array | String | Token | Array | Location]

# File lib/yarp/node.rb, line 10262
def deconstruct_keys(keys)
  { location: location }
end
inspect(inspector = NodeInspector.new) click to toggle source
# File lib/yarp/node.rb, line 10266
def inspect(inspector = NodeInspector.new)
  inspector << inspector.header(self)
  inspector.to_str
end