Class: RDF::Literal::UnsignedByte
- Inherits:
-
UnsignedShort
- Object
- Integer
- NonNegativeInteger
- UnsignedLong
- UnsignedInt
- UnsignedShort
- RDF::Literal::UnsignedByte
- Defined in:
- lib/rdf/xsd/integer.rb
Overview
unsignedByte is derived from unsignedShort by setting the value of maxInclusive to be 255. The base type of unsignedByte is unsignedShort.
Constant Summary collapse
- DATATYPE =
RDF::XSD.unsignedByte
Constants inherited from UnsignedLong
RDF::Literal::UnsignedLong::GRAMMAR
Constants inherited from NonNegativeInteger
Instance Method Summary collapse
Instance Method Details
#valid? ⇒ Boolean
186 187 188 |
# File 'lib/rdf/xsd/integer.rb', line 186 def valid? super && @object >= 0 && @object <= 255 end |