Skip to content

Instantly share code, notes, and snippets.

@AlexWheeler
Created May 13, 2016 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexWheeler/2a1a313e60372fe23057ee665ee00a0e to your computer and use it in GitHub Desktop.
Save AlexWheeler/2a1a313e60372fe23057ee665ee00a0e to your computer and use it in GitHub Desktop.
require 'rack'
#run proc { |env| ['200', { 'Content-Type' => 'text/html' }, ['code is a liability']] }
class MyRackApp
def call(env)
['200', { 'Content-Type' => 'text/html' }, ['code is a liability']]
end
end
run MyRackApp.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment