Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 89cc604b53c8f6e055304368641dfce2 > files > 39

xapian-bindings-ruby-1.2.15-1.fc18.x86_64.rpm

<?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>terms (Xapian::ESet)</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 xapian.rb, line 213</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">terms</span>
      <span class="ruby-constant">Xapian</span>.<span class="ruby-identifier">_safelyIterate</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">_begin</span>(), 
                            <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">_end</span>()) { <span class="ruby-operator">|</span><span class="ruby-identifier">item</span><span class="ruby-operator">|</span>
        <span class="ruby-comment cmt"># note: in the ExpandTerm wrapper, we implicitly rename</span>
        <span class="ruby-comment cmt"># ESetIterator#term() (defined in xapian.i) to ExpandTerm#term()</span>
        <span class="ruby-constant">Xapian</span><span class="ruby-operator">::</span><span class="ruby-constant">ExpandTerm</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">item</span>.<span class="ruby-identifier">term</span>, <span class="ruby-identifier">item</span>.<span class="ruby-identifier">weight</span>)
      }

    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>