I have an array witch contains the id of living objects. I want to
delete objects from the array, if the objects contains an variable ==
"other_var".

I was thinking of something like the following thing:

 FAKE_DATABASE.delete_if {|x| x.var_of_x == @body } 

I thought this would bee logical, but it doesn't seem like Ruby give
me right here.

How can I do this?

Regards Henrik
(PS: Pleas don't kill me if I did something stupid here, I'm newbie on
Ruby :-)).