Module: Enumerable

encoding: utf-8

Public Visibility

Public Instance Method Summary

#none?(&block) {|Each, Each| ... }

Enumerable#none? is the logical opposite of the builtin method Enumerable#any?.

Returns: Array<String>

Public Instance Method Details

none?

public Array<String> none?(&block) {|Each, Each| ... }

Enumerable#none? is the logical opposite of the builtin method Enumerable#any?. It returns true if and only if none of the elements in the collection satisfy the predicate.

If no predicate is provided, Enumerable#none? returns true if and only if none of the elements have a true value (i.e. not nil or false).

Meta Tags

Parameters:

Yield Parameters:

[item] Each

item of array-like collection

[key, value] Each

item of hash-like collection

Returns:

[Array<String>]

List of successfully loaded files

Raises:

[LoadError]

If base directory doesn’t exist

[ArgumentError]

If first argument isn’t a glob

Author:

Botanicus

Since:

0.0.3

[View source]


27
28
29
# File 'lib/rango/ext/enumerable.rb', line 27

def none?(&block)
  not self.any?(&block)
end