Class: Gloo::Convert::StringToInteger
- Inherits:
-
Object
- Object
- Gloo::Convert::StringToInteger
- Defined in:
- lib/gloo/convert/string_to_integer.rb
Instance Method Summary collapse
-
#convert(value) ⇒ Object
Convert the given string value to an integer.
Instance Method Details
#convert(value) ⇒ Object
Convert the given string value to an integer.
14 15 16 17 18 |
# File 'lib/gloo/convert/string_to_integer.rb', line 14 def convert( value ) return nil if value.blank? return value.to_i end |