The simplest way to think of it is if something falls out of scope.


On Jul 13, 2010, at 9:30 AM 7/13/10, Abder-Rahman Ali wrote:

> In the "Why's poignant guide to Ruby" book, it states the following:
> 
> "If you can't get to an object through a variable, then Ruby will figure
> you are done with it and will get rid of it. Periodically, Ruby sends
> out its garbage collector to set these objects free."
> 
> The point I'm not getting here is: "If you can't get to an object
> through a variable..."
> 
> Can you provide an examples that illustrates this?
> 
> Thanks.
> -- 
> Posted via http://www.ruby-forum.com/.
>