Class: SyntaxTree::RBracket
- Inherits:
-
Object
- Object
- SyntaxTree::RBracket
- Defined in:
- lib/syntax_tree.rb
Overview
RBracket represents the use of a right bracket, i.e., ].
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
- Location
-
the location of this node.
-
#value ⇒ Object
readonly
- String
-
the right bracket.
Instance Method Summary collapse
-
#initialize(value:, location:) ⇒ RBracket
constructor
A new instance of RBracket.
Constructor Details
#initialize(value:, location:) ⇒ RBracket
Returns a new instance of RBracket.
9767 9768 9769 9770 |
# File 'lib/syntax_tree.rb', line 9767 def initialize(value:, location:) @value = value @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
- Location
-
the location of this node
9765 9766 9767 |
# File 'lib/syntax_tree.rb', line 9765 def location @location end |
#value ⇒ Object (readonly)
- String
-
the right bracket
9762 9763 9764 |
# File 'lib/syntax_tree.rb', line 9762 def value @value end |