Skip to content

Instantly share code, notes, and snippets.

@utkarshkukreti
Created June 5, 2011 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save utkarshkukreti/1009030 to your computer and use it in GitHub Desktop.
Save utkarshkukreti/1009030 to your computer and use it in GitHub Desktop.
Trying to inherit a module from a parent.
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