Sha256: ca9e0b8271d1e241cf7471d2c6b444afc727afd11d0c26a0edeed3a06fc7301c
Contents?: true
Size: 537 Bytes
Versions: 12
Compression:
Stored size: 537 Bytes
Contents
module Spira::Types ## # A {Spira::Type} for integer values. Values will be associated with the # `XSD.integer` type. # # A {Spira::Resource} property can reference this type as # `Spira::Types::Integer`, `Integer`, or `XSD.integer`. # # @see Spira::Type # @see http://rdf.rubyforge.org/RDF/Literal.html class Integer include Spira::Type def self.unserialize(value) value.object end def self.serialize(value) RDF::Literal.new(value) end register_alias XSD.integer end end
Version data entries
12 entries across 12 versions & 1 rubygems