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