class SyntaxTree::Retry
Retry
represents the use of the retry
keyword.
retry
Attributes
Public Class Methods
Source
# File lib/syntax_tree/node.rb, line 9679 def initialize(location:) @location = location @comments = [] end
Public Instance Methods
Source
# File lib/syntax_tree/node.rb, line 9684 def accept(visitor) visitor.visit_retry(self) end
Source
# File lib/syntax_tree/node.rb, line 9688 def child_nodes [] end
Also aliased as: deconstruct
Source
# File lib/syntax_tree/node.rb, line 9692 def copy(location: nil) node = Retry.new(location: location || self.location) node.comments.concat(comments.map(&:copy)) node end
Source
# File lib/syntax_tree/node.rb, line 9701 def deconstruct_keys(_keys) { location: location, comments: comments } end