# File lib/rfuzz/browser.rb, line 42 42: def links(matching=nil) 43: links = @doc/:a 44: if matching 45: # return only the ones that match 46: return links.select {|l| matching === l.attributes["href"]} 47: else 48: return links 49: end 50: end