Class: Gloo::Convert::NilClassToInteger
- Inherits:
-
Object
- Object
- Gloo::Convert::NilClassToInteger
- Defined in:
- lib/gloo/convert/nilclass_to_integer.rb
Instance Method Summary collapse
-
#convert(value) ⇒ Object
Convert a nil to an integer.
Instance Method Details
#convert(value) ⇒ Object
Convert a nil to an integer.
13 14 15 |
# File 'lib/gloo/convert/nilclass_to_integer.rb', line 13 def convert( value ) return 0 end |