Method: Episode#reset
- Defined in:
- lib/episode.rb
#reset(param = nil) ⇒ Object Also known as: r
144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/episode.rb', line 144 def reset(param = nil) cfg_path = global? ? CFG_GLOBAL_PATH : CFG_FILENAME if param.nil? $stderr.puts "Reset all config parameters (delete #{cfg_path})? (y|N)" if 'y' == $stdin.getch safe_rm cfg_path end else set param, nil end end |