Class: Rambling::Trie::Nodes::Missing

Inherits:
Node
  • Object
show all
Defined in:
lib/rambling/trie/nodes/missing.rb

Overview

A representation of a missing node in the trie data structure. Returned when a node is not found.

Instance Attribute Summary

Attributes inherited from Node

#children_tree, #letter, #parent, #value

Instance Method Summary collapse

Methods inherited from Node

#[], #[]=, #children, #delete, #first_child, #initialize, #key?, #match_prefix, #root?, #scan, #terminal!, #terminal?, #word?

Methods included from Inspectable

#inspect

Methods included from Stringifyable

#as_word, #to_s

Methods included from Comparable

#==

Methods included from Enumerable

#each, #empty_enum

Methods included from Compressible

#compressible?

Constructor Details

This class inherits a constructor from Rambling::Trie::Nodes::Node

Instance Method Details

#partial_word?(_) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/rambling/trie/nodes/missing.rb', line 8

def partial_word? _
  false
end