From b5faacb1946b303ba11fd67a475afbc419575aa5 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Mon, 9 Nov 2009 23:38:00 +0100 Subject: AS guide: removes docs for Symbol#to_proc, no longer in AS --- .../source/active_support_core_extensions.textile | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'railties') diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index 35aa862835..4070d0a5c7 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -637,26 +637,6 @@ C # => NameError: uninitialized constant C See also +Object#remove_subclasses_of+ in "Extensions to All Objects FIX THIS LINK":FIXME. -h3. Extensions to +Symbol+ - -h4. +to_proc+ - -The method +to_proc+ turns a symbol into a Proc object so that for example - - -emails = users.map {|u| u.email} - - -can be written as - - -emails = users.map(&:email) - - -TIP: If the method that receives the Proc yields more than one value to it the rest are considered to be arguments of the method call. - -Symbols from Ruby 1.8.7 on respond to +to_proc+, and Active Support defines it for previous versions. - h3. Extensions to +String+ h4. +squish+ -- cgit v1.2.3