1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

removes unused method Class#reachable?

This commit is contained in:
Xavier Noria 2010-01-26 22:49:35 +01:00
parent f85f5dfc8f
commit 5f981ff029

View file

@ -2,11 +2,6 @@ require 'active_support/core_ext/object/extending'
require 'active_support/core_ext/module/introspection'
class Class #:nodoc:
def reachable?
eval("defined?(::#{self}) && ::#{self}.equal?(self)")
end
# Removes the classes in +klasses+ from their parent module.
#
# Ordinary classes belong to some module via a constant. This method computes