Created
June 5, 2013 12:43
-
-
Save ahawkins/5713585 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| require 'rack' | |
| require 'rack/builder' | |
| class DumbApp | |
| def call(env) | |
| [200, {}, [""]] | |
| end | |
| end | |
| class Builder | |
| def to_app | |
| adapter = DumbApp | |
| Rack::Builder.app do | |
| run adapter | |
| end | |
| end | |
| end | |
| Builder.new.to_app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment