Sha256: b093821bc6a36532f68433a38cd4bdc8460b127e567385d34391c9b942f2b00c

Contents?: true

Size: 332 Bytes

Versions: 9

Compression:

Stored size: 332 Bytes

Contents

module Scorpion

  # Add scorpion support to a Rack middleware.
  module Rack
    private

      def scorpion( env )
        env[ Middleware::ENV_KEY ] || fail( MissingScorpionError, self.class.name )
      end
  end
end

require "scorpion/rack/env"
require "scorpion/rack/middleware"
require "scorpion/rack/missing_scorpion_error"

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
scorpion-ioc-1.0.10 lib/scorpion/rack.rb
scorpion-ioc-1.0.8 lib/scorpion/rack.rb
scorpion-ioc-1.0.7 lib/scorpion/rack.rb
scorpion-ioc-1.0.6 lib/scorpion/rack.rb
scorpion-ioc-1.0.4 lib/scorpion/rack.rb
scorpion-ioc-1.0.3 lib/scorpion/rack.rb
scorpion-ioc-1.0.2 lib/scorpion/rack.rb
scorpion-ioc-1.0.1 lib/scorpion/rack.rb
scorpion-ioc-1.0.0 lib/scorpion/rack.rb