Does showURL returns the URL?

Patricio Bruna V.
http://www.itlinux.cl
(+56-9) 8899 6618

El 09-09-2011, a las 7:36, dwight schrute <spambocks / yahoo.ca> escribi:

> Hi,
> 
> I have a function called showURL, which prints out a URL when I do this:
> 
> puts master.showURL
> 
> Where master is an instance of the class URL, which I have previously
> defined.  showURL is a method defined in the URL class.
> 
> I am using Mechanize to get URLS, like this:
> 
> agent = Mechanize.new
> 
> and I want to try an submit the URL I have created, something like this:
> 
> agent.get(puts master.showURL)
> 
> This doesn't seem to work.
> 
> Can anyone give me a hand?
> 
> Many thanks in advance.
> 
> Dwight
> 
> -- 
> Posted via http://www.ruby-forum.com/.
>