--0016e644c7303e3d8804a55ec653
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Jun 10, 2011 at 12:08 PM, Intransition <transfire / gmail.com> wrote:

> On Jun 9, 1:22 pm, John Feminella <jo... / bitsbuilder.com> wrote:
> > > 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.
> >
> > Just to be clear, do you mean "without invoking #call" (as in, pasting
> > this into irb should raise the error), or is the intention that #call
> > will be invoked?
>
> When #call is invoked, the error is raised. So yea, guess I should
> have added:
>
>    X::Foo.new.call
>
>
>
Well, I give up :)

--0016e644c7303e3d8804a55ec653--