doc/Lazier/DateTime/ClassMethods.html in lazier-2.6.3 vs doc/Lazier/DateTime/ClassMethods.html in lazier-2.6.4
- old
+ new
@@ -1085,13 +1085,14 @@
</h3><div class="docstring">
<div class="discussion">
<p>Returns a string representation of a timezone.</p>
-<pre class="code ruby"><code class="ruby"><span class='const'>DateTime</span><span class='period'>.</span><span class='id identifier rubyid_parameterize_zone'>parameterize_zone</span><span class='lparen'>(</span><span class='const'>ActiveSupport</span><span class='op'>::</span><span class='const'>TimeZone</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Pacific Time (US & Canada)</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
-<span class='comment'># => "-0800@pacific-time-us-canada"
-</span></code></pre>
+<p><code>ruby
+DateTime.parameterize_zone(ActiveSupport::TimeZone["Pacific Time (US & Canada)"])
+# => "-0800@pacific-time-us-canada"
+</code></p>
</div>
</div>
<div class="tags">
@@ -1432,17 +1433,19 @@
</h3><div class="docstring">
<div class="discussion">
<p>Returns a range of years.</p>
-<pre class="code ruby"><code class="ruby"><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_years'>years</span><span class='lparen'>(</span><span class='int'>3</span><span class='comma'>,</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='int'>2010</span><span class='rparen'>)</span>
-<span class='comment'># => [2007, 2008, 2009, 2010]
-</span></code></pre>
+<p><code>ruby
+Date.years(3, false, 2010)
+# => [2007, 2008, 2009, 2010]
+</code></p>
-<pre class="code ruby"><code class="ruby"><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_years'>years</span><span class='lparen'>(</span><span class='int'>1</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='int'>2010</span><span class='comma'>,</span> <span class='kw'>true</span><span class='rparen'>)</span>
-<span class='comment'># => [{:value=>2009, :label=>2009}, {:value=>2010, :label=>2010}, {:value=>2011, :label=>2011}]
-</span></code></pre>
+<p><code>ruby
+Date.years(1, true, 2010, true)
+# => [{:value=>2009, :label=>2009}, {:value=>2010, :label=>2010}, {:value=>2011, :label=>2011}]
+</code></p>
</div>
</div>
<div class="tags">
@@ -1563,10 +1566,10 @@
</div>
</div>
<div id="footer">
- Generated on Tue Feb 5 10:05:04 2013 by
+ Generated on Thu Feb 7 23:34:11 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.4 (ruby-1.9.3).
</div>
</body>
\ No newline at end of file