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
- DATATYPE =
RDF::XSD.unsignedShort
Constants inherited from UnsignedLong
RDF::Literal::UnsignedLong::GRAMMAR
Constants inherited from NonNegativeInteger
Instance Method Summary (collapse)
Instance Method Details
- (Boolean) valid?
175 176 177 |
# File 'lib/rdf/xsd/integer.rb', line 175 def valid? super && @object >= 0 && @object <= 65535 end |