Class: RDF::Literal::Int

Inherits:
Long
  • Object
show all
Defined in:
lib/rdf/xsd/integer.rb

Overview

int is derived from long by setting the value of maxInclusive to be 2147483647 and minInclusive to be -2147483648. The base type of int is long.

Direct Known Subclasses

Short

Constant Summary collapse

DATATYPE =
RDF::XSD.int

Instance Method Summary collapse

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


77
78
79
# File 'lib/rdf/xsd/integer.rb', line 77

def valid?
  super && @object >= -2147483648 && @object <= 2147483647
end