Class: Structural::Model::TypeCasts::Float
- Inherits:
-
Object
- Object
- Structural::Model::TypeCasts::Float
- 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 |
.type ⇒ Object
46 47 48 |
# File 'lib/structural/model/type_casts.rb', line 46 def self.type ::Float end |