Module: Ripl::Rc::MkdirHistory
- Includes:
- U
- Defined in:
- lib/ripl/rc/mkdir_history.rb
Instance Method Summary collapse
-
#write_history ⇒ Object
ensure path existed.
Methods included from U
Methods included from SqueezeHistory::Imp
Methods included from StripBacktrace::Imp
#cwd, #home, #snip, #strip_backtrace
Methods included from Anchor::Imp
Methods included from Color::Imp
#black, #blue, #color, #colors, #cyan, #find_color, #green, #magenta, #red, #reset, #white, #yellow
Instance Method Details
#write_history ⇒ Object
ensure path existed
8 9 10 11 12 13 |
# File 'lib/ripl/rc/mkdir_history.rb', line 8 def write_history return super if MkdirHistory.disabled? require 'fileutils' FileUtils.mkdir_p(File.dirname(history_file)) super end |