Sha256: 0d418a1865d0cd5f29933ff974202628216a281df7078bba6154435ab4e24992
Contents?: true
Size: 343 Bytes
Versions: 92
Compression:
Stored size: 343 Bytes
Contents
class Module def included_in_classes classes = [] ObjectSpace.each_object(Class) { |k| classes << k if k.included_modules.include?(self) } classes.reverse.inject([]) do |unique_classes, klass| unique_classes << klass unless unique_classes.collect { |k| k.to_s }.include?(klass.to_s) unique_classes end end end
Version data entries
92 entries across 92 versions & 7 rubygems