Module: ModernTimes::Base::Worker::ClassMethods
- Defined in:
- lib/modern_times/base/worker.rb
Instance Method Summary collapse
Instance Method Details
#create_supervisor(manager, worker_options) ⇒ Object
13 14 15 |
# File 'lib/modern_times/base/worker.rb', line 13 def create_supervisor(manager, ) Supervisor.new(manager, self, {}, ) end |
#default_name ⇒ Object
8 9 10 11 |
# File 'lib/modern_times/base/worker.rb', line 8 def default_name name = self.name.sub(/Worker$/, '') name.sub(/::/, '_') end |