Class: FloatConverter
- Inherits:
-
Object
- Object
- FloatConverter
- Defined in:
- lib/rast/converters/float_converter.rb
Overview
Converts string into a floating type number
Instance Method Summary collapse
Instance Method Details
#convert(string) ⇒ Object
5 6 7 |
# File 'lib/rast/converters/float_converter.rb', line 5 def convert(string) string.to_f end |