Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/dm-forms/core_ext.rb
Instance Method Summary collapse
-
#to_bool ⇒ Object
String to bool.
Instance Method Details
#to_bool ⇒ Object
String to bool.
7 8 9 |
# File 'lib/dm-forms/core_ext.rb', line 7 def to_bool !empty? and self != '0' and self != 'false' and self != 'nil' end |