29 Dec '14, 2am

exclude? は include? を否定していだけなのね

The negative of the Enumerable#include? . Returns true if the collection does not include the object. Source: show | on GitHub # File activesupport/lib/active_support/core_ext/enumerable.rb, line 60 def exclude? (object ) ! include? (object ) end

Full article: http://api.rubyonrails.org/classes/Enumerable.html#method...

Tweets