Sha256: 4f01e43663eca302b31778484db01325b53a29940ed21c155fc142c08ff6d7a2
Contents?: true
Size: 423 Bytes
Versions: 10
Compression:
Stored size: 423 Bytes
Contents
require 'active_support/core_ext/class/subclasses' class Object # Exclude this class unless it's a subclass of our supers and is defined. # We check defined? in case we find a removed class that has yet to be # garbage collected. This also fails for anonymous classes -- please # submit a patch if you have a workaround. def subclasses_of(*superclasses) #:nodoc: Class.subclasses_of(*superclasses) end end
Version data entries
10 entries across 10 versions & 2 rubygems