diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index 1b467e1efd..2ae336fa15 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/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. - -<ruby> -people.pluck(:name) # => [ "David Heinemeier Hansson", "Jamie Heinemeier Hansson" ] -</ruby> - -NOTE: Defined in +active_support/core_ext/enumerable.rb+. - h4. +index_by+ The method +index_by+ generates a hash with the elements of an enumerable indexed by some key. |