From: Michel Boaventura Date: 2007-11-19T21:42:23+09:00 Subject: Re: Break a recursive loop You can use the ObjectSpace Module, who give you acess of all objects in the memory. Take a look: http://www.ruby-doc.org/core/classes/ObjectSpace.html#M006784 2007/11/19, Alvaro Perez : > Steve Pugh wrote: > > Instead of breaking out of the loop, why don't you return the object > > you found or return 'true'? > > > > _Steve > > I tried but does not work if I want to return nil when I found > nothing... > -- > Posted via http://www.ruby-forum.com/. > >