Stefano Crocco wrote:
> Alle domenica 1 aprile 2007, Yamal Soueidan ha scritto:
>> Well, where does it identify its module and not a class?
> 
> If you look at the documentation page you mentioned
> (http://www.ruby-doc.org/stdlib/libdoc/uri/rdoc/index.html), you see it
> says: "See URI for documentation". Clicking on the link (the work URI), 
> you
> reach the documentation page for the URI module. There, at the left of 
> the
> title (URI), there's written 'module'. This tells you URI is not a class 
> but
> a module. An other way is to use irb:
> 
> irb: 001> require 'uri'
> true
> irb: 002> URI.class
> Module
> irb: 003>
> 
> I hope this helps
> 
> Stefano

Thanks, but as I can see there is some methods there:

extract   join   parse   regexp   split

what about the attributes which I can access like

url.host or url.port ?

I don't see they mention them on that page?

-- 
Posted via http://www.ruby-forum.com/.