Skip to content
Browse files

[docs] pluck docs reverted for activesupport

  • Loading branch information...
1 parent 46ec756 commit cc450329b2c21928bece7544de4f95a4eebde03c @arunagw arunagw committed
Showing with 0 additions and 10 deletions.
  1. +0 −10 railties/guides/source/active_support_core_extensions.textile
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.
-people.pluck(:name) # => [ "David Heinemeier Hansson", "Jamie Heinemeier Hansson" ]
-NOTE: Defined in +active_support/core_ext/enumerable.rb+.
h4. +each_with_object+
The +inject+ method offers iteration with an accumulator:

0 comments on commit cc45032

Please sign in to comment.
Something went wrong with that request. Please try again.