Class: Commander::Helpers
- Inherits:
-
Object
- Object
- Commander::Helpers
- Defined in:
- lib/commander/helpers.rb
Class Method Summary collapse
-
.to_boolean(state) ⇒ Object
no .to_bool.
Class Method Details
.to_boolean(state) ⇒ Object
no .to_bool
6 7 8 |
# File 'lib/commander/helpers.rb', line 6 def self.to_boolean(state) (state == 'true') ? @state = true : @state = false end |