Class: JSON5::IdentifierNameNode
- Defined in:
- lib/json5/document_nodes.rb
Instance Attribute Summary collapse
-
#code_units ⇒ Object
readonly
Returns the value of attribute code_units.
-
#decoded_code_units ⇒ Object
readonly
Returns the value of attribute decoded_code_units.
Attributes inherited from Node
#end_byte, #leading_trivia, #raw_span, #source, #start_byte, #trailing_trivia, #type
Instance Method Summary collapse
-
#initialize(code_units:, **attributes) ⇒ IdentifierNameNode
constructor
A new instance of IdentifierNameNode.
Methods inherited from Node
Constructor Details
#initialize(code_units:, **attributes) ⇒ IdentifierNameNode
Returns a new instance of IdentifierNameNode.
51 52 53 54 55 |
# File 'lib/json5/document_nodes.rb', line 51 def initialize(code_units:, **attributes) @code_units = code_units @decoded_code_units = code_units super(type: :identifier_name, **attributes) end |
Instance Attribute Details
#code_units ⇒ Object (readonly)
Returns the value of attribute code_units.
49 50 51 |
# File 'lib/json5/document_nodes.rb', line 49 def code_units @code_units end |
#decoded_code_units ⇒ Object (readonly)
Returns the value of attribute decoded_code_units.
49 50 51 |
# File 'lib/json5/document_nodes.rb', line 49 def decoded_code_units @decoded_code_units end |