doc/classes/CbmDos.src/M000102.html in ripxplore-0.14.0 vs doc/classes/CbmDos.src/M000102.html in ripxplore-0.14.1
- old
+ new
@@ -8,10 +8,10 @@
<title>add_file (CbmDos)</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/CbmDos.rb, line 126</span>
+ <pre><span class="ruby-comment cmt"># File lib/file_systems/CbmDos.rb, line 130</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_file</span>(<span class="ruby-identifier">file_system_image</span>,<span class="ruby-identifier">native_filetype_class</span>,<span class="ruby-identifier">filename</span>,<span class="ruby-identifier">file_contents</span>,<span class="ruby-identifier">file_type</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-identifier">aux_code</span>=<span class="ruby-keyword kw">nil</span>)
<span class="ruby-comment cmt">#make sure the file type is supported on CBM DOS!
</span>
<span class="ruby-identifier">raise</span> <span class="ruby-node">"#{native_filetype_class} not supported on CBM DOS 2.6 file system"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">native_filetype_class</span>.<span class="ruby-identifier">file_system_file_types</span>[<span class="ruby-keyword kw">self</span>].<span class="ruby-identifier">nil?</span>
<span class="ruby-identifier">expected_file_type</span>=<span class="ruby-identifier">native_filetype_class</span>.<span class="ruby-identifier">file_system_file_types</span>[<span class="ruby-keyword kw">self</span>]
<span class="ruby-identifier">file_type</span>=<span class="ruby-identifier">expected_file_type</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">file_type</span>.<span class="ruby-identifier">nil?</span>
\ No newline at end of file