Method: JMESPath::Parser#initialize

Defined in:
lib/jmespath/parser.rb

#initialize(options = {}) ⇒ Parser

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Parser.

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):



30
31
32
33
# File 'lib/jmespath/parser.rb', line 30

def initialize(options = {})
  @lexer = options[:lexer] || Lexer.new
  @disable_visit_errors = options[:disable_visit_errors]
end