From: Intransition Date: 2011-06-10T02:12:05+09:00 Subject: Re: a little challenge - reproduce this error On Jun 8, 8:39 pm, Christopher Dicely wrote: > I could swear that I have run into that error in some things in the > past (and resolved it by fully qualifying the affected references), > but now I can't figure out how to reproduce it. I realize now maybe how I should have phrased this as a challenge module X class Foo def call X end end end Change one line of this code to cause this error: uninitialized constant X::Foo::X (NameError) and without directly calling #raise. Something like that anyway. Hindsight being 20/20 and all. Of course, I made it a challenge simply b/c I thought it would be a bit more interesting that way. I let this sit for a bit longer then I'll give the lowdown and a useful tip on how to deal with it when it arises.