Module: Frequent::Deferred
- Defined in:
- lib/frequent.rb
Class Method Summary collapse
Class Method Details
.enable! ⇒ Object
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/frequent.rb', line 124 def self.enable! return if @enabled ::Module.class_eval do def method_added(m) Frequent::Deferred.place_by_name("#{self}##{m}") end def singleton_method_added(m) Frequent::Deferred.place_by_name("#{self}.#{m}") end def included(host) Frequent.probes.values.select(&:ready?).each(&:enable!) end end @enabled = true end |