Sha256: 4cd54f79c258f566210e6c1402e541b60b6163d14393da42b468d7a47d4e9e31
Contents?: true
Size: 368 Bytes
Versions: 1
Compression:
Stored size: 368 Bytes
Contents
module Whenner # Proxy object yielded by the {Deferred#then} method to set both `fail` and # `done` callbacks. class DeferredProxy def initialize(deferred) @deferred = deferred end def done(&block) @done = block if block_given? @done end def fail(&block) @fail = block if block_given? @fail end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whenner-0.2.0 | lib/whenner/deferred_proxy.rb |