Class: SyntaxTree::LabelEnd
Overview
LabelEnd represents the end of a dynamic symbol.
{ "key": value }
In the example above, LabelEnd represents the “\”:“ token at the end of the hash key. This node is important for determining the type of quote being used by the label.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
- String
-
the end of the label.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(value:, location:) ⇒ LabelEnd
constructor
A new instance of LabelEnd.
Methods inherited from Node
#child_nodes, #deconstruct, #deconstruct_keys, #format, #pretty_print, #to_json
Constructor Details
#initialize(value:, location:) ⇒ LabelEnd
Returns a new instance of LabelEnd.
6591 6592 6593 6594 |
# File 'lib/syntax_tree/node.rb', line 6591 def initialize(value:, location:) @value = value @location = location end |
Instance Attribute Details
#value ⇒ Object (readonly)
- String
-
the end of the label
6589 6590 6591 |
# File 'lib/syntax_tree/node.rb', line 6589 def value @value end |