Module: SearchCop::Parser
- Defined in:
- lib/search_cop.rb
Class Method Summary collapse
Class Method Details
.parse(query, query_info, query_options = {}) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/search_cop.rb', line 24 def self.parse(query, query_info, = {}) if query.is_a?(Hash) SearchCop::HashParser.new(query_info).parse(query, ) else SearchCop::GrammarParser.new(query_info).parse(query, ) end end |