Jesús Gabriel y Galán wrote:
> Because both "class" and "def" keywords create a new scope. They are
> not closures, they don't see their surrounding scope. Consider this
> other way, which doesn't create new scopes:

That I did not know. Thanks!
-r
-- 
Posted via http://www.ruby-forum.com/.