doc/classes/C64GeosPhotoAlbum.src/M000250.html in ripxplore-0.16.1 vs doc/classes/C64GeosPhotoAlbum.src/M000250.html in ripxplore-0.17.0

- old
+ new

@@ -3,16 +3,37 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title>type_description (C64GeosPhotoAlbum)</title> + <title>files (C64GeosPhotoAlbum)</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/native_file_types/c64/C64GeosPhotoAlbum.rb, line 16</span> -<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">type_description</span> - <span class="ruby-node">&quot;GEOS Photo Album (#{version})&quot;</span> + <pre><span class="ruby-comment cmt"># File lib/native_file_types/c64/C64GeosPhotoAlbum.rb, line 24</span> +<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">files</span> + <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@files</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">then</span> + <span class="ruby-ivar">@files</span>=[] + <span class="ruby-identifier">titles</span>= + + <span class="ruby-identifier">record_nos</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span> + <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">r</span><span class="ruby-operator">==</span><span class="ruby-value">0</span> + <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">version</span>.<span class="ruby-identifier">to_i</span><span class="ruby-operator">&gt;</span><span class="ruby-value">1</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">r</span><span class="ruby-operator">==</span><span class="ruby-identifier">record_nos</span>.<span class="ruby-identifier">last</span> <span class="ruby-comment cmt">#version 2 albums have titles </span> + + <span class="ruby-identifier">title_offset</span>=<span class="ruby-value">1</span><span class="ruby-operator">+</span>(<span class="ruby-value">17</span><span class="ruby-operator">*</span>(<span class="ruby-identifier">r</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>)) + <span class="ruby-identifier">title</span>=<span class="ruby-value str">&quot;&quot;</span> + <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">version</span>.<span class="ruby-identifier">to_i</span><span class="ruby-operator">&gt;</span><span class="ruby-value">1</span>) <span class="ruby-keyword kw">then</span> + <span class="ruby-value">17</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> + <span class="ruby-identifier">b</span>=<span class="ruby-ivar">@contents</span>[<span class="ruby-identifier">record_nos</span>.<span class="ruby-identifier">last</span>][<span class="ruby-identifier">title_offset</span><span class="ruby-operator">+</span><span class="ruby-identifier">i</span>] + <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">b</span><span class="ruby-operator">==</span><span class="ruby-value">0</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">nil?</span> + <span class="ruby-identifier">title</span><span class="ruby-operator">&lt;&lt;</span><span class="ruby-identifier">b</span>.<span class="ruby-identifier">chr</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">title</span>=(<span class="ruby-value str">&quot;scrap %02x&quot;</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">r</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">title</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">&lt;</span><span class="ruby-value">1</span> + <span class="ruby-ivar">@files</span><span class="ruby-operator">&lt;&lt;</span><span class="ruby-constant">C64PhotoScrap</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>,<span class="ruby-node">&quot;#{filename}/#{title}&quot;</span>,<span class="ruby-ivar">@contents</span>[<span class="ruby-identifier">r</span>]) + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-ivar">@files</span> <span class="ruby-keyword kw">end</span></pre> </body> </html> \ No newline at end of file