Sha256: 1b51c2c295eb19e5ee13b5cce984524fe18d936751301415742527681044ed47

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

module Backgrounded
  class Proxy
    def initialize(delegate, options={})
      @delegate = delegate
      @options = options
    end

    def method_missing(method_name, *args)
      Backgrounded.logger.debug("Requesting #{Backgrounded.handler} backgrounded method: #{method_name} for instance #{@delegate}")
      Backgrounded.handler.request(@delegate, method_name, args, @options)
      nil
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
backgrounded-2.0.0.pre2 lib/backgrounded/proxy.rb
backgrounded-2.0.0.pre1 lib/backgrounded/proxy.rb