From: Intransition Date: 2011-07-07T00:16:01+09:00 Subject: Re: Define a constant in dynamically defined class On Jul 5, 7:57 pm, Su Zhang wrote: > Entering the block scope does not automatically change the current > context for constant definition (the core developers call it the > `cref'), nor does instance_eval and class_eval. I've been reading up on this[1]. Looks like the was a period (1.9.1) when it didn't work this way. I am inclined to think it a bug. At the very least there has to be work around. [1]http://jfire.posterous.com/constant-lookup-in-ruby