quantitymanager 0.2.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/doc/classes/Array.html +12 -12
- data/doc/classes/Array.src/M000042.html +23 -0
- data/doc/classes/Array.src/M000043.html +19 -0
- data/doc/classes/CalculatorTest.html +72 -72
- data/doc/classes/CalculatorTest.src/M000024.html +18 -10
- data/doc/classes/CalculatorTest.src/M000025.html +11 -17
- data/doc/classes/CalculatorTest.src/M000026.html +11 -13
- data/doc/classes/CalculatorTest.src/M000027.html +19 -13
- data/doc/classes/CalculatorTest.src/M000028.html +12 -11
- data/doc/classes/CalculatorTest.src/M000029.html +12 -9
- data/doc/classes/CalculatorTest.src/M000030.html +10 -10
- data/doc/classes/CalculatorTest.src/M000031.html +9 -15
- data/doc/classes/CalculatorTest.src/M000032.html +11 -8
- data/doc/classes/CalculatorTest.src/M000033.html +15 -7
- data/doc/classes/CalculatorTest.src/M000034.html +8 -17
- data/doc/classes/CalculatorTest.src/M000035.html +9 -6
- data/doc/classes/CalculatorTest.src/M000036.html +32 -0
- data/doc/classes/CalculatorTest.src/M000037.html +20 -0
- data/doc/classes/CompasedUnitTest.html +32 -2
- data/doc/classes/CompasedUnitTest.src/M000001.html +1 -1
- data/doc/classes/CompasedUnitTest.src/M000002.html +1 -1
- data/doc/classes/CompasedUnitTest.src/M000003.html +1 -1
- data/doc/classes/CompasedUnitTest.src/M000004.html +1 -1
- data/doc/classes/CompasedUnitTest.src/M000005.html +1 -1
- data/doc/classes/CompasedUnitTest.src/M000006.html +1 -1
- data/doc/classes/CompasedUnitTest.src/M000007.html +1 -1
- data/doc/classes/CompasedUnitTest.src/M000008.html +1 -1
- data/doc/classes/CompasedUnitTest.src/M000009.html +1 -1
- data/doc/classes/CompasedUnitTest.src/M000010.html +1 -1
- data/doc/classes/CompasedUnitTest.src/M000011.html +18 -0
- data/doc/classes/CompasedUnitTest.src/M000012.html +32 -0
- data/doc/classes/Configuration.html +22 -22
- data/doc/classes/Configuration.src/M000044.html +5 -4
- data/doc/classes/Configuration.src/M000045.html +4 -10
- data/doc/classes/Configuration.src/M000046.html +18 -0
- data/doc/classes/Configuration.src/M000047.html +24 -0
- data/doc/classes/ConfigurationTest.html +22 -22
- data/doc/classes/ConfigurationTest.src/M000068.html +16 -9
- data/doc/classes/ConfigurationTest.src/M000069.html +27 -0
- data/doc/classes/ConfigurationTest.src/M000070.html +35 -0
- data/doc/classes/ConfigurationTest.src/M000071.html +24 -0
- data/doc/classes/CustomUnitConversionTest.html +47 -32
- data/doc/classes/CustomUnitConversionTest.src/M000055.html +16 -11
- data/doc/classes/CustomUnitConversionTest.src/M000056.html +9 -10
- data/doc/classes/CustomUnitConversionTest.src/M000057.html +6 -10
- data/doc/classes/CustomUnitConversionTest.src/M000058.html +26 -0
- data/doc/classes/CustomUnitConversionTest.src/M000059.html +26 -0
- data/doc/classes/CustomUnitConversionTest.src/M000060.html +24 -0
- data/doc/classes/CustomUnitConversionTest.src/M000061.html +27 -0
- data/doc/classes/Numeric.html +2 -2
- data/doc/classes/QuantifiableTest.html +22 -22
- data/doc/classes/QuantifiableTest.src/M000038.html +8 -25
- data/doc/classes/QuantifiableTest.src/M000039.html +12 -9
- data/doc/classes/QuantifiableTest.src/M000040.html +41 -0
- data/doc/classes/QuantifiableTest.src/M000041.html +31 -0
- data/doc/classes/Quantity/CalculationSupport.html +168 -0
- data/doc/classes/Quantity/CalculationSupport.src/M000075.html +22 -0
- data/doc/classes/Quantity/CalculationSupport.src/M000076.html +21 -0
- data/doc/classes/Quantity/CalculationSupport.src/M000077.html +18 -0
- data/doc/classes/Quantity/Calculator.html +32 -32
- data/doc/classes/Quantity/Calculator.src/M000083.html +1 -1
- data/doc/classes/Quantity/Calculator.src/M000084.html +2 -2
- data/doc/classes/Quantity/Calculator.src/M000085.html +1 -1
- data/doc/classes/Quantity/Calculator.src/M000086.html +2 -2
- data/doc/classes/Quantity/Calculator.src/M000087.html +1 -1
- data/doc/classes/Quantity/Calculator.src/M000088.html +2 -3
- data/doc/classes/Quantity/Measurable.html +12 -12
- data/doc/classes/Quantity/Measurable.src/M000073.html +18 -0
- data/doc/classes/Quantity/Measurable.src/M000074.html +18 -0
- data/doc/classes/Quantity/OperationInfo.html +13 -13
- data/doc/classes/Quantity/OperationInfo.src/M000089.html +3 -3
- data/doc/classes/Quantity/OperationInfo.src/M000090.html +1 -1
- data/doc/classes/Quantity/Quantifiable.html +7 -7
- data/doc/classes/Quantity/Quantifiable.src/M000072.html +18 -0
- data/doc/classes/Quantity/Quantity.html +18 -18
- data/doc/classes/Quantity/Quantity.src/M000078.html +1 -1
- data/doc/classes/Quantity/Quantity.src/M000079.html +1 -1
- data/doc/classes/Quantity/Quantity.src/M000080.html +1 -1
- data/doc/classes/Quantity/QuantityInfo.html +13 -13
- data/doc/classes/Quantity/QuantityInfo.src/M000081.html +1 -1
- data/doc/classes/Quantity/QuantityInfo.src/M000082.html +1 -1
- data/doc/classes/Quantity.html +5 -5
- data/doc/classes/QuantityTest.html +44 -29
- data/doc/classes/QuantityTest.src/M000048.html +18 -13
- data/doc/classes/QuantityTest.src/M000049.html +17 -4
- data/doc/classes/QuantityTest.src/M000050.html +12 -7
- data/doc/classes/QuantityTest.src/M000051.html +6 -6
- data/doc/classes/QuantityTest.src/M000052.html +22 -0
- data/doc/classes/QuantityTest.src/M000053.html +20 -0
- data/doc/classes/QuantityTest.src/M000054.html +27 -0
- data/doc/classes/SimpleUnitTest.html +29 -44
- data/doc/classes/SimpleUnitTest.src/M000062.html +9 -11
- data/doc/classes/SimpleUnitTest.src/M000063.html +12 -8
- data/doc/classes/SimpleUnitTest.src/M000064.html +7 -4
- data/doc/classes/SimpleUnitTest.src/M000065.html +20 -0
- data/doc/classes/SimpleUnitTest.src/M000066.html +26 -0
- data/doc/classes/SimpleUnitTest.src/M000067.html +21 -0
- data/doc/classes/SpecParserTest.html +17 -17
- data/doc/classes/SpecParserTest.src/M000021.html +10 -16
- data/doc/classes/SpecParserTest.src/M000022.html +28 -0
- data/doc/classes/SpecParserTest.src/M000023.html +31 -0
- data/doc/classes/Unit/BaseUnit.html +148 -0
- data/doc/classes/Unit/BaseUnit.src/M000108.html +18 -0
- data/doc/classes/Unit/Comparable.html +12 -12
- data/doc/classes/Unit/Comparable.src/M000092.html +1 -1
- data/doc/classes/Unit/Comparable.src/M000093.html +1 -1
- data/doc/classes/Unit/ComposedUnit.html +61 -55
- data/doc/classes/Unit/ComposedUnit.src/M000109.html +7 -10
- data/doc/classes/Unit/ComposedUnit.src/M000110.html +4 -8
- data/doc/classes/Unit/ComposedUnit.src/M000111.html +4 -15
- data/doc/classes/Unit/ComposedUnit.src/M000112.html +6 -10
- data/doc/classes/Unit/ComposedUnit.src/M000113.html +4 -11
- data/doc/classes/Unit/ComposedUnit.src/M000114.html +4 -4
- data/doc/classes/Unit/ComposedUnit.src/M000115.html +22 -0
- data/doc/classes/Unit/ComposedUnit.src/M000116.html +25 -0
- data/doc/classes/Unit/ComposedUnit.src/M000117.html +18 -0
- data/doc/classes/Unit/Optimizer.html +12 -12
- data/doc/classes/Unit/Optimizer.src/M000106.html +30 -4
- data/doc/classes/Unit/Optimizer.src/M000107.html +18 -0
- data/doc/classes/Unit/Parser.html +17 -17
- data/doc/classes/Unit/Parser.src/M000103.html +4 -11
- data/doc/classes/Unit/Parser.src/M000104.html +11 -5
- data/doc/classes/Unit/Parser.src/M000105.html +19 -0
- data/doc/classes/Unit/SimpleUnit.html +57 -51
- data/doc/classes/Unit/SimpleUnit.src/M000094.html +2 -2
- data/doc/classes/Unit/SimpleUnit.src/M000095.html +1 -1
- data/doc/classes/Unit/SimpleUnit.src/M000096.html +1 -1
- data/doc/classes/Unit/SimpleUnit.src/M000097.html +4 -6
- data/doc/classes/Unit/SimpleUnit.src/M000098.html +4 -4
- data/doc/classes/Unit/SimpleUnit.src/M000099.html +4 -7
- data/doc/classes/Unit/SimpleUnit.src/M000100.html +7 -4
- data/doc/classes/Unit/SimpleUnit.src/M000101.html +18 -0
- data/doc/classes/Unit/SymbolConverter.html +7 -7
- data/doc/classes/Unit/SymbolConverter.src/M000091.html +1 -1
- data/doc/classes/Unit/TestCase.html +5 -11
- data/doc/classes/Unit/TestCase.src/M000102.html +24 -0
- data/doc/classes/Unit.html +6 -4
- data/doc/classes/UnitOptemizerTest.html +45 -42
- data/doc/classes/UnitOptemizerTest.src/M000013.html +16 -12
- data/doc/classes/UnitOptemizerTest.src/M000014.html +6 -8
- data/doc/classes/UnitOptemizerTest.src/M000015.html +9 -9
- data/doc/classes/UnitOptemizerTest.src/M000016.html +6 -5
- data/doc/classes/UnitOptemizerTest.src/M000017.html +9 -5
- data/doc/classes/UnitOptemizerTest.src/M000018.html +12 -8
- data/doc/classes/UnitOptemizerTest.src/M000019.html +23 -0
- data/doc/classes/UnitOptemizerTest.src/M000020.html +22 -0
- data/doc/created.rid +1 -1
- data/doc/files/lib/config/default_configuration_rb.html +108 -0
- data/doc/files/lib/quantity_rb.html +113 -0
- data/doc/files/lib/unitmanager/calculator_rb.html +101 -0
- data/doc/files/lib/unitmanager/configuration_rb.html +101 -0
- data/doc/files/lib/unitmanager/quantity_rb.html +101 -0
- data/doc/files/lib/unitmanager/simple_unit_rb.html +109 -0
- data/doc/files/lib/unitmanager/unit_composition_rb.html +101 -0
- data/doc/files/test/all_tests_rb.html +1 -8
- data/doc/files/test/calculator_test_rb.html +109 -0
- data/doc/files/test/composed_unit_test_rb.html +101 -0
- data/doc/files/test/configuration_test_rb.html +109 -0
- data/doc/files/test/custom_conversion_test_rb.html +109 -0
- data/doc/files/test/quantifiable_test_rb.html +101 -0
- data/doc/files/test/quantity_test_rb.html +101 -0
- data/doc/files/test/simple_unit_test_rb.html +101 -0
- data/doc/files/test/test_helper_rb.html +1 -2
- data/doc/files/test/unit_optimizer_test_rb.html +101 -0
- data/doc/files/test/unit_spec_parser_test_rb.html +101 -0
- data/doc/fr_class_index.html +13 -1
- data/doc/fr_file_index.html +18 -7
- data/doc/fr_method_index.html +117 -51
- data/doc/index.html +1 -1
- data/lib/unitmanager/calculator.rb +4 -5
- data/lib/unitmanager/quantity.rb +30 -39
- data/lib/unitmanager/simple_unit.rb +5 -5
- data/test/quantity_test.rb +13 -0
- metadata +69 -3
@@ -55,8 +55,8 @@
|
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="../files/test/
|
59
|
-
test/
|
58
|
+
<a href="../files/test/unit_optimizer_test_rb.html">
|
59
|
+
test/unit_optimizer_test.rb
|
60
60
|
</a>
|
61
61
|
<br />
|
62
62
|
</td>
|
@@ -86,14 +86,14 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
89
|
+
<a href="#M000013">setup</a>
|
90
|
+
<a href="#M000020">test_array_intersection</a>
|
91
|
+
<a href="#M000017">test_existing_coefficient_optimization</a>
|
92
|
+
<a href="#M000019">test_full_unit_optimization</a>
|
93
|
+
<a href="#M000018">test_multiple_step_optimization</a>
|
94
|
+
<a href="#M000015">test_no_optimization_needed</a>
|
95
|
+
<a href="#M000014">test_no_units</a>
|
96
|
+
<a href="#M000016">test_simple_optimization</a>
|
97
97
|
</div>
|
98
98
|
</div>
|
99
99
|
|
@@ -122,12 +122,12 @@
|
|
122
122
|
<div id="methods">
|
123
123
|
<h3 class="section-bar">Public Instance methods</h3>
|
124
124
|
|
125
|
-
<div id="method-
|
126
|
-
<a name="
|
125
|
+
<div id="method-M000013" class="method-detail">
|
126
|
+
<a name="M000013"></a>
|
127
127
|
|
128
128
|
<div class="method-heading">
|
129
|
-
<a href="UnitOptemizerTest.src/
|
130
|
-
onclick="popupCode('UnitOptemizerTest.src/
|
129
|
+
<a href="UnitOptemizerTest.src/M000013.html" target="Code" class="method-signature"
|
130
|
+
onclick="popupCode('UnitOptemizerTest.src/M000013.html');return false;">
|
131
131
|
<span class="method-name">setup</span><span class="method-args">()</span>
|
132
132
|
</a>
|
133
133
|
</div>
|
@@ -136,26 +136,29 @@
|
|
136
136
|
</div>
|
137
137
|
</div>
|
138
138
|
|
139
|
-
<div id="method-
|
140
|
-
<a name="
|
139
|
+
<div id="method-M000020" class="method-detail">
|
140
|
+
<a name="M000020"></a>
|
141
141
|
|
142
142
|
<div class="method-heading">
|
143
|
-
<a href="UnitOptemizerTest.src/
|
144
|
-
onclick="popupCode('UnitOptemizerTest.src/
|
143
|
+
<a href="UnitOptemizerTest.src/M000020.html" target="Code" class="method-signature"
|
144
|
+
onclick="popupCode('UnitOptemizerTest.src/M000020.html');return false;">
|
145
145
|
<span class="method-name">test_array_intersection</span><span class="method-args">()</span>
|
146
146
|
</a>
|
147
147
|
</div>
|
148
148
|
|
149
149
|
<div class="method-description">
|
150
|
+
<p>
|
151
|
+
Just to make sure it is Ok to use.
|
152
|
+
</p>
|
150
153
|
</div>
|
151
154
|
</div>
|
152
155
|
|
153
|
-
<div id="method-
|
154
|
-
<a name="
|
156
|
+
<div id="method-M000017" class="method-detail">
|
157
|
+
<a name="M000017"></a>
|
155
158
|
|
156
159
|
<div class="method-heading">
|
157
|
-
<a href="UnitOptemizerTest.src/
|
158
|
-
onclick="popupCode('UnitOptemizerTest.src/
|
160
|
+
<a href="UnitOptemizerTest.src/M000017.html" target="Code" class="method-signature"
|
161
|
+
onclick="popupCode('UnitOptemizerTest.src/M000017.html');return false;">
|
159
162
|
<span class="method-name">test_existing_coefficient_optimization</span><span class="method-args">()</span>
|
160
163
|
</a>
|
161
164
|
</div>
|
@@ -164,12 +167,12 @@
|
|
164
167
|
</div>
|
165
168
|
</div>
|
166
169
|
|
167
|
-
<div id="method-
|
168
|
-
<a name="
|
170
|
+
<div id="method-M000019" class="method-detail">
|
171
|
+
<a name="M000019"></a>
|
169
172
|
|
170
173
|
<div class="method-heading">
|
171
|
-
<a href="UnitOptemizerTest.src/
|
172
|
-
onclick="popupCode('UnitOptemizerTest.src/
|
174
|
+
<a href="UnitOptemizerTest.src/M000019.html" target="Code" class="method-signature"
|
175
|
+
onclick="popupCode('UnitOptemizerTest.src/M000019.html');return false;">
|
173
176
|
<span class="method-name">test_full_unit_optimization</span><span class="method-args">()</span>
|
174
177
|
</a>
|
175
178
|
</div>
|
@@ -178,12 +181,12 @@
|
|
178
181
|
</div>
|
179
182
|
</div>
|
180
183
|
|
181
|
-
<div id="method-
|
182
|
-
<a name="
|
184
|
+
<div id="method-M000018" class="method-detail">
|
185
|
+
<a name="M000018"></a>
|
183
186
|
|
184
187
|
<div class="method-heading">
|
185
|
-
<a href="UnitOptemizerTest.src/
|
186
|
-
onclick="popupCode('UnitOptemizerTest.src/
|
188
|
+
<a href="UnitOptemizerTest.src/M000018.html" target="Code" class="method-signature"
|
189
|
+
onclick="popupCode('UnitOptemizerTest.src/M000018.html');return false;">
|
187
190
|
<span class="method-name">test_multiple_step_optimization</span><span class="method-args">()</span>
|
188
191
|
</a>
|
189
192
|
</div>
|
@@ -192,12 +195,12 @@
|
|
192
195
|
</div>
|
193
196
|
</div>
|
194
197
|
|
195
|
-
<div id="method-
|
196
|
-
<a name="
|
198
|
+
<div id="method-M000015" class="method-detail">
|
199
|
+
<a name="M000015"></a>
|
197
200
|
|
198
201
|
<div class="method-heading">
|
199
|
-
<a href="UnitOptemizerTest.src/
|
200
|
-
onclick="popupCode('UnitOptemizerTest.src/
|
202
|
+
<a href="UnitOptemizerTest.src/M000015.html" target="Code" class="method-signature"
|
203
|
+
onclick="popupCode('UnitOptemizerTest.src/M000015.html');return false;">
|
201
204
|
<span class="method-name">test_no_optimization_needed</span><span class="method-args">()</span>
|
202
205
|
</a>
|
203
206
|
</div>
|
@@ -206,12 +209,12 @@
|
|
206
209
|
</div>
|
207
210
|
</div>
|
208
211
|
|
209
|
-
<div id="method-
|
210
|
-
<a name="
|
212
|
+
<div id="method-M000014" class="method-detail">
|
213
|
+
<a name="M000014"></a>
|
211
214
|
|
212
215
|
<div class="method-heading">
|
213
|
-
<a href="UnitOptemizerTest.src/
|
214
|
-
onclick="popupCode('UnitOptemizerTest.src/
|
216
|
+
<a href="UnitOptemizerTest.src/M000014.html" target="Code" class="method-signature"
|
217
|
+
onclick="popupCode('UnitOptemizerTest.src/M000014.html');return false;">
|
215
218
|
<span class="method-name">test_no_units</span><span class="method-args">()</span>
|
216
219
|
</a>
|
217
220
|
</div>
|
@@ -220,12 +223,12 @@
|
|
220
223
|
</div>
|
221
224
|
</div>
|
222
225
|
|
223
|
-
<div id="method-
|
224
|
-
<a name="
|
226
|
+
<div id="method-M000016" class="method-detail">
|
227
|
+
<a name="M000016"></a>
|
225
228
|
|
226
229
|
<div class="method-heading">
|
227
|
-
<a href="UnitOptemizerTest.src/
|
228
|
-
onclick="popupCode('UnitOptemizerTest.src/
|
230
|
+
<a href="UnitOptemizerTest.src/M000016.html" target="Code" class="method-signature"
|
231
|
+
onclick="popupCode('UnitOptemizerTest.src/M000016.html');return false;">
|
229
232
|
<span class="method-name">test_simple_optimization</span><span class="method-args">()</span>
|
230
233
|
</a>
|
231
234
|
</div>
|
@@ -5,23 +5,27 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>setup (UnitOptemizerTest)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File test/
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
13
|
+
<pre><span class="ruby-comment cmt"># File test/unit_optimizer_test.rb, line 7</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
16
|
+
<span class="ruby-ivar">@units</span> = {}
|
17
|
+
<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mm</span>] = <span class="ruby-constant">SimpleUnit</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:unit</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">:mm</span>)
|
18
|
+
<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:cm</span>] = <span class="ruby-constant">SimpleUnit</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:unit</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">:cm</span>, <span class="ruby-identifier">:based_on</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mm</span>], <span class="ruby-identifier">:coefficient</span> =<span class="ruby-operator">></span> <span class="ruby-value">10</span>)
|
19
|
+
<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:m</span>] = <span class="ruby-constant">SimpleUnit</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:unit</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">:m</span>, <span class="ruby-identifier">:based_on</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:cm</span>], <span class="ruby-identifier">:coefficient</span> =<span class="ruby-operator">></span> <span class="ruby-value">100</span>)
|
20
|
+
|
21
|
+
<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>] = <span class="ruby-constant">SimpleUnit</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:unit</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">:g</span>)
|
22
|
+
<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:kg</span>] = <span class="ruby-constant">SimpleUnit</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:unit</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">:kg</span>, <span class="ruby-identifier">:based_on</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>], <span class="ruby-identifier">:coefficient</span> =<span class="ruby-operator">></span> <span class="ruby-value">1000.0</span>)
|
23
|
+
<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:oz</span>] = <span class="ruby-constant">SimpleUnit</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:unit</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">:oz</span>, <span class="ruby-identifier">:based_on</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>], <span class="ruby-identifier">:coefficient</span> =<span class="ruby-operator">></span> <span class="ruby-value">28.349523125</span>)
|
24
|
+
<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:lb</span>] = <span class="ruby-constant">SimpleUnit</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:unit</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">:lb</span>, <span class="ruby-identifier">:based_on</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:oz</span>], <span class="ruby-identifier">:coefficient</span> =<span class="ruby-operator">></span> <span class="ruby-value">16</span>)
|
25
|
+
<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mg</span>] = <span class="ruby-constant">SimpleUnit</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:unit</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">:mg</span>, <span class="ruby-identifier">:based_on</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>], <span class="ruby-identifier">:coefficient</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span><span class="ruby-value">.001</span>)
|
26
|
+
|
27
|
+
<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:sec</span>] = <span class="ruby-constant">SimpleUnit</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:unit</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">:sec</span>)
|
28
|
+
|
25
29
|
<span class="ruby-keyword kw">end</span></pre>
|
26
30
|
</body>
|
27
31
|
</html>
|
@@ -5,23 +5,21 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>test_no_units (UnitOptemizerTest)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File test/
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
|
13
|
+
<pre><span class="ruby-comment cmt"># File test/unit_optimizer_test.rb, line 24</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_no_units</span>
|
16
15
|
<span class="ruby-identifier">results</span> = <span class="ruby-constant">Optimizer</span>.<span class="ruby-identifier">process</span>({
|
17
|
-
<span class="ruby-identifier">:dividends</span> =<span class="ruby-operator">></span> [
|
16
|
+
<span class="ruby-identifier">:dividends</span> =<span class="ruby-operator">></span> [], <span class="ruby-identifier">:divisors</span> =<span class="ruby-operator">></span> []
|
18
17
|
})
|
19
18
|
|
20
19
|
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">results</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Hash</span>))
|
21
|
-
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-value">
|
22
|
-
<span class="ruby-identifier">assert_equal</span>([
|
20
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-value">1.0</span>, <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:coefficient</span>])
|
21
|
+
<span class="ruby-identifier">assert_equal</span>([], <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:dividends</span>])
|
23
22
|
<span class="ruby-identifier">assert_equal</span>([], <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:divisors</span>])
|
24
|
-
|
25
23
|
<span class="ruby-keyword kw">end</span></pre>
|
26
24
|
</body>
|
27
25
|
</html>
|
@@ -5,23 +5,23 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>test_no_optimization_needed (UnitOptemizerTest)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File test/
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
13
|
+
<pre><span class="ruby-comment cmt"># File test/unit_optimizer_test.rb, line 35</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_no_optimization_needed</span>
|
15
|
+
|
15
16
|
<span class="ruby-identifier">results</span> = <span class="ruby-constant">Optimizer</span>.<span class="ruby-identifier">process</span>({
|
16
|
-
<span class="ruby-identifier">:
|
17
|
-
<span class="ruby-identifier">:dividends</span> =<span class="ruby-operator">></span> [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mm</span>], <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:kg</span>]],
|
18
|
-
<span class="ruby-identifier">:divisors</span> =<span class="ruby-operator">></span> [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>]]
|
17
|
+
<span class="ruby-identifier">:dividends</span> =<span class="ruby-operator">></span> [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mm</span>], <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:sec</span>]], <span class="ruby-identifier">:divisors</span> =<span class="ruby-operator">></span> [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>]]
|
19
18
|
})
|
20
19
|
|
21
20
|
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">results</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Hash</span>))
|
22
|
-
<span class="ruby-identifier">
|
23
|
-
<span class="ruby-identifier">assert_equal</span>([<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mm</span>]], <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:dividends</span>])
|
24
|
-
<span class="ruby-identifier">assert_equal</span>([], <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:divisors</span>])
|
21
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-value">1.0</span>, <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:coefficient</span>])
|
22
|
+
<span class="ruby-identifier">assert_equal</span>([<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mm</span>], <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:sec</span>]], <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:dividends</span>])
|
23
|
+
<span class="ruby-identifier">assert_equal</span>([<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>]], <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:divisors</span>])
|
24
|
+
|
25
25
|
<span class="ruby-keyword kw">end</span></pre>
|
26
26
|
</body>
|
27
27
|
</html>
|
@@ -5,22 +5,23 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>test_simple_optimization (UnitOptemizerTest)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File test/
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
13
|
+
<pre><span class="ruby-comment cmt"># File test/unit_optimizer_test.rb, line 48</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_simple_optimization</span>
|
15
15
|
|
16
16
|
<span class="ruby-identifier">results</span> = <span class="ruby-constant">Optimizer</span>.<span class="ruby-identifier">process</span>({
|
17
|
-
<span class="ruby-identifier">:dividends</span> =<span class="ruby-operator">></span> [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mm</span>], <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:kg</span>]], <span class="ruby-identifier">:divisors</span> =<span class="ruby-operator">></span> [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:
|
17
|
+
<span class="ruby-identifier">:dividends</span> =<span class="ruby-operator">></span> [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mm</span>], <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:kg</span>]], <span class="ruby-identifier">:divisors</span> =<span class="ruby-operator">></span> [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>]]
|
18
18
|
})
|
19
19
|
|
20
20
|
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">results</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Hash</span>))
|
21
|
-
<span class="ruby-identifier">
|
21
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-value">1000.0</span>, <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:coefficient</span>])
|
22
22
|
<span class="ruby-identifier">assert_equal</span>([<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mm</span>]], <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:dividends</span>])
|
23
23
|
<span class="ruby-identifier">assert_equal</span>([], <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:divisors</span>])
|
24
|
+
|
24
25
|
<span class="ruby-keyword kw">end</span></pre>
|
25
26
|
</body>
|
26
27
|
</html>
|
@@ -5,18 +5,22 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>test_existing_coefficient_optimization (UnitOptemizerTest)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File test/
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
13
|
+
<pre><span class="ruby-comment cmt"># File test/unit_optimizer_test.rb, line 61</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_existing_coefficient_optimization</span>
|
15
15
|
<span class="ruby-identifier">results</span> = <span class="ruby-constant">Optimizer</span>.<span class="ruby-identifier">process</span>({
|
16
|
-
<span class="ruby-identifier">:
|
16
|
+
<span class="ruby-identifier">:coefficient</span> =<span class="ruby-operator">></span> <span class="ruby-value">7</span>,
|
17
|
+
<span class="ruby-identifier">:dividends</span> =<span class="ruby-operator">></span> [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mm</span>], <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:kg</span>]],
|
18
|
+
<span class="ruby-identifier">:divisors</span> =<span class="ruby-operator">></span> [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>]]
|
17
19
|
})
|
18
20
|
|
19
|
-
<span class="ruby-identifier">assert_equal</span>(
|
21
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">results</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Hash</span>))
|
22
|
+
<span class="ruby-identifier">assert_in_delta</span>(<span class="ruby-value">7000.0</span>, <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:coefficient</span>], <span class="ruby-value">0</span><span class="ruby-value">.001</span>)
|
23
|
+
<span class="ruby-identifier">assert_equal</span>([<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mm</span>]], <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:dividends</span>])
|
20
24
|
<span class="ruby-identifier">assert_equal</span>([], <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:divisors</span>])
|
21
25
|
<span class="ruby-keyword kw">end</span></pre>
|
22
26
|
</body>
|
@@ -5,18 +5,22 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>test_multiple_step_optimization (UnitOptemizerTest)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File test/
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
<pre><span class="ruby-comment cmt"># File test/unit_optimizer_test.rb, line 74</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_multiple_step_optimization</span>
|
15
|
+
|
16
|
+
<span class="ruby-identifier">results</span> = <span class="ruby-constant">Optimizer</span>.<span class="ruby-identifier">process</span>({
|
17
|
+
<span class="ruby-identifier">:dividends</span> =<span class="ruby-operator">></span> [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mm</span>], <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:kg</span>]], <span class="ruby-identifier">:divisors</span> =<span class="ruby-operator">></span> [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:lb</span>]]
|
18
|
+
})
|
19
|
+
|
20
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">results</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Hash</span>))
|
21
|
+
<span class="ruby-identifier">assert_in_delta</span>(<span class="ruby-value">2.204622622</span>, <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:coefficient</span>], <span class="ruby-value">0</span><span class="ruby-value">.00001</span>)
|
22
|
+
<span class="ruby-identifier">assert_equal</span>([<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mm</span>]], <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:dividends</span>])
|
23
|
+
<span class="ruby-identifier">assert_equal</span>([], <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:divisors</span>])
|
20
24
|
<span class="ruby-keyword kw">end</span></pre>
|
21
25
|
</body>
|
22
26
|
</html>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>test_full_unit_optimization (UnitOptemizerTest)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File test/unit_optimizer_test.rb, line 86</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_full_unit_optimization</span>
|
15
|
+
<span class="ruby-identifier">results</span> = <span class="ruby-constant">Optimizer</span>.<span class="ruby-identifier">process</span>({
|
16
|
+
<span class="ruby-identifier">:dividends</span> =<span class="ruby-operator">></span> [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mm</span>], <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:kg</span>]], <span class="ruby-identifier">:divisors</span> =<span class="ruby-operator">></span> [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:lb</span>], <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:cm</span>] ]
|
17
|
+
})
|
18
|
+
|
19
|
+
<span class="ruby-identifier">assert_equal</span>([], <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:dividends</span>])
|
20
|
+
<span class="ruby-identifier">assert_equal</span>([], <span class="ruby-identifier">results</span>[<span class="ruby-identifier">:divisors</span>])
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>test_array_intersection (UnitOptemizerTest)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File test/unit_optimizer_test.rb, line 96</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_array_intersection</span>
|
15
|
+
<span class="ruby-identifier">intersection</span> = [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>], <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mm</span>]] <span class="ruby-operator">&</span> [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>]]
|
16
|
+
<span class="ruby-identifier">assert_equal</span>([<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>]], <span class="ruby-identifier">intersection</span>)
|
17
|
+
|
18
|
+
<span class="ruby-identifier">intersection</span> = [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>], <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>], <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:mm</span>]] <span class="ruby-operator">&</span> [<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>], <span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>],]
|
19
|
+
<span class="ruby-identifier">assert_equal</span>([<span class="ruby-ivar">@units</span>[<span class="ruby-identifier">:g</span>]], <span class="ruby-identifier">intersection</span>)
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
|
+
</html>
|
data/doc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Tue Jun 06 22:06:31 CDT 2006
|
@@ -0,0 +1,108 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: default_configuration.rb</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>default_configuration.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/config/default_configuration.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Sat Apr 08 20:11:48 CDT 2006</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
<div id="description">
|
72
|
+
<p>
|
73
|
+
Default configuration file defines default set of units and conversions to
|
74
|
+
be used by concrete Calculator instances.
|
75
|
+
</p>
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
<!-- if includes -->
|
87
|
+
|
88
|
+
<div id="section">
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<!-- if method_list -->
|
98
|
+
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
|
103
|
+
<div id="validator-badges">
|
104
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
</body>
|
108
|
+
</html>
|