Method: Axlsx.validate_integerish
- Defined in:
- lib/axlsx/util/validators.rb
.validate_integerish(v) ⇒ Object
Requires that the value can be converted to an integer @para, [Any] v the value to validate
70 71 72 |
# File 'lib/axlsx/util/validators.rb', line 70 def self.validate_integerish(v) raise ArgumentError, (ERR_INTEGERISH % v.inspect) unless (v.respond_to?(:to_i) && v.to_i.is_a?(Integer)) end |