diff options
| author | Randy Morgan <[email protected]> | 2012-05-13 11:09:12 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-05-13 11:09:12 +0900 |
| commit | 34f63d6719fd913be9251f367370947303f8fc61 (patch) | |
| tree | ebe3531eaf04838533cb0dbf18c4ea1844b27925 /lib/axlsx/util/validators.rb | |
| parent | 88b67ba036c038be9d2cb116bb70eac720f3e40b (diff) | |
| download | caxlsx-34f63d6719fd913be9251f367370947303f8fc61.tar.gz caxlsx-34f63d6719fd913be9251f367370947303f8fc61.zip | |
cleaning up comments for pre-release
Diffstat (limited to 'lib/axlsx/util/validators.rb')
| -rw-r--r-- | lib/axlsx/util/validators.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/util/validators.rb b/lib/axlsx/util/validators.rb index e5d2c79a..2f43a121 100644 --- a/lib/axlsx/util/validators.rb +++ b/lib/axlsx/util/validators.rb @@ -50,7 +50,7 @@ module Axlsx # @para, [Any] v the value to validate # @raise [ArgumentError] raised if the value cannot be converted to an integer def self.validate_integerish(v) - raise ArugumentError, (ERR_INTEGERISH % v.inspect) unless (v.to_i.is_a?(Integer)) + raise ArgumentError, (ERR_INTEGERISH % v.inspect) unless (v.respond_to?(:to_i) && v.to_i.is_a?(Integer)) end # Requires that the value is between -54000000 and 54000000 |
