Method: Janeway.parse
- Defined in:
- lib/janeway.rb
.parse(query) ⇒ Janeway::AST::Query
Parse a JSONPath string into a Janeway::Query object.
This object can be combined with data to create Enumerators that apply the query to the data.
Use this method if you want to parse the query once and re-use it for multiple data sets.
Otherwise, use Janeway.enum_for to parse the query and pair it with data in a single step.
53 54 55 |
# File 'lib/janeway.rb', line 53 def self.parse(query) Janeway::Parser.parse(query) end |