Skip to content

Instantly share code, notes, and snippets.

@simonjefford
Created August 22, 2008 21:17
Show Gist options
  • Save simonjefford/6856 to your computer and use it in GitHub Desktop.
Save simonjefford/6856 to your computer and use it in GitHub Desktop.
How can I make this work?
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