class JMESPath::Nodes::FloorFunction
Public Instance Methods
call(args)
click to toggle source
# File lib/jmespath/nodes/function.rb, line 162 def call(args) if args.count == 1 value = args.first else return maybe_raise Errors::InvalidArityError, "function floor() expects one argument" end if Numeric === value value.floor else return maybe_raise Errors::InvalidTypeError, "function floor() expects a numeric value" end end