Created
September 29, 2014 12:25
-
-
Save tylerhunt/22eb20cf06cff820cea2 to your computer and use it in GitHub Desktop.
Rack app object with middleware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyRackApp | |
def initialize(app) | |
stack = Rack::Buidler | |
# stack.use … | |
stack.run app | |
@app = stack.to_app | |
end | |
def call(env) | |
@app.call env | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment