Class: ActiveRemote::Typecasting::FloatTypecaster
- Inherits:
-
Object
- Object
- ActiveRemote::Typecasting::FloatTypecaster
- Defined in:
- lib/active_remote/typecasting/float_typecaster.rb
Class Method Summary collapse
Class Method Details
.call(value) ⇒ Object
4 5 6 |
# File 'lib/active_remote/typecasting/float_typecaster.rb', line 4 def self.call(value) value.to_f if value.respond_to?(:to_f) end |