Sha256: 2f9c34bbf32ad436be991c7c80f9e22a974419cda0e8c67336bf88afc71740f7
Contents?: true
Size: 214 Bytes
Versions: 3
Compression:
Stored size: 214 Bytes
Contents
# encoding: UTF-8 class String def omnicat_tokenize self.scan(/([\p{L}\-0-9]{2,})/).collect{ |str_arr| str_arr.first } end def tokenize_with_counts self.omnicat_tokenize.hashify_with_counts end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
omnicat-0.1.3 | lib/omnicat/string.rb |
omnicat-0.1.2 | lib/omnicat/string.rb |
omnicat-0.1.1 | lib/omnicat/string.rb |