Class: SyntaxTree::RParen
- Inherits:
-
Object
- Object
- SyntaxTree::RParen
- Defined in:
- lib/syntax_tree.rb
Overview
RParen represents the use of a right parenthesis, i.e., ).
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
- Location
-
the location of this node.
-
#value ⇒ Object
readonly
- String
-
the parenthesis.
Instance Method Summary collapse
-
#initialize(value:, location:) ⇒ RParen
constructor
A new instance of RParen.
Constructor Details
#initialize(value:, location:) ⇒ RParen
Returns a new instance of RParen.
10706 10707 10708 10709 |
# File 'lib/syntax_tree.rb', line 10706 def initialize(value:, location:) @value = value @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
- Location
-
the location of this node
10704 10705 10706 |
# File 'lib/syntax_tree.rb', line 10704 def location @location end |
#value ⇒ Object (readonly)
- String
-
the parenthesis
10701 10702 10703 |
# File 'lib/syntax_tree.rb', line 10701 def value @value end |