1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/irb.rb: forget svn commit.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
keiju 2009-07-21 17:35:24 +00:00
parent 300d60a8e4
commit 5ab016489c
2 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Wed Jul 22 02:33:57 2009 Keiju Ishitsuka <keiju@emperor2.pendome>
* lib/irb.rb: forget svn commit.
Wed Jul 22 01:20:54 2009 Yukihiro Matsumoto <matz@ruby-lang.org> Wed Jul 22 01:20:54 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
* bootstraptest/test_io.rb: block write may block for long time. * bootstraptest/test_io.rb: block write may block for long time.

View file

@ -65,12 +65,20 @@ module IRB
irb.signal_handle irb.signal_handle
end end
catch(:IRB_EXIT) do begin
irb.eval_input catch(:IRB_EXIT) do
irb.eval_input
end
ensure
irb_at_exit
end end
# print "\n" # print "\n"
end end
def IRB.irb_at_exit
@CONF[:AT_EXIT].each{|hook| hook.call}
end
def IRB.irb_exit(irb, ret) def IRB.irb_exit(irb, ret)
throw :IRB_EXIT, ret throw :IRB_EXIT, ret
end end