Add method String#force_encoding to 1.8.7
This commit is contained in:
parent
e3192792cd
commit
9d814a4eb7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue