Type:
Module

The Enumerable mixin provides collection classes with several traversal and searching methods, and with the ability to sort. The class must provide a method each, which yields successive members of the collection. If Enumerable#max, #min, or #sort is used, the objects in the collection must also implement a meaningful <=> operator, as these methods rely on an ordering between members of the collection.

find_index

enum.find_index(value) â int or nilenum.find_index { |obj| block } â int or nilenum.find_index â an_enumerator

2015-04-05 00:16:24
chunk

enum.chunk { |elt| ... } â an_enumeratorenum.chunk(initial_state) { |elt, state| ... } â an_enumerator

2015-04-04 23:12:26
minmax_by

enum.minmax_by { |obj| block } â [min, max]enum.minmax_by â an_enumerator Instance Public

2015-04-05 01:25:18
zip

enum.zip(arg, ...) â an_array_of_arrayenum.zip(arg, ...) { |arr| block } â nil Instance

2015-04-05 02:26:29
reduce

enum.reduce(initial, sym) â objenum.reduce(sym) â objenum.reduce(initial) { |memo, obj| block } â objenum.reduce { |memo,

2015-04-05 01:41:58
any?

enum.any? [{ |obj| block }] â true or false Instance Public methods Passes

2015-04-04 23:07:19
lazy

e.lazy â lazy_enumerator Instance Public methods Returns a lazy enumerator

2015-04-05 00:51:00
max

enum.max â objenum.max { |a, b| block } â obj Instance Public methods

2015-04-05 00:59:43
collect_concat

enum.collect_concat { |obj| block } â arrayenum.collect_concat â an_enumerator Instance Public

2015-04-04 23:23:14
minmax

enum.minmax â [min, max]enum.minmax { |a, b| block } â [min, max] Instance Public methods

2015-04-05 01:23:56