class RDF::Literal::UnsignedByte
unsignedByte is derived from unsignedShort by setting the value of maxInclusive to be 255. The base type of unsignedByte is unsignedShort.
@see www.w3.org/TR/2004/REC-xmlschema-2-20041028/#unsignedByte
Constants
- DATATYPE
Public Instance Methods
valid?()
click to toggle source
Calls superclass method
RDF::Literal::UnsignedShort#valid?
# File lib/rdf/xsd/integer.rb, line 186 def valid? super && @object >= 0 && @object <= 255 end