Class: Odin::Serialization::Stringify::PathNode
- Inherits:
-
Struct
- Object
- Struct
- Odin::Serialization::Stringify::PathNode
- Defined in:
- lib/odin/serialization/stringify.rb
Overview
Lightweight node for path tree — much cheaper than Hash
Instance Attribute Summary collapse
-
#array_indices ⇒ Object
Returns the value of attribute array_indices.
-
#children ⇒ Object
Returns the value of attribute children.
-
#full_path ⇒ Object
Returns the value of attribute full_path.
-
#has_array ⇒ Object
Returns the value of attribute has_array.
-
#leaf_count ⇒ Object
Returns the value of attribute leaf_count.
-
#modifiers ⇒ Object
Returns the value of attribute modifiers.
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, full_path) ⇒ PathNode
constructor
A new instance of PathNode.
Constructor Details
#initialize(name, full_path) ⇒ PathNode
Returns a new instance of PathNode.
9 10 11 |
# File 'lib/odin/serialization/stringify.rb', line 9 def initialize(name, full_path) super(name, full_path, {}, nil, nil, nil, false, -1) end |
Instance Attribute Details
#array_indices ⇒ Object
Returns the value of attribute array_indices
7 8 9 |
# File 'lib/odin/serialization/stringify.rb', line 7 def array_indices @array_indices end |
#children ⇒ Object
Returns the value of attribute children
7 8 9 |
# File 'lib/odin/serialization/stringify.rb', line 7 def children @children end |
#full_path ⇒ Object
Returns the value of attribute full_path
7 8 9 |
# File 'lib/odin/serialization/stringify.rb', line 7 def full_path @full_path end |
#has_array ⇒ Object
Returns the value of attribute has_array
7 8 9 |
# File 'lib/odin/serialization/stringify.rb', line 7 def has_array @has_array end |
#leaf_count ⇒ Object
Returns the value of attribute leaf_count
7 8 9 |
# File 'lib/odin/serialization/stringify.rb', line 7 def leaf_count @leaf_count end |
#modifiers ⇒ Object
Returns the value of attribute modifiers
7 8 9 |
# File 'lib/odin/serialization/stringify.rb', line 7 def modifiers @modifiers end |
#name ⇒ Object
Returns the value of attribute name
7 8 9 |
# File 'lib/odin/serialization/stringify.rb', line 7 def name @name end |
#value ⇒ Object
Returns the value of attribute value
7 8 9 |
# File 'lib/odin/serialization/stringify.rb', line 7 def value @value end |