Sha256: 004d8db5106ef90aa40c7d34ff28fd1422dc9ebdddda71655c71d24ab3380e2f

Contents?: true

Size: 338 Bytes

Versions: 14

Compression:

Stored size: 338 Bytes

Contents

module Scorpion

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

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

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
scorpion-ioc-0.6.2 lib/scorpion/rack.rb
scorpion-ioc-0.6.1 lib/scorpion/rack.rb
scorpion-ioc-0.6.0 lib/scorpion/rack.rb
scorpion-ioc-0.5.23 lib/scorpion/rack.rb
scorpion-ioc-0.5.22 lib/scorpion/rack.rb
scorpion-ioc-0.5.21 lib/scorpion/rack.rb
scorpion-ioc-0.5.20 lib/scorpion/rack.rb
scorpion-ioc-0.5.19 lib/scorpion/rack.rb
scorpion-ioc-0.5.18 lib/scorpion/rack.rb
scorpion-ioc-0.5.17 lib/scorpion/rack.rb
scorpion-ioc-0.5.16 lib/scorpion/rack.rb
scorpion-ioc-0.5.15 lib/scorpion/rack.rb
scorpion-ioc-0.5.14 lib/scorpion/rack.rb
scorpion-ioc-0.5.13 lib/scorpion/rack.rb