Brian Mitchell wrote:
> class C
>   def to_a
>     [:to_a]
>   end
> end
>
> a = *C.new
> ...

Looks for #to_ary first, failing that uses #to_a:

class C
  def to_a
    [:to_a]
  end
  def to_ary
    [:to_ary]
  end
end

p *C.new

Regards,
Jordan