Class: SyntaxTree::RBrace
- Inherits:
-
Object
- Object
- SyntaxTree::RBrace
- Defined in:
- lib/syntax_tree.rb
Overview
RBrace represents the use of a right brace, i.e., +++.
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
- Location
-
the location of this node.
-
#value ⇒ Object
readonly
- String
-
the right brace.
Instance Method Summary collapse
-
#initialize(value:, location:) ⇒ RBrace
constructor
A new instance of RBrace.
Constructor Details
#initialize(value:, location:) ⇒ RBrace
Returns a new instance of RBrace.
9307 9308 9309 9310 |
# File 'lib/syntax_tree.rb', line 9307 def initialize(value:, location:) @value = value @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
- Location
-
the location of this node
9305 9306 9307 |
# File 'lib/syntax_tree.rb', line 9305 def location @location end |
#value ⇒ Object (readonly)
- String
-
the right brace
9302 9303 9304 |
# File 'lib/syntax_tree.rb', line 9302 def value @value end |