diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-05-09 22:09:27 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-05-09 22:09:27 +0900 |
| commit | bd8d91066663dde3ac17c50bca318984d0b3507b (patch) | |
| tree | 878e80373c493e1f2ff448b44b95293f32c7b7c8 /mrblib/enum.rb | |
| parent | 6a0c30d038172a238eb22ef259d835123cb117c9 (diff) | |
| download | mruby-bd8d91066663dde3ac17c50bca318984d0b3507b.tar.gz mruby-bd8d91066663dde3ac17c50bca318984d0b3507b.zip | |
clean enum.c
Diffstat (limited to 'mrblib/enum.rb')
| -rw-r--r-- | mrblib/enum.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mrblib/enum.rb b/mrblib/enum.rb index 31a94b93f..2699a18af 100644 --- a/mrblib/enum.rb +++ b/mrblib/enum.rb @@ -1,7 +1,17 @@ ## # Enumerable # -# ISO 15.3.2 +# ISO 15.3.2 +# +# The <code>Enumerable</code> mixin provides collection classes with +# several traversal and searching methods, and with the ability to +# sort. The class must provide a method <code>each</code>, which +# yields successive members of the collection. If +# <code>Enumerable#max</code>, <code>#min</code>, or +# <code>#sort</code> is used, the objects in the collection must also +# implement a meaningful <code><=></code> operator, as these methods +# rely on an ordering between members of the collection. + module Enumerable ## |
