Sha256: 269942480ebc0b7911e4539e8232a68ecd525b054a80393f38da33b8d33a5b8c

Contents?: true

Size: 426 Bytes

Versions: 2

Compression:

Stored size: 426 Bytes

Contents

module MultiWorker
  module Adapters
    class Inline
      def self.configure(base, opts={})
        base.instance_eval do
          def self.perform(*args)
            self.new.perform(*args)
          end

          def self.perform_async(*args)
            perform(*args)
          end

          def perform_async(*args)
            perform(*args)
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
multi_worker-0.2.0 lib/multi_worker/adapters/inline.rb
multi_worker-0.1.0 lib/multi_worker/adapters/inline.rb