Class: SyntaxTree::Comma
Overview
Comma represents the use of the , operator.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
- String
-
the comma in the string.
Attributes inherited from Node
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.
3067 3068 3069 3070 |
# File 'lib/syntax_tree/node.rb', line 3067 def initialize(value:, location:) @value = value @location = location end |
Instance Attribute Details
#value ⇒ Object (readonly)
- String
-
the comma in the string
3065 3066 3067 |
# File 'lib/syntax_tree/node.rb', line 3065 def value @value end |