Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removes Enumerable#pluck from the AS guide

  • Loading branch information...
commit a64ab959874681817c105f4cc6ce8b90b8bde545 1 parent ac2f68d
@fxn fxn authored
Showing with 0 additions and 10 deletions.
  1. +0 −10 railties/guides/source/active_support_core_extensions.textile
View
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.
Please sign in to comment.
Something went wrong with that request. Please try again.