From: Sebastian Hungerecker Date: 2007-04-02T20:09:50+09:00 Subject: Re: How to use standard library? Jamal Soueidan wrote: > Jamal Soueidan wrote: > > I also see that split return an array of the following parts > > > > * Scheme > > * Userinfo > > * Host > > * Port > > * Registry > > * Path > > * Opaque > > * Query > > * Fragment > > url = URI::split(url) > p url.host > > This doesn't work, host method not found? Well, as you said, the split method returns an array. Arrays have no method called host, so that's what ruby tells you. You'd access the host with url[2] because it's the third element in the array. HTH, Sebastian -- NP: In Flames - Satellites And Astronauts Ist so, weil ist so Bleibt so, weil war so