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



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

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