Skip to content

Commit

Permalink
[docs] pluck docs reverted for activesupport
Browse files Browse the repository at this point in the history
  • Loading branch information
arunagw committed Dec 23, 2011
1 parent 46ec756 commit cc45032
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 @@ -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. +each_with_object+

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

0 comments on commit cc45032

Please sign in to comment.