Files
time_ext/index.html

98 lines
3.8 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>time_ext.rb</title>
<link rel="stylesheet" href="http://github.com/jashkenas/docco/raw/0.3.0/resources/docco.css">
</head>
<body>
<div id='container'>
<div id="background"></div>
<div id="jump_to">
Jump To &hellip;
<div id="jump_wrapper">
<div id="jump_page">
<a class="source" href="time/ext.html">ext.rb</a>
<a class="source" href="time_ext.html">time_ext.rb</a>
<a class="source" href="time_ext/calculations.html">calculations.rb</a>
<a class="source" href="time_ext/core_ext/numeric.html">numeric.rb</a>
<a class="source" href="time_ext/core_ext/time.html">time.rb</a>
<a class="source" href="time_ext/iterations.html">iterations.rb</a>
<a class="source" href="time_ext/version.html">version.rb</a>
</div>
</div>
</div>
<table cellspacing=0 cellpadding=0>
<thead>
<tr>
<th class=docs><h1>time_ext.rb</h1></th>
<th class=code></th>
</tr>
</thead>
<tbody>
<tr id='section-1'>
<td class=docs>
<div class="pilwrap">
<a class="pilcrow" href="#section-1">&#182;</a>
</div>
</td>
<td class=code>
<div class='highlight'><pre><span class="nb">require</span> <span class="s1">&#39;rubygems&#39;</span>
<span class="nb">require</span> <span class="s1">&#39;active_support&#39;</span>
<span class="nb">require</span> <span class="s1">&#39;time_ext/version&#39;</span></pre></div>
</td>
</tr>
<tr id='section-2'>
<td class=docs>
<div class="pilwrap">
<a class="pilcrow" href="#section-2">&#182;</a>
</div>
<p><a href="/time_ext/lib/time_ext/calculations.html">Calculation</a> methods such as <code>#floor</code>, <code>#ceil</code>, <code>#round</code>,
<code>#prev_week</code> and many more, adding on top of the defaults present in
ActiveSupport.</p>
</td>
<td class=code>
<div class='highlight'><pre><span class="nb">require</span> <span class="s1">&#39;time_ext/calculations&#39;</span></pre></div>
</td>
</tr>
<tr id='section-3'>
<td class=docs>
<div class="pilwrap">
<a class="pilcrow" href="#section-3">&#182;</a>
</div>
<p><a href="/time_ext/lib/time_ext/iterations.html">Iteration</a> methods allowing the use of <code>#each</code>, <code>#map_each</code> and more on
Time objects similar to how you loop over an Array of items.</p>
</td>
<td class=code>
<div class='highlight'><pre><span class="nb">require</span> <span class="s1">&#39;time_ext/iterations&#39;</span></pre></div>
</td>
</tr>
<tr id='section-4'>
<td class=docs>
<div class="pilwrap">
<a class="pilcrow" href="#section-4">&#182;</a>
</div>
<p>Core extention of <a href="/time_ext/lib/time_ext/core_ext/time.html">Time</a> class to load in <a href="/time_ext/lib/time_ext/calculations.html">Calculation</a> and
<a href="/time_ext/lib/time_ext/iterations.html">Iteration</a> modules.</p>
</td>
<td class=code>
<div class='highlight'><pre><span class="nb">require</span> <span class="s1">&#39;time_ext/core_ext/time&#39;</span></pre></div>
</td>
</tr>
<tr id='section-5'>
<td class=docs>
<div class="pilwrap">
<a class="pilcrow" href="#section-5">&#182;</a>
</div>
<p>Core extention of <a href="/time_ext/lib/time_ext/core_ext/numeric.html">Numeric</a> class to set a couple of required aliases.</p>
</td>
<td class=code>
<div class='highlight'><pre><span class="nb">require</span> <span class="s1">&#39;time_ext/core_ext/numeric&#39;</span></pre></div>
</td>
</tr>
</table>
</div>
</body>