Class: RDF::Literal::Int
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
Constant Summary collapse
- DATATYPE =
RDF::XSD.int
Instance Method Summary collapse
Instance Method Details
#valid? ⇒ Boolean
77 78 79 |
# File 'lib/rdf/xsd/integer.rb', line 77 def valid? super && @object >= -2147483648 && @object <= 2147483647 end |