Class: Structural::Model::TypeCasts::Float
- Inherits:
-
Cast
- Object
- Cast
- Structural::Model::TypeCasts::Float
show all
- Defined in:
- lib/structural/model/type_casts.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Cast
#cast, #initialize, #type
Class Method Details
.type ⇒ Object
65
66
67
|
# File 'lib/structural/model/type_casts.rb', line 65
def self.type
::Float
end
|
Instance Method Details
#conversion ⇒ Object
69
70
71
|
# File 'lib/structural/model/type_casts.rb', line 69
def conversion
value.to_f
end
|