Created
July 24, 2009 20:00
-
-
Save avk/154511 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 URIExtension | |
def self.included(klass) | |
klass.extend ClassMethods | |
end | |
module ClassMethods | |
def foo | |
"baz" | |
end | |
end | |
end | |
URI.send(:include, URIExtension::ClassMethods) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment