diff options
author | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-19 19:24:59 +0000 |
---|---|---|
committer | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-19 19:24:59 +0000 |
commit | f9fb21448bc4c9b1d7e9fb135dc37593974a3498 (patch) | |
tree | 67e5782ca3ba385be9ecfe5ca6370c012fb36df6 /lib/irb/cmd/fork.rb | |
parent | 40906c5d5d09837d005a7503fcf8c3f96cee111d (diff) |
* lib/irb.rb lib/irb/* doc/irb: IRB 0.9.5
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/cmd/fork.rb')
-rw-r--r-- | lib/irb/cmd/fork.rb | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/irb/cmd/fork.rb b/lib/irb/cmd/fork.rb index 30024dc5e0..2866b1373b 100644 --- a/lib/irb/cmd/fork.rb +++ b/lib/irb/cmd/fork.rb @@ -1,9 +1,23 @@ +# +# fork.rb - +# $Release Version: 0.9.5 $ +# $Revision$ +# $Date$ +# by Keiju ISHITSUKA(keiju@ruby-lang.org) +# +# -- +# +# +# + +@RCS_ID='-$Id$-' + module IRB module ExtendCommand class Fork<Nop def execute(&block) - pid = send(ExtendCommand.irb_original_method_name("fork")) + pid = send ExtendCommand.irb_original_method_name("fork") unless pid class<<self alias_method :exit, ExtendCommand.irb_original_method_name('exit') |