From: Giles Bowkett Date: 2006-10-30T03:02:07+09:00 Subject: !x.include? y basically, I need to filter list A to match list B. list A is a list of objects with a particular field, and list B is a list of acceptable values for that field. what I have works but it reads sort of clumsily. I changed the ! to a not and got something slightly more readable: list.reject! {|thing| not list_of_acceptable_values.include? thing.attribute} is there a nicer way to do it? -- Giles Bowkett http://www.gilesgoatboy.org