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.



9740
9741
9742
9743
# File 'lib/syntax_tree.rb', line 9740

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

Instance Attribute Details

#locationObject (readonly)

Location

the location of this node



9738
9739
9740
# File 'lib/syntax_tree.rb', line 9738

def location
  @location
end

#valueObject (readonly)

String

the right brace



9735
9736
9737
# File 'lib/syntax_tree.rb', line 9735

def value
  @value
end