Issue #5644 has been updated by trans (Thomas Sawyer).


There really is no better term b/c all such terms are going to have the same connotations.

As with "include" if you add an "s" to the word then it reads more like typical English, i.e. "a excludes b ?". To use the singular form you have to add a modal verb like "does a exclude b ?" Which makes it easy to see that this is the right meaning.
----------------------------------------
Feature #5644: add Enumerable#exclude? antonym
https://bugs.ruby-lang.org/issues/5644#change-25468

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/