DataMapper::Property
@api semipublic
# File lib/dm-core/property/object.rb, line 7 def dump(value) return if value.nil? [ Marshal.dump(value) ].pack('m') end
# File lib/dm-core/property/object.rb, line 13 def load(value) case value when ::String Marshal.load(value.unpack('m').first) when ::Object value end end
@api private
# File lib/dm-core/property/object.rb, line 23 def to_child_key self.class end
[Validate]
Generated with the Darkfish Rdoc Generator 2.