From: Love U Ruby Date: 2013-02-19T15:59:20+09:00 Subject: Re: splat operator and Ruby instance variable assignments Now I have tried the below : C:\>irb --simple-prompt >> class Foo >> def initialize(x,y,z) >> @x, @y, @z= x, y,z >> end >> def to_hash >> [@x => @y] >> end >> end => nil >> foo=Foo.new(10,11,12) => # >> a,*b=foo => # >> a => # >> b => [] >> Here the results are not same as with the above. So is it calling my first instance method automatically? Couldn't understand the logic. -- Posted via http://www.ruby-forum.com/.