Skip to content
Browse files

remove generated yardoc, we don't need to include this really.

  • Loading branch information...
1 parent b950292 commit 8caec7cafc2402bac4439301ea588cd10a025b08 @olbrich committed Mar 17, 2010
View
169 doc/Array.html
@@ -1,169 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
-<title>Class: Array</title>
-<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
-<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
-
-<script type="text/javascript" charset="utf-8">
- relpath = '';
- if (relpath != '') relpath += '/';
-</script>
-<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
-<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
-
- </head>
- <body>
- <script type="text/javascript" charset="utf-8">
- if (window.top.frames.main) document.body.className = 'frames';
- </script>
-
- <div id="header">
- <div id="menu">
-
- <a href="_index.html">Index (A)</a> &raquo;
-
-
- <span class="title">Array</span>
-
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
-</div>
-
- <div id="search">
- <a id="class_list_link" href="#">Class List</a>
- <a id="method_list_link" href="#">Method List</a>
- <a id ="file_list_link" href="#">File List</a>
-</div>
-
- <div class="clear"></div>
- </div>
-
- <iframe id="search_frame"></iframe>
-
- <div id="content"><h1>Class: Array
-
-
-</h1>
-
-<dl class="box">
-
- <dt class="r1">Inherits:</dt>
- <dd class="r1">
- <span class="inheritName"><a href="Object.html" title="Object (class)">Object</a></span>
-
- <ul class="fullTree">
- <li><a href="Object.html" title="Object (class)">Object</a></li>
-
- <li class="next">Array</li>
-
- </ul>
- <a href="#" class="inheritanceTree">show all</a>
-
- </dd>
-
-
-
-
-
-
-
-
- <dt class="r2 last">Defined in:</dt>
- <dd class="r2 last">lib/ruby_units/array.rb</dd>
-
-</dl>
-<div class="clear"></div>
-
-<h2>Overview</h2><div class="docstring">
- <div class="discussion">
- <p>make a unit from an array
-[1, 'mm'].unit => 1 mm</p>
-
- </div>
-</div>
-<div class="tags">
-
-</div>
-
-
- <h2>Instance Method Summary</h2>
-
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#to_unit-instance_method" title="#to_unit (instance method)">- (Object) <strong>to_unit</strong>(other = nil) </a>
-
-
-
- (also: #unit, #u)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- </ul>
-
-
- <div id="instance_method_details" class="method_details_list">
- <h2>Instance Method Details</h2>
-
-
- <div class="method_details first">
- <p class="signature first" id="to_unit-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>to_unit</strong>(other = nil)
-
-
-
- <span class="aliases">Also known as:
- <span class="names"><span id='unit-instance_method'>unit</span>, <span id='u-instance_method'>u</span></span>
- </span>
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-4
-5
-6</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/array.rb', line 4</span>
-
-<span class='def def kw'>def</span> <span class='to_unit identifier id'>to_unit</span><span class='lparen token'>(</span><span class='other identifier id'>other</span> <span class='assign token'>=</span> <span class='nil nil kw'>nil</span><span class='rparen token'>)</span>
- <span class='other identifier id'>other</span> <span class='integer val'>? </span><span class='Unit constant id'>Unit</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='to identifier id'>to</span><span class='lparen token'>(</span><span class='other identifier id'>other</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='Unit constant id'>Unit</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='rparen token'>)</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- </div>
-
-</div>
-
- <div id="footer">
- Generated on Wed Mar 17 02:01:09 2010 by
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
- 0.5.3 (ruby-1.8.7).
-</div>
-
- </body>
-</html>
View
200 doc/Complex.html
@@ -1,200 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
-<title>Class: Complex</title>
-<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
-<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
-
-<script type="text/javascript" charset="utf-8">
- relpath = '';
- if (relpath != '') relpath += '/';
-</script>
-<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
-<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
-
- </head>
- <body>
- <script type="text/javascript" charset="utf-8">
- if (window.top.frames.main) document.body.className = 'frames';
- </script>
-
- <div id="header">
- <div id="menu">
-
- <a href="_index.html">Index (C)</a> &raquo;
-
-
- <span class="title">Complex</span>
-
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
-</div>
-
- <div id="search">
- <a id="class_list_link" href="#">Class List</a>
- <a id="method_list_link" href="#">Method List</a>
- <a id ="file_list_link" href="#">File List</a>
-</div>
-
- <div class="clear"></div>
- </div>
-
- <iframe id="search_frame"></iframe>
-
- <div id="content"><h1>Class: Complex
-
-
-</h1>
-
-<dl class="box">
-
- <dt class="r1">Inherits:</dt>
- <dd class="r1">
- <span class="inheritName"><a href="Numeric.html" title="Numeric (class)">Numeric</a></span>
-
- <ul class="fullTree">
- <li><a href="Object.html" title="Object (class)">Object</a></li>
-
- <li class="next"><a href="Numeric.html" title="Numeric (class)">Numeric</a></li>
-
- <li class="next">Complex</li>
-
- </ul>
- <a href="#" class="inheritanceTree">show all</a>
-
- </dd>
-
-
-
-
-
-
-
-
- <dt class="r2 last">Defined in:</dt>
- <dd class="r2 last">lib/ruby_units/complex.rb</dd>
-
-</dl>
-<div class="clear"></div>
-
-
-
-
-
-
-
-
- <h2>Instance Method Summary</h2>
-
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#to_unit-instance_method" title="#to_unit (instance method)">- (Object) <strong>to_unit</strong>(other = nil) </a>
-
-
-
- (also: #unit)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- </ul>
-
-
-
-
-
-
-
- <div id="instance_method_details" class="method_details_list">
- <h2>Instance Method Details</h2>
-
-
- <div class="method_details first">
- <p class="signature first" id="to_unit-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>to_unit</strong>(other = nil)
-
-
-
- <span class="aliases">Also known as:
- <span class="names"><span id='unit-instance_method'>unit</span></span>
- </span>
-
-</p><div class="docstring">
- <div class="discussion">
-
-
- </div>
-</div>
-<div class="tags">
- <h3>Raises:</h3>
-<ul class="raise">
-
- <li>
-
- <span class='type'>(<tt>ArgumentError</tt>)</span>
-
-
-
-
- </li>
-
-</ul>
-
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-2
-3
-4
-5
-6
-7
-8</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/complex.rb', line 2</span>
-
-<span class='def def kw'>def</span> <span class='to_unit identifier id'>to_unit</span><span class='lparen token'>(</span><span class='other identifier id'>other</span> <span class='assign token'>=</span> <span class='nil nil kw'>nil</span><span class='rparen token'>)</span>
- <span class='real_unit identifier id'>real_unit</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='real identifier id'>real</span><span class='dot token'>.</span><span class='to_unit identifier id'>to_unit</span>
- <span class='image_unit identifier id'>image_unit</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='image identifier id'>image</span><span class='dot token'>.</span><span class='to_unit identifier id'>to_unit</span>
- <span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='string val'>'Units on real and imaginary parts are incompatible'</span> <span class='unless unless_mod kw'>unless</span> <span class='real_unit identifier id'>real_unit</span> <span class='match op'>=~</span> <span class='image_unit identifier id'>image_unit</span>
- <span class='final_unit identifier id'>final_unit</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='real_unit identifier id'>real_unit</span><span class='dot token'>.</span><span class='units identifier id'>units</span><span class='dot token'>.</span><span class='empty? fid id'>empty?</span> <span class='integer val'>? </span><span class='image_unit identifier id'>image_unit</span><span class='dot token'>.</span><span class='units identifier id'>units</span> <span class='colon op'>:</span> <span class='real_unit identifier id'>real_unit</span><span class='dot token'>.</span><span class='units identifier id'>units</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='to_unit identifier id'>to_unit</span>
- <span class='final_unit identifier id'>final_unit</span> <span class='mult op'>*</span> <span class='Complex constant id'>Complex</span><span class='lparen token'>(</span><span class='real_unit identifier id'>real_unit</span><span class='dot token'>.</span><span class='to identifier id'>to</span><span class='lparen token'>(</span><span class='final_unit identifier id'>final_unit</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='scalar identifier id'>scalar</span><span class='comma token'>,</span> <span class='image_unit identifier id'>image_unit</span><span class='dot token'>.</span><span class='to identifier id'>to</span><span class='lparen token'>(</span><span class='final_unit identifier id'>final_unit</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='scalar identifier id'>scalar</span><span class='rparen token'>)</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- </div>
-
-</div>
-
- <div id="footer">
- Generated on Wed Mar 17 02:01:09 2010 by
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
- 0.5.3 (ruby-1.8.7).
-</div>
-
- </body>
-</html>
View
315 doc/Date.html
@@ -1,315 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
-<title>Class: Date</title>
-<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
-<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
-
-<script type="text/javascript" charset="utf-8">
- relpath = '';
- if (relpath != '') relpath += '/';
-</script>
-<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
-<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
-
- </head>
- <body>
- <script type="text/javascript" charset="utf-8">
- if (window.top.frames.main) document.body.className = 'frames';
- </script>
-
- <div id="header">
- <div id="menu">
-
- <a href="_index.html">Index (D)</a> &raquo;
-
-
- <span class="title">Date</span>
-
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
-</div>
-
- <div id="search">
- <a id="class_list_link" href="#">Class List</a>
- <a id="method_list_link" href="#">Method List</a>
- <a id ="file_list_link" href="#">File List</a>
-</div>
-
- <div class="clear"></div>
- </div>
-
- <iframe id="search_frame"></iframe>
-
- <div id="content"><h1>Class: Date
-
-
-</h1>
-
-<dl class="box">
-
- <dt class="r1">Inherits:</dt>
- <dd class="r1">
- <span class="inheritName"><a href="Object.html" title="Object (class)">Object</a></span>
-
- <ul class="fullTree">
- <li><a href="Object.html" title="Object (class)">Object</a></li>
-
- <li class="next">Date</li>
-
- </ul>
- <a href="#" class="inheritanceTree">show all</a>
-
- </dd>
-
-
-
-
-
-
-
-
- <dt class="r2 last">Defined in:</dt>
- <dd class="r2 last">lib/ruby_units/date.rb</dd>
-
-</dl>
-<div class="clear"></div>
-
-
-
-
- <h2>Instance Method Summary</h2>
-
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#inspect-instance_method" title="#inspect (instance method)">- (Object) <strong>inspect</strong>(raw = false) </a>
-
-
-
- (also: #units_datetime_inspect)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#to_date-instance_method" title="#to_date (instance method)">- (Object) <strong>to_date</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#to_time-instance_method" title="#to_time (instance method)">- (Object) <strong>to_time</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#to_unit-instance_method" title="#to_unit (instance method)">- (Object) <strong>to_unit</strong>(other = nil) </a>
-
-
-
- (also: #unit)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- </ul>
-
-
- <div id="instance_method_details" class="method_details_list">
- <h2>Instance Method Details</h2>
-
-
- <div class="method_details first">
- <p class="signature first" id="inspect-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>inspect</strong>(raw = false)
-
-
-
- <span class="aliases">Also known as:
- <span class="names"><span id='units_datetime_inspect-instance_method'>units_datetime_inspect</span></span>
- </span>
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-42
-43
-44
-45</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/date.rb', line 42</span>
-
-<span class='def def kw'>def</span> <span class='inspect identifier id'>inspect</span><span class='lparen token'>(</span><span class='raw identifier id'>raw</span> <span class='assign token'>=</span> <span class='false false kw'>false</span><span class='rparen token'>)</span>
- <span class='return return kw'>return</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='units_datetime_inspect identifier id'>units_datetime_inspect</span> <span class='if if_mod kw'>if</span> <span class='raw identifier id'>raw</span>
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <p class="signature " id="to_date-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>to_date</strong>
-
-
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-47
-48
-49</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/date.rb', line 47</span>
-
-<span class='def def kw'>def</span> <span class='to_date identifier id'>to_date</span>
- <span class='Date constant id'>Date</span><span class='dot token'>.</span><span class='civil identifier id'>civil</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='year identifier id'>year</span><span class='comma token'>,</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='month identifier id'>month</span><span class='comma token'>,</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='day identifier id'>day</span><span class='rparen token'>)</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <p class="signature " id="to_time-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>to_time</strong>
-
-
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-37
-38
-39</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/date.rb', line 37</span>
-
-<span class='def def kw'>def</span> <span class='to_time identifier id'>to_time</span>
- <span class='Time constant id'>Time</span><span class='dot token'>.</span><span class='local identifier id'>local</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='ParseDate constant id'>ParseDate</span><span class='dot token'>.</span><span class='parsedate identifier id'>parsedate</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <p class="signature " id="to_unit-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>to_unit</strong>(other = nil)
-
-
-
- <span class="aliases">Also known as:
- <span class="names"><span id='unit-instance_method'>unit</span></span>
- </span>
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-32
-33
-34</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/date.rb', line 32</span>
-
-<span class='def def kw'>def</span> <span class='to_unit identifier id'>to_unit</span><span class='lparen token'>(</span><span class='other identifier id'>other</span> <span class='assign token'>=</span> <span class='nil nil kw'>nil</span><span class='rparen token'>)</span>
- <span class='other identifier id'>other</span> <span class='integer val'>? </span><span class='Unit constant id'>Unit</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='to identifier id'>to</span><span class='lparen token'>(</span><span class='other identifier id'>other</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='Unit constant id'>Unit</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='rparen token'>)</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- </div>
-
-</div>
-
- <div id="footer">
- Generated on Wed Mar 17 02:01:09 2010 by
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
- 0.5.3 (ruby-1.8.7).
-</div>
-
- </body>
-</html>
View
636 doc/Math.html
@@ -1,636 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
-<title>Module: Math</title>
-<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
-<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
-
-<script type="text/javascript" charset="utf-8">
- relpath = '';
- if (relpath != '') relpath += '/';
-</script>
-<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
-<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
-
- </head>
- <body>
- <script type="text/javascript" charset="utf-8">
- if (window.top.frames.main) document.body.className = 'frames';
- </script>
-
- <div id="header">
- <div id="menu">
-
- <a href="_index.html">Index (M)</a> &raquo;
-
-
- <span class="title">Math</span>
-
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
-</div>
-
- <div id="search">
- <a id="class_list_link" href="#">Class List</a>
- <a id="method_list_link" href="#">Method List</a>
- <a id ="file_list_link" href="#">File List</a>
-</div>
-
- <div class="clear"></div>
- </div>
-
- <iframe id="search_frame"></iframe>
-
- <div id="content"><h1>Module: Math
-
-
-</h1>
-
-<dl class="box">
-
-
-
-
-
-
-
- <dt class="r1 last">Defined in:</dt>
- <dd class="r1 last">lib/ruby_units/math.rb</dd>
-
-</dl>
-<div class="clear"></div>
-
-<h2>Overview</h2><div class="docstring">
- <div class="discussion">
- <p>Math will convert unit objects to radians and then attempt to use the value for
-trigonometric functions.</p>
-
- </div>
-</div>
-<div class="tags">
-
-</div>
-
-
- <h2>Instance Method Summary</h2>
-
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#atan2-instance_method" title="#atan2 (instance method)">- (Object) <strong>atan2</strong>(x, y) </a>
-
-
-
- (also: #unit_atan2)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#cos-instance_method" title="#cos (instance method)">- (Object) <strong>cos</strong>(n) </a>
-
-
-
- (also: #unit_cos)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#cosh-instance_method" title="#cosh (instance method)">- (Object) <strong>cosh</strong>(n) </a>
-
-
-
- (also: #unit_cosh)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#hypot-instance_method" title="#hypot (instance method)">- (Object) <strong>hypot</strong>(x, y) </a>
-
-
-
- (also: #unit_hypot)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc">Convert parameters to consistent units and perform the function.</span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#sin-instance_method" title="#sin (instance method)">- (Object) <strong>sin</strong>(n) </a>
-
-
-
- (also: #unit_sin)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#sinh-instance_method" title="#sinh (instance method)">- (Object) <strong>sinh</strong>(n) </a>
-
-
-
- (also: #unit_sinh)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#sqrt-instance_method" title="#sqrt (instance method)">- (Object) <strong>sqrt</strong>(n) </a>
-
-
-
- (also: #unit_sqrt)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#tan-instance_method" title="#tan (instance method)">- (Object) <strong>tan</strong>(n) </a>
-
-
-
- (also: #unit_tan)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#tanh-instance_method" title="#tanh (instance method)">- (Object) <strong>tanh</strong>(n) </a>
-
-
-
- (also: #unit_tanh)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- </ul>
-
-
- <div id="instance_method_details" class="method_details_list">
- <h2>Instance Method Details</h2>
-
-
- <div class="method_details first">
- <p class="signature first" id="atan2-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>atan2</strong>(x, y)
-
-
-
- <span class="aliases">Also known as:
- <span class="names"><span id='unit_atan2-instance_method'>unit_atan2</span></span>
- </span>
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/math.rb', line 55</span>
-
-<span class='def def kw'>def</span> <span class='atan2 identifier id'>atan2</span><span class='lparen token'>(</span><span class='x identifier id'>x</span><span class='comma token'>,</span><span class='y identifier id'>y</span><span class='rparen token'>)</span>
- <span class='case case kw'>case</span>
- <span class='when when kw'>when</span> <span class='lparen token'>(</span><span class='Unit constant id'>Unit</span> <span class='eqq op'>===</span> <span class='x identifier id'>x</span> <span class='andop op'>&amp;&amp;</span> <span class='Unit constant id'>Unit</span> <span class='eqq op'>===</span> <span class='y identifier id'>y</span><span class='rparen token'>)</span> <span class='andop op'>&amp;&amp;</span> <span class='lparen token'>(</span><span class='x identifier id'>x</span> <span class='nmatch op'>!~</span> <span class='y identifier id'>y</span><span class='rparen token'>)</span>
- <span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='string val'>&quot;Incompatible Units&quot;</span>
- <span class='when when kw'>when</span> <span class='lparen token'>(</span><span class='Unit constant id'>Unit</span> <span class='eqq op'>===</span> <span class='x identifier id'>x</span> <span class='andop op'>&amp;&amp;</span> <span class='Unit constant id'>Unit</span> <span class='eqq op'>===</span> <span class='y identifier id'>y</span><span class='rparen token'>)</span> <span class='andop op'>&amp;&amp;</span> <span class='lparen token'>(</span><span class='x identifier id'>x</span> <span class='match op'>=~</span> <span class='y identifier id'>y</span><span class='rparen token'>)</span>
- <span class='unit_atan2 identifier id'>unit_atan2</span><span class='lparen token'>(</span><span class='x identifier id'>x</span><span class='dot token'>.</span><span class='base_scalar identifier id'>base_scalar</span><span class='comma token'>,</span> <span class='y identifier id'>y</span><span class='dot token'>.</span><span class='base_scalar identifier id'>base_scalar</span><span class='rparen token'>)</span>
- <span class='when when kw'>when</span> <span class='lparen token'>(</span><span class='Unit constant id'>Unit</span> <span class='eqq op'>===</span> <span class='x identifier id'>x</span> <span class='orop op'>||</span> <span class='Unit constant id'>Unit</span> <span class='eqq op'>===</span> <span class='y identifier id'>y</span><span class='rparen token'>)</span>
- <span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='string val'>&quot;Incompatible Units&quot;</span>
- <span class='else else kw'>else</span>
- <span class='unit_atan2 identifier id'>unit_atan2</span><span class='lparen token'>(</span><span class='x identifier id'>x</span><span class='comma token'>,</span><span class='y identifier id'>y</span><span class='rparen token'>)</span>
- <span class='end end kw'>end</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <p class="signature " id="cos-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>cos</strong>(n)
-
-
-
- <span class="aliases">Also known as:
- <span class="names"><span id='unit_cos-instance_method'>unit_cos</span></span>
- </span>
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-20
-21
-22</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/math.rb', line 20</span>
-
-<span class='def def kw'>def</span> <span class='cos identifier id'>cos</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='rparen token'>)</span>
- <span class='Unit constant id'>Unit</span> <span class='eqq op'>===</span> <span class='n identifier id'>n</span> <span class='integer val'>? </span><span class='unit_cos identifier id'>unit_cos</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='dot token'>.</span><span class='to identifier id'>to</span><span class='lparen token'>(</span><span class='string val'>'radian'</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='scalar identifier id'>scalar</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='unit_cos identifier id'>unit_cos</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='rparen token'>)</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <p class="signature " id="cosh-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>cosh</strong>(n)
-
-
-
- <span class="aliases">Also known as:
- <span class="names"><span id='unit_cosh-instance_method'>unit_cosh</span></span>
- </span>
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-30
-31
-32</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/math.rb', line 30</span>
-
-<span class='def def kw'>def</span> <span class='cosh identifier id'>cosh</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='rparen token'>)</span>
- <span class='Unit constant id'>Unit</span> <span class='eqq op'>===</span> <span class='n identifier id'>n</span> <span class='integer val'>? </span><span class='unit_cosh identifier id'>unit_cosh</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='dot token'>.</span><span class='to identifier id'>to</span><span class='lparen token'>(</span><span class='string val'>'radian'</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='scalar identifier id'>scalar</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='unit_cosh identifier id'>unit_cosh</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='rparen token'>)</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <p class="signature " id="hypot-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>hypot</strong>(x, y)
-
-
-
- <span class="aliases">Also known as:
- <span class="names"><span id='unit_hypot-instance_method'>unit_hypot</span></span>
- </span>
-
-</p><div class="docstring">
- <div class="discussion">
- <p>Convert parameters to consistent units and perform the function</p>
-
- </div>
-</div>
-<div class="tags">
-
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-46
-47
-48
-49
-50
-51
-52</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/math.rb', line 46</span>
-
-<span class='def def kw'>def</span> <span class='hypot identifier id'>hypot</span><span class='lparen token'>(</span><span class='x identifier id'>x</span><span class='comma token'>,</span><span class='y identifier id'>y</span><span class='rparen token'>)</span>
- <span class='if if kw'>if</span> <span class='Unit constant id'>Unit</span> <span class='eqq op'>===</span> <span class='x identifier id'>x</span> <span class='andop op'>&amp;&amp;</span> <span class='Unit constant id'>Unit</span> <span class='eqq op'>===</span> <span class='y identifier id'>y</span>
- <span class='lparen token'>(</span><span class='x identifier id'>x</span><span class='pow op'>**</span><span class='integer val'>2</span> <span class='plus op'>+</span> <span class='y identifier id'>y</span><span class='pow op'>**</span><span class='integer val'>2</span><span class='rparen token'>)</span><span class='pow op'>**</span><span class='lparen token'>(</span><span class='integer val'>1</span><span class='div op'>/</span><span class='integer val'>2</span><span class='rparen token'>)</span>
- <span class='else else kw'>else</span>
- <span class='unit_hypot identifier id'>unit_hypot</span><span class='lparen token'>(</span><span class='x identifier id'>x</span><span class='comma token'>,</span><span class='y identifier id'>y</span><span class='rparen token'>)</span>
- <span class='end end kw'>end</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <p class="signature " id="sin-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>sin</strong>(n)
-
-
-
- <span class="aliases">Also known as:
- <span class="names"><span id='unit_sin-instance_method'>unit_sin</span></span>
- </span>
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-15
-16
-17</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/math.rb', line 15</span>
-
-<span class='def def kw'>def</span> <span class='sin identifier id'>sin</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='rparen token'>)</span>
- <span class='Unit constant id'>Unit</span> <span class='eqq op'>===</span> <span class='n identifier id'>n</span> <span class='integer val'>? </span><span class='unit_sin identifier id'>unit_sin</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='dot token'>.</span><span class='to identifier id'>to</span><span class='lparen token'>(</span><span class='string val'>'radian'</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='scalar identifier id'>scalar</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='unit_sin identifier id'>unit_sin</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='rparen token'>)</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <p class="signature " id="sinh-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>sinh</strong>(n)
-
-
-
- <span class="aliases">Also known as:
- <span class="names"><span id='unit_sinh-instance_method'>unit_sinh</span></span>
- </span>
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-25
-26
-27</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/math.rb', line 25</span>
-
-<span class='def def kw'>def</span> <span class='sinh identifier id'>sinh</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='rparen token'>)</span>
- <span class='Unit constant id'>Unit</span> <span class='eqq op'>===</span> <span class='n identifier id'>n</span> <span class='integer val'>? </span><span class='unit_sinh identifier id'>unit_sinh</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='dot token'>.</span><span class='to identifier id'>to</span><span class='lparen token'>(</span><span class='string val'>'radian'</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='scalar identifier id'>scalar</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='unit_sinh identifier id'>unit_sinh</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='rparen token'>)</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <p class="signature " id="sqrt-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>sqrt</strong>(n)
-
-
-
- <span class="aliases">Also known as:
- <span class="names"><span id='unit_sqrt-instance_method'>unit_sqrt</span></span>
- </span>
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-6
-7
-8
-9
-10
-11
-12</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/math.rb', line 6</span>
-
-<span class='def def kw'>def</span> <span class='sqrt identifier id'>sqrt</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='rparen token'>)</span>
- <span class='if if kw'>if</span> <span class='Unit constant id'>Unit</span> <span class='eqq op'>===</span> <span class='n identifier id'>n</span>
- <span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='pow op'>**</span><span class='lparen token'>(</span><span class='integer val'>1</span><span class='div op'>/</span><span class='integer val'>2</span><span class='rparen token'>)</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='to_unit identifier id'>to_unit</span>
- <span class='else else kw'>else</span>
- <span class='unit_sqrt identifier id'>unit_sqrt</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='rparen token'>)</span>
- <span class='end end kw'>end</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <p class="signature " id="tan-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>tan</strong>(n)
-
-
-
- <span class="aliases">Also known as:
- <span class="names"><span id='unit_tan-instance_method'>unit_tan</span></span>
- </span>
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-35
-36
-37</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/math.rb', line 35</span>
-
-<span class='def def kw'>def</span> <span class='tan identifier id'>tan</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='rparen token'>)</span>
- <span class='Unit constant id'>Unit</span> <span class='eqq op'>===</span> <span class='n identifier id'>n</span> <span class='integer val'>? </span><span class='unit_tan identifier id'>unit_tan</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='dot token'>.</span><span class='to identifier id'>to</span><span class='lparen token'>(</span><span class='string val'>'radian'</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='scalar identifier id'>scalar</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='unit_tan identifier id'>unit_tan</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='rparen token'>)</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <p class="signature " id="tanh-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>tanh</strong>(n)
-
-
-
- <span class="aliases">Also known as:
- <span class="names"><span id='unit_tanh-instance_method'>unit_tanh</span></span>
- </span>
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-40
-41
-42</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/math.rb', line 40</span>
-
-<span class='def def kw'>def</span> <span class='tanh identifier id'>tanh</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='rparen token'>)</span>
- <span class='Unit constant id'>Unit</span> <span class='eqq op'>===</span> <span class='n identifier id'>n</span> <span class='integer val'>? </span><span class='unit_tanh identifier id'>unit_tanh</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='dot token'>.</span><span class='to identifier id'>to</span><span class='lparen token'>(</span><span class='string val'>'radian'</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='scalar identifier id'>scalar</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='unit_tanh identifier id'>unit_tanh</span><span class='lparen token'>(</span><span class='n identifier id'>n</span><span class='rparen token'>)</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- </div>
-
-</div>
-
- <div id="footer">
- Generated on Wed Mar 17 02:01:09 2010 by
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
- 0.5.3 (ruby-1.8.7).
-</div>
-
- </body>
-</html>
View
172 doc/Numeric.html
@@ -1,172 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
-<title>Class: Numeric</title>
-<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
-<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
-
-<script type="text/javascript" charset="utf-8">
- relpath = '';
- if (relpath != '') relpath += '/';
-</script>
-<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
-<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
-
- </head>
- <body>
- <script type="text/javascript" charset="utf-8">
- if (window.top.frames.main) document.body.className = 'frames';
- </script>
-
- <div id="header">
- <div id="menu">
-
- <a href="_index.html">Index (N)</a> &raquo;
-
-
- <span class="title">Numeric</span>
-
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
-</div>
-
- <div id="search">
- <a id="class_list_link" href="#">Class List</a>
- <a id="method_list_link" href="#">Method List</a>
- <a id ="file_list_link" href="#">File List</a>
-</div>
-
- <div class="clear"></div>
- </div>
-
- <iframe id="search_frame"></iframe>
-
- <div id="content"><h1>Class: Numeric
-
-
-</h1>
-
-<dl class="box">
-
- <dt class="r1">Inherits:</dt>
- <dd class="r1">
- <span class="inheritName"><a href="Object.html" title="Object (class)">Object</a></span>
-
- <ul class="fullTree">
- <li><a href="Object.html" title="Object (class)">Object</a></li>
-
- <li class="next">Numeric</li>
-
- </ul>
- <a href="#" class="inheritanceTree">show all</a>
-
- </dd>
-
-
-
-
-
-
-
-
- <dt class="r2 last">Defined in:</dt>
- <dd class="r2 last">lib/ruby_units/numeric.rb</dd>
-
-</dl>
-<div class="clear"></div>
-
-<h2>Overview</h2><div class="docstring">
- <div class="discussion">
- <p>make a unitless unit with a given scalar</p>
-
- </div>
-</div>
-<div class="tags">
-
-</div><div id="subclasses">
- <h2>Direct Known Subclasses</h2>
- <p class="children"><a href="Complex.html" title="Complex (class)">Complex</a>, <a href="Unit.html" title="Unit (class)">Unit</a></p>
-</div>
-
-
-
- <h2>Instance Method Summary</h2>
-
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#to_unit-instance_method" title="#to_unit (instance method)">- (Object) <strong>to_unit</strong>(other = nil) </a>
-
-
-
- (also: #u, #unit)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- </ul>
-
-
- <div id="instance_method_details" class="method_details_list">
- <h2>Instance Method Details</h2>
-
-
- <div class="method_details first">
- <p class="signature first" id="to_unit-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>to_unit</strong>(other = nil)
-
-
-
- <span class="aliases">Also known as:
- <span class="names"><span id='u-instance_method'>u</span>, <span id='unit-instance_method'>unit</span></span>
- </span>
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-3
-4
-5</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/numeric.rb', line 3</span>
-
-<span class='def def kw'>def</span> <span class='to_unit identifier id'>to_unit</span><span class='lparen token'>(</span><span class='other identifier id'>other</span> <span class='assign token'>=</span> <span class='nil nil kw'>nil</span><span class='rparen token'>)</span>
- <span class='other identifier id'>other</span> <span class='integer val'>? </span><span class='Unit constant id'>Unit</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='comma token'>,</span> <span class='other identifier id'>other</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='Unit constant id'>Unit</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='rparen token'>)</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- </div>
-
-</div>
-
- <div id="footer">
- Generated on Wed Mar 17 02:01:09 2010 by
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
- 0.5.3 (ruby-1.8.7).
-</div>
-
- </body>
-</html>
View
152 doc/Object.html
@@ -1,152 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
-<title>Class: Object</title>
-<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
-<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
-
-<script type="text/javascript" charset="utf-8">
- relpath = '';
- if (relpath != '') relpath += '/';
-</script>
-<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
-<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
-
- </head>
- <body>
- <script type="text/javascript" charset="utf-8">
- if (window.top.frames.main) document.body.className = 'frames';
- </script>
-
- <div id="header">
- <div id="menu">
-
- <a href="_index.html">Index (O)</a> &raquo;
-
-
- <span class="title">Object</span>
-
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
-</div>
-
- <div id="search">
- <a id="class_list_link" href="#">Class List</a>
- <a id="method_list_link" href="#">Method List</a>
- <a id ="file_list_link" href="#">File List</a>
-</div>
-
- <div class="clear"></div>
- </div>
-
- <iframe id="search_frame"></iframe>
-
- <div id="content"><h1>Class: Object
-
-
-</h1>
-
-<dl class="box">
-
- <dt class="r1">Inherits:</dt>
- <dd class="r1">
- <span class="inheritName">BasicObject</span>
-
- </dd>
-
-
-
-
-
-
-
-
- <dt class="r2 last">Defined in:</dt>
- <dd class="r2 last">lib/ruby_units/object.rb</dd>
-
-</dl>
-<div class="clear"></div>
-
-
-
-
- <h2>Instance Method Summary</h2>
-
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#Unit-instance_method" title="#Unit (instance method)">- (Object) <strong>Unit</strong>(*other) </a>
-
-
-
- (also: #u, #U)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- </ul>
-
-
- <div id="instance_method_details" class="method_details_list">
- <h2>Instance Method Details</h2>
-
-
- <div class="method_details first">
- <p class="signature first" id="Unit-instance_method">
-
- - (<tt><a href="" title="Object (class)">Object</a></tt>) <strong>Unit</strong>(*other)
-
-
-
- <span class="aliases">Also known as:
- <span class="names"><span id='u-instance_method'>u</span>, <span id='U-instance_method'>U</span></span>
- </span>
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-2
-3
-4</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/object.rb', line 2</span>
-
-<span class='def def kw'>def</span> <span class='Unit constant id'>Unit</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='other identifier id'>other</span><span class='rparen token'>)</span>
- <span class='other identifier id'>other</span><span class='dot token'>.</span><span class='to_unit identifier id'>to_unit</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- </div>
-
-</div>
-
- <div id="footer">
- Generated on Wed Mar 17 02:01:09 2010 by
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
- 0.5.3 (ruby-1.8.7).
-</div>
-
- </body>
-</html>
View
803 doc/String.html
@@ -1,803 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
-<title>Class: String</title>
-<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
-<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
-
-<script type="text/javascript" charset="utf-8">
- relpath = '';
- if (relpath != '') relpath += '/';
-</script>
-<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
-<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
-
- </head>
- <body>
- <script type="text/javascript" charset="utf-8">
- if (window.top.frames.main) document.body.className = 'frames';
- </script>
-
- <div id="header">
- <div id="menu">
-
- <a href="_index.html">Index (S)</a> &raquo;
-
-
- <span class="title">String</span>
-
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
-</div>
-
- <div id="search">
- <a id="class_list_link" href="#">Class List</a>
- <a id="method_list_link" href="#">Method List</a>
- <a id ="file_list_link" href="#">File List</a>
-</div>
-
- <div class="clear"></div>
- </div>
-
- <iframe id="search_frame"></iframe>
-
- <div id="content"><h1>Class: String
-
-
-</h1>
-
-<dl class="box">
-
- <dt class="r1">Inherits:</dt>
- <dd class="r1">
- <span class="inheritName"><a href="Object.html" title="Object (class)">Object</a></span>
-
- <ul class="fullTree">
- <li><a href="Object.html" title="Object (class)">Object</a></li>
-
- <li class="next">String</li>
-
- </ul>
- <a href="#" class="inheritanceTree">show all</a>
-
- </dd>
-
-
-
-
-
-
-
-
- <dt class="r2 last">Defined in:</dt>
- <dd class="r2 last">lib/ruby_units/string.rb</dd>
-
-</dl>
-<div class="clear"></div>
-
-<h2>Overview</h2><div class="docstring">
- <div class="discussion">
- <p>make a string into a unit</p>
-
- </div>
-</div>
-<div class="tags">
-
-</div>
-
-
- <h2>Instance Method Summary</h2>
-
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#ago-instance_method" title="#ago (instance method)">- (Object) <strong>ago</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#before-instance_method" title="#before (instance method)">- (Object) <strong>before</strong>(time_point = ::Time.now) </a>
-
-
-
- (also: #before_now)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#datetime-instance_method" title="#datetime (instance method)">- (Object) <strong>datetime</strong>(options = {}) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#from-instance_method" title="#from (instance method)">- (Object) <strong>from</strong>(time_point = ::Time.now) </a>
-
-
-
- (also: #after, #from_now)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#since-instance_method" title="#since (instance method)">- (Object) <strong>since</strong>(time_point = ::Time.now) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#time-instance_method" title="#time (instance method)">- (Object) <strong>time</strong>(options = {}) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#to-instance_method" title="#to (instance method)">- (Object) <strong>to</strong>(other) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#to_date-instance_method" title="#to_date (instance method)">- (Object) <strong>to_date</strong>(options = {}) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#to_datetime-instance_method" title="#to_datetime (instance method)">- (Object) <strong>to_datetime</strong>(options = {}) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#to_time-instance_method" title="#to_time (instance method)">- (Object) <strong>to_time</strong>(options = {}) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#to_unit-instance_method" title="#to_unit (instance method)">- (Object) <strong>to_unit</strong>(other = nil) </a>
-
-
-
- (also: #unit, #u)
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#until-instance_method" title="#until (instance method)">- (Object) <strong>until</strong>(time_point = ::Time.now) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"></span>
-
-</li>
-
-
- </ul>
-
-
- <div id="instance_method_details" class="method_details_list">
- <h2>Instance Method Details</h2>
-
-
- <div class="method_details first">
- <p class="signature first" id="ago-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>ago</strong>
-
-
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-34
-35
-36</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/string.rb', line 34</span>
-
-<span class='def def kw'>def</span> <span class='ago identifier id'>ago</span>
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='unit identifier id'>unit</span><span class='dot token'>.</span><span class='ago identifier id'>ago</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <p class="signature " id="before-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>before</strong>(time_point = ::Time.now)
-
-
-
- <span class="aliases">Also known as:
- <span class="names"><span id='before_now-instance_method'>before_now</span></span>
- </span>
-
-</p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-38
-39
-40</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ruby_units/string.rb', line 38</span>
-
-<span class='def def kw'>def</span> <span class='before identifier id'>before</span><span class='lparen token'>(</span><span class='time_point identifier id'>time_point</span> <span class='assign token'>=</span> <span class='colon3 op'>::</span><span class='Time constant id'>Time</span><span class='dot token'>.</span><span class='now identifier id'>now</span><span class='rparen token'>)</span>
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='unit identifier id'>unit</span><span class='dot token'>.</span><span class='before identifier id'>before</span><span class='lparen token'>(</span><span class='time_point identifier id'>time_point</span><span class='rparen token'>)</span>
-<span class='end end kw'>end</span>
-</pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <p class="signature " id="datetime-instance_method">
-
- - (<tt><a href="Object.html" title="Object (class)">Object</a></tt>) <strong>datetime</strong>(options = {})
-
-