Class: EncodingAdjuster
- Inherits:
-
Object
- Object
- EncodingAdjuster
- Defined in:
- lib/upload/encoding_adjuster.rb
Instance Method Summary collapse
Instance Method Details
#adjust(string) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/upload/encoding_adjuster.rb', line 5 def adjust string {"‘" => "'", "’" => "'"}.each_pair do |key, value| string = string.gsub(key, value) end string end |