Sha256: ffaa93446327bf889beaeadec921b9b6e9431e20a00702696d9a3e2c5d7461ed
Contents?: true
Size: 292 Bytes
Versions: 1
Compression:
Stored size: 292 Bytes
Contents
class String def remove_whitespace self.gsub(" ","") end def is_i? !!(self =~ /^[-+]?[0-9]([0-9]*)?$/) end def to_utf16le Iconv.conv('utf-16le', 'UTF-8', self) end def to_active_record_condition "%#{self.trim.gsub(/[[:space:]]+/, '%')}%" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
itrigga-core_ext-0.2.0 | lib/itrigga/core_ext/string.rb |