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.
10630 10631 10632 10633 |
# File 'lib/syntax_tree.rb', line 10630 def initialize(value:, location:) @value = value @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
- Location
-
the location of this node
10628 10629 10630 |
# File 'lib/syntax_tree.rb', line 10628 def location @location end |
#value ⇒ Object (readonly)
- String
-
the parenthesis
10625 10626 10627 |
# File 'lib/syntax_tree.rb', line 10625 def value @value end |