Module: Rambling::Trie::Inspectable

Included in:
Nodes::Node
Defined in:
lib/rambling/trie/inspectable.rb

Overview

Provides pretty printing behavior for the trie data structure.

Instance Method Summary collapse

Instance Method Details

#inspectString

Returns a string representation of the current node.

Returns:

  • (String)

    a string representation of the current node.



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

def inspect
  "#<#{class_name} #{attributes}>"
end