From 824334c15c21de6768eda64053135bc46f2a67bb Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Fri, 23 Dec 2011 09:50:50 +0100 Subject: removes Enumerable#pluck from the AS guide --- railties/guides/source/active_support_core_extensions.textile | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'railties/guides/source') diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index 6646e9cd05..fbccff5005 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -2053,16 +2053,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: -- cgit v1.2.3