class PhraseParser::Operator
Represents an operator
Public Class Methods
Source
# File lib/doing/phrase_parser.rb, line 41 def self.symbol(str) case str when '+' :must when '-' :must_not when nil :should else raise "Unknown operator: #{str}" end end