From: Zach Dennis Date: 2004-08-19T13:01:29+09:00 Subject: Re: proc return statement Mehr, Assaph (Assaph) wrote: >>@@mappings.each{ |hsh| >> begin >> if( hsh['type'] == c['type'] ) then >> eval( "comp=#{hsh['template']}" ) >> hsh.each_key{ |key| >> m = proc { @@ignore.each{ |i| return true if( key == i ) >> >> >} > > >>}.call >> >> > >Should be: proc{break true if... }.call >'return' returns from the encompassing method. 'break' return from the >proc. > > > Thanks Assaph. Zach