Class: Structural::Model::TypeCasts::Date

Inherits:
Object
  • Object
show all
Defined in:
lib/structural/model/type_casts.rb

Class Method Summary collapse

Class Method Details

.cast(value) ⇒ Object



62
63
64
# File 'lib/structural/model/type_casts.rb', line 62

def self.cast(value)
  ::Date.parse value
end

.typeObject



58
59
60
# File 'lib/structural/model/type_casts.rb', line 58

def self.type
  ::Date
end