Class: SyntaxTree::Comma
- Inherits:
-
Object
- Object
- SyntaxTree::Comma
- Defined in:
- lib/syntax_tree.rb
Overview
Comma represents the use of the , operator.
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
- Location
-
the location of this node.
-
#value ⇒ Object
readonly
- String
-
the comma in the string.
Instance Method Summary collapse
-
#initialize(value:, location:) ⇒ Comma
constructor
A new instance of Comma.
Constructor Details
#initialize(value:, location:) ⇒ Comma
Returns a new instance of Comma.
3651 3652 3653 3654 |
# File 'lib/syntax_tree.rb', line 3651 def initialize(value:, location:) @value = value @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
- Location
-
the location of this node
3649 3650 3651 |
# File 'lib/syntax_tree.rb', line 3649 def location @location end |
#value ⇒ Object (readonly)
- String
-
the comma in the string
3646 3647 3648 |
# File 'lib/syntax_tree.rb', line 3646 def value @value end |