Class: RDF::Literal::UnsignedByte

Inherits:
UnsignedShort show all
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

DATATYPE =
RDF::XSD.unsignedByte

Constants inherited from UnsignedLong

RDF::Literal::UnsignedLong::GRAMMAR

Constants inherited from NonNegativeInteger

NonNegativeInteger::GRAMMAR

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) valid?

Returns:

  • (Boolean)


188
189
190
# File 'lib/rdf/xsd/integer.rb', line 188

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