Class: Gearbox::Types::Native

Inherits:
Object
  • Object
show all
Includes:
Gearbox::Type
Defined in:
lib/gearbox/types/native.rb

Overview

This type is a native type, doing no conversion to Ruby types. The naked RDF::Value (URI, Node, Literal, etc) will be used, and no deserialization is done.

See Also:

Class Method Summary collapse

Methods included from Gearbox::Type

included

Class Method Details

.serialize(value) ⇒ Object



17
18
19
# File 'lib/gearbox/types/native.rb', line 17

def self.serialize(value)
  value
end

.unserialize(value) ⇒ Object



13
14
15
# File 'lib/gearbox/types/native.rb', line 13

def self.unserialize(value)
  value
end