Sha256: 6bc59c6dca7df38b75fa8e902105f98d319c6b59debc515e00b2bba3d1e056b6
Contents?: true
Size: 1.79 KB
Versions: 8
Compression:
Stored size: 1.79 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>files (Zx81Snapshot)</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/file_systems/Zx81Snapshot.rb, line 15</span> <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">files</span>(<span class="ruby-identifier">file_system_image</span>) <span class="ruby-identifier">files</span>=<span class="ruby-constant">FileContainer</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">file_name</span>=<span class="ruby-constant">File</span>. <span class="ruby-identifier">basename</span>(<span class="ruby-identifier">file_system_image</span>.<span class="ruby-identifier">filename</span>,<span class="ruby-value str">".p"</span>).<span class="ruby-identifier">upcase</span> <span class="ruby-identifier">file_type</span>=<span class="ruby-keyword kw">nil</span> <span class="ruby-identifier">files</span><span class="ruby-operator"><<</span><span class="ruby-constant">NativeFileType</span>.<span class="ruby-identifier">best_fit</span>(<span class="ruby-identifier">file_system_image</span>,<span class="ruby-identifier">file_name</span>,<span class="ruby-identifier">file_system_image</span>.<span class="ruby-identifier">file_bytes</span>,<span class="ruby-identifier">file_type</span>) <span class="ruby-identifier">files</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
8 entries across 8 versions & 1 rubygems