Skip to content

Instantly share code, notes, and snippets.

@ravinggenius
Last active October 6, 2016 16:26
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 ravinggenius/b834333ad928ceea1d33 to your computer and use it in GitHub Desktop.
Save ravinggenius/b834333ad928ceea1d33 to your computer and use it in GitHub Desktop.
Resolve with current Rip semantics
URL = class {
@.initialize = => {
-> (scheme, user, password, host, port, path, query, fragment) {
@.scheme = scheme
@.user = user
@.password = password
@.host = host
@.port = port
@.path = path
@.query = query
@.fragment = fragment
}
}
}
url = URL.new(:http, ...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment