class JMESPath::Nodes::TypeFunction

Public Instance Methods

call(args) click to toggle source
# File lib/jmespath/nodes/function.rb, line 302
def call(args)
  if args.count == 1
    TYPE_NAMES[get_type(args.first)]
  else
    return maybe_raise Errors::InvalidArityError, 'function type() expects one argument'
  end
end