aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-11-09 23:38:00 +0100
committerXavier Noria <fxn@hashref.com>2009-11-09 23:38:00 +0100
commitb5faacb1946b303ba11fd67a475afbc419575aa5 (patch)
tree142f7906063500ac8cc90830b35eee69b216e087
parent169aaa6218dc7ee349f6ab706d16f179dbfbc0dd (diff)
downloadrails-b5faacb1946b303ba11fd67a475afbc419575aa5.tar.gz
rails-b5faacb1946b303ba11fd67a475afbc419575aa5.tar.bz2
rails-b5faacb1946b303ba11fd67a475afbc419575aa5.zip
AS guide: removes docs for Symbol#to_proc, no longer in AS
-rw-r--r--railties/guides/source/active_support_core_extensions.textile20
1 files changed, 0 insertions, 20 deletions
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
-
-<ruby>
-emails = users.map {|u| u.email}
-</ruby>
-
-can be written as
-
-<ruby>
-emails = users.map(&:email)
-</ruby>
-
-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+