Method: Axlsx.validate_unsigned_int

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

.validate_unsigned_int(v) ⇒ Boolean

Requires that the value is a Integer 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 value greater or equal to 0



89
90
91
# File 'lib/axlsx/util/validators.rb', line 89

def self.validate_unsigned_int(v)
  DataTypeValidator.validate(:unsigned_int, Integer, v, UINT_VALIDATOR)
end