From: "trans (Thomas Sawyer)" Date: 2012-03-29T12:41:13+09:00 Subject: [ruby-core:43840] [ruby-trunk - Feature #5644] add Enumerable#exclude? antonym Issue #5644 has been updated by trans (Thomas Sawyer). I'll throw my hat in with #exclude? too. There's been a number of times that I would have liked to have it. "not include?" is a rather common predication and it's nice when code can line up neatly. ---------------------------------------- Feature #5644: add Enumerable#exclude? antonym https://bugs.ruby-lang.org/issues/5644#change-25349 Author: sunaku (Suraj Kurapati) Status: Feedback Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: Target version: Please add Enumerable#exclude? as antonym of Enumerable#include? This allows me to construct Boolean expressions more pleasantly: if File.exist? some_file and not some_list.include? some_file Can be written as: if File.exist? some_file and some_list.exclude? some_file Thanks for your consideration. -- http://bugs.ruby-lang.org/