From 4d16bfc43780e5d3f7368625700b583e3e98217a Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 18:11:42 +0900 Subject: adding in row_style and col_style methods to worksheet and active record 'acts_as_axlsx' to provide to_xlsx. --- doc/Axlsx/RestrictionValidator.html | 53 ++++++++++++++++++++++--------------- 1 file changed, 31 insertions(+), 22 deletions(-) (limited to 'doc/Axlsx/RestrictionValidator.html') diff --git a/doc/Axlsx/RestrictionValidator.html b/doc/Axlsx/RestrictionValidator.html index 32f5900d..8d865072 100644 --- a/doc/Axlsx/RestrictionValidator.html +++ b/doc/Axlsx/RestrictionValidator.html @@ -94,8 +94,9 @@

Overview

- -

Validate a value against a specific list of allowed values.

+

+Validate a value against a specific list of allowed values. +

@@ -132,8 +133,9 @@ -
-

Perform validation.

+

+Perform validation. +

@@ -157,8 +159,9 @@

- -

Perform validation

+

+Perform validation +

@@ -177,8 +180,9 @@ — -
-

The name of what is being validatied. This is included in the error message

+

+The name of what is being validatied. This is included in the error message +

@@ -193,8 +197,9 @@ — -
-

The list of choices to validate against

+

+The list of choices to validate against +

@@ -209,8 +214,9 @@ — -
-

The value to be validated

+

+The value to be validated +

@@ -228,8 +234,9 @@ — -
-

true if validation succeeds.

+

+true if validation succeeds. +

@@ -246,8 +253,9 @@ — -
-

Raised if the value provided is not in the list of choices.

+

+Raised if the value provided is not in the list of choices. +

@@ -268,10 +276,11 @@
# File 'lib/axlsx/util/validators.rb', line 10
 
-def self.validate(name, choices, v)
-  raise ArgumentError, (ERR_RESTRICTION % [v.to_s, name, choices.inspect]) unless choices.include?(v)      
-  true
-end
+def self.validate(name, choices, v) + raise ArgumentError, (ERR_RESTRICTION % [v.to_s, name, choices.inspect]) unless choices.include?(v) + true +end + @@ -282,9 +291,9 @@
-- cgit v1.2.3