From: Joel VanderWerf Date: 2007-01-14T06:46:02+09:00 Subject: Re: return_on Trans wrote: ... > funny thing i just came across a similar case for break. how would you > DRY this up and get rid of 'result'? > > result = nil > files.each do > result = require file > break if result > end > if result > ... This only helps a little... result = files.each do |file| r = require file and break r end -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407