From: "DanDiebolt.exe" Date: 2008-12-11T03:48:48+09:00 Subject: Re: extracing the URL from hpricot element --0-1367875903-1228934937=:67278 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Use inject: require 'hpricot' require 'open-uri' doc =3D Hpricot(open("http://www.ruby-lang.org/en/")) (doc/"//a").inject([]) do |links,anchor| =A0 links << anchor.attributes['href'] end --0-1367875903-1228934937=:67278--