Module: Delayer::Extend

Defined in:
lib/delayer/deferred.rb

Instance Method Summary collapse

Instance Method Details

#PromiseObject Also known as: Deferred


36
37
38
39
40
41
42
# File 'lib/delayer/deferred.rb', line 36

def Promise
  @promise ||= begin
                 the_delayer = self
                 Class.new(::Delayer::Deferred::Promise) {
                   define_singleton_method(:delayer) {
                     the_delayer } } end
end