Created
May 21, 2015 10:01
-
-
Save anonymous/75a2d60b7643066b3c32 to your computer and use it in GitHub Desktop.
This file contains 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
class HttpRequest | |
def request_new | |
puts 'before request' | |
result = request_old | |
puts 'after request' | |
result | |
end | |
alias_method :request_old, :request | |
alias_method :request, :request_new | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment