Created
April 14, 2010 20:13
-
-
Save cypher/366281 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
my_handler = lambda do | |
# stuff | |
end | |
get '/foo', &my_handler | |
post '/bar', &my_handler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also, you can do:
That should also perform better.