Created
February 24, 2009 02:56
-
-
Save brynary/69372 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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