Class: Nokogiri::XML::Schematron::Nodes::Validations::Numericality
Overview
The abstract syntax tree node that uses the number(any) XPath function, where any
is any value, to test if the @context XML attribute is numeric.
Instance Attribute Summary collapse
-
#equal_to ⇒ Integer, Float
The value must be equal to the supplied value.
-
#even ⇒ Boolean
The value must be an even number.
-
#greater_than ⇒ Integer, Float
The value must be greater than the supplied value.
-
#greater_than_or_equal_to ⇒ Integer, Float
The value must be greater than or equal the supplied value.
-
#less_than ⇒ Integer, Float
The value must be less than the supplied value.
-
#less_than_or_equal_to ⇒ Integer, Float
The value must be less than or equal the supplied value.
-
#odd ⇒ Boolean
The value must be an odd number.
-
#other_than ⇒ Integer, Float
The value must be other than the supplied value.
Attributes inherited from Base
#child_node_by_context, #context
Attributes inherited from Base
Method Summary
Methods inherited from Base
#initialize, #permit, #reject, #require, #validates_exclusion_of, #validates_inclusion_of, #validates_numericality_of
Methods inherited from Base
attribute, element, #initialize, #to_builder
Constructor Details
This class inherits a constructor from Nokogiri::XML::Schematron::Nodes::Base
Instance Attribute Details
#equal_to ⇒ Integer, Float
Returns the value must be equal to the supplied value.
19 |
# File 'lib/nokogiri/xml/schematron/nodes/validations/numericality.rb', line 19 attribute :equal_to |
#even ⇒ Boolean
Returns the value must be an even number.
15 |
# File 'lib/nokogiri/xml/schematron/nodes/validations/numericality.rb', line 15 attribute :even |
#greater_than ⇒ Integer, Float
Returns the value must be greater than the supplied value.
23 |
# File 'lib/nokogiri/xml/schematron/nodes/validations/numericality.rb', line 23 attribute :greater_than |
#greater_than_or_equal_to ⇒ Integer, Float
Returns the value must be greater than or equal the supplied value.
27 |
# File 'lib/nokogiri/xml/schematron/nodes/validations/numericality.rb', line 27 attribute :greater_than_or_equal_to |
#less_than ⇒ Integer, Float
Returns the value must be less than the supplied value.
31 |
# File 'lib/nokogiri/xml/schematron/nodes/validations/numericality.rb', line 31 attribute :less_than |
#less_than_or_equal_to ⇒ Integer, Float
Returns the value must be less than or equal the supplied value.
35 |
# File 'lib/nokogiri/xml/schematron/nodes/validations/numericality.rb', line 35 attribute :less_than_or_equal_to |
#odd ⇒ Boolean
Returns the value must be an odd number.
39 |
# File 'lib/nokogiri/xml/schematron/nodes/validations/numericality.rb', line 39 attribute :odd |
#other_than ⇒ Integer, Float
Returns the value must be other than the supplied value.
43 |
# File 'lib/nokogiri/xml/schematron/nodes/validations/numericality.rb', line 43 attribute :other_than |