On Wed, Oct 14, 2009 at 12:44 PM, Suresh Napster <surinapster / gmail.com> wr=
ote:
> hi guys,
>
>
> =A0i am newbie to ruby and i have an object like @user.And i have values
> like inside that object name,age,sex,etc...I want to output like
> this....
>
>
> =A0['john','12','male',..]

class User
  def to_array
    [] << @name << @age << @sex
  end
end

> --
> Posted via http://www.ruby-forum.com/.
>
>



--=20
Paul Smith
http://www.nomadicfun.co.uk

paul / pollyandpaul.co.uk