Class: IntConverter
- Inherits:
-
Object
- Object
- IntConverter
- Defined in:
- lib/rast/converters/int_converter.rb
Overview
Converts string into an integer
Instance Method Summary collapse
Instance Method Details
#convert(string) ⇒ Object
5 6 7 |
# File 'lib/rast/converters/int_converter.rb', line 5 def convert(string) string.to_i end |