diff options
| author | Moses Hohman <[email protected]> | 2013-06-23 02:02:01 -0500 |
|---|---|---|
| committer | Moses Hohman <[email protected]> | 2013-06-23 02:02:01 -0500 |
| commit | 15e78a467348d744ee58039b484adb8083290fb9 (patch) | |
| tree | fa5a6a124f8f3fff85a9cf5c239861b66ec5aeb7 /lib/axlsx/util/validators.rb | |
| parent | 173f1c49fb449aebc5ddf30a9387006ee54e5260 (diff) | |
| download | caxlsx-15e78a467348d744ee58039b484adb8083290fb9.tar.gz caxlsx-15e78a467348d744ee58039b484adb8083290fb9.zip | |
provide a better default for dispBlanksAs and allow it to be configured
Diffstat (limited to 'lib/axlsx/util/validators.rb')
| -rw-r--r-- | lib/axlsx/util/validators.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/axlsx/util/validators.rb b/lib/axlsx/util/validators.rb index 739a4de2..a161f0d9 100644 --- a/lib/axlsx/util/validators.rb +++ b/lib/axlsx/util/validators.rb @@ -290,4 +290,11 @@ module Axlsx def self.validate_split_state_type(v) RestrictionValidator.validate :split_state_type, [:frozen, :frozen_split, :split], v end + + # Requires that the value is a valid "display blanks as" type. + # valid types must be one of gap, span, zero + # @param [Any] v The value validated + def self.validate_display_blanks_as(v) + RestrictionValidator.validate :display_blanks_as, [:gap, :span, :zero], v + end end |
