Module: Celluloid::ClassMethods
- Defined in:
- lib/celluloid/supervision/supervise.rb,
lib/celluloid/supervision/deprecate/supervise.rb
Instance Method Summary collapse
Instance Method Details
#supervise(*args, &block) ⇒ Object
10 11 12 |
# File 'lib/celluloid/supervision/supervise.rb', line 10 def supervise(config={}, &block) Celluloid.supervise(config.merge(type: self), &block) end |
#supervise_as(name, *args, &block) ⇒ Object
22 23 24 25 |
# File 'lib/celluloid/supervision/deprecate/supervise.rb', line 22 def supervise_as(name, *args, &block) args.unshift(self) Celluloid.supervise_as(name, *args, &block) end |