doc/Lazier/DateTime.html in lazier-4.1.0 vs doc/Lazier/DateTime.html in lazier-4.2.0

- old
+ new

@@ -4,11 +4,11 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> Module: Lazier::DateTime - &mdash; Documentation by YARD 0.8.7.4 + &mdash; Documentation by YARD 0.8.7.6 </title> <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" /> @@ -184,11 +184,11 @@ - <span class="summary_desc"><div class='inline'><p>Returns the current month number with leading 0.</p> + <span class="summary_desc"><div class='inline'><p>Returns the current month number with a leading zero if needed.</p> </div></span> </li> @@ -225,11 +225,11 @@ <li> <span class='name'>format</span> - <span class='type'>(<tt><span class='object_link'><a href="String.html" title="Lazier::String (module)">String</a></span></tt>)</span> + <span class='type'>(<tt><span class='object_link'><a href="String.html" title="Lazier::String (module)">String</a></span>|NilClass</tt>)</span> <em class="default">(defaults to: <tt>nil</tt>)</em> @@ -332,16 +332,17 @@ </h3><div class="docstring"> <div class="discussion"> <p>Returns the number of months passed between the beginning of the base year and the current date.</p> -<p><code>ruby -DateTime.civil(2013, 6, 1).in_months(2011) -# =&gt; 18 -</code></p> +<p>Example:</p> +<pre class="code ruby"><code class="ruby"><span class='const'>DateTime</span><span class='period'>.</span><span class='id identifier rubyid_civil'>civil</span><span class='lparen'>(</span><span class='int'>2013</span><span class='comma'>,</span> <span class='int'>6</span><span class='comma'>,</span> <span class='int'>1</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_in_months'>in_months</span><span class='lparen'>(</span><span class='int'>2011</span><span class='rparen'>)</span> +<span class='comment'># =&gt; 18 +</span></code></pre> + </div> </div> <div class="tags"> <p class="tag_title">Parameters:</p> <ul class="param"> @@ -349,11 +350,11 @@ <li> <span class='name'>base</span> - <span class='type'>(<tt><span class='object_link'><a href="" title="Lazier::DateTime (module)">DateTime</a></span></tt>)</span> + <span class='type'>(<tt><span class='object_link'><a href="" title="Lazier::DateTime (module)">DateTime</a></span>|NilClass</tt>)</span> <em class="default">(defaults to: <tt>nil</tt>)</em> @@ -413,11 +414,11 @@ </h3><div class="docstring"> <div class="discussion"> - <p>Returns the current month number with leading 0.</p> + <p>Returns the current month number with a leading zero if needed.</p> </div> </div> <div class="tags"> @@ -431,11 +432,11 @@ <span class='type'>(<tt><span class='object_link'><a href="String.html" title="Lazier::String (module)">String</a></span></tt>)</span> &mdash; - <div class='inline'><p>The current month number with leading 0.</p> + <div class='inline'><p>The current month number with leading zero if needed.</p> </div> </li> </ul> @@ -464,12 +465,12 @@ </div> </div> <div id="footer"> - Generated on Thu Oct 2 10:38:44 2014 by + Generated on Sun Nov 2 11:08:44 2014 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> - 0.8.7.4 (ruby-2.1.3). + 0.8.7.6 (ruby-2.1.3). </div> </body> </html> \ No newline at end of file