Skip to content

Instantly share code, notes, and snippets.

@brynary
Created February 24, 2009 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save brynary/69372 to your computer and use it in GitHub Desktop.
Save brynary/69372 to your computer and use it in GitHub Desktop.
module Rack
module Test
module Session
attr_reader :last_response
alias_method :response, :last_response
def initialize(app)
@app = app
end
def get(...)
def post(...)
def put(...)
def delete(...)
# The four above methods need to call one underlying impl...
# dispatch_request, process_request, .. ???
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment