Created
May 13, 2009 03:06
-
-
Save jzting/110847 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
| class BasicRack | |
| def call(env) | |
| body = "hello from a class" | |
| [200, {'Content-Length'=> body.size.to_s, 'Content-Type'=>'text/html'}, [body]] | |
| end | |
| end | |
| run BasicRack.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment