Created
July 16, 2018 07:35
-
-
Save radar/fa41eb43d5c3579ba0fba9ae7c4e62c1 to your computer and use it in GitHub Desktop.
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
URI.parse("127.0.0.1") | |
# => #<URI::Generic 127.0.0.1> | |
URI.parse("localhost") | |
# => #<URI::Generic localhost> | |
URI.parse("127.0.0.1:6379") | |
# => URI::InvalidURIError (bad URI(is not URI?): 127.0.0.1:6379) | |
URI.parse("localhost:6379") | |
# => #<URI::Generic localhost:6379> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment