Sha256: 3e77595b2020dbf44326a18df84c8badfb80934a7843a527c77bda39ed690597
Contents?: true
Size: 644 Bytes
Versions: 3
Compression:
Stored size: 644 Bytes
Contents
require "rack/when/version" require "rack/when/builder" require "rack/builder" module Rack module When class << self def development &block environment :development, &block end def test &block environment :test, &block end def staging &block environment :staging, &block end def production &block environment :production, &block end def environments *environments, &block Builder.new(*environments,block).mount end def environment environment, &block Builder.new(environment,block).mount end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rack-when-1.0.0 | lib/rack/when.rb |
rack-when-0.0.4 | lib/rack/when.rb |
rack-when-0.0.3 | lib/rack/when.rb |