Class: Skein::Handler::Async

Inherits:
Skein::Handler show all
Defined in:
lib/skein/handler/async.rb

Instance Attribute Summary

Attributes inherited from Skein::Handler

#context

Instance Method Summary collapse

Methods inherited from Skein::Handler

for, #handle, #initialize

Constructor Details

This class inherits a constructor from Skein::Handler

Instance Method Details

#delegate(*args) ⇒ Object

Instance Methods =====================================================



4
5
6
7
8
# File 'lib/skein/handler/async.rb', line 4

def delegate(*args)
  @target.send(*args) do |response, error|
    yield(response, error)
  end
end