lib/polyfill/v2_3/string.rb in polyfill-1.0.0 vs lib/polyfill/v2_3/string.rb in polyfill-1.0.1

- old
+ new

@@ -10,10 +10,10 @@ if hash && !hash.keys.empty? raise ArgumentError, "unknown keyword: #{hash.keys.first}" end str = super(*others) - str.encode!(encoding) if encoding + str.force_encoding(encoding) if encoding str end end def +@