Created
December 5, 2014 15:26
-
-
Save mathias/4ce19546ed85b4ccb132 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
[1] pry(main)> require 'uri' | |
=> true | |
[2] pry(main)> uri = URI.parse("http://google.com") | |
=> #<URI::HTTP:0x007f83a90df848 URL:http://google.com> | |
[3] pry(main)> uri.port | |
=> 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment