Class: UnicodeNamecode::TrieNode
- Inherits:
-
Object
- Object
- UnicodeNamecode::TrieNode
- Defined in:
- lib/unicode_namecode/trie.rb
Overview
Represents a single node in the Trie
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#codepoint ⇒ Object
Returns the value of attribute codepoint.
-
#is_end ⇒ Object
Returns the value of attribute is_end.
Instance Method Summary collapse
-
#initialize ⇒ TrieNode
constructor
A new instance of TrieNode.
Constructor Details
#initialize ⇒ TrieNode
Returns a new instance of TrieNode.
63 64 65 66 67 |
# File 'lib/unicode_namecode/trie.rb', line 63 def initialize @children = {} @codepoint = nil @is_end = false end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
61 62 63 |
# File 'lib/unicode_namecode/trie.rb', line 61 def children @children end |
#codepoint ⇒ Object
Returns the value of attribute codepoint.
61 62 63 |
# File 'lib/unicode_namecode/trie.rb', line 61 def codepoint @codepoint end |
#is_end ⇒ Object
Returns the value of attribute is_end.
61 62 63 |
# File 'lib/unicode_namecode/trie.rb', line 61 def is_end @is_end end |