Class: UnicodeNamecode::TrieNode

Inherits:
Object
  • Object
show all
Defined in:
lib/unicode_namecode/trie.rb

Overview

Represents a single node in the Trie

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTrieNode

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

#childrenObject

Returns the value of attribute children.



61
62
63
# File 'lib/unicode_namecode/trie.rb', line 61

def children
  @children
end

#codepointObject

Returns the value of attribute codepoint.



61
62
63
# File 'lib/unicode_namecode/trie.rb', line 61

def codepoint
  @codepoint
end

#is_endObject

Returns the value of attribute is_end.



61
62
63
# File 'lib/unicode_namecode/trie.rb', line 61

def is_end
  @is_end
end