Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/starter_web/_plugins/simple_search_filter.rb

Instance Method Summary collapse

Instance Method Details

#strip_control_and_extended_charactersObject



28
29
30
31
32
# File 'lib/starter_web/_plugins/simple_search_filter.rb', line 28

def strip_control_and_extended_characters()
  chars.each_with_object("") do |char, str|
    str << char if char.ascii_only? and char.ord.between?(32,126)
  end
end