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