Mechanize downloading image WWW::Mechanize::Page::Link

Hello,

I've got an html page that contains images that have text with the name
of the images. I'm using Mechanize to easily extract the URLs of the
images.

page.links.text(/jpg|png|gif/)

Unfortunately, I'm not sure as to the most efficient or simple way of
downloading these images using Mechanize. I was thinking about just
making an array containing all of the hrefs, and going through that.

Is there a better way?

···

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