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.

first

enum.first â obj or nilenum.first(n) â an_array Instance Public methods

2015-04-05 00:21:33
inject

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

2015-04-05 00:45:34
max_by

enum.max_by { |obj| block } â objenum.max_by â an_enumerator Instance Public methods

2015-04-05 01:05:12
all?

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

2015-04-04 23:03:15
drop_while

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

2015-04-04 23:42:10
find_all

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

2015-04-05 00:10:48
min_by

enum.min_by { |obj| block } â objenum.min_by â an_enumerator Instance Public methods

2015-04-05 01:20:52
to_a

enum.to_a â array Instance Public methods Returns an array containing the

2015-04-05 02:21:54
slice_before

enum.slice_before(pattern) â an_enumeratorenum.slice_before { |elt| bool } â an_enumeratorenum.s

2015-04-05 02:00:06
group_by

enum.group_by { |obj| block } â a_hashenum.group_by â an_enumerator Instance Public methods

2015-04-05 00:33:24