Module: SuckerPunch::Job

Defined in:
lib/sucker_punch/job.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


3
4
5
6
7
8
9
10
11
12
# File 'lib/sucker_punch/job.rb', line 3

def self.included(base)
  base.send(:include, ::Celluloid)
  base.extend(ClassMethods)

  base.class_eval do
    def self.new
      define_celluloid_pool(self, @workers)
    end
  end
end