doc/R509/IOHelpers.html in r509-0.8.1 vs doc/R509/IOHelpers.html in r509-0.9

- old
+ new

@@ -4,11 +4,11 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> Module: R509::IOHelpers - &mdash; Documentation by YARD 0.8.2.1 + &mdash; Documentation by YARD 0.8.5 </title> <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" /> @@ -76,11 +76,11 @@ <dt class="r1">Included in:</dt> - <dd class="r1"><span class='object_link'><a href="Cert.html" title="R509::Cert (class)">Cert</a></span>, <span class='object_link'><a href="Config/CaConfig.html" title="R509::Config::CaConfig (class)">Config::CaConfig</a></span>, <span class='object_link'><a href="Config/CaConfig.html" title="R509::Config::CaConfig (class)">Config::CaConfig</a></span>, <span class='object_link'><a href="Crl/Administrator.html" title="R509::Crl::Administrator (class)">Crl::Administrator</a></span>, <span class='object_link'><a href="Csr.html" title="R509::Csr (class)">Csr</a></span>, <span class='object_link'><a href="PrivateKey.html" title="R509::PrivateKey (class)">PrivateKey</a></span>, <span class='object_link'><a href="Spki.html" title="R509::Spki (class)">Spki</a></span></dd> + <dd class="r1"><span class='object_link'><a href="CRL/Administrator.html" title="R509::CRL::Administrator (class)">CRL::Administrator</a></span>, <span class='object_link'><a href="CRL/SignedList.html" title="R509::CRL::SignedList (class)">CRL::SignedList</a></span>, <span class='object_link'><a href="CSR.html" title="R509::CSR (class)">CSR</a></span>, <span class='object_link'><a href="Cert.html" title="R509::Cert (class)">Cert</a></span>, <span class='object_link'><a href="Config/CAConfig.html" title="R509::Config::CAConfig (class)">Config::CAConfig</a></span>, <span class='object_link'><a href="Config/CAConfig.html" title="R509::Config::CAConfig (class)">Config::CAConfig</a></span>, <span class='object_link'><a href="PrivateKey.html" title="R509::PrivateKey (class)">PrivateKey</a></span>, <span class='object_link'><a href="SPKI.html" title="R509::SPKI (class)">SPKI</a></span></dd> <dt class="r2 last">Defined in:</dt> <dd class="r2 last">lib/r509/io_helpers.rb</dd> @@ -290,20 +290,20 @@ </td> <td> <pre class="code"><span class="info file"># File 'lib/r509/io_helpers.rb', line 24</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_read_data'>read_data</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='rparen'>)</span> - <span class='kw'>if</span> <span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:read</span><span class='rparen'>)</span> - <span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='rparen'>)</span> - <span class='kw'>else</span> - <span class='kw'>begin</span> - <span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>rb:ascii-8bit</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> - <span class='kw'>return</span> <span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='rparen'>)</span> - <span class='kw'>ensure</span> - <span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_close'>close</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> - <span class='kw'>end</span> + <span class='kw'>if</span> <span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:read</span><span class='rparen'>)</span> + <span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='rparen'>)</span> + <span class='kw'>else</span> + <span class='kw'>begin</span> + <span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>rb:ascii-8bit</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> + <span class='kw'>return</span> <span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='rparen'>)</span> + <span class='kw'>ensure</span> + <span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_close'>close</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='kw'>end</span> + <span class='kw'>end</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -386,20 +386,20 @@ </td> <td> <pre class="code"><span class="info file"># File 'lib/r509/io_helpers.rb', line 8</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_write_data'>write_data</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span> - <span class='kw'>if</span> <span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:write</span><span class='rparen'>)</span> - <span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span> - <span class='kw'>else</span> - <span class='kw'>begin</span> - <span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>wb:ascii-8bit</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> - <span class='kw'>return</span> <span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span> - <span class='kw'>ensure</span> - <span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_close'>close</span><span class='lparen'>(</span><span class='rparen'>)</span> - <span class='kw'>end</span> + <span class='kw'>if</span> <span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:write</span><span class='rparen'>)</span> + <span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span> + <span class='kw'>else</span> + <span class='kw'>begin</span> + <span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>wb:ascii-8bit</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> + <span class='kw'>return</span> <span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span> + <span class='kw'>ensure</span> + <span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_close'>close</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='kw'>end</span> + <span class='kw'>end</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -553,12 +553,12 @@ </div> </div> <div id="footer"> - Generated on Thu Nov 8 14:19:24 2012 by + Generated on Tue Apr 16 10:49:55 2013 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> - 0.8.2.1 (ruby-1.9.3). + 0.8.5 (ruby-1.9.3). </div> </body> </html> \ No newline at end of file