Sha256: 344667969fe19dc0cf898cfbdc7a0310045c7f7eb517edf915c3150bef608c7c
Contents?: true
Size: 1.24 KB
Versions: 37
Compression:
Stored size: 1.24 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>sectors_in_track (Atr)</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/image_formats/Atr.rb, line 30</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sectors_in_track</span>(<span class="ruby-identifier">track_no</span>) <span class="ruby-identifier">first_sector</span>=<span class="ruby-identifier">track_no</span><span class="ruby-operator">*</span><span class="ruby-constant">ATR_SECTORS_PER_TRACK</span> (<span class="ruby-identifier">first_sector</span><span class="ruby-operator">..</span><span class="ruby-identifier">first_sector</span><span class="ruby-operator">+</span><span class="ruby-constant">ATR_SECTORS_PER_TRACK</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>).<span class="ruby-identifier">collect</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
37 entries across 9 versions & 1 rubygems