Class: Nokogiri::XML::Schematron::Nodes::Validations::Numericality

Inherits:
Base
  • Object
show all
Defined in:
lib/nokogiri/xml/schematron/nodes/validations/numericality.rb

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

Attributes inherited from Base

#child_node_by_context, #context

Attributes inherited from Base

#children, #options, #parent

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_toInteger, Float

Returns the value must be equal to the supplied value.

Returns:

  • (Integer, Float)

    the value must be equal to the supplied value.



19
# File 'lib/nokogiri/xml/schematron/nodes/validations/numericality.rb', line 19

attribute :equal_to

#evenBoolean

Returns the value must be an even number.

Returns:

  • (Boolean)

    the value must be an even number.



15
# File 'lib/nokogiri/xml/schematron/nodes/validations/numericality.rb', line 15

attribute :even

#greater_thanInteger, Float

Returns the value must be greater than the supplied value.

Returns:

  • (Integer, Float)

    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_toInteger, Float

Returns the value must be greater than or equal the supplied value.

Returns:

  • (Integer, Float)

    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_thanInteger, Float

Returns the value must be less than the supplied value.

Returns:

  • (Integer, Float)

    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_toInteger, Float

Returns the value must be less than or equal the supplied value.

Returns:

  • (Integer, Float)

    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

#oddBoolean

Returns the value must be an odd number.

Returns:

  • (Boolean)

    the value must be an odd number.



39
# File 'lib/nokogiri/xml/schematron/nodes/validations/numericality.rb', line 39

attribute :odd

#other_thanInteger, Float

Returns the value must be other than the supplied value.

Returns:

  • (Integer, Float)

    the value must be other than the supplied value.



43
# File 'lib/nokogiri/xml/schematron/nodes/validations/numericality.rb', line 43

attribute :other_than