class String
Public Instance Methods
utf8mb4strip()
click to toggle source
# File lib/string-utf8mb4strip.rb, line 2 def utf8mb4strip newstr = "" self.each_char do |char| byte = char.bytes.first if byte < 240 newstr << char end end return newstr end