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