Sha256: 391a9a806ed8ad93fc9218b715f84015a4ae58e02cf10fe81143e2a9e0b879b8

Contents?: true

Size: 1.5 KB

Versions: 10

Compression:

Stored size: 1.5 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>new (DSK)</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/DSK.rb, line 22</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">file_bytes</span>=<span class="ruby-value str">&quot;\0&quot;</span><span class="ruby-operator">*</span><span class="ruby-constant">DSK_FILE_LENGTH</span>)        
                <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">file_bytes</span>.<span class="ruby-identifier">length!</span>=<span class="ruby-constant">DSK_FILE_LENGTH</span>) <span class="ruby-keyword kw">then</span>
                        <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;DSK files must be #{DSK_FILE_LENGTH} bytes long (was #{file_bytes.length} bytes)&quot;</span>
                <span class="ruby-keyword kw">end</span>
                <span class="ruby-ivar">@file_bytes</span>=<span class="ruby-identifier">file_bytes</span>
                <span class="ruby-ivar">@files</span>={}
        <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

10 entries across 8 versions & 1 rubygems

Version Path
dsktool-0.1.1 doc/classes/DSK.src/M000015.html
dsktool-0.1.1 doc/classes/DSK.src/M000017.html
dsktool-0.1.2 doc/classes/DSK.src/M000015.html
dsktool-0.1.2 doc/classes/DSK.src/M000017.html
dsktool-0.1.3 doc/classes/DSK.src/M000015.html
dsktool-0.1.4 doc/classes/DSK.src/M000015.html
dsktool-0.5.1 doc/classes/DSK.src/M000015.html
dsktool-0.2.1 doc/classes/DSK.src/M000015.html
dsktool-0.1.5 doc/classes/DSK.src/M000015.html
dsktool-0.1.6 doc/classes/DSK.src/M000015.html