Created
May 15, 2012 00:12
-
-
Save rennex/2698224 to your computer and use it in GitHub Desktop.
Sinatra env viewer
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
require "sinatra" | |
get "/" do | |
content_type "text/plain" | |
txt = "" | |
env.each {|k,v| txt += "\n%30s: %s" % [k,v]} | |
txt | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment