Class: Commander::Helpers

Inherits:
Object
  • Object
show all
Defined in:
lib/commander/helpers.rb

Class Method Summary collapse

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