class RDF::Literal::Byte

byte is derived from short by setting the value of maxInclusive to be 127 and minInclusive to be -128. The base type of byte is short.

@see www.w3.org/TR/2004/REC-xmlschema-2-20041028/#byte

Constants

DATATYPE

Public Instance Methods

valid?() click to toggle source
Calls superclass method RDF::Literal::Short#valid?
# File lib/rdf/xsd/integer.rb, line 103
def valid?
  super && @object >= -128 && @object <= 127
end