Class: Structural::Model::TypeCasts::Float

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

Class Method Summary collapse

Class Method Details

.cast(value) ⇒ Object



50
51
52
# File 'lib/structural/model/type_casts.rb', line 50

def self.cast(value)
  value.to_f
end

.typeObject



46
47
48
# File 'lib/structural/model/type_casts.rb', line 46

def self.type
  ::Float
end