Class: RDF::Literal::Long

Inherits:
Integer
  • Object
show all
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.

See Also:

Direct Known Subclasses

Int

Constant Summary

DATATYPE =
RDF::XSD.long

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) valid?

Returns:

  • (Boolean)


66
67
68
# File 'lib/rdf/xsd/integer.rb', line 66

def valid?
  super && @object >= -9223372036854775808 && @object <= 9223372036854775807
end