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.
9740 9741 9742 9743 |
# File 'lib/syntax_tree.rb', line 9740 def initialize(value:, location:) @value = value @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
- Location
-
the location of this node
9738 9739 9740 |
# File 'lib/syntax_tree.rb', line 9738 def location @location end |
#value ⇒ Object (readonly)
- String
-
the right brace
9735 9736 9737 |
# File 'lib/syntax_tree.rb', line 9735 def value @value end |