Created
February 14, 2010 18:10
-
-
Save bronson/304161 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
module RestClient | |
# Compatibility : make the Response act like a Net::HTTPResponse when needed | |
module ResponseForException | |
def method_missing symbol, *args | |
puts "called: #{:symbol}" | |
end | |
end | |
end | |
# produces: undefined method `whatev' for RestClient::ResponseForException:Module (NoMethodError) | |
RestClient::ResponseForException.whatev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment