Method: LeanWeb::App#initialize

Defined in:
lib/leanweb/app.rb

#initialize(routes) ⇒ App

Returns a new instance of App.

Parameters:

  • routes (Hash)

    Hash of routes with Route attributes.



18
19
20
# File 'lib/leanweb/app.rb', line 18

def initialize(routes)
  @routes = routes
end