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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s