Class: ActsAsIndexed::Tokenizer
- Inherits:
-
Object
- Object
- ActsAsIndexed::Tokenizer
- Defined in:
- lib/acts_as_indexed/tokenizer.rb
Class Method Summary collapse
-
.process(str) ⇒ Object
Takes a string of space-separated tokens, returns an array of those tokens.
Class Method Details
.process(str) ⇒ Object
Takes a string of space-separated tokens, returns an array of those tokens.
5 6 7 |
# File 'lib/acts_as_indexed/tokenizer.rb', line 5 def self.process(str) str.split end |