Class: DefaultConverter
- Inherits:
-
Object
- Object
- DefaultConverter
- Defined in:
- lib/rast/converters/default_converter.rb
Overview
Converts string into boolean
Instance Method Summary collapse
Instance Method Details
#convert(object) ⇒ Object
5 6 7 8 9 |
# File 'lib/rast/converters/default_converter.rb', line 5 def convert(object) return nil if object == 'nil' object end |