Submit
Path:
~
/
/
opt
/
alt
/
ruby21
/
lib64
/
ruby
/
2.1.0
/
irb
/
cmd
/
File Content:
fork.rb
# # fork.rb - # $Release Version: 0.9.6 $ # $Revision: 38358 $ # by Keiju ISHITSUKA(keiju@ruby-lang.org) # # -- # # # @RCS_ID='-$Id: fork.rb 38358 2012-12-13 05:22:30Z zzak $-' # :stopdoc: module IRB module ExtendCommand class Fork<Nop def execute pid = send ExtendCommand.irb_original_method_name("fork") unless pid class << self alias_method :exit, ExtendCommand.irb_original_method_name('exit') end if iterator? begin yield ensure exit end end end pid end end end end # :startdoc:
Submit
FILE
FOLDER
Name
Size
Permission
Action
chws.rb
486 bytes
0644
fork.rb
573 bytes
0644
help.rb
664 bytes
0644
load.rb
1155 bytes
0644
nop.rb
551 bytes
0644
pushws.rb
611 bytes
0644
subirb.rb
596 bytes
0644
N4ST4R_ID | Naxtarrr