class JMESPath::Nodes::FloorFunction
Public Instance Methods
Source
# File lib/jmespath/nodes/function.rb, line 169 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