aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-01-27 22:12:58 +0100
committerXavier Noria <fxn@hashref.com>2010-01-27 22:12:58 +0100
commitafc7baf568b5747ec2907a121b62f72f96f89b9c (patch)
treea99ef1f266d7e987f3359964dbf222e5d989ec0c /railties/guides
parentbe45bf0fd995f000a8598596f3bfb63e3b75614b (diff)
downloadrails-afc7baf568b5747ec2907a121b62f72f96f89b9c.tar.gz
rails-afc7baf568b5747ec2907a121b62f72f96f89b9c.tar.bz2
rails-afc7baf568b5747ec2907a121b62f72f96f89b9c.zip
AS guide: Object#subclasses_of has been removed in 245bfafe335ff883f7a096eab95ac22fe2848679
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/active_support_core_extensions.textile36
1 files changed, 0 insertions, 36 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile
index 0f9269cbbd..3b3d8229d9 100644
--- a/railties/guides/source/active_support_core_extensions.textile
+++ b/railties/guides/source/active_support_core_extensions.textile
@@ -329,40 +329,6 @@ h5. +remove_subclasses_of+
The method +remove_subclasses_of+ receives an arbitrary number of class objects and removes their subclasses. It is a wrapper of +Class#remove_class+ explained with more details in "Class Removal FIX THIS LINK":FIXME.
-h5. +subclasses_of+
-
-The method +subclasses_of+ receives an arbitrary number of class objects and returns all their anonymous or reachable descendants as a single array:
-
-<ruby>
-class C; end
-subclasses_of(C) # => []
-
-subclasses_of(Integer) # => [Bignum, Fixnum]
-
-module M
- class A; end
- class B1 < A; end
- class B2 < A; end
-end
-
-module N
- class C < M::B1; end
-end
-
-subclasses_of(M::A) # => [N::C, M::B2, M::B1]
-</ruby>
-
-The order in which these classes are returned is unspecified. The returned collection may have duplicates:
-
-<ruby>
-subclasses_of(Numeric, Integer)
-# => [Bignum, Float, Fixnum, Integer, Date::Infinity, Rational, BigDecimal, Bignum, Fixnum]
-</ruby>
-
-See also +Class#subclasses+ in "Extensions to +Class+ FIXME THIS LINK":FIXME.
-
-NOTE: Defined in +active_support/core_ext/object/extending.rb+.
-
h4. Instance Variables
Active Support provides several methods to ease access to instance variables.
@@ -654,8 +620,6 @@ M::A.subclasses # => ["N::C", "M::B2", "M::B1"]
WARNING: +ActiveRecord::Base+ redefines +subclasses+, it returns class objects, reachable or not, and it is protected.
-See aso +Object#subclasses_of+, explained in "Extensions to All Objects FIX THIS LINK":FIXME.
-
NOTE: Defined in +active_support/core_ext/class/removal.rb+.
h3. Extensions to +String+