class SyntaxTree::RBrace

RBrace represents the use of a right brace, i.e., +++.

Attributes

value[R]
String

the right brace

Public Class Methods

new(value:, location:) click to toggle source
# File lib/syntax_tree/node.rb, line 8949
def initialize(value:, location:)
  @value = value
  @location = location
end

Public Instance Methods

===(other) click to toggle source
# File lib/syntax_tree/node.rb, line 8975
def ===(other)
  other.is_a?(RBrace) && value === other.value
end
accept(visitor) click to toggle source
# File lib/syntax_tree/node.rb, line 8954
def accept(visitor)
  visitor.visit_rbrace(self)
end
child_nodes() click to toggle source
# File lib/syntax_tree/node.rb, line 8958
def child_nodes
  []
end
Also aliased as: deconstruct
copy(value: nil, location: nil) click to toggle source
# File lib/syntax_tree/node.rb, line 8962
def copy(value: nil, location: nil)
  RBrace.new(
    value: value || self.value,
    location: location || self.location
  )
end
deconstruct()
Alias for: child_nodes
deconstruct_keys(_keys) click to toggle source
# File lib/syntax_tree/node.rb, line 8971
def deconstruct_keys(_keys)
  { value: value, location: location }
end