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


79
80
81
# File 'lib/rdf/xsd/integer.rb', line 79

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