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.
9843 9844 9845 9846 |
# File 'lib/syntax_tree.rb', line 9843 def initialize(value:, location:) @value = value @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
- Location
-
the location of this node
9841 9842 9843 |
# File 'lib/syntax_tree.rb', line 9841 def location @location end |
#value ⇒ Object (readonly)
- String
-
the right bracket
9838 9839 9840 |
# File 'lib/syntax_tree.rb', line 9838 def value @value end |