Enumerable

Enumerable

ri

 ------------------------------------------------------ Class: Enumerable
      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.
 
 ------------------------------------------------------------------------
 
 
 Instance methods:
 -----------------
      all?, any?, collect, detect, each_cons, each_slice,
      each_with_index, entries, enum_cons, enum_slice, enum_with_index,
      find, find_all, grep, include?, inject, map, max, member?, min,
      partition, reject, select, sort, sort_by, to_a, to_set, zip

refe

 ==== Enumerable ====
 繰り返しを行なうクラスのための Mix-in。このモジュールの
 メソッドは全て each を用いて定義されているので、インクルード
 するクラスには each が定義されていなければなりません。
 ---- Singleton methods ----
 ---- Instance methods ----
 all? any? collect detect each_with_index entries find
 find_all grep include? inject map max member? min partition
 reject select sort sort_by to_a zip
 ---- Singleton methods (inherited) ----
 ---- Instance methods (inherited) ----