diff options
Diffstat (limited to 'lib/irb/ext/save-history.rb')
-rw-r--r-- | lib/irb/ext/save-history.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/irb/ext/save-history.rb b/lib/irb/ext/save-history.rb index d2ea37f950..b4c72a0339 100644 --- a/lib/irb/ext/save-history.rb +++ b/lib/irb/ext/save-history.rb @@ -59,23 +59,7 @@ module IRB module HistorySavingAbility # :nodoc: include Readline -# def HistorySavingAbility.create_finalizer -# proc do -# if num = IRB.conf[:SAVE_HISTORY] and (num = num.to_i) > 0 -# if hf = IRB.conf[:HISTORY_FILE] -# file = File.expand_path(hf) -# end -# file = IRB.rc_file("_history") unless file -# open(file, 'w' ) do |f| -# hist = HISTORY.to_a -# f.puts(hist[-num..-1] || hist) -# end -# end -# end -# end - def HistorySavingAbility.extended(obj) -# ObjectSpace.define_finalizer(obj, HistorySavingAbility.create_finalizer) IRB.conf[:AT_EXIT].push proc{obj.save_history} obj.load_history obj |