Forum: Ruby How to get an absolute link from WWW::Mechanize

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6947bb20eae8c7638ff853b5deee91d2?d=identicon&s=25 George Opritescu (cage)
on 2008-11-20 17:51
Hello !

I noticed links in mechanize have an absolute? method , which tells me
if a link is absolute or not , but not an option to_absolute . I would
like to avoid the following :

mech.get(some_link)
puts mech.page.uri

in order to get to the absolute address .

Is there a smarter way of achieving this ?
This topic is locked and can not be replied to.