From: Devin Mullins Date: 2005-06-27T08:56:41+09:00 Subject: Re: newbie scope question Ryan Leavengood wrote: > Because the variable doc is local to the top-level scope and can't be > seen inside the methods of Crap. That is interesting, though. In most cases, variables defined in the outer scope are available in the inner scope. This applies in the case of begin...end, blocks, and the if/while/etc control flow operators. It seems that the same rule does not apply to method and class definitions. Why? Is there anything else to which it doesn't apply? Devin