Skip to content

Instantly share code, notes, and snippets.

@rennex
Created May 15, 2012 00:12
Show Gist options
  • Save rennex/2698224 to your computer and use it in GitHub Desktop.
Save rennex/2698224 to your computer and use it in GitHub Desktop.
Sinatra env viewer
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