Sha256: 41f071c38bdce20955e9b1a761b85082fdf74f83427185856ef361becca0f6f2
Contents?: true
Size: 559 Bytes
Versions: 8
Compression:
Stored size: 559 Bytes
Contents
# # fork.rb - # $Release Version: 0.9.5 $ # $Revision: 14912 $ # by Keiju ISHITSUKA(keiju@ruby-lang.org) # # -- # # # @RCS_ID='-$Id: fork.rb 14912 2008-01-06 15:49:38Z akr $-' module IRB module ExtendCommand class Fork<Nop def execute(&block) 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
Version data entries
8 entries across 8 versions & 1 rubygems