How to get an absolute link from WWW::Mechanize

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs