Sha256: bb57a5ef30289515d246fb7a46d98404c182a2a3f1dd662697ef1378c2cd16f0
Contents?: true
Size: 339 Bytes
Versions: 1
Compression:
Stored size: 339 Bytes
Contents
module Storey class RackSwitch def initialize(app, processor=Storey.configuration.switch_processor) @app, @processor = app, processor end def call(env) schema = @processor.call(env) if schema Storey.switch(schema) { @app.call(env) } else @app.call(env) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
storey-2.2.0 | lib/storey/rack_switch.rb |