Module: Remove_non_latin
- Defined in:
- lib/remove_non_latin.rb
Instance Method Summary collapse
Instance Method Details
#process ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/remove_non_latin.rb', line 5 def process list_item = super elements = [] list_item.each do |item| temp_value = item.encode('UTF-8', :invalid => :replace, :undef => :replace) elements.push(temp_value) end return elements end |