From: Tomas Matousek Date: 2010-08-13T01:37:00+09:00 Subject: [ruby-core:31696] [Backport #3680] Splatting calls to_ary instead of to_a in some cases Issue #3680 has been updated by Tomas Matousek. I see, so there is implicit and explicit splatting. The former uses to_ary the latter to_a. So the splatting in the following code (in when clause) should use to_a since it is an explicit one, right? It attempts to call both to_ary and to_a though. I would expect it to call just to_a like any other explicit splatting. class C def respond_to? name p name false end def to_s 'c' end end case when *C.new; end output: D:\temp\RubyParser>ruby19 -v x.rb ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32] :to_ary :to_a ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3680 ---------------------------------------- http://redmine.ruby-lang.org