Skip to content

Instantly share code, notes, and snippets.

@ahawkins
Created June 5, 2013 12:35
Show Gist options
  • Select an option

  • Save ahawkins/5713554 to your computer and use it in GitHub Desktop.

Select an option

Save ahawkins/5713554 to your computer and use it in GitHub Desktop.
require 'rack'
require 'rack/builder'
class DumbApp
def call(env)
[200, {}, [""]]
end
end
class Builder
def adapter
DumpApp
end
def to_app
Rack::Builder.app do
run adapter
end
end
end
Builder.new.to_app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment