instance method none?

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

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

block block
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close