Class: SyntaxTree::Comma
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.
Methods inherited from Node
#child_nodes, #deconstruct, #deconstruct_keys, #format, #pretty_print, #to_json
Constructor Details
#initialize(value:, location:) ⇒ Comma
Returns a new instance of Comma.
3163 3164 3165 3166 |
# File 'lib/syntax_tree/node.rb', line 3163 def initialize(value:, location:) @value = value @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
- Location
-
the location of this node
3161 3162 3163 |
# File 'lib/syntax_tree/node.rb', line 3161 def location @location end |
#value ⇒ Object (readonly)
- String
-
the comma in the string
3158 3159 3160 |
# File 'lib/syntax_tree/node.rb', line 3158 def value @value end |