Sha256: f47f7a5c23a041d2c7d3199a6a2d7f3b0ebb086ad95b34b4c8e60a741a72dc98
Contents?: true
Size: 513 Bytes
Versions: 5
Compression:
Stored size: 513 Bytes
Contents
module Spira::Types ## # This class does its best to serialize or unserialize RDF values into Ruby # values and vice versa using RDF.rb's built-in helpers for `RDF::Literal`s. # Its behavior is defined as 'What `RDF::Literal` does' for a given value. # # @see Spira::Type # @see http://rdf.rubyforge.org/RDF/Literal.html class Any include Spira::Type def self.unserialize(value) value.object end def self.serialize(value) RDF::Literal.new(value) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
spira-0.0.5 | lib/spira/types/any.rb |
spira-0.0.4 | lib/spira/types/any.rb |
spira-0.0.3 | lib/spira/types/any.rb |
spira-0.0.2 | lib/spira/types/any.rb |
spira-0.0.1 | lib/spira/types/any.rb |