Permalink
Browse files

AS guide: removes docs for Symbol#to_proc, no longer in AS

  • Loading branch information...
1 parent 169aaa6 commit b5faacb1946b303ba11fd67a475afbc419575aa5 @fxn fxn committed Nov 9, 2009
Showing with 0 additions and 20 deletions.
  1. +0 −20 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+

0 comments on commit b5faacb

Please sign in to comment.