Class: Module

Inherits:
Object
  • Object
show all
Defined in:
lib/laundry/stubbed.rb

Instance Method Summary collapse

Instance Method Details

#subclassesObject



4
5
6
7
8
9
10
# File 'lib/laundry/stubbed.rb', line 4

def subclasses
	classes = []
	ObjectSpace.each_object(Module) do |m|
		classes << m if m.ancestors.include? self
	end
	classes
end