Class: Rack::Builder

Inherits:
Object
  • Object
show all
Includes:
Lamed
Defined in:
lib/lamed/main.rb

Constant Summary

Constants included from Lamed

Lamed::DB_OPTIONS, Lamed::OPTIONS, Lamed::SYS_OPTIONS, Lamed::VERSION

Instance Method Summary collapse

Methods included from Lamed

initialize_logger, load_controller, load_lib, load_model, logger, opts

Instance Method Details

#run_appsObject



17
18
19
20
21
22
23
24
25
26
# File 'lib/lamed/main.rb', line 17

def run_apps
  use Rack::Lint
  use Rack::ShowExceptions
  use Rack::CommonLogger
  ObjectLoader.mapped_class.each_pair do |path, klass|
    map path do
      run klass.new
    end
  end
end