Class: DataMapper::Types::Object
Constant Summary
DataMapper::Type::PROPERTY_OPTIONS, DataMapper::Type::PROPERTY_OPTION_ALIASES
Class Method Summary
collapse
bind, configure, inherited, options, primitive
Class Method Details
.dump(value, property) ⇒ Object
15
16
17
|
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/types/object.rb', line 15
def self.dump(value, property)
Base64.encode64(Marshal.dump(value))
end
|
.load(value, property) ⇒ Object
19
20
21
|
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/types/object.rb', line 19
def self.load(value, property)
value.nil? ? nil : Marshal.load(Base64.decode64(value))
end
|
.typecast(value, property) ⇒ Object
11
12
13
|
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/types/object.rb', line 11
def self.typecast(value, property)
value
end
|