Created
August 22, 2008 21:17
-
-
Save simonjefford/6856 to your computer and use it in GitHub Desktop.
How can I make this work?
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 URI | |
def self.parse_with_options(uri_str, opts = {}) | |
parsed_uri = self.parse(uri_str) | |
class << parsed_uri | |
def options | |
opts | |
end | |
end | |
parsed_uri | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment