URI.parse

Quick little lesson on using the URI parse method, using an example:

uri = URI.parse("http://www.mattmazur.com/2008/11/macs-productivity-made-easy/")

uri.host = "www.mattmazur.com"
uri.scheme = "http"
uri.port = 80
uri.path = "/2008/11/macs-productivity-made-easy/"

More details on URI including other methods here.

Leave a comment