Class: RDF::Literal::Byte

Inherits:
Short show all
Defined in:
vendor/bundler/ruby/2.5.0/bundler/gems/rdf-xsd-e532a0ab7189/lib/rdf/xsd/integer.rb

Overview

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.

Constant Summary collapse

DATATYPE =
RDF::XSD.byte

Instance Method Summary collapse

Methods inherited from Integer

#to_sxp

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


103
104
105
# File 'vendor/bundler/ruby/2.5.0/bundler/gems/rdf-xsd-e532a0ab7189/lib/rdf/xsd/integer.rb', line 103

def valid?
  super && @object >= -128 && @object <= 127
end