Sha256: 571ab6f060a11c216d232858580142191265018bf136392b6fabde8051674657

Contents?: true

Size: 349 Bytes

Versions: 3

Compression:

Stored size: 349 Bytes

Contents

require 'backgrounded/handler/abstract_handler'

module Backgrounded
  module Handler
    #simple handler to process synchronously and not actually in the background
    #useful for testing
    class InprocessHandler < AbstractHandler
      def request(object, method, args, options={})
        object.send method, *args
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
backgrounded-2.0.0 lib/backgrounded/handler/inprocess_handler.rb
backgrounded-2.0.0.rc2 lib/backgrounded/handler/inprocess_handler.rb
backgrounded-2.0.0.rc1 lib/backgrounded/handler/inprocess_handler.rb