class RDF::Literal::PositiveInteger

positiveInteger is derived from nonNegativeInteger by setting the value of minInclusive to be 1. This results in the standard mathematical concept of the positive integer numbers. The value space of positiveInteger is the infinite set [1,2,…]. The base type of positiveInteger is nonNegativeInteger.

@see www.w3.org/TR/2004/REC-xmlschema-2-20041028/#positiveInteger

Constants

DATATYPE
GRAMMAR

Public Instance Methods

valid?() click to toggle source
Calls superclass method RDF::Literal::NonNegativeInteger#valid?
# File lib/rdf/xsd/integer.rb, line 133
def valid?
  super && @object > 0
end