Module: Shell::Extensions::String
- Included in:
- String
- Defined in:
- lib/chef/shell/ext.rb
Instance Method Summary collapse
Instance Method Details
#on_off_to_bool ⇒ Object
149 150 151 152 153 154 155 156 157 158 |
# File 'lib/chef/shell/ext.rb', line 149 def on_off_to_bool case self when "on" true when "off" false else self end end |