module Sequel::Enhancements

Constants

SURROUNDING_INVISIBLES
VERSION

Public Instance Methods

trim_invisible(str) click to toggle source
# File lib/sequel/enhancements.rb, line 9
def trim_invisible(str)
  if str.is_a?(String) && !str.is_a?(SQL::Blob)
    str.gsub(SURROUNDING_INVISIBLES, '')
  else
    str
  end
end