Class: RailsMini

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

Defined Under Namespace

Modules: Ext Classes: App

Instance Method Summary collapse

Constructor Details

#initialize(&blk) ⇒ RailsMini

Returns a new instance of RailsMini.



7
8
9
10
# File 'lib/rails_mini.rb', line 7

def initialize(&blk)
  App.routes.draw &blk
  @app = App
end

Instance Method Details

#call(env) ⇒ Object



12
13
14
# File 'lib/rails_mini.rb', line 12

def call(env)
  @app.call(env)
end