Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/laundry/stubbed.rb
Instance Method Summary collapse
Instance Method Details
#subclasses ⇒ Object
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 |