Sha256: a37cd4393dc67551220d84bd0c636f0c724fdf107322aa229a50fa0db400acc1

Contents?: true

Size: 415 Bytes

Versions: 12

Compression:

Stored size: 415 Bytes

Contents

module Merb
  module Rack
    class Middleware
      
      # @overridable
      # :api: plugin
      def initialize(app)
        @app = app
      end

      # @overridable
      # :api: plugin
      def deferred?(env)
        @app.deferred?(env) if @app.respond_to?(:deferred?)
      end
  
      # @overridable
      # :api: plugin  
      def call(env)
        @app.call(env)
      end
      
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
merb-core-1.1.0 lib/merb-core/rack/middleware.rb
merb-core-1.1.0.rc1 lib/merb-core/rack/middleware.rb
merb-core-1.1.0.pre lib/merb-core/rack/middleware.rb
merb-core-1.0.15 lib/merb-core/rack/middleware.rb
merb-core-1.0.14 lib/merb-core/rack/middleware.rb
merb-core-1.0.13 lib/merb-core/rack/middleware.rb
merb-core-1.0.12 lib/merb-core/rack/middleware.rb
merb-core-1.0.10 lib/merb-core/rack/middleware.rb
merb-core-1.0.11 lib/merb-core/rack/middleware.rb
merb-core-1.0.8.1 lib/merb-core/rack/middleware.rb
merb-core-1.0.8 lib/merb-core/rack/middleware.rb
merb-core-1.0.9 lib/merb-core/rack/middleware.rb