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 824334c15c21de6768eda64053135bc46f2a67bb 1 parent 35ded6f
@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
@@ -2053,16 +2053,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. +each_with_object+
The +inject+ method offers iteration with an accumulator:
Please sign in to comment.
Something went wrong with that request. Please try again.