Class: ActsAsIndexed::Tokenizer

Inherits:
Object
  • Object
show all
Defined in:
lib/acts_as_indexed/tokenizer.rb

Class Method Summary collapse

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