Module: KQL

Defined in:
lib/kql.rb,
lib/kql/query.rb,
lib/kql/filter.rb,
lib/kql/mapping.rb,
lib/kql/matcher.rb,
lib/kql/version.rb,
lib/kql/accessor.rb,
lib/kql/operator.rb,
lib/kql/selector.rb,
lib/kql/tokenizer.rb,
lib/kql/combinator.rb

Defined Under Namespace

Classes: Accessor, Combinator, Filter, Mapping, Matcher, Operator, Query, Selector, Tokenizer

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.parse_query(query) ⇒ Object



12
13
14
# File 'lib/kql.rb', line 12

def self.parse_query(query)
  Parser.new.parse(query)
end

.query_document(document, query) ⇒ Object



16
17
18
# File 'lib/kql.rb', line 16

def self.query_document(document, query)
  parse_query(query).execute(document)
end