Oh, yes, you're right.  I forgot Ruby doesn't do method dispatch based on
number of arguments.

alex

On Tue, Jul 14, 2009 at 5:41 PM, Daniel Spiewak <[email protected]> wrote:

> ant.send :class is going to trip the class method in Object I believe.  By
> calling method_missing directly, you can avoid that shadowing.
>
> Daniel
>
> On Tue, Jul 14, 2009 at 7:39 PM, Alex Boisvert <[email protected]>
> wrote:
>
> > Or
> >
> > ant.send :class, :location => 'foo'
> >
> > alex
> >
> > On Tue, Jul 14, 2009 at 5:12 PM, Daniel Spiewak <[email protected]>
> > wrote:
> >
> > > Try calling method_missing directly:
> > >
> > > ant.method_missing :class, :location => 'foo'
> > >
> > > Daniel
> > >
> > > On Tue, Jul 14, 2009 at 7:09 PM, Martin Grotzke <
> > > [email protected]> wrote:
> > >
> > > > Hi,
> > > >
> > > > findbugs requires a nested element "class" that indicates, which
> > classes
> > > > shall be analyzed.
> > > >
> > > > When I try to specify this class property via
> > > >  ant.class :location=>'foo'
> > > > this of course fails.
> > > >
> > > > Is it somehow possible to solve this issue? (Perhaps ruby as a
> dynamic
> > > > language can now score :))
> > > >
> > > > (I already tried s.th. like "ant.send :class ..." but without
> success
> > -
> > > > probably that was just too naive :))
> > > >
> > > > Thx && cheers,
> > > > Martin
> > > >
> > > >
> > > >
> > >
> >
>

Reply via email to