Sha256: 688f00c62c9fd579c5e77ec91b38acd81bfd0d45e452727d8e593bcf3ea6a969

Contents?: true

Size: 410 Bytes

Versions: 5

Compression:

Stored size: 410 Bytes

Contents

module RubyApp

  module Rack

    class Response
      require 'ruby_app'

      def initialize(application)
        @application = application
      end

      def call(environment)
        RubyApp::Response.create!
        begin
          @application.call(environment)
          return RubyApp::Response.finish
        ensure
          RubyApp::Response.destroy!
        end
      end

    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
RubyApp-0.2.4 lib/ruby_app/rack/response.rb
RubyApp-0.2.3 lib/ruby_app/rack/response.rb
RubyApp-0.2.2 lib/ruby_app/rack/response.rb
RubyApp-0.2.1 lib/ruby_app/rack/response.rb
RubyApp-0.2.0 lib/ruby_app/rack/response.rb