summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/util/validators.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-11-25 14:49:36 +0900
committerRandy Morgan <[email protected]>2012-11-25 14:49:36 +0900
commit0a25dbeb32e20a3e8557e9dc32ea380cc543ae2a (patch)
tree801c1f8e3ed59613357a32a805d22920758913ca /lib/axlsx/util/validators.rb
parent727f2ca539ca0dadb72e0982256284736cc44076 (diff)
downloadcaxlsx-0a25dbeb32e20a3e8557e9dc32ea380cc543ae2a.tar.gz
caxlsx-0a25dbeb32e20a3e8557e9dc32ea380cc543ae2a.zip
Updated readme and docs for pre 1.3.4 release
Diffstat (limited to 'lib/axlsx/util/validators.rb')
-rw-r--r--lib/axlsx/util/validators.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/axlsx/util/validators.rb b/lib/axlsx/util/validators.rb
index 55a49e72..cc8f0a92 100644
--- a/lib/axlsx/util/validators.rb
+++ b/lib/axlsx/util/validators.rb
@@ -145,6 +145,7 @@ module Axlsx
RestrictionValidator.validate "cell run style u", [:none, :single, :double, :singleAccounting, :doubleAccounting], v
end
+ # validates cell style family which must be between 1 and 5
def self.validate_family(v)
RestrictionValidator.validate "cell run style family", 1..5, v
end