From: "minilith@..." Date: 2009-02-26T14:27:11+09:00 Subject: Re: Where is splat implemented? / How does it work? > > I'm pretty sure that implicit conversions to array use to_ary, not to_a. > > This is the way it works in Ruby 1.8, and after an experimental period in > > 1.9 with to_splat Building on David Black's examples, I tried the following to clarify the use of #to_a and #to_ary for me. > RUBY_VERSION => "1.9.1" > o = Object.new => # > class << o > def to_a > [:a] > end > def to_ary > [:ary] > end > end > [*o] => [:a] > [1] + o => [1, :ary] The #to_splat method seems to be gone.