aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/enumerable.rb
diff options
context:
space:
mode:
authorMarcel Molina <marcel@vernix.org>2006-10-22 03:04:50 +0000
committerMarcel Molina <marcel@vernix.org>2006-10-22 03:04:50 +0000
commitba5591f21240534186714efad207d3d8558ad391 (patch)
treeeb3110da3fbf4ad649324336085dde402726a251 /activesupport/lib/active_support/core_ext/enumerable.rb
parentfb7807e24408912fcaa2842948eee473d6af1a70 (diff)
downloadrails-ba5591f21240534186714efad207d3d8558ad391.tar.gz
rails-ba5591f21240534186714efad207d3d8558ad391.tar.bz2
rails-ba5591f21240534186714efad207d3d8558ad391.zip
Expose methods added to Enumerable in the documentation, such as group_by. Closes #6170.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5334 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/core_ext/enumerable.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/enumerable.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/enumerable.rb b/activesupport/lib/active_support/core_ext/enumerable.rb
index 59128007df..93372bb4d5 100644
--- a/activesupport/lib/active_support/core_ext/enumerable.rb
+++ b/activesupport/lib/active_support/core_ext/enumerable.rb
@@ -1,4 +1,4 @@
-module Enumerable #:nodoc:
+module Enumerable
# Collect an enumerable into sets, grouped by the result of a block. Useful,
# for example, for grouping records by date.
#
@@ -19,7 +19,7 @@ module Enumerable #:nodoc:
(groups[yield(element)] ||= []) << element
groups
end
- end
+ end if RUBY_VERSION < '1.9'
# Calculates a sum from the elements. Examples:
#