Class: Groovestack::Base::Listeners::InitAll
- Inherits:
-
Object
- Object
- Groovestack::Base::Listeners::InitAll
- Defined in:
- lib/groovestack/base/listeners.rb
Class Method Summary collapse
Class Method Details
.run(throttle_seconds: 0) ⇒ Object
37 38 39 40 41 42 |
# File 'lib/groovestack/base/listeners.rb', line 37 def self.run(throttle_seconds: 0) core_listeners = ObjectSpace.each_object(Class).select do |klass| klass.const_defined?(:CORE_LISTENER) && klass.const_get(:CORE_LISTENER) end core_listeners.map { |listener| listener.init(throttle_seconds: throttle_seconds) }.flatten end |