Class: RDF::Literal::UnsignedShort

Inherits:
UnsignedInt show all
Defined in:
lib/rdf/xsd/integer.rb

Overview

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

Direct Known Subclasses

UnsignedByte

Constant Summary collapse

DATATYPE =
RDF::XSD.unsignedShort

Constants inherited from UnsignedLong

RDF::Literal::UnsignedLong::GRAMMAR

Constants inherited from NonNegativeInteger

NonNegativeInteger::GRAMMAR

Instance Method Summary collapse

Instance Method Details

#valid?Boolean


175
176
177
# File 'lib/rdf/xsd/integer.rb', line 175

def valid?
  super && @object >= 0 && @object <= 65535
end