From: mathew Date: 2005-07-29T09:41:01+09:00 Subject: Re: Method Scope (again b/c google groups lost it) Trans wrote: > I would like to see Ruby gain a "scoping feature" (I usually refer to > this as a "namespace", but looking at Matz' discussion of Rite he's > using that to mean something else). This idea is this: > > class String > > scope format > > def jumble > ... > end > > end > > end > > "Wizard".format.jumble Scope is whether the thing is visible or not. Namespace is what it's called. The two are orthogonal. A thing is only visible if it is in scope. If I understand correctly, you're not asking for scope, you're asking for namespace; that is, "jumble" is visible outside the "format" block, you just have to prefix its name with "format". Exactly as if you had called it format_jumble, but with a dot instead of an underscore, yes? And looking at , it seems as though the thing Matz is calling namespace, is actually scope! Hopefully it's not too late to get the keyword rite... er, right. mathew -- WE HAVE TACOS