# File lib/textquery/textquery.rb, line 74 def parse(query) query = query.mb_chars if RUBY_VERSION < '1.9' @query = @parser.parse(query) if not @query raise TextQueryError, "Could not parse query string '#{query}': #{@parser.terminal_failures.inspect}" end self end