aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-01-26 22:37:55 +0100
committerXavier Noria <fxn@hashref.com>2010-01-26 22:37:55 +0100
commitec7c642f5fe60afc857aa64f1a9b4c2be56f9d70 (patch)
tree141c0f7439721a3cdcd4fde1cdf856c841d1cb94 /activesupport/lib/active_support/core_ext
parentc6104e6514d7e0af8dca92fcb40a6adb72e16611 (diff)
downloadrails-ec7c642f5fe60afc857aa64f1a9b4c2be56f9d70.tar.gz
rails-ec7c642f5fe60afc857aa64f1a9b4c2be56f9d70.tar.bz2
rails-ec7c642f5fe60afc857aa64f1a9b4c2be56f9d70.zip
removes unused method Class#subclasses
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r--activesupport/lib/active_support/core_ext/class/removal.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/activesupport/lib/active_support/core_ext/class/removal.rb b/activesupport/lib/active_support/core_ext/class/removal.rb
index 652be4ed78..82163eeb30 100644
--- a/activesupport/lib/active_support/core_ext/class/removal.rb
+++ b/activesupport/lib/active_support/core_ext/class/removal.rb
@@ -16,13 +16,6 @@ class Class #:nodoc:
Object.remove_subclasses_of(self)
end
- # Returns an array with the names of the subclasses of +self+ as strings.
- #
- # Integer.subclasses # => ["Bignum", "Fixnum"]
- def subclasses
- Object.subclasses_of(self).map { |o| o.to_s }
- end
-
# Removes the classes in +klasses+ from their parent module.
#
# Ordinary classes belong to some module via a constant. This method computes