Sha256: b139332389698d058da0e1bb8af8564cdb908d45928634b31041f5d7ea1c0266
Contents?: true
Size: 327 Bytes
Versions: 3
Compression:
Stored size: 327 Bytes
Contents
class Groupie module CoreExt module String def tokenize downcase. gsub(/\s/," "). gsub(/[$']/,''). gsub(/<[^>]+?>|[^\w -.,]/,''). split(" ").map {|str| str.gsub(/\A['"]+|[!,."']+\Z/,'')} end end end end class String include Groupie::CoreExt::String end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
groupie-0.3.0 | lib/groupie/core_ext/string.rb |
groupie-0.2.2 | lib/groupie/core_ext/string.rb |
groupie-0.1.1 | lib/groupie/core_ext/string.rb |