mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Cosmetic.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ea16f7dfc9
commit
16ddb4f689
1 changed files with 32 additions and 32 deletions
64
enum.c
64
enum.c
|
@ -1756,39 +1756,39 @@ Init_Enumerable(void)
|
|||
{
|
||||
rb_mEnumerable = rb_define_module("Enumerable");
|
||||
|
||||
rb_define_method(rb_mEnumerable,"to_a", enum_to_a, 0);
|
||||
rb_define_method(rb_mEnumerable,"entries", enum_to_a, 0);
|
||||
rb_define_method(rb_mEnumerable, "to_a", enum_to_a, 0);
|
||||
rb_define_method(rb_mEnumerable, "entries", enum_to_a, 0);
|
||||
|
||||
rb_define_method(rb_mEnumerable,"sort", enum_sort, 0);
|
||||
rb_define_method(rb_mEnumerable,"sort_by", enum_sort_by, 0);
|
||||
rb_define_method(rb_mEnumerable,"grep", enum_grep, 1);
|
||||
rb_define_method(rb_mEnumerable,"count", enum_count, -1);
|
||||
rb_define_method(rb_mEnumerable,"find", enum_find, -1);
|
||||
rb_define_method(rb_mEnumerable,"detect", enum_find, -1);
|
||||
rb_define_method(rb_mEnumerable,"find_index", enum_find_index, -1);
|
||||
rb_define_method(rb_mEnumerable,"find_all", enum_find_all, 0);
|
||||
rb_define_method(rb_mEnumerable,"select", enum_find_all, 0);
|
||||
rb_define_method(rb_mEnumerable,"reject", enum_reject, 0);
|
||||
rb_define_method(rb_mEnumerable,"collect", enum_collect, 0);
|
||||
rb_define_method(rb_mEnumerable,"map", enum_collect, 0);
|
||||
rb_define_method(rb_mEnumerable,"inject", enum_inject, -1);
|
||||
rb_define_method(rb_mEnumerable,"reduce", enum_inject, -1);
|
||||
rb_define_method(rb_mEnumerable,"partition", enum_partition, 0);
|
||||
rb_define_method(rb_mEnumerable,"group_by", enum_group_by, 0);
|
||||
rb_define_method(rb_mEnumerable,"first", enum_first, -1);
|
||||
rb_define_method(rb_mEnumerable,"all?", enum_all, 0);
|
||||
rb_define_method(rb_mEnumerable,"any?", enum_any, 0);
|
||||
rb_define_method(rb_mEnumerable,"one?", enum_one, 0);
|
||||
rb_define_method(rb_mEnumerable,"none?", enum_none, 0);
|
||||
rb_define_method(rb_mEnumerable,"min", enum_min, 0);
|
||||
rb_define_method(rb_mEnumerable,"max", enum_max, 0);
|
||||
rb_define_method(rb_mEnumerable,"minmax", enum_minmax, 0);
|
||||
rb_define_method(rb_mEnumerable,"min_by", enum_min_by, 0);
|
||||
rb_define_method(rb_mEnumerable,"max_by", enum_max_by, 0);
|
||||
rb_define_method(rb_mEnumerable,"minmax_by", enum_minmax_by, 0);
|
||||
rb_define_method(rb_mEnumerable,"member?", enum_member, 1);
|
||||
rb_define_method(rb_mEnumerable,"include?", enum_member, 1);
|
||||
rb_define_method(rb_mEnumerable,"each_with_index", enum_each_with_index, -1);
|
||||
rb_define_method(rb_mEnumerable, "sort", enum_sort, 0);
|
||||
rb_define_method(rb_mEnumerable, "sort_by", enum_sort_by, 0);
|
||||
rb_define_method(rb_mEnumerable, "grep", enum_grep, 1);
|
||||
rb_define_method(rb_mEnumerable, "count", enum_count, -1);
|
||||
rb_define_method(rb_mEnumerable, "find", enum_find, -1);
|
||||
rb_define_method(rb_mEnumerable, "detect", enum_find, -1);
|
||||
rb_define_method(rb_mEnumerable, "find_index", enum_find_index, -1);
|
||||
rb_define_method(rb_mEnumerable, "find_all", enum_find_all, 0);
|
||||
rb_define_method(rb_mEnumerable, "select", enum_find_all, 0);
|
||||
rb_define_method(rb_mEnumerable, "reject", enum_reject, 0);
|
||||
rb_define_method(rb_mEnumerable, "collect", enum_collect, 0);
|
||||
rb_define_method(rb_mEnumerable, "map", enum_collect, 0);
|
||||
rb_define_method(rb_mEnumerable, "inject", enum_inject, -1);
|
||||
rb_define_method(rb_mEnumerable, "reduce", enum_inject, -1);
|
||||
rb_define_method(rb_mEnumerable, "partition", enum_partition, 0);
|
||||
rb_define_method(rb_mEnumerable, "group_by", enum_group_by, 0);
|
||||
rb_define_method(rb_mEnumerable, "first", enum_first, -1);
|
||||
rb_define_method(rb_mEnumerable, "all?", enum_all, 0);
|
||||
rb_define_method(rb_mEnumerable, "any?", enum_any, 0);
|
||||
rb_define_method(rb_mEnumerable, "one?", enum_one, 0);
|
||||
rb_define_method(rb_mEnumerable, "none?", enum_none, 0);
|
||||
rb_define_method(rb_mEnumerable, "min", enum_min, 0);
|
||||
rb_define_method(rb_mEnumerable, "max", enum_max, 0);
|
||||
rb_define_method(rb_mEnumerable, "minmax", enum_minmax, 0);
|
||||
rb_define_method(rb_mEnumerable, "min_by", enum_min_by, 0);
|
||||
rb_define_method(rb_mEnumerable, "max_by", enum_max_by, 0);
|
||||
rb_define_method(rb_mEnumerable, "minmax_by", enum_minmax_by, 0);
|
||||
rb_define_method(rb_mEnumerable, "member?", enum_member, 1);
|
||||
rb_define_method(rb_mEnumerable, "include?", enum_member, 1);
|
||||
rb_define_method(rb_mEnumerable, "each_with_index", enum_each_with_index, -1);
|
||||
rb_define_method(rb_mEnumerable, "zip", enum_zip, -1);
|
||||
rb_define_method(rb_mEnumerable, "take", enum_take, 1);
|
||||
rb_define_method(rb_mEnumerable, "take_while", enum_take_while, 0);
|
||||
|
|
Loading…
Reference in a new issue