Module: Sneakers::Worker

Defined in:
lib/sapience/sneakers.rb

Class Method Summary collapse

Class Method Details

.descendantsObject

:nodoc:



5
6
7
8
9
10
11
# File 'lib/sapience/sneakers.rb', line 5

def self.descendants # :nodoc:
  descendants = []
  ObjectSpace.each_object(singleton_class) do |k|
    descendants.unshift k unless k == self
  end
  descendants
end