Module: MicroQ::DSL::ClassMethods
- Defined in:
- lib/micro_q/dsl.rb
Instance Method Summary collapse
Instance Method Details
#worker(*opts) ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/micro_q/dsl.rb', line 40 def worker(*opts) self.class_eval do def self. ||= { :methods => [:perform] } end end if Hash === opts.last self..merge!(opts.pop) end DSL.attach_async_methods(self, opts) end |