From: TRANS Date: 2005-09-22T13:03:15+09:00 Subject: Re: Difference between class declarations On 9/15/05, nobu.nokada@softhome.net wrote: > Hi, > > At Fri, 16 Sep 2005 05:24:09 +0900, > Peter Vanbroekhoven wrote in [ruby-core:05786]: > > The first one defines a class A and within it A::B while the last two > > pieces define A and B, both at the toplevel. In my opinion, it makes more > > sense for all three to behave the same. > > The scope is determined lexically now. Older versions till 1.6 > had behaved like as your proposal. So how can one get around this? I need to do so for my #testcase. i.e. testcase :TestName do ... end to have the same scoping as class TestName < Test::Unit::TestCase ... end T.