class SyntaxTree::RParen
RParen
represents the use of a right parenthesis, i.e., +)+.
Attributes
- String
-
the parenthesis
Public Class Methods
Source
# File lib/syntax_tree/node.rb, line 9770 def initialize(value:, location:) @value = value @location = location end
Public Instance Methods
Source
# File lib/syntax_tree/node.rb, line 9796 def ===(other) other.is_a?(RParen) && value === other.value end
Source
# File lib/syntax_tree/node.rb, line 9775 def accept(visitor) visitor.visit_rparen(self) end
Source
# File lib/syntax_tree/node.rb, line 9779 def child_nodes [] end
Also aliased as: deconstruct
Source
# File lib/syntax_tree/node.rb, line 9783 def copy(value: nil, location: nil) RParen.new( value: value || self.value, location: location || self.location ) end
Source
# File lib/syntax_tree/node.rb, line 9792 def deconstruct_keys(_keys) { value: value, location: location } end