Re: splat operator and Ruby instance variable assignments

2013-02-19 Thread Robert Klemme
On Tue, Feb 19, 2013 at 3:46 PM, Love U Ruby wrote: > Marc Heiler wrote in post #1097736: >> Ok, understood what the guy wants ... >> >> "Love U Ruby" is a troll trying to steal time. >> See his other "posts". > > Really never thought about to "steal" your time, no intention of that. I > just aske

Re: splat operator and Ruby instance variable assignments

2013-02-18 Thread Robert Klemme
On Mon, Feb 18, 2013 at 8:38 PM, Love U Ruby wrote: > @ubuntu:~$ irb --simple-prompt >>> class Foo >>> def initialize(x,y,z) >>> @x, @y, @z= x, y,z >>> end >>> def to_ary >>> [@x, @y, @z] >>> end >>> def to_hash >>> [@x => @y] >>> end >>> end > => nil >>> foo = Foo.new(10,11,12) > => #