From 058faf2581970fa18c314ad07f5658adeca32c69 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 22:08:55 +0900 Subject: update to README --- doc/Axlsx/RestrictionValidator.html | 53 +++++++++++++++---------------------- 1 file changed, 22 insertions(+), 31 deletions(-) (limited to 'doc/Axlsx/RestrictionValidator.html') diff --git a/doc/Axlsx/RestrictionValidator.html b/doc/Axlsx/RestrictionValidator.html index 14a579a1..9822a2a2 100644 --- a/doc/Axlsx/RestrictionValidator.html +++ b/doc/Axlsx/RestrictionValidator.html @@ -94,9 +94,8 @@

Overview

-

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

+ +

Validate a value against a specific list of allowed values.

@@ -133,9 +132,8 @@ Validate a value against a specific list of allowed values. -

-Perform validation. -

+
+

Perform validation.

@@ -159,9 +157,8 @@ Perform validation.

-

-Perform validation -

+ +

Perform validation

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

-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

@@ -197,9 +193,8 @@ The name of what is being validatied. This is included in the error message — -

-The list of choices to validate against -

+
+

The list of choices to validate against

@@ -214,9 +209,8 @@ The list of choices to validate against — -

-The value to be validated -

+
+

The value to be validated

@@ -234,9 +228,8 @@ The value to be validated — -

-true if validation succeeds. -

+
+

true if validation succeeds.

@@ -253,9 +246,8 @@ true if validation succeeds. — -

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

+
+

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

@@ -276,11 +268,10 @@ Raised if the value provided is not in the list of choices.
# 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 @@ -291,9 +282,9 @@ Raised if the value provided is not in the list of choices.
-- cgit v1.2.3