Sha256: a460a9b81523257191d6793586b5dd3fd903c66a05b0139871442380b26d3103

Contents?: true

Size: 1.76 KB

Versions: 3

Compression:

Stored size: 1.76 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>links (RFuzz::Browser)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre>    <span class="ruby-comment cmt"># File lib/rfuzz/browser.rb, line 42</span>
42:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">links</span>(<span class="ruby-identifier">matching</span>=<span class="ruby-keyword kw">nil</span>)
43:       <span class="ruby-identifier">links</span> = <span class="ruby-ivar">@doc</span><span class="ruby-operator">/</span><span class="ruby-identifier">:a</span>
44:       <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">matching</span>
45:         <span class="ruby-comment cmt"># return only the ones that match</span>
46:         <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">links</span>.<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">l</span><span class="ruby-operator">|</span> <span class="ruby-identifier">matching</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">l</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;href&quot;</span>]}
47:       <span class="ruby-keyword kw">else</span>
48:         <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">links</span>
49:       <span class="ruby-keyword kw">end</span>
50:     <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rfuzz-0.8 doc/rdoc/classes/RFuzz/Browser.src/M000085.html
rfuzz-0.9 doc/rdoc/classes/RFuzz/Browser.src/M000086.html
rfuzz-0.7 doc/rdoc/classes/RFuzz/Browser.src/M000070.html