From: "Иван Бишевац" Date: 2012-10-02T07:41:14+09:00 Subject: Re: delete object from array of object --047d7b33d9361b01a204cb071abc Content-Type: text/plain; charset=UTF-8 2012/10/2 ajay paswan > Suppose a class: > > class C_L_A_S_S > attr_accessor :a, :b, :c > end > > I have an array of object of class above. > say a_of_obj > > Now I want to delete the element from a_of_obj whose a=33 > Could you please tell me the best way to do it? > > -- > Posted via http://www.ruby-forum.com/. > > Look for Array in http://ruby-doc.org/core-1.9.3/. Bookmark this page because it's extremely useful :) --047d7b33d9361b01a204cb071abc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2012/10/2 ajay paswan <lists@ruby-forum.com>
Suppose a class:

class C_L_A_S_S
attr_accessor :a, :b, :c
end

I have an array of object of class above.
say a_of_obj

Now I want to delete the element from a_of_obj whose a=3D33
Could you please tell me the best way to do it?

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

Look for Array in=C2=A0http://ruby-doc.org/core-1.9.3/. Bookmark this= page because it's extremely useful :) --047d7b33d9361b01a204cb071abc--