method
none?
rails latest stable - Class:
Enumerable
none?(&block)public
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.
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.