lib/shenanigans/string/cmpi.rb in shenanigans-1.0.13 vs lib/shenanigans/string/cmpi.rb in shenanigans-1.0.14

- old
+ new

@@ -1,8 +1,9 @@ class String # Compares strings ignoring case - # "test".cmpi("tesT") - # #=> true + # + # @example + # "test".cmpi("tesT") #=> true def cmpi(other) - self.casecmp(other).zero? + casecmp(other).zero? end end