class SomethingLikeThat::MatchPhrase
Holds a string phrase for a Query
to be compared to.
Public Instance Methods
tokens()
click to toggle source
TODO: lump determiners and prepositions in with their subjects? if so, then must create MatchToken class
# File lib/something_like_that/match_phrase.rb, line 6 def tokens downcase.split(/[^\w']/).reject(&:empty?) end