Skip to content

Commit

Permalink
removes Enumerable#pluck from the AS guide
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Dec 23, 2011
1 parent 35ded6f commit 824334c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions railties/guides/source/active_support_core_extensions.textile
Expand Up @@ -2053,16 +2053,6 @@ end


NOTE: Defined in +active_support/core_ext/enumerable.rb+. 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+ h4. +each_with_object+


The +inject+ method offers iteration with an accumulator: The +inject+ method offers iteration with an accumulator:
Expand Down

0 comments on commit 824334c

Please sign in to comment.