instance method
none?
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
none?(&block)
Returns true if none of the elements match the given block.
success = responses.none? {|r| r.status / 100 == 5 }
This is a builtin method in Ruby 1.8.7 and later.
Parameters
-
blockblock
Source
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 111
def none?(&block)
!any?(&block)
end
Defined in activesupport/lib/active_support/core_ext/enumerable.rb line 111
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Enumerable