Class: Gloo::Convert::StringToInteger

Inherits:
Object
  • Object
show all
Defined in:
lib/gloo/convert/string_to_integer.rb

Instance Method Summary collapse

Instance Method Details

#convert(value) ⇒ Object

Convert the given string value to an integer.



14
15
16
# File 'lib/gloo/convert/string_to_integer.rb', line 14

def convert( value )
  return value.to_i
end