]> git.donarmstrong.com Git - biopieces.git/blob - code_ruby/Maasha/lib/doc/classes/Fasta.src/M000033.html
replacing read_fasta with ruby version
[biopieces.git] / code_ruby / Maasha / lib / doc / classes / Fasta.src / M000033.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5   <title>each (Fasta)</title>
6   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7   <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
8 </head>
9 <body class="standalone-code">
10   <pre><span class="ruby-comment cmt"># File fasta.rb, line 56</span>
11   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>
12     <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">entry</span> = <span class="ruby-identifier">get_entry</span> <span class="ruby-keyword kw">do</span>
13       <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">entry</span>
14     <span class="ruby-keyword kw">end</span>
15   <span class="ruby-keyword kw">end</span></pre>
16 </body>
17 </html>