doc/classes/FileSystemImage.src/M000313.html in ripxplore-0.12.0 vs doc/classes/FileSystemImage.src/M000313.html in ripxplore-0.13.0

- old
+ new

@@ -3,16 +3,21 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title>texts (FileSystemImage)</title> + <title>catalog (FileSystemImage)</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/FileSystemImage.rb, line 176</span> -<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">texts</span> - <span class="ruby-identifier">files</span>.<span class="ruby-identifier">find_all</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:to_text</span>)} + <pre><span class="ruby-comment cmt"># File lib/FileSystemImage.rb, line 141</span> +<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">catalog</span> + <span class="ruby-identifier">s</span>=<span class="ruby-value str">&quot;\n%-32s %-16s %04s %s\n\n&quot;</span> <span class="ruby-operator">%</span> [<span class="ruby-value str">&quot;FILENAME&quot;</span>,<span class="ruby-value str">&quot;TYPE&quot;</span>,<span class="ruby-value str">&quot;LENGTH&quot;</span>,<span class="ruby-value str">&quot;LOAD ADDRESS&quot;</span>] + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">files</span>.<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span> + <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;bogus file '#{file.filename}'&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">contents</span>.<span class="ruby-identifier">nil?</span> + <span class="ruby-identifier">s</span><span class="ruby-operator">&lt;&lt;</span><span class="ruby-value str">&quot;%-32s %-16s $%04x $%04x\n&quot;</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">file</span>.<span class="ruby-identifier">filename</span>,<span class="ruby-identifier">file</span>.<span class="ruby-identifier">type_description</span>,<span class="ruby-identifier">file</span>.<span class="ruby-identifier">contents</span>.<span class="ruby-identifier">length</span>,<span class="ruby-identifier">file</span>.<span class="ruby-identifier">load_address</span>] + <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">s</span> <span class="ruby-keyword kw">end</span></pre> </body> </html> \ No newline at end of file