From: Clayton Lane Date: 2009-04-27T10:36:58+09:00 Subject: Re: Deleting numbers in array Robert Schaaf wrote: > Hello Clayton, > > Try this. > > nums.delete_if {|x| x.to_s.include? '9'} > > Bob Schaaf Hmmm didn't seem to work. I'm just trying to remove numbers that don't contain 1. For example, 21 would be allowed, but 22 wouldn't. -- Posted via http://www.ruby-forum.com/.