lib/rambling/trie/node.rb in rambling-trie-0.9.0 vs lib/rambling/trie/node.rb in rambling-trie-0.9.1

- old
+ new

@@ -71,12 +71,12 @@ # @return [String] the string representation of the current node. def to_s parent.to_s << letter.to_s end - def letter= new_letter - if new_letter - @letter = new_letter.to_sym + def letter= letter + if letter + @letter = letter.to_sym parent[letter] = self if parent end end private