From: Paul Smith Date: 2009-10-14T23:14:30+09:00 Subject: Re: converting object into array On Wed, Oct 14, 2009 at 2:55 PM, Glenn Jackman wrote: > At 2009-10-14 07:52AM, "Paul Smith" wrote: >> >>  class User >>    def to_array >>      [] << @name << @age << @sex >>    end >>  end > > Curious:  why that construct instead of: > >     def to_array >       [@name, @age, @sex] >     end > No reason. Just the first way it came into my head. I like yours better. -- Paul Smith http://www.nomadicfun.co.uk paul@pollyandpaul.co.uk