revises Enumerable#pluck in AS guide

This commit is contained in:
Vijay Dev
2011-12-02 23:53:21 +05:30
parent baa93a1c2e
commit ee45823072

View File

@@ -2055,7 +2055,7 @@ NOTE: Defined in +active_support/core_ext/enumerable.rb+.
h4. +pluck+
Plucks the value of the passed method for each element and returns the result as an array
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" ]