Module: DataMapper::Property::PassThroughLoadDump

Included in:
Binary, Boolean, Class, Date, DateTime, Discriminator, Numeric, String, Time
Defined in:
lib/dm-core/property.rb

Instance Method Summary collapse

Instance Method Details

#dump(value) ⇒ Object

Stub instance method for dumping

Parameters:

  • value (Object, nil)

    value to dump

Returns:



325
326
327
# File 'lib/dm-core/property.rb', line 325

def dump(value)
  value
end

#load(value) ⇒ Object



313
314
315
316
# File 'lib/dm-core/property.rb', line 313

def load(value)
  return if value.nil?
  typecast(value)
end