Module: JSONPathGrammar::Path0

Defined in:
lib/jsonpath/parser.rb

Instance Method Summary collapse

Instance Method Details

#root ⇒ Object



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

def root
  elements[0]
end

#selectors ⇒ Object



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

def selectors
  elements[1]
end