Class: MrDarcy::Promise::DSL

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/mr_darcy/promise/dsl.rb

Overview

Syntax wrapper around Promise. Can probably be removed now.

Instance Method Summary collapse

Constructor Details

#initialize(promise) ⇒ DSL

Returns a new instance of DSL



11
12
13
# File 'lib/mr_darcy/promise/dsl.rb', line 11

def initialize promise
  @promise = promise
end