Permalink
Browse files

removes Enumerable#pluck from the AS guide

  • Loading branch information...
1 parent ac2f68d commit a64ab959874681817c105f4cc6ce8b90b8bde545 @fxn fxn committed Dec 23, 2011
Showing with 0 additions and 10 deletions.
  1. +0 −10 railties/guides/source/active_support_core_extensions.textile
@@ -1977,16 +1977,6 @@ end
NOTE: Defined in +active_support/core_ext/enumerable.rb+.
-h4. +pluck+
-
-The +pluck+ method collects the value of the passed method for each element and returns the result as an array.
-
-<ruby>
-people.pluck(:name) # => [ "David Heinemeier Hansson", "Jamie Heinemeier Hansson" ]
-</ruby>
-
-NOTE: Defined in +active_support/core_ext/enumerable.rb+.
-
h4. +index_by+
The method +index_by+ generates a hash with the elements of an enumerable indexed by some key.

0 comments on commit a64ab95

Please sign in to comment.