mechanize:Mechanize::Page::Image#src

以下のような HTML で

<html>
<head>
<title>image test</title>
</head>
<body>

<img src="img1.png" width="256" height="128" alt="foo">
<img src="img2.png" width="200" height="100" alt="bar">

</body>
</html>
>> require 'mechanize'
=> true
>> agent = Mechanize.new
=> #<Mechanize:0xb74f2538 ...
>> page = agent.get('http://127.0.0.1:8080/test04_image.html')
=> #<Mechanize::Page
 {url #<URI::HTTP:0xb74eec1c URL:http://127.0.0.1:8080/test04_image.html>}
 {meta}
 {title "image test"}
 {iframes}
 {frames}
 {links}
 {forms}>

>> page.images[0]
=> #<Mechanize::Page::Image:0xb74e51e4 @page=#<Mechanize::Page
 {url #<URI::HTTP:0xb74eec1c URL:http://127.0.0.1:8080/test04_image.html>}
 {meta}
 {title "image test"}
 {iframes}
 {frames}
 {links}
 {forms}>
, @node=#<Nokogiri::XML::Element:0x..fdba7291a name="img" attributes=[#<Nokogiri::XML::Attr:0x..fdba72046 name="src" value="img1.png">, #<Nokogiri::XML::Attr:0x..fdba7203c name="width" value="256">, #<Nokogiri::XML::Attr:0x..fdba72032 name="height" value="128">, #<Nokogiri::XML::Attr:0x..fdba72028 name="alt" value="foo">]>>
>> page.images[0].src
=> "img1.png"