Class: JsonQuery::Symbol

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/json_query/nodes.rb

Instance Method Summary collapse

Instance Method Details

#value(root, symbols, current = nil) ⇒ Object



30
31
32
# File 'lib/json_query/nodes.rb', line 30

def value(root, symbols, current = nil)
  symbols[text_value] || FieldAccess.access(current, text_value)
end