Method: JMESPath::Nodes::Function.create

Defined in:
lib/jmespath/nodes/function.rb

.create(name, children) ⇒ Object

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.



11
12
13
14
15
16
17
# File 'lib/jmespath/nodes/function.rb', line 11

def self.create(name, children)
  if (type = FUNCTIONS[name])
    type.new(children)
  else
    raise Errors::UnknownFunctionError, "unknown function #{name}()"
  end
end