Class: RDF::Literal::Byte
- Defined in:
 - 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
Instance Method Details
#valid? ⇒ Boolean
      103 104 105  | 
    
      # File 'lib/rdf/xsd/integer.rb', line 103 def valid? super && @object >= -128 && @object <= 127 end  |