Created
July 16, 2018 07:37
-
-
Save sevenseacat/7d86fcea3406abddd5d99e61fd22eac3 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
irb(main):005:0> u = URI.parse("127.0.0.1") | |
=> #<URI::Generic 127.0.0.1> | |
irb(main):006:0> u.port = 6379 | |
=> 6379 | |
irb(main):007:0> u | |
=> #<URI::Generic :6379127.0.0.1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment