From: Martin DeMello Date: 2003-07-07T14:15:06+09:00 Subject: Re: How to 'return' from a Proc? Kero van Gelder wrote: > Hi! > > I am trying to do > > method() { > ... > break if condition_met > ... > } > > to break out of the proc and thus finish the yield() in method() I think 'next' is what you want - is this what you mean: def x (1..10).each {|i| yield i} end x {|i| puts "before #{i}" next if i == 5 puts "after #{i}" } martin