Class: RDF::Literal::UnsignedShort
- Inherits:
-
UnsignedInt
- Object
- Integer
- NonNegativeInteger
- UnsignedLong
- UnsignedInt
- RDF::Literal::UnsignedShort
- 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
Constant Summary collapse
- DATATYPE =
RDF::XSD.unsignedShort
Constants inherited from UnsignedLong
RDF::Literal::UnsignedLong::GRAMMAR
Constants inherited from NonNegativeInteger
Instance Method Summary collapse
Instance Method Details
#valid? ⇒ Boolean
173 174 175 |
# File 'lib/rdf/xsd/integer.rb', line 173 def valid? super && @object >= 0 && @object <= 65535 end |