Class: Jasmine::Application
- Inherits:
-
Object
- Object
- Jasmine::Application
- Defined in:
- lib/jasmine/application.rb
Class Method Summary collapse
Class Method Details
.app(config, builder = Rack::Builder.new) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/jasmine/application.rb', line 11 def self.app(config, builder = Rack::Builder.new) config.rack_apps.each do |app_config| builder.use(app_config[:app], *app_config[:args], &app_config[:block]) end config.rack_path_map.each do |path, handler| builder.map(path) { run handler.call } end builder end |