Class: RDF::Literal::Long
- Inherits:
-
Integer
- Object
- Integer
- RDF::Literal::Long
- Defined in:
- lib/rdf/xsd/integer.rb
Overview
long is derived from integer by setting the value of maxInclusive to be 9223372036854775807 and minInclusive to be -9223372036854775808.
The base type of long is integer.
Direct Known Subclasses
Constant Summary collapse
- DATATYPE =
RDF::XSD.long
Instance Method Summary collapse
Instance Method Details
#valid? ⇒ Boolean
64 65 66 |
# File 'lib/rdf/xsd/integer.rb', line 64 def valid? super && @object >= -9223372036854775808 && @object <= 9223372036854775807 end |