class RDF::Literal::UnsignedShort

unsignedShort is derived from unsignedInt by setting the value of maxInclusive to be 65535. The base type of unsignedShort is unsignedInt.

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

Constants

DATATYPE

Public Instance Methods

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