From: Devin Mullins Date: 2007-01-14T00:12:34+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 > ... Well, this is much easier: if files.any? {|file| require file } ... C'mon, Trans. :) Devin (Or am I missing something obvious?)