aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-01-27 22:10:46 +0100
committerXavier Noria <fxn@hashref.com>2010-01-27 22:10:46 +0100
commit5c2be6d80400bfeb80c80b966ae2f0c11d71c978 (patch)
tree55579f1248b81078ef60cb0cb0a9fc7c83fd418a /railties/guides/source
parentb0edc8dcf2ba2e7f692c68922849234820bacbe0 (diff)
downloadrails-5c2be6d80400bfeb80c80b966ae2f0c11d71c978.tar.gz
rails-5c2be6d80400bfeb80c80b966ae2f0c11d71c978.tar.bz2
rails-5c2be6d80400bfeb80c80b966ae2f0c11d71c978.zip
AS guide: Class#reachable? has been removed in 5f981ff0294ba45aa44ad15aa063970b29aeec44
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/active_support_core_extensions.textile25
1 files changed, 0 insertions, 25 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile
index 009e571bc4..dd0569ef09 100644
--- a/railties/guides/source/active_support_core_extensions.textile
+++ b/railties/guides/source/active_support_core_extensions.textile
@@ -666,31 +666,6 @@ See aso +Object#subclasses_of+, explained in "Extensions to All Objects FIX THIS
NOTE: Defined in +active_support/core_ext/class/removal.rb+.
-h4. Reachable Classes
-
-By definition a non-anonymous class is reachable if its name constantized is defined, and the corresponding constant evaluates to +self+:
-
-<ruby>
-class C; end
-C.reachable? # => true
-
-phantom = Object.send(:remove_const, :C)
-
-# The class object is orphan now but it still has a name.
-phantom.name # => "C"
-
-# Class name no longer available as a constant.
-phantom.reachable? # => nil
-
-# Let's define a class named "C" again.
-class C; end
-
-# Class name available as a constant, but different class object.
-phantom.reachable? # => false
-</ruby>
-
-NOTE: Defined in +active_support/core_ext/class/removal.rb+.
-
h3. Extensions to +String+
h4. +squish+