lib/ting/groundwork.rb in ting-0.11.0 vs lib/ting/groundwork.rb in ting-0.12.0
- old
+ new
@@ -109,9 +109,11 @@
end
alias :to_s :inspect
def ==( other )
+ return false unless other.is_a? Syllable
+
[ other.initial, other.final, other.tone, other.capitalized ] ==
[ self.initial, self.final, self.tone, self.capitalized ]
end
end