lib/rambling/trie/inspector.rb in rambling-trie-0.5.0 vs lib/rambling/trie/inspector.rb in rambling-trie-0.5.1
- old
+ new
@@ -1,8 +1,9 @@
module Rambling
module Trie
# Provides pretty printing behavior for the Trie data structure.
module Inspector
+ # @return [String] a string representation of the current node.
def inspect
"#<#{self.class.name} letter: #{letter.inspect or 'nil'}, children: #{children.keys}>"
end
end
end