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.

minmax_by

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

2015-04-05 01:25:18
each_entry

enum.each_entry { |obj| block } â enumenum.each_entry â an_enumerator Instance Public methods

2015-04-04 23:49:08
each_with_index

enum.each_with_index(*args) { |obj, i| block } â enumenum.each_with_index(*args) â an_enumerator

2015-04-04 23:54:41
reduce

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

2015-04-05 01:41:58
take_while

enum.take_while { |arr| block } â arrayenum.take_while â an_enumerator Instance Public methods

2015-04-05 02:17:40
max

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

2015-04-05 00:59:43
lazy

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

2015-04-05 00:51:00
minmax

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

2015-04-05 01:23:56
collect_concat

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

2015-04-04 23:23:14
any?

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

2015-04-04 23:07:19