class RDF::Literal::NonNegativeInteger
nonNegativeInteger is derived from integer by setting the value of minInclusive to be 0. This results in the standard mathematical concept of the non-negative integers. The value space of nonNegativeInteger is the infinite set [0,1,2,…]. The base type of nonNegativeInteger is integer.
@see www.w3.org/TR/2004/REC-xmlschema-2-20041028/#nonNegativeInteger
Constants
- DATATYPE
- GRAMMAR
Public Instance Methods
valid?()
click to toggle source
Calls superclass method
# File lib/rdf/xsd/integer.rb, line 118 def valid? super && @object >= 0 end