Class: Containers::PrefixTree::Node
- Inherits:
-
Object
- Object
- Containers::PrefixTree::Node
- Defined in:
- lib/containers/prefix_tree.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize ⇒ Node
Returns a new instance of Node.
6 7 8 9 |
# File 'lib/containers/prefix_tree.rb', line 6 def initialize @data = nil @children = {} end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
4 5 6 |
# File 'lib/containers/prefix_tree.rb', line 4 def children @children end |
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/containers/prefix_tree.rb', line 4 def data @data end |