From: Brian Mitchell Date: 2006-10-03T04:00:02+09:00 Subject: Re: redefining splat? On 10/2/06, Florian Frank wrote: > Jeremy Kemper wrote: > > You can define to_ary which splat uses. In Ruby 1.9 you can define > > to_splat > You mean #to_a? class C def to_a [:to_a] end end a = *C.new class C def to_ary [:to_ary] end end b = *C.new puts a, b Brian.