Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/omnicat/string.rb
Instance Method Summary collapse
Instance Method Details
#omnicat_tokenize ⇒ Object
3 4 5 |
# File 'lib/omnicat/string.rb', line 3 def omnicat_tokenize self.scan(/([\p{L}\-0-9]{2,})/).collect{ |str_arr| str_arr.first } end |
#tokenize_with_counts ⇒ Object
7 8 9 |
# File 'lib/omnicat/string.rb', line 7 def tokenize_with_counts self.omnicat_tokenize.hashify_with_counts end |