Sha256: fd61d68003580e1833c282c5a55c015e0dff1e5557801c88f33830748db20bf8

Contents?: true

Size: 269 Bytes

Versions: 24

Compression:

Stored size: 269 Bytes

Contents

module Jubilee
  class Application
    def initialize(rack_app)
      unless @app = rack_app
        raise "rack application not found, make sure the rackup file path is correct"
      end
    end

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
jubilee-0.2.2 lib/jubilee/application.rb
jubilee-0.2.1 lib/jubilee/application.rb
jubilee-0.2.0 lib/jubilee/application.rb
jubilee-0.1.2 lib/jubilee/application.rb