Method: Axlsx.validate_unsigned_numeric

Defined in:
lib/axlsx/util/validators.rb

.validate_unsigned_numeric(v) ⇒ Boolean

Requires that the value is a Integer or Float and is greater or equal to 0

Parameters:

  • v (Any)

    The value validated

Returns:

  • (Boolean)

    true if the data is valid

Raises:

  • (ArgumentError)

    raised if the value is not a Integer, Float value greater or equal to 0



97
98
99
# File 'lib/axlsx/util/validators.rb', line 97

def self.validate_unsigned_numeric(v)
  DataTypeValidator.validate(:unsigned_numeric, Numeric, v, UINT_VALIDATOR)
end