Class DataMapper::Property::Date
In: lib/dm-core/property/date.rb
Parent: Object

Methods

Included Modules

PassThroughLoadDump Typecast::Time

Public Instance methods

Creates a Date instance from a Hash with keys :year, :month, :day

@param [to_mash] value

  value to be typecast

@return [Date]

  Date constructed from hash

@api private

Typecasts an arbitrary value to a Date Handles both Hashes and Date instances.

@param [to_mash, to_s] value

  value to be typecast

@return [Date]

  Date constructed from value

@api private

[Validate]