lib/rambling/trie/inspector.rb in rambling-trie-0.5.1 vs lib/rambling/trie/inspector.rb in rambling-trie-0.5.2
- old
+ new
@@ -2,10 +2,10 @@
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}>"
+ "#<#{self.class.name} letter: #{letter.inspect || 'nil'}, children: #{children.keys}>"
end
end
end
end