Method: PhraseParser::Query#clause_to_query
- Defined in:
- lib/doing/phrase_parser.rb
#clause_to_query(clause) ⇒ Object
93 94 95 96 97 98 99 100 101 102 |
# File 'lib/doing/phrase_parser.rb', line 93 def clause_to_query(clause) case clause when TermClause match(clause.term) when PhraseClause match_phrase(clause.phrase) else raise "Unknown clause type: #{clause}" end end |