class String
Public Instance Methods
strip_control_and_extended_characters()
click to toggle source
# 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