From: Fabian Streitel Date: 2009-10-14T20:52:18+09:00 Subject: Re: converting object into array --00504502d4924670ef0475e3cb1f Content-Type: text/plain; charset=ISO-8859-1 There are several questions that come to my mind before answering your question is possible: 2009/10/14 Suresh Napster > And i have values > like inside that object name,age,sex,etc...I want to output like > this.... > > > ['john','12','male',..] > > How do you have those "inside that object"? How can you access them? What kind of Object is @user? Some kind of example code would help us get a clearer view of your problem. e.g. if @user is of a custom class User with attr_accessors for :name, :age etc. then you could do something like this: puts [@user.name, @user.age, @user.sex] Greetz! --00504502d4924670ef0475e3cb1f--