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.
9816 9817 9818 9819 |
# File 'lib/syntax_tree.rb', line 9816 def initialize(value:, location:) @value = value @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
- Location
-
the location of this node
9814 9815 9816 |
# File 'lib/syntax_tree.rb', line 9814 def location @location end |
#value ⇒ Object (readonly)
- String
-
the right brace
9811 9812 9813 |
# File 'lib/syntax_tree.rb', line 9811 def value @value end |