doc/R509/MessageDigest.html in r509-0.9.2 vs doc/R509/MessageDigest.html in r509-0.10.0

- old
+ new

@@ -4,17 +4,17 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> Class: R509::MessageDigest - &mdash; Documentation by YARD 0.8.5 + &mdash; Documentation by YARD 0.8.6.1 </title> - <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" /> + <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" /> - <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" /> + <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" /> <script type="text/javascript" charset="utf-8"> hasFrames = window.top.frames.main ? true : false; relpath = '../'; framesUrl = "../frames.html#!" + escape(window.location.href); @@ -109,13 +109,53 @@ </div> <div class="tags"> </div> + <h2>Constant Summary</h2> + + <dl class="constants"> + + <dt id="KNOWN_MDS-constant" class="">KNOWN_MDS = + <div class="docstring"> + <div class="discussion"> + +<p>a list of message digests that this class understands</p> + </div> +</div> +<div class="tags"> + +</div> + </dt> + <dd><pre class="code"><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>SHA1</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>SHA224</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>SHA256</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>SHA384</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>SHA512</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>DSS1</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>MD5</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span></pre></dd> + + <dt id="DEFAULT_MD-constant" class="">DEFAULT_MD = + <div class="docstring"> + <div class="discussion"> + +<p>this constant defines the default message digest if it is not supplied or +an invalid digest is passed</p> + + + </div> +</div> +<div class="tags"> + + +</div> + </dt> + <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>SHA1</span><span class='tstring_end'>&#39;</span></span></pre></dd> + + </dl> + + + + + <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2> <ul class="summary"> <li class="public "> <span class="summary_signature"> @@ -189,11 +229,11 @@ <ul class="summary"> <li class="public "> <span class="summary_signature"> - <a href="#initialize-instance_method" title="#initialize (instance method)">- (MessageDigest) <strong>initialize</strong>(arg) </a> + <a href="#initialize-instance_method" title="#initialize (instance method)">- (MessageDigest) <strong>initialize</strong>(arg = nil) </a> </span> @@ -221,11 +261,11 @@ <h2>Constructor Details</h2> <div class="method_details first"> <h3 class="signature first" id="initialize-instance_method"> - - (<tt><span class='object_link'><a href="" title="R509::MessageDigest (class)">MessageDigest</a></span></tt>) <strong>initialize</strong>(arg) + - (<tt><span class='object_link'><a href="" title="R509::MessageDigest (class)">MessageDigest</a></span></tt>) <strong>initialize</strong>(arg = nil) @@ -247,11 +287,13 @@ <span class='type'>(<tt>String</tt>, <tt>OpenSSL::Digest</tt>)</span> + <em class="default">(defaults to: <tt>nil</tt>)</em> + </li> </ul> @@ -259,27 +301,33 @@ <tr> <td> <pre class="lines"> -9 -10 -11 -12 -13 -14 -15 16 -17</pre> +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/r509/message_digest.rb', line 9</span> + <pre class="code"><span class="info file"># File 'lib/r509/message_digest.rb', line 16</span> -<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_arg'>arg</span><span class='rparen'>)</span> +<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_arg'>arg</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_arg'>arg</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span> <span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_arg'>arg</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span> <span class='ivar'>@digest</span> <span class='op'>=</span> <span class='id identifier rubyid_translate_name_to_digest'>translate_name_to_digest</span> + <span class='kw'>elsif</span> <span class='id identifier rubyid_arg'>arg</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> + <span class='ivar'>@name</span> <span class='op'>=</span> <span class='const'>DEFAULT_MD</span> + <span class='ivar'>@digest</span> <span class='op'>=</span> <span class='id identifier rubyid_translate_name_to_digest'>translate_name_to_digest</span> <span class='kw'>else</span> <span class='ivar'>@digest</span> <span class='op'>=</span> <span class='id identifier rubyid_arg'>arg</span> <span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_translate_digest_to_name'>translate_digest_to_name</span> <span class='kw'>end</span> <span class='kw'>end</span></pre> @@ -319,16 +367,16 @@ <tr> <td> <pre class="lines"> -6 -7 -8</pre> +13 +14 +15</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/r509/message_digest.rb', line 6</span> + <pre class="code"><span class="info file"># File 'lib/r509/message_digest.rb', line 13</span> <span class='kw'>def</span> <span class='id identifier rubyid_digest'>digest</span> <span class='ivar'>@digest</span> <span class='kw'>end</span></pre> </td> @@ -362,16 +410,16 @@ <tr> <td> <pre class="lines"> -6 -7 -8</pre> +13 +14 +15</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/r509/message_digest.rb', line 6</span> + <pre class="code"><span class="info file"># File 'lib/r509/message_digest.rb', line 13</span> <span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span> <span class='ivar'>@name</span> <span class='kw'>end</span></pre> </td> @@ -383,12 +431,12 @@ </div> <div id="footer"> - Generated on Tue Apr 23 10:46:06 2013 by + Generated on Sun Jan 26 13:37:27 2014 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> - 0.8.5 (ruby-1.9.3). + 0.8.6.1 (ruby-2.0.0). </div> </body> </html> \ No newline at end of file