Sha256: 53e5ad4a967c0c85045aa06ccd447943f633cc450f1f8ff42b8624d55796d9b0

Contents?: true

Size: 251 Bytes

Versions: 4

Compression:

Stored size: 251 Bytes

Contents

require 'ripl'

module Ripl::Rc; end
module Ripl::Rc::MkdirHistory
  # ensure path existed
  def write_history
    require 'fileutils'
    FileUtils.mkdir_p(File.dirname(history_file))
    super
  end
end

Ripl::Shell.include(Ripl::Rc::MkdirHistory)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ripl-rc-0.1.5 lib/ripl/rc/mkdir_history.rb
ripl-rc-0.1.4 lib/ripl/rc/mkdir_history.rb
ripl-rc-0.1.3 lib/ripl/rc/mkdir_history.rb
ripl-rc-0.1.2 lib/ripl/rc/mkdir_history.rb