Class: SyntaxTree::RBrace

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:, location:) ⇒ RBrace

Returns a new instance of RBrace.



9816
9817
9818
9819
# File 'lib/syntax_tree.rb', line 9816

def initialize(value:, location:)
  @value = value
  @location = location
end

Instance Attribute Details

#locationObject (readonly)

Location

the location of this node



9814
9815
9816
# File 'lib/syntax_tree.rb', line 9814

def location
  @location
end

#valueObject (readonly)

String

the right brace



9811
9812
9813
# File 'lib/syntax_tree.rb', line 9811

def value
  @value
end