aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/active_support_core_extensions.textile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-01-27 22:15:37 +0100
committerXavier Noria <fxn@hashref.com>2010-01-27 22:15:37 +0100
commit5d21676aaabf42a50e565c13c8c3c31d45627511 (patch)
treeec391c9d36fe308663bd9214a74fe792de636368 /railties/guides/source/active_support_core_extensions.textile
parent7346dec7135c6efa04cf223eaf47349f08eefc28 (diff)
downloadrails-5d21676aaabf42a50e565c13c8c3c31d45627511.tar.gz
rails-5d21676aaabf42a50e565c13c8c3c31d45627511.tar.bz2
rails-5d21676aaabf42a50e565c13c8c3c31d45627511.zip
AS guide: Class#subclasses has been removed in ec7c642f5fe60afc857aa64f1a9b4c2be56f9d70
Diffstat (limited to 'railties/guides/source/active_support_core_extensions.textile')
-rw-r--r--railties/guides/source/active_support_core_extensions.textile29
1 files changed, 0 insertions, 29 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile
index 12ce05204f..562bc76135 100644
--- a/railties/guides/source/active_support_core_extensions.textile
+++ b/railties/guides/source/active_support_core_extensions.textile
@@ -587,35 +587,6 @@ If for whatever reason an application loads the definition of a mailer class and
NOTE: Defined in +active_support/core_ext/class/delegating_attributes.rb+.
-h4. Descendants
-
-h5. +subclasses+
-
-The +subclasses+ method returns the names of all the anonymous or reachable descendants of its receiver as an array of strings:
-
-<ruby>
-class C; end
-C.subclasses # => []
-
-Integer.subclasses # => ["Bignum", "Fixnum"]
-
-module M
- class A; end
- class B1 < A; end
- class B2 < A; end
-end
-
-module N
- class C < M::B1; end
-end
-
-M::A.subclasses # => ["N::C", "M::B2", "M::B1"]
-</ruby>
-
-WARNING: +ActiveRecord::Base+ redefines +subclasses+, it returns class objects, reachable or not, and it is protected.
-
-NOTE: Defined in +active_support/core_ext/class/removal.rb+.
-
h3. Extensions to +String+
h4. +squish+