Class: Containers::PrefixTree::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/containers/prefix_tree.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNode

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

#childrenObject

Returns the value of attribute children.



4
5
6
# File 'lib/containers/prefix_tree.rb', line 4

def children
  @children
end

#dataObject

Returns the value of attribute data.



4
5
6
# File 'lib/containers/prefix_tree.rb', line 4

def data
  @data
end