From: Suraj Kurapati Date: 2009-10-20T04:26:25+09:00 Subject: Re: converting object into array Paul Smith wrote: > class User > def to_array > [] << @name << @age << @sex A literal Array would be prettier IMHO: [@name, @age, @sex] > end > end -- Posted via http://www.ruby-forum.com/.