Module: Shef::Extensions::String

Included in:
String
Defined in:
lib/chef/shef/ext.rb

Instance Method Summary collapse

Instance Method Details

#on_off_to_boolObject



122
123
124
125
126
127
128
129
130
131
# File 'lib/chef/shef/ext.rb', line 122

def on_off_to_bool
  case self
  when "on"
    true
  when "off"
    false
  else
    self
  end
end