Module: Ripl::Rc::MkdirHistory

Includes:
U
Defined in:
lib/ripl/rc/mkdir_history.rb

Instance Method Summary collapse

Methods included from U

included

Methods included from SqueezeHistory::Imp

#squeeze_history

Methods included from StripBacktrace::Imp

#cwd, #home, #snip, #strip_backtrace

Methods included from Anchor::Imp

#short_inspect

Methods included from Color::Imp

#black, #blue, #color, #colors, #cyan, #find_color, #green, #magenta, #red, #reset, #white, #yellow

Instance Method Details

#write_historyObject

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