diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-09 02:02:58 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-09 02:02:58 +0000 |
commit | 76515504d552d3677f81539c29ed5f558f0dc4f0 (patch) | |
tree | ef35eaabde005fe0350b8ac955a63a4cebaa1cdc /lib/irb/ext/save-history.rb | |
parent | 5afa23b4a46b55667d8f1c6e4490dfb315c8616f (diff) |
* lib/irb.rb: removed commented-out code.
* lib/irb/**/*.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 |