Last active
October 6, 2016 16:26
-
-
Save ravinggenius/b834333ad928ceea1d33 to your computer and use it in GitHub Desktop.
Resolve with current Rip semantics
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
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