Class: MongoQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/mongo-query/mongo_query.rb

Class Method Summary collapse

Class Method Details

.compile(where_clause) ⇒ Object



5
6
7
8
9
# File 'lib/mongo-query/mongo_query.rb', line 5

def compile(where_clause)
  MongoQueryGrammarParser.new.parse(where_clause).to_mongo
rescue
  nil
end