Created
June 5, 2011 15:04
-
-
Save utkarshkukreti/1009030 to your computer and use it in GitHub Desktop.
Trying to inherit a module from a parent.
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
require 'httparty' | |
class HTTP | |
include HTTParty | |
def initialize uri | |
self.class.base_uri uri | |
end | |
end | |
class Dropbox < HTTP | |
def initialize | |
super "http://google.com" | |
end | |
end | |
Dropbox.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment