Class: Promise

Inherits:
Object
  • Object
show all
Defined in:
lib/promise_extras.rb

Instance Method Summary collapse

Instance Method Details

#then_build_routes(&block) ⇒ Object



2
3
4
5
6
# File 'lib/promise_extras.rb', line 2

def then_build_routes(&block)
  self.then do |*args|
    React::Router::DSL.build_routes(*args, &block)
  end
end