Add method String#force_encoding to 1.8.7

This commit is contained in:
Parker Moore
2013-03-17 23:35:46 +01:00
parent e3192792cd
commit 9d814a4eb7

View File

@@ -58,3 +58,11 @@ module Enumerable
any? { |exp| File.fnmatch?(exp, e) }
end
end
if RUBY_VERSION < "1.9"
class String
def force_encoding(enc)
self
end
end
end