On 11.02.2008 21:54, Jonas Schneider wrote: > On 11 Feb., 18:07, Robert Klemme <shortcut... / googlemail.com> wrote: > only problem: The array actually consists of objects, I forgot. So the code you showed is not the original code? > So they dont have the delete method. > I've now done this with _x.dup.prop = nil; x_ but it seems a little > ugly to have that nil still in there. > I know, in PHP there is the unset function; is there somethin > aequivalent in ruby to get rid of it completely? Why don't you a.map {|x| x = x.dup; x.prop = nil; x} ? Do you actually need the copy? robert