From: <dblack / candle.superlink.net>


> Hi --
>
> On Sat, 12 Oct 2002, Harry Ohlsen wrote:
>
> > By the way, I would think a simple change to respond_to?, allowing it to
> > accept an array (with, potentially, sub-arrays, hence the flattening),
would
> > provide the same thing, without having to add a new method.
>
> There's something along these lines, from the #can? discussion, in
> [ruby-talk:51855].  I agree that that change would be good.
>
>
> David
>

I should accept either an array or several arguments.

  obj.can?([:m1, :m2, [:m3, :m4], :m5)

  obj.can?(:m1, :m2, :m3, :m4, :m5)

Should be an exceedingly simple change.

Gavin

PS. I love Ruby's varargs!