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



146
147
148
149
150
151
152
153
154
155
# File 'lib/chef/shef/ext.rb', line 146

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