Method: Janeway::AST::Function#logical?

Defined in:
lib/janeway/ast/function.rb

#logical?Boolean

True if the function’s return value is a boolean

Returns:



50
51
52
53
54
55
56
57
# File 'lib/janeway/ast/function.rb', line 50

def logical?
  case name
  when 'length', 'count', 'value' then false
  when 'search', 'match' then true
  else
    raise "Unknown jsonpath function #{name}"
  end
end