lib/irb/cmd/fork.rb in irb-1.0.0 vs lib/irb/cmd/fork.rb in irb-1.1.0.pre.1

- old
+ new

@@ -19,10 +19,10 @@ pid = send ExtendCommand.irb_original_method_name("fork") unless pid class << self alias_method :exit, ExtendCommand.irb_original_method_name('exit') end - if iterator? + if block_given? begin yield ensure exit end