doc/classes/DOSDisk.src/M000014.html in dsktool-0.1.2 vs doc/classes/DOSDisk.src/M000014.html in dsktool-0.1.3
- old
+ new
@@ -3,17 +3,18 @@
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
- <title>new (DOSDisk)</title>
+ <title>dump_catalog (DOSDisk)</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/DOSDisk.rb, line 94</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">file_bytes</span>)
- <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">file_bytes</span>)
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">read_vtoc</span>
+ <pre><span class="ruby-comment cmt"># File lib/DOSDisk.rb, line 87</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dump_catalog</span>
+ <span class="ruby-identifier">files</span>.<span class="ruby-identifier">each_value</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span>
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">"#{file.locked ? '*':' '}#{file.file_type} #{sprintf('%03X',file.sector_count)} #{file.filename}"</span>
+ }
<span class="ruby-keyword kw">end</span></pre>
</body>
</html>
\ No newline at end of file