facets 2.5.0 → 2.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +1 -1
- data/CHANGES +28 -45
- data/MANIFEST +35 -4
- data/README +3 -14
- data/RELEASE +36 -70
- data/VERSION +1 -1
- data/doc/archive/RELEASE-2.5.0 +83 -0
- data/doc/log/basic_stats/index.html +4 -4
- data/doc/log/changelog.html +509 -2
- data/doc/log/changelog.txt +130 -1522
- data/doc/rdoc/core/classes/Array.html +366 -141
- data/doc/rdoc/core/classes/Binding.html +45 -45
- data/doc/rdoc/core/classes/Class.html +38 -38
- data/doc/rdoc/core/classes/Comparable.html +26 -26
- data/doc/rdoc/core/classes/Enumerable.html +174 -170
- data/doc/rdoc/core/classes/Enumerable/Enumerator.html +130 -0
- data/doc/rdoc/core/classes/Enumerator.html +132 -0
- data/doc/rdoc/core/classes/Exception.html +8 -8
- data/doc/rdoc/core/classes/File.html +58 -58
- data/doc/rdoc/core/classes/FileTest.html +4 -4
- data/doc/rdoc/core/classes/Float.html +8 -8
- data/doc/rdoc/core/classes/Functor.html +12 -12
- data/doc/rdoc/core/classes/Hash.html +447 -263
- data/doc/rdoc/core/classes/Indexable.html +110 -110
- data/doc/rdoc/core/classes/Integer.html +2 -2
- data/doc/rdoc/core/classes/Kernel.html +329 -329
- data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
- data/doc/rdoc/core/classes/MatchData.html +15 -15
- data/doc/rdoc/core/classes/Module.html +176 -157
- data/doc/rdoc/core/classes/NilClass.html +23 -23
- data/doc/rdoc/core/classes/Numeric.html +27 -27
- data/doc/rdoc/core/classes/Object.html +8 -8
- data/doc/rdoc/core/classes/ObjectSpace.html +5 -5
- data/doc/rdoc/core/classes/Proc.html +22 -22
- data/doc/rdoc/core/classes/Regexp.html +1 -1
- data/doc/rdoc/core/classes/Stackable.html +31 -31
- data/doc/rdoc/core/classes/String.html +332 -291
- data/doc/rdoc/core/classes/Symbol.html +1 -1
- data/doc/rdoc/core/classes/TrueClass.html +8 -8
- data/doc/rdoc/core/classes/UnboundMethod.html +18 -13
- data/doc/rdoc/core/created.rid +1 -1
- data/doc/rdoc/core/files/README.html +7 -29
- data/doc/rdoc/core/files/lib/core/facets/array/product_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/collect_rb.html +10 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/compact_map_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/map_with_index_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/split_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/collate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/group_by_value_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/new_with_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/conflict_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/extend_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/align_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/file_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/string/xor_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod/name_rb.html +1 -1
- data/doc/rdoc/core/fr_class_index.html +2 -0
- data/doc/rdoc/core/fr_file_index.html +6 -0
- data/doc/rdoc/core/fr_method_index.html +386 -373
- data/doc/rdoc/lore/classes/OpenStruct.html +6 -4
- data/doc/rdoc/lore/created.rid +1 -1
- data/doc/rdoc/lore/files/README.html +7 -29
- data/doc/rdoc/lore/files/lib/lore/facets/ostruct_rb.html +1 -1
- data/doc/rdoc/more/classes/ANSICode.html +66 -66
- data/doc/rdoc/more/classes/Advisable.html +37 -37
- data/doc/rdoc/more/classes/Advisable/Method.html +20 -20
- data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +27 -27
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +28 -28
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +19 -19
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +31 -31
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +33 -33
- data/doc/rdoc/more/classes/Association.html +67 -53
- data/doc/rdoc/more/classes/Association/Kernel.html +11 -12
- data/doc/rdoc/more/classes/BBCode.html +36 -36
- data/doc/rdoc/more/classes/BaseX.html +16 -16
- data/doc/rdoc/more/classes/BiCrypt.html +67 -67
- data/doc/rdoc/more/classes/BinReadable.html +85 -85
- data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +25 -25
- data/doc/rdoc/more/classes/Binding.html +8 -8
- data/doc/rdoc/more/classes/Buildable.html +4 -4
- data/doc/rdoc/more/classes/Cloneable.html +4 -4
- data/doc/rdoc/more/classes/ConsoleUtils.html +18 -18
- data/doc/rdoc/more/classes/Crypt.html +16 -16
- data/doc/rdoc/more/classes/CssTree.html +8 -8
- data/doc/rdoc/more/classes/Dictionary.html +52 -45
- data/doc/rdoc/more/classes/Enumerable.html +50 -50
- data/doc/rdoc/more/classes/Enumerable/Elementor.html +16 -16
- data/doc/rdoc/more/classes/Enumerable/Enumerator.html +4 -4
- data/doc/rdoc/more/classes/Enumerable/Filterable.html +30 -30
- data/doc/rdoc/more/classes/EnumerablePass.html +15 -15
- data/doc/rdoc/more/classes/Equatable.html +16 -16
- data/doc/rdoc/more/classes/Expirable.html +17 -17
- data/doc/rdoc/more/classes/Fileable.html +14 -14
- data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
- data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
- data/doc/rdoc/more/classes/Hook.html +162 -0
- data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
- data/doc/rdoc/more/classes/Instantiable.html +9 -9
- data/doc/rdoc/more/classes/Instantize.html +8 -8
- data/doc/rdoc/more/classes/Interval.html +187 -187
- data/doc/rdoc/more/classes/It.html +12 -12
- data/doc/rdoc/more/classes/Matcher.html +38 -38
- data/doc/rdoc/more/classes/Matcher/MatchData.html +4 -4
- data/doc/rdoc/more/classes/Memoizer.html +21 -21
- data/doc/rdoc/more/classes/Multiton.html +12 -12
- data/doc/rdoc/more/classes/Multiton/MetaMethods.html +28 -28
- data/doc/rdoc/more/classes/Net/SMTP.html +8 -8
- data/doc/rdoc/more/classes/OpEsc.html +5 -5
- data/doc/rdoc/more/classes/OpenCascade.html +4 -4
- data/doc/rdoc/more/classes/OpenHash.html +9 -9
- data/doc/rdoc/more/classes/OpenStructable.html +36 -36
- data/doc/rdoc/more/classes/PQueue.html +84 -84
- data/doc/rdoc/more/classes/Paramix.html +16 -16
- data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
- data/doc/rdoc/more/classes/RWDelegator.html +16 -16
- data/doc/rdoc/more/classes/Random.html +5 -5
- data/doc/rdoc/more/classes/Random/Array.html +37 -37
- data/doc/rdoc/more/classes/Random/Hash.html +52 -52
- data/doc/rdoc/more/classes/Random/Object.html +4 -4
- data/doc/rdoc/more/classes/Random/String.html +34 -34
- data/doc/rdoc/more/classes/Random/String/Self.html +9 -9
- data/doc/rdoc/more/classes/Registerable.html +13 -13
- data/doc/rdoc/more/classes/Stash.html +28 -28
- data/doc/rdoc/more/classes/String/Mask.html +72 -72
- data/doc/rdoc/more/classes/String/Words.html +31 -31
- data/doc/rdoc/more/classes/System.html +253 -253
- data/doc/rdoc/more/classes/Timer.html +48 -48
- data/doc/rdoc/more/classes/Timer/Dummy.html +9 -9
- data/doc/rdoc/more/classes/Tuple.html +170 -170
- data/doc/rdoc/more/classes/TypeCast/Class.html +4 -4
- data/doc/rdoc/more/classes/TypeCast/Object.html +4 -4
- data/doc/rdoc/more/classes/Uninheritable.html +6 -6
- data/doc/rdoc/more/classes/X.html +117 -0
- data/doc/rdoc/more/classes/XOXO.html +11 -11
- data/doc/rdoc/more/classes/ZipUtils.html +88 -88
- data/doc/rdoc/more/classes/ZipUtils/DryRun.html +68 -68
- data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +68 -68
- data/doc/rdoc/more/classes/ZipUtils/Verbose.html +60 -60
- data/doc/rdoc/more/created.rid +1 -1
- data/doc/rdoc/more/files/README.html +7 -29
- data/doc/rdoc/more/files/lib/more/facets/association_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/dictionary_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/hook_rb.html +96 -0
- data/doc/rdoc/more/files/lib/more/facets/paramix_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/xoxo_rb.html +2 -2
- data/doc/rdoc/more/fr_class_index.html +2 -0
- data/doc/rdoc/more/fr_file_index.html +1 -0
- data/doc/rdoc/more/fr_method_index.html +686 -681
- data/lib/core/facets/array/product.rb +6 -23
- data/lib/core/facets/enumerable/collect.rb +3 -53
- data/lib/core/facets/enumerable/compact_map.rb +35 -0
- data/lib/core/facets/enumerable/map_with_index.rb +23 -0
- data/lib/core/facets/enumerable/split.rb +3 -3
- data/lib/core/facets/hash/collate.rb +45 -14
- data/lib/core/facets/hash/group_by_value.rb +65 -0
- data/lib/core/facets/hash/new_with.rb +15 -0
- data/lib/core/facets/module/extend.rb +11 -0
- data/lib/core/facets/string/align.rb +19 -18
- data/lib/core/facets/string/file.rb +17 -0
- data/lib/core/facets/string/xor.rb +9 -3
- data/lib/core/facets/to_hash.rb +274 -17
- data/lib/core/facets/unboundmethod/name.rb +4 -2
- data/lib/lore/facets/ostruct.rb +3 -0
- data/lib/more/facets/association.rb +28 -12
- data/lib/more/facets/dictionary.rb +10 -4
- data/lib/more/facets/hook.rb +65 -0
- data/lib/more/facets/paramix.rb +5 -5
- data/meta/abstract +13 -0
- data/meta/authors +1 -0
- data/meta/contact +1 -0
- data/meta/contributors +48 -0
- data/meta/created +1 -0
- data/meta/homepage +1 -0
- data/meta/license +1 -0
- data/meta/loadpath +3 -0
- data/meta/releases +14 -0
- data/meta/slogan +1 -0
- data/meta/summary +1 -0
- data/task/test.rake +116 -18
- data/test/core/array/test_product.rb +0 -6
- data/test/core/binding/test_local_variables.rb +9 -3
- data/test/core/enumerable/test_split.rb +19 -0
- data/test/core/module/test_conflict.rb +8 -3
- data/test/core/test_to_hash.rb +152 -0
- data/test/core/unboundmethod/test_arguments.rb +1 -1
- data/test/core/unboundmethod/test_name.rb +2 -2
- metadata +39 -8
- data/doc/log/bstats/stats.html +0 -39
- data/doc/log/stats.html +0 -25
- data/test/more/test_to_hash.rb +0 -58
@@ -78,7 +78,7 @@ Object
|
|
78
78
|
<div class="description"><h1><a href="Timer.html">Timer</a></h1>
|
79
79
|
<p>
|
80
80
|
Provides a strightforward means for controlling time critical execution.
|
81
|
-
Can be used as a "<a href="Timer.html#
|
81
|
+
Can be used as a "<a href="Timer.html#M000581">stop</a> watch"
|
82
82
|
timer or as a "time bomb" timer.
|
83
83
|
</p>
|
84
84
|
<pre>
|
@@ -121,17 +121,17 @@ block.
|
|
121
121
|
|
122
122
|
|
123
123
|
<div class="sectiontitle">Methods</div>
|
124
|
-
<span style="padding-right: 5px;"><a href="#
|
125
|
-
<span style="padding-right: 5px;"><a href="#
|
126
|
-
<span style="padding-right: 5px;"><a href="#
|
127
|
-
<span style="padding-right: 5px;"><a href="#
|
128
|
-
<span style="padding-right: 5px;"><a href="#
|
129
|
-
<span style="padding-right: 5px;"><a href="#
|
130
|
-
<span style="padding-right: 5px;"><a href="#
|
131
|
-
<span style="padding-right: 5px;"><a href="#
|
132
|
-
<span style="padding-right: 5px;"><a href="#
|
133
|
-
<span style="padding-right: 5px;"><a href="#
|
134
|
-
<span style="padding-right: 5px;"><a href="#
|
124
|
+
<span style="padding-right: 5px;"><a href="#M000580">defuse</a></span>
|
125
|
+
<span style="padding-right: 5px;"><a href="#M000579">limit</a></span>
|
126
|
+
<span style="padding-right: 5px;"><a href="#M000576">new</a></span>
|
127
|
+
<span style="padding-right: 5px;"><a href="#M000577">on_timeout</a></span>
|
128
|
+
<span style="padding-right: 5px;"><a href="#M000582">reset</a></span>
|
129
|
+
<span style="padding-right: 5px;"><a href="#M000583">reset_limit</a></span>
|
130
|
+
<span style="padding-right: 5px;"><a href="#M000584">running?</a></span>
|
131
|
+
<span style="padding-right: 5px;"><a href="#M000578">start</a></span>
|
132
|
+
<span style="padding-right: 5px;"><a href="#M000581">stop</a></span>
|
133
|
+
<span style="padding-right: 5px;"><a href="#M000585">stopped?</a></span>
|
134
|
+
<span style="padding-right: 5px;"><a href="#M000586">total_time</a></span>
|
135
135
|
|
136
136
|
|
137
137
|
|
@@ -168,11 +168,11 @@ block.
|
|
168
168
|
<div class="sectiontitle">Public Class methods</div>
|
169
169
|
<div class="method">
|
170
170
|
<div class="title">
|
171
|
-
<a name="
|
171
|
+
<a name="M000576"></a><b>new</b>( time_limit=nil, &block )
|
172
172
|
</div>
|
173
173
|
<div class="sourcecode">
|
174
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
175
|
-
<div id="
|
174
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000576_source')" id="l_M000576_source">+</a> ]</p>
|
175
|
+
<div id="M000576_source" class="dyn-source">
|
176
176
|
<pre>
|
177
177
|
<span class="ruby-comment cmt"># File lib/more/facets/timer.rb, line 110</span>
|
178
178
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-identifier">time_limit</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span> )
|
@@ -194,16 +194,16 @@ block.
|
|
194
194
|
<div class="sectiontitle">Public Instance methods</div>
|
195
195
|
<div class="method">
|
196
196
|
<div class="title">
|
197
|
-
<a name="
|
197
|
+
<a name="M000580"></a><b>defuse</b>()
|
198
198
|
</div>
|
199
199
|
<div class="description">
|
200
200
|
<p>
|
201
|
-
Kill time <a href="Timer.html#
|
201
|
+
Kill time <a href="Timer.html#M000579">limit</a> thread, if any.
|
202
202
|
</p>
|
203
203
|
</div>
|
204
204
|
<div class="sourcecode">
|
205
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
206
|
-
<div id="
|
205
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000580_source')" id="l_M000580_source">+</a> ]</p>
|
206
|
+
<div id="M000580_source" class="dyn-source">
|
207
207
|
<pre>
|
208
208
|
<span class="ruby-comment cmt"># File lib/more/facets/timer.rb, line 171</span>
|
209
209
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">defuse</span>
|
@@ -218,16 +218,16 @@ Kill time <a href="Timer.html#M000577">limit</a> thread, if any.
|
|
218
218
|
</div>
|
219
219
|
<div class="method">
|
220
220
|
<div class="title">
|
221
|
-
<a name="
|
221
|
+
<a name="M000579"></a><b>limit</b>( time_limit=nil )
|
222
222
|
</div>
|
223
223
|
<div class="description">
|
224
224
|
<p>
|
225
|
-
Establish a time <a href="Timer.html#
|
225
|
+
Establish a time <a href="Timer.html#M000579">limit</a> on execution.
|
226
226
|
</p>
|
227
227
|
</div>
|
228
228
|
<div class="sourcecode">
|
229
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
230
|
-
<div id="
|
229
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000579_source')" id="l_M000579_source">+</a> ]</p>
|
230
|
+
<div id="M000579_source" class="dyn-source">
|
231
231
|
<pre>
|
232
232
|
<span class="ruby-comment cmt"># File lib/more/facets/timer.rb, line 155</span>
|
233
233
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">limit</span>( <span class="ruby-identifier">time_limit</span>=<span class="ruby-keyword kw">nil</span> )
|
@@ -249,11 +249,11 @@ Establish a time <a href="Timer.html#M000577">limit</a> on execution.
|
|
249
249
|
</div>
|
250
250
|
<div class="method">
|
251
251
|
<div class="title">
|
252
|
-
<a name="
|
252
|
+
<a name="M000577"></a><b>on_timeout</b>( &block )
|
253
253
|
</div>
|
254
254
|
<div class="sourcecode">
|
255
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
256
|
-
<div id="
|
255
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000577_source')" id="l_M000577_source">+</a> ]</p>
|
256
|
+
<div id="M000577_source" class="dyn-source">
|
257
257
|
<pre>
|
258
258
|
<span class="ruby-comment cmt"># File lib/more/facets/timer.rb, line 123</span>
|
259
259
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">on_timeout</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">block</span> )
|
@@ -270,7 +270,7 @@ Establish a time <a href="Timer.html#M000577">limit</a> on execution.
|
|
270
270
|
</div>
|
271
271
|
<div class="method">
|
272
272
|
<div class="title">
|
273
|
-
<a name="
|
273
|
+
<a name="M000582"></a><b>reset</b>()
|
274
274
|
</div>
|
275
275
|
<div class="description">
|
276
276
|
<p>
|
@@ -279,8 +279,8 @@ time. If not returns 0.
|
|
279
279
|
</p>
|
280
280
|
</div>
|
281
281
|
<div class="sourcecode">
|
282
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
283
|
-
<div id="
|
282
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000582_source')" id="l_M000582_source">+</a> ]</p>
|
283
|
+
<div id="M000582_source" class="dyn-source">
|
284
284
|
<pre>
|
285
285
|
<span class="ruby-comment cmt"># File lib/more/facets/timer.rb, line 196</span>
|
286
286
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset</span>
|
@@ -298,11 +298,11 @@ time. If not returns 0.
|
|
298
298
|
</div>
|
299
299
|
<div class="method">
|
300
300
|
<div class="title">
|
301
|
-
<a name="
|
301
|
+
<a name="M000583"></a><b>reset_limit</b>()
|
302
302
|
</div>
|
303
303
|
<div class="description">
|
304
304
|
<p>
|
305
|
-
Resets the time <a href="Timer.html#
|
305
|
+
Resets the time <a href="Timer.html#M000579">limit</a>. Same as:
|
306
306
|
</p>
|
307
307
|
<pre>
|
308
308
|
t.stop
|
@@ -310,8 +310,8 @@ Resets the time <a href="Timer.html#M000577">limit</a>. Same as:
|
|
310
310
|
</pre>
|
311
311
|
</div>
|
312
312
|
<div class="sourcecode">
|
313
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
314
|
-
<div id="
|
313
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000583_source')" id="l_M000583_source">+</a> ]</p>
|
314
|
+
<div id="M000583_source" class="dyn-source">
|
315
315
|
<pre>
|
316
316
|
<span class="ruby-comment cmt"># File lib/more/facets/timer.rb, line 212</span>
|
317
317
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset_limit</span>
|
@@ -326,7 +326,7 @@ Resets the time <a href="Timer.html#M000577">limit</a>. Same as:
|
|
326
326
|
</div>
|
327
327
|
<div class="method">
|
328
328
|
<div class="title">
|
329
|
-
<a name="
|
329
|
+
<a name="M000584"></a><b>running?</b>()
|
330
330
|
</div>
|
331
331
|
<div class="description">
|
332
332
|
<p>
|
@@ -334,8 +334,8 @@ Queries whether the timer is still running.
|
|
334
334
|
</p>
|
335
335
|
</div>
|
336
336
|
<div class="sourcecode">
|
337
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
338
|
-
<div id="
|
337
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000584_source')" id="l_M000584_source">+</a> ]</p>
|
338
|
+
<div id="M000584_source" class="dyn-source">
|
339
339
|
<pre>
|
340
340
|
<span class="ruby-comment cmt"># File lib/more/facets/timer.rb, line 221</span>
|
341
341
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">running?</span>
|
@@ -347,7 +347,7 @@ Queries whether the timer is still running.
|
|
347
347
|
</div>
|
348
348
|
<div class="method">
|
349
349
|
<div class="title">
|
350
|
-
<a name="
|
350
|
+
<a name="M000578"></a><b>start</b>()
|
351
351
|
</div>
|
352
352
|
<div class="description">
|
353
353
|
<p>
|
@@ -355,8 +355,8 @@ Start the timer.
|
|
355
355
|
</p>
|
356
356
|
</div>
|
357
357
|
<div class="sourcecode">
|
358
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
359
|
-
<div id="
|
358
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000578_source')" id="l_M000578_source">+</a> ]</p>
|
359
|
+
<div id="M000578_source" class="dyn-source">
|
360
360
|
<pre>
|
361
361
|
<span class="ruby-comment cmt"># File lib/more/facets/timer.rb, line 134</span>
|
362
362
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start</span>
|
@@ -383,7 +383,7 @@ Start the timer.
|
|
383
383
|
</div>
|
384
384
|
<div class="method">
|
385
385
|
<div class="title">
|
386
|
-
<a name="
|
386
|
+
<a name="M000581"></a><b>stop</b>()
|
387
387
|
</div>
|
388
388
|
<div class="description">
|
389
389
|
<p>
|
@@ -391,8 +391,8 @@ Stops timer and returns total time. If timer was not running returns false.
|
|
391
391
|
</p>
|
392
392
|
</div>
|
393
393
|
<div class="sourcecode">
|
394
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
395
|
-
<div id="
|
394
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000581_source')" id="l_M000581_source">+</a> ]</p>
|
395
|
+
<div id="M000581_source" class="dyn-source">
|
396
396
|
<pre>
|
397
397
|
<span class="ruby-comment cmt"># File lib/more/facets/timer.rb, line 181</span>
|
398
398
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stop</span>
|
@@ -412,7 +412,7 @@ Stops timer and returns total time. If timer was not running returns false.
|
|
412
412
|
</div>
|
413
413
|
<div class="method">
|
414
414
|
<div class="title">
|
415
|
-
<a name="
|
415
|
+
<a name="M000585"></a><b>stopped?</b>()
|
416
416
|
</div>
|
417
417
|
<div class="description">
|
418
418
|
<p>
|
@@ -420,8 +420,8 @@ Queries whether the timer is still not running.
|
|
420
420
|
</p>
|
421
421
|
</div>
|
422
422
|
<div class="sourcecode">
|
423
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
424
|
-
<div id="
|
423
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000585_source')" id="l_M000585_source">+</a> ]</p>
|
424
|
+
<div id="M000585_source" class="dyn-source">
|
425
425
|
<pre>
|
426
426
|
<span class="ruby-comment cmt"># File lib/more/facets/timer.rb, line 227</span>
|
427
427
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stopped?</span>
|
@@ -433,7 +433,7 @@ Queries whether the timer is still not running.
|
|
433
433
|
</div>
|
434
434
|
<div class="method">
|
435
435
|
<div class="title">
|
436
|
-
<a name="
|
436
|
+
<a name="M000586"></a><b>total_time</b>()
|
437
437
|
</div>
|
438
438
|
<div class="description">
|
439
439
|
<p>
|
@@ -441,8 +441,8 @@ Queries total recorded time of timer.
|
|
441
441
|
</p>
|
442
442
|
</div>
|
443
443
|
<div class="sourcecode">
|
444
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
445
|
-
<div id="
|
444
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000586_source')" id="l_M000586_source">+</a> ]</p>
|
445
|
+
<div id="M000586_source" class="dyn-source">
|
446
446
|
<pre>
|
447
447
|
<span class="ruby-comment cmt"># File lib/more/facets/timer.rb, line 233</span>
|
448
448
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">total_time</span>
|
@@ -63,7 +63,7 @@
|
|
63
63
|
<tr>
|
64
64
|
<td>Parent:</td>
|
65
65
|
<td>
|
66
|
-
<a href="../Memoizer.html#
|
66
|
+
<a href="../Memoizer.html#M000702">
|
67
67
|
self
|
68
68
|
</a>
|
69
69
|
</td>
|
@@ -86,8 +86,8 @@ href="../Timer.html">Timer</a> (i.e. no real time limit)
|
|
86
86
|
|
87
87
|
|
88
88
|
<div class="sectiontitle">Methods</div>
|
89
|
-
<span style="padding-right: 5px;"><a href="#
|
90
|
-
<span style="padding-right: 5px;"><a href="#
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000587">start</a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M000588">stop</a></span>
|
91
91
|
|
92
92
|
|
93
93
|
|
@@ -97,11 +97,11 @@ href="../Timer.html">Timer</a> (i.e. no real time limit)
|
|
97
97
|
<div class="sectiontitle">Public Instance methods</div>
|
98
98
|
<div class="method">
|
99
99
|
<div class="title">
|
100
|
-
<a name="
|
100
|
+
<a name="M000587"></a><b>start</b>() {|| ...}
|
101
101
|
</div>
|
102
102
|
<div class="sourcecode">
|
103
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
104
|
-
<div id="
|
103
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000587_source')" id="l_M000587_source">+</a> ]</p>
|
104
|
+
<div id="M000587_source" class="dyn-source">
|
105
105
|
<pre>
|
106
106
|
<span class="ruby-comment cmt"># File lib/more/facets/timer.rb, line 248</span>
|
107
107
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start</span>
|
@@ -117,11 +117,11 @@ href="../Timer.html">Timer</a> (i.e. no real time limit)
|
|
117
117
|
</div>
|
118
118
|
<div class="method">
|
119
119
|
<div class="title">
|
120
|
-
<a name="
|
120
|
+
<a name="M000588"></a><b>stop</b>()
|
121
121
|
</div>
|
122
122
|
<div class="sourcecode">
|
123
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
124
|
-
<div id="
|
123
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000588_source')" id="l_M000588_source">+</a> ]</p>
|
124
|
+
<div id="M000588_source" class="dyn-source">
|
125
125
|
<pre>
|
126
126
|
<span class="ruby-comment cmt"># File lib/more/facets/timer.rb, line 256</span>
|
127
127
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stop</span>
|
@@ -77,11 +77,11 @@ Object
|
|
77
77
|
|
78
78
|
<div class="description"><h1><a href="Tuple.html">Tuple</a></h1>
|
79
79
|
<p>
|
80
|
-
A tuple can be made using <a href="Tuple.html#
|
81
|
-
as one builds an array, or using the <a href="Tuple.html#
|
80
|
+
A tuple can be made using <a href="Tuple.html#M000629">new</a> or #[] just
|
81
|
+
as one builds an array, or using the <a href="Tuple.html#M000633">to_t</a>
|
82
82
|
method on a string or array. With a string tuple remembers the <a
|
83
|
-
href="Tuple.html#
|
84
|
-
<a href="Tuple.html#
|
83
|
+
href="Tuple.html#M000657">first</a> non-alphanumeric character as the tuple
|
84
|
+
<a href="Tuple.html#M000630">divider</a>.
|
85
85
|
</p>
|
86
86
|
<h2>Usage</h2>
|
87
87
|
<pre>
|
@@ -109,46 +109,46 @@ href="Tuple.html">Tuple</a>[‘1’,’2’,’3’].
|
|
109
109
|
|
110
110
|
|
111
111
|
<div class="sectiontitle">Methods</div>
|
112
|
-
<span style="padding-right: 5px;"><a href="#
|
113
|
-
<span style="padding-right: 5px;"><a href="#
|
114
|
-
<span style="padding-right: 5px;"><a href="#
|
115
|
-
<span style="padding-right: 5px;"><a href="#
|
116
|
-
<span style="padding-right: 5px;"><a href="#
|
117
|
-
<span style="padding-right: 5px;"><a href="#
|
118
|
-
<span style="padding-right: 5px;"><a href="#
|
119
|
-
<span style="padding-right: 5px;"><a href="#
|
120
|
-
<span style="padding-right: 5px;"><a href="#
|
121
|
-
<span style="padding-right: 5px;"><a href="#
|
122
|
-
<span style="padding-right: 5px;"><a href="#
|
123
|
-
<span style="padding-right: 5px;"><a href="#
|
124
|
-
<span style="padding-right: 5px;"><a href="#
|
125
|
-
<span style="padding-right: 5px;"><a href="#
|
126
|
-
<span style="padding-right: 5px;"><a href="#
|
127
|
-
<span style="padding-right: 5px;"><a href="#
|
128
|
-
<span style="padding-right: 5px;"><a href="#
|
129
|
-
<span style="padding-right: 5px;"><a href="#
|
130
|
-
<span style="padding-right: 5px;"><a href="#
|
131
|
-
<span style="padding-right: 5px;"><a href="#
|
132
|
-
<span style="padding-right: 5px;"><a href="#
|
133
|
-
<span style="padding-right: 5px;"><a href="#
|
134
|
-
<span style="padding-right: 5px;"><a href="#
|
135
|
-
<span style="padding-right: 5px;"><a href="#
|
136
|
-
<span style="padding-right: 5px;"><a href="#
|
137
|
-
<span style="padding-right: 5px;"><a href="#
|
138
|
-
<span style="padding-right: 5px;"><a href="#
|
139
|
-
<span style="padding-right: 5px;"><a href="#
|
140
|
-
<span style="padding-right: 5px;"><a href="#
|
141
|
-
<span style="padding-right: 5px;"><a href="#
|
142
|
-
<span style="padding-right: 5px;"><a href="#
|
143
|
-
<span style="padding-right: 5px;"><a href="#
|
144
|
-
<span style="padding-right: 5px;"><a href="#
|
145
|
-
<span style="padding-right: 5px;"><a href="#
|
146
|
-
<span style="padding-right: 5px;"><a href="#
|
147
|
-
<span style="padding-right: 5px;"><a href="#
|
148
|
-
<span style="padding-right: 5px;"><a href="#
|
149
|
-
<span style="padding-right: 5px;"><a href="#
|
150
|
-
<span style="padding-right: 5px;"><a href="#
|
151
|
-
<span style="padding-right: 5px;"><a href="#
|
112
|
+
<span style="padding-right: 5px;"><a href="#M000647"><<</a></span>
|
113
|
+
<span style="padding-right: 5px;"><a href="#M000655"><=></a></span>
|
114
|
+
<span style="padding-right: 5px;"><a href="#M000656">=~</a></span>
|
115
|
+
<span style="padding-right: 5px;"><a href="#M000643">[]</a></span>
|
116
|
+
<span style="padding-right: 5px;"><a href="#M000663">[]</a></span>
|
117
|
+
<span style="padding-right: 5px;"><a href="#M000644">[]=</a></span>
|
118
|
+
<span style="padding-right: 5px;"><a href="#M000665">cast_from_array</a></span>
|
119
|
+
<span style="padding-right: 5px;"><a href="#M000664">cast_from_string</a></span>
|
120
|
+
<span style="padding-right: 5px;"><a href="#M000666">constraint_to_lambda</a></span>
|
121
|
+
<span style="padding-right: 5px;"><a href="#M000630">divider</a></span>
|
122
|
+
<span style="padding-right: 5px;"><a href="#M000641">each</a></span>
|
123
|
+
<span style="padding-right: 5px;"><a href="#M000642">each_index</a></span>
|
124
|
+
<span style="padding-right: 5px;"><a href="#M000640">empty?</a></span>
|
125
|
+
<span style="padding-right: 5px;"><a href="#M000654">eql?</a></span>
|
126
|
+
<span style="padding-right: 5px;"><a href="#M000657">first</a></span>
|
127
|
+
<span style="padding-right: 5px;"><a href="#M000662">hash</a></span>
|
128
|
+
<span style="padding-right: 5px;"><a href="#M000645">index</a></span>
|
129
|
+
<span style="padding-right: 5px;"><a href="#M000632">inspect</a></span>
|
130
|
+
<span style="padding-right: 5px;"><a href="#M000658">last</a></span>
|
131
|
+
<span style="padding-right: 5px;"><a href="#M000639">length</a></span>
|
132
|
+
<span style="padding-right: 5px;"><a href="#M000659">major</a></span>
|
133
|
+
<span style="padding-right: 5px;"><a href="#M000660">minor</a></span>
|
134
|
+
<span style="padding-right: 5px;"><a href="#M000628">multiton_id</a></span>
|
135
|
+
<span style="padding-right: 5px;"><a href="#M000629">new</a></span>
|
136
|
+
<span style="padding-right: 5px;"><a href="#M000667">parse_constraint</a></span>
|
137
|
+
<span style="padding-right: 5px;"><a href="#M000648">pop</a></span>
|
138
|
+
<span style="padding-right: 5px;"><a href="#M000651">pot</a></span>
|
139
|
+
<span style="padding-right: 5px;"><a href="#M000650">pull</a></span>
|
140
|
+
<span style="padding-right: 5px;"><a href="#M000649">push</a></span>
|
141
|
+
<span style="padding-right: 5px;"><a href="#M000646">rindex</a></span>
|
142
|
+
<span style="padding-right: 5px;"><a href="#M000653">shift</a></span>
|
143
|
+
<span style="padding-right: 5px;"><a href="#M000638">size</a></span>
|
144
|
+
<span style="padding-right: 5px;"><a href="#M000661">teeny</a></span>
|
145
|
+
<span style="padding-right: 5px;"><a href="#M000635">to_a</a></span>
|
146
|
+
<span style="padding-right: 5px;"><a href="#M000636">to_ary</a></span>
|
147
|
+
<span style="padding-right: 5px;"><a href="#M000637">to_s</a></span>
|
148
|
+
<span style="padding-right: 5px;"><a href="#M000633">to_t</a></span>
|
149
|
+
<span style="padding-right: 5px;"><a href="#M000634">to_tuple</a></span>
|
150
|
+
<span style="padding-right: 5px;"><a href="#M000652">unshift</a></span>
|
151
|
+
<span style="padding-right: 5px;"><a href="#M000631">values</a></span>
|
152
152
|
|
153
153
|
<div class="sectiontitle">Included Modules</div>
|
154
154
|
<ul>
|
@@ -174,11 +174,11 @@ href="Tuple.html">Tuple</a>[‘1’,’2’,’3’].
|
|
174
174
|
<div class="sectiontitle">Public Class methods</div>
|
175
175
|
<div class="method">
|
176
176
|
<div class="title">
|
177
|
-
<a name="
|
177
|
+
<a name="M000663"></a><b>[]</b>( *args )
|
178
178
|
</div>
|
179
179
|
<div class="sourcecode">
|
180
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
181
|
-
<div id="
|
180
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000663_source')" id="l_M000663_source">+</a> ]</p>
|
181
|
+
<div id="M000663_source" class="dyn-source">
|
182
182
|
<pre>
|
183
183
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 226</span>
|
184
184
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">args</span> )
|
@@ -190,11 +190,11 @@ href="Tuple.html">Tuple</a>[‘1’,’2’,’3’].
|
|
190
190
|
</div>
|
191
191
|
<div class="method">
|
192
192
|
<div class="title">
|
193
|
-
<a name="
|
193
|
+
<a name="M000665"></a><b>cast_from_array</b>( arr )
|
194
194
|
</div>
|
195
195
|
<div class="sourcecode">
|
196
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
197
|
-
<div id="
|
196
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000665_source')" id="l_M000665_source">+</a> ]</p>
|
197
|
+
<div id="M000665_source" class="dyn-source">
|
198
198
|
<pre>
|
199
199
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 257</span>
|
200
200
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cast_from_array</span>( <span class="ruby-identifier">arr</span> )
|
@@ -206,13 +206,13 @@ href="Tuple.html">Tuple</a>[‘1’,’2’,’3’].
|
|
206
206
|
</div>
|
207
207
|
<div class="method">
|
208
208
|
<div class="title">
|
209
|
-
<a name="
|
209
|
+
<a name="M000664"></a><b>cast_from_string</b>( str, &yld )
|
210
210
|
</div>
|
211
211
|
<div class="description">
|
212
212
|
<p>
|
213
213
|
Translates a string in the form on a set of numerical and/or alphanumerical
|
214
214
|
characters separated by non-word characters (eg \W+) into a <a
|
215
|
-
href="Tuple.html">Tuple</a>. The <a href="Tuple.html#
|
215
|
+
href="Tuple.html">Tuple</a>. The <a href="Tuple.html#M000631">values</a> of
|
216
216
|
the tuple will be converted to integers if they are purely numerical.
|
217
217
|
</p>
|
218
218
|
<pre>
|
@@ -220,7 +220,7 @@ the tuple will be converted to integers if they are purely numerical.
|
|
220
220
|
</pre>
|
221
221
|
<p>
|
222
222
|
<a href="It.html">It</a> you would like to control the interpretation of <a
|
223
|
-
href="Tuple.html#
|
223
|
+
href="Tuple.html#M000641">each</a> value as it is added to the tuple you
|
224
224
|
can supply a block.
|
225
225
|
</p>
|
226
226
|
<pre>
|
@@ -231,8 +231,8 @@ This method is called by String#to_t.
|
|
231
231
|
</p>
|
232
232
|
</div>
|
233
233
|
<div class="sourcecode">
|
234
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
235
|
-
<div id="
|
234
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000664_source')" id="l_M000664_source">+</a> ]</p>
|
235
|
+
<div id="M000664_source" class="dyn-source">
|
236
236
|
<pre>
|
237
237
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 244</span>
|
238
238
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cast_from_string</span>( <span class="ruby-identifier">str</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span> )
|
@@ -251,7 +251,7 @@ This method is called by String#to_t.
|
|
251
251
|
</div>
|
252
252
|
<div class="method">
|
253
253
|
<div class="title">
|
254
|
-
<a name="
|
254
|
+
<a name="M000666"></a><b>constraint_to_lambda</b>( constraint, &yld )
|
255
255
|
</div>
|
256
256
|
<div class="description">
|
257
257
|
<p>
|
@@ -259,8 +259,8 @@ Parses a constraint returning the operation as a lambda.
|
|
259
259
|
</p>
|
260
260
|
</div>
|
261
261
|
<div class="sourcecode">
|
262
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
263
|
-
<div id="
|
262
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000666_source')" id="l_M000666_source">+</a> ]</p>
|
263
|
+
<div id="M000666_source" class="dyn-source">
|
264
264
|
<pre>
|
265
265
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 263</span>
|
266
266
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">constraint_to_lambda</span>( <span class="ruby-identifier">constraint</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span> )
|
@@ -273,11 +273,11 @@ Parses a constraint returning the operation as a lambda.
|
|
273
273
|
</div>
|
274
274
|
<div class="method">
|
275
275
|
<div class="title">
|
276
|
-
<a name="
|
276
|
+
<a name="M000628"></a><b>multiton_id</b>(arg=0, default=0, &block)
|
277
277
|
</div>
|
278
278
|
<div class="sourcecode">
|
279
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
280
|
-
<div id="
|
279
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000628_source')" id="l_M000628_source">+</a> ]</p>
|
280
|
+
<div id="M000628_source" class="dyn-source">
|
281
281
|
<pre>
|
282
282
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 83</span>
|
283
283
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">multiton_id</span>(<span class="ruby-identifier">arg</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">default</span>=<span class="ruby-value">0</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -297,11 +297,11 @@ Parses a constraint returning the operation as a lambda.
|
|
297
297
|
</div>
|
298
298
|
<div class="method">
|
299
299
|
<div class="title">
|
300
|
-
<a name="
|
300
|
+
<a name="M000629"></a><b>new</b>(arg=0, default=0, &blk)
|
301
301
|
</div>
|
302
302
|
<div class="sourcecode">
|
303
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
304
|
-
<div id="
|
303
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000629_source')" id="l_M000629_source">+</a> ]</p>
|
304
|
+
<div id="M000629_source" class="dyn-source">
|
305
305
|
<pre>
|
306
306
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 95</span>
|
307
307
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">arg</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">default</span>=<span class="ruby-value">0</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -322,11 +322,11 @@ Parses a constraint returning the operation as a lambda.
|
|
322
322
|
</div>
|
323
323
|
<div class="method">
|
324
324
|
<div class="title">
|
325
|
-
<a name="
|
325
|
+
<a name="M000667"></a><b>parse_constraint</b>( constraint, &yld )
|
326
326
|
</div>
|
327
327
|
<div class="sourcecode">
|
328
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
329
|
-
<div id="
|
328
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000667_source')" id="l_M000667_source">+</a> ]</p>
|
329
|
+
<div id="M000667_source" class="dyn-source">
|
330
330
|
<pre>
|
331
331
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 268</span>
|
332
332
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_constraint</span>( <span class="ruby-identifier">constraint</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span> )
|
@@ -353,7 +353,7 @@ Parses a constraint returning the operation as a lambda.
|
|
353
353
|
<div class="sectiontitle">Public Instance methods</div>
|
354
354
|
<div class="method">
|
355
355
|
<div class="title">
|
356
|
-
<a name="
|
356
|
+
<a name="M000647"></a><b><<</b>( obj )
|
357
357
|
</div>
|
358
358
|
<div class="description">
|
359
359
|
<p>
|
@@ -362,8 +362,8 @@ becuase <a href="Tuple.html">Tuple</a>‘s are immutable.
|
|
362
362
|
</p>
|
363
363
|
</div>
|
364
364
|
<div class="sourcecode">
|
365
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
366
|
-
<div id="
|
365
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000647_source')" id="l_M000647_source">+</a> ]</p>
|
366
|
+
<div id="M000647_source" class="dyn-source">
|
367
367
|
<pre>
|
368
368
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 164</span>
|
369
369
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>( <span class="ruby-identifier">obj</span> )
|
@@ -375,11 +375,11 @@ becuase <a href="Tuple.html">Tuple</a>‘s are immutable.
|
|
375
375
|
</div>
|
376
376
|
<div class="method">
|
377
377
|
<div class="title">
|
378
|
-
<a name="
|
378
|
+
<a name="M000655"></a><b><=></b>( other )
|
379
379
|
</div>
|
380
380
|
<div class="sourcecode">
|
381
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
382
|
-
<div id="
|
381
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000655_source')" id="l_M000655_source">+</a> ]</p>
|
382
|
+
<div id="M000655_source" class="dyn-source">
|
383
383
|
<pre>
|
384
384
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 190</span>
|
385
385
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><=></span>( <span class="ruby-identifier">other</span> )
|
@@ -396,7 +396,7 @@ becuase <a href="Tuple.html">Tuple</a>‘s are immutable.
|
|
396
396
|
</div>
|
397
397
|
<div class="method">
|
398
398
|
<div class="title">
|
399
|
-
<a name="
|
399
|
+
<a name="M000656"></a><b>=~</b>( other )
|
400
400
|
</div>
|
401
401
|
<div class="description">
|
402
402
|
<p>
|
@@ -404,8 +404,8 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
404
404
|
</p>
|
405
405
|
</div>
|
406
406
|
<div class="sourcecode">
|
407
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
408
|
-
<div id="
|
407
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000656_source')" id="l_M000656_source">+</a> ]</p>
|
408
|
+
<div id="M000656_source" class="dyn-source">
|
409
409
|
<pre>
|
410
410
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 200</span>
|
411
411
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">=~</span>( <span class="ruby-identifier">other</span> )
|
@@ -420,11 +420,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
420
420
|
</div>
|
421
421
|
<div class="method">
|
422
422
|
<div class="title">
|
423
|
-
<a name="
|
423
|
+
<a name="M000643"></a><b>[]</b>(i)
|
424
424
|
</div>
|
425
425
|
<div class="sourcecode">
|
426
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
427
|
-
<div id="
|
426
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000643_source')" id="l_M000643_source">+</a> ]</p>
|
427
|
+
<div id="M000643_source" class="dyn-source">
|
428
428
|
<pre>
|
429
429
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 151</span>
|
430
430
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">i</span>)
|
@@ -436,11 +436,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
436
436
|
</div>
|
437
437
|
<div class="method">
|
438
438
|
<div class="title">
|
439
|
-
<a name="
|
439
|
+
<a name="M000644"></a><b>[]=</b>(i,v)
|
440
440
|
</div>
|
441
441
|
<div class="sourcecode">
|
442
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
443
|
-
<div id="
|
442
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000644_source')" id="l_M000644_source">+</a> ]</p>
|
443
|
+
<div id="M000644_source" class="dyn-source">
|
444
444
|
<pre>
|
445
445
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 155</span>
|
446
446
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">i</span>,<span class="ruby-identifier">v</span>)
|
@@ -452,11 +452,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
452
452
|
</div>
|
453
453
|
<div class="method">
|
454
454
|
<div class="title">
|
455
|
-
<a name="
|
455
|
+
<a name="M000630"></a><b>divider</b>( set=nil )
|
456
456
|
</div>
|
457
457
|
<div class="sourcecode">
|
458
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
459
|
-
<div id="
|
458
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000630_source')" id="l_M000630_source">+</a> ]</p>
|
459
|
+
<div id="M000630_source" class="dyn-source">
|
460
460
|
<pre>
|
461
461
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 110</span>
|
462
462
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divider</span>( <span class="ruby-identifier">set</span>=<span class="ruby-keyword kw">nil</span> )
|
@@ -470,11 +470,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
470
470
|
</div>
|
471
471
|
<div class="method">
|
472
472
|
<div class="title">
|
473
|
-
<a name="
|
473
|
+
<a name="M000641"></a><b>each</b>( &block )
|
474
474
|
</div>
|
475
475
|
<div class="sourcecode">
|
476
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
477
|
-
<div id="
|
476
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000641_source')" id="l_M000641_source">+</a> ]</p>
|
477
|
+
<div id="M000641_source" class="dyn-source">
|
478
478
|
<pre>
|
479
479
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 143</span>
|
480
480
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">block</span> )
|
@@ -486,11 +486,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
486
486
|
</div>
|
487
487
|
<div class="method">
|
488
488
|
<div class="title">
|
489
|
-
<a name="
|
489
|
+
<a name="M000642"></a><b>each_index</b>( &block )
|
490
490
|
</div>
|
491
491
|
<div class="sourcecode">
|
492
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
493
|
-
<div id="
|
492
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000642_source')" id="l_M000642_source">+</a> ]</p>
|
493
|
+
<div id="M000642_source" class="dyn-source">
|
494
494
|
<pre>
|
495
495
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 147</span>
|
496
496
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_index</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">block</span> )
|
@@ -502,11 +502,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
502
502
|
</div>
|
503
503
|
<div class="method">
|
504
504
|
<div class="title">
|
505
|
-
<a name="
|
505
|
+
<a name="M000640"></a><b>empty?</b>()
|
506
506
|
</div>
|
507
507
|
<div class="sourcecode">
|
508
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
509
|
-
<div id="
|
508
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000640_source')" id="l_M000640_source">+</a> ]</p>
|
509
|
+
<div id="M000640_source" class="dyn-source">
|
510
510
|
<pre>
|
511
511
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 137</span>
|
512
512
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">empty?</span>()
|
@@ -520,7 +520,7 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
520
520
|
</div>
|
521
521
|
<div class="method">
|
522
522
|
<div class="title">
|
523
|
-
<a name="
|
523
|
+
<a name="M000654"></a><b>eql?</b>( other )
|
524
524
|
</div>
|
525
525
|
<div class="description">
|
526
526
|
<p>
|
@@ -528,8 +528,8 @@ Returns true if two tuple references are for the very same tuple.
|
|
528
528
|
</p>
|
529
529
|
</div>
|
530
530
|
<div class="sourcecode">
|
531
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
532
|
-
<div id="
|
531
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000654_source')" id="l_M000654_source">+</a> ]</p>
|
532
|
+
<div id="M000654_source" class="dyn-source">
|
533
533
|
<pre>
|
534
534
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 185</span>
|
535
535
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eql?</span>( <span class="ruby-identifier">other</span> )
|
@@ -542,11 +542,11 @@ Returns true if two tuple references are for the very same tuple.
|
|
542
542
|
</div>
|
543
543
|
<div class="method">
|
544
544
|
<div class="title">
|
545
|
-
<a name="
|
545
|
+
<a name="M000657"></a><b>first</b>()
|
546
546
|
</div>
|
547
547
|
<div class="sourcecode">
|
548
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
549
|
-
<div id="
|
548
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000657_source')" id="l_M000657_source">+</a> ]</p>
|
549
|
+
<div id="M000657_source" class="dyn-source">
|
550
550
|
<pre>
|
551
551
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 207</span>
|
552
552
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">first</span> <span class="ruby-keyword kw">end</span>
|
@@ -556,16 +556,16 @@ Returns true if two tuple references are for the very same tuple.
|
|
556
556
|
</div>
|
557
557
|
<div class="method">
|
558
558
|
<div class="title">
|
559
|
-
<a name="
|
559
|
+
<a name="M000662"></a><b>hash</b>()
|
560
560
|
</div>
|
561
561
|
<div class="description">
|
562
562
|
<p>
|
563
|
-
Unique <a href="Tuple.html#
|
563
|
+
Unique <a href="Tuple.html#M000662">hash</a> value.
|
564
564
|
</p>
|
565
565
|
</div>
|
566
566
|
<div class="sourcecode">
|
567
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
568
|
-
<div id="
|
567
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000662_source')" id="l_M000662_source">+</a> ]</p>
|
568
|
+
<div id="M000662_source" class="dyn-source">
|
569
569
|
<pre>
|
570
570
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 216</span>
|
571
571
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash</span>
|
@@ -579,11 +579,11 @@ Unique <a href="Tuple.html#M000660">hash</a> value.
|
|
579
579
|
</div>
|
580
580
|
<div class="method">
|
581
581
|
<div class="title">
|
582
|
-
<a name="
|
582
|
+
<a name="M000645"></a><b>index</b>()
|
583
583
|
</div>
|
584
584
|
<div class="sourcecode">
|
585
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
586
|
-
<div id="
|
585
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000645_source')" id="l_M000645_source">+</a> ]</p>
|
586
|
+
<div id="M000645_source" class="dyn-source">
|
587
587
|
<pre>
|
588
588
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 159</span>
|
589
589
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">index</span> <span class="ruby-keyword kw">end</span>
|
@@ -593,11 +593,11 @@ Unique <a href="Tuple.html#M000660">hash</a> value.
|
|
593
593
|
</div>
|
594
594
|
<div class="method">
|
595
595
|
<div class="title">
|
596
|
-
<a name="
|
596
|
+
<a name="M000632"></a><b>inspect</b>()
|
597
597
|
</div>
|
598
598
|
<div class="sourcecode">
|
599
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
600
|
-
<div id="
|
599
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000632_source')" id="l_M000632_source">+</a> ]</p>
|
600
|
+
<div id="M000632_source" class="dyn-source">
|
601
601
|
<pre>
|
602
602
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 122</span>
|
603
603
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>() <span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">inspect</span> <span class="ruby-keyword kw">end</span>
|
@@ -607,11 +607,11 @@ Unique <a href="Tuple.html#M000660">hash</a> value.
|
|
607
607
|
</div>
|
608
608
|
<div class="method">
|
609
609
|
<div class="title">
|
610
|
-
<a name="
|
610
|
+
<a name="M000658"></a><b>last</b>()
|
611
611
|
</div>
|
612
612
|
<div class="sourcecode">
|
613
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
614
|
-
<div id="
|
613
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000658_source')" id="l_M000658_source">+</a> ]</p>
|
614
|
+
<div id="M000658_source" class="dyn-source">
|
615
615
|
<pre>
|
616
616
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 208</span>
|
617
617
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">last</span> <span class="ruby-keyword kw">end</span>
|
@@ -621,11 +621,11 @@ Unique <a href="Tuple.html#M000660">hash</a> value.
|
|
621
621
|
</div>
|
622
622
|
<div class="method">
|
623
623
|
<div class="title">
|
624
|
-
<a name="
|
624
|
+
<a name="M000639"></a><b>length</b>()
|
625
625
|
</div>
|
626
626
|
<div class="sourcecode">
|
627
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
628
|
-
<div id="
|
627
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000639_source')" id="l_M000639_source">+</a> ]</p>
|
628
|
+
<div id="M000639_source" class="dyn-source">
|
629
629
|
<pre>
|
630
630
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 135</span>
|
631
631
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">length</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">size</span> <span class="ruby-keyword kw">end</span>
|
@@ -635,7 +635,7 @@ Unique <a href="Tuple.html#M000660">hash</a> value.
|
|
635
635
|
</div>
|
636
636
|
<div class="method">
|
637
637
|
<div class="title">
|
638
|
-
<a name="
|
638
|
+
<a name="M000659"></a><b>major</b>()
|
639
639
|
</div>
|
640
640
|
<div class="description">
|
641
641
|
<p>
|
@@ -643,8 +643,8 @@ These are useful for using a <a href="Tuple.html">Tuple</a> as a version.
|
|
643
643
|
</p>
|
644
644
|
</div>
|
645
645
|
<div class="sourcecode">
|
646
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
647
|
-
<div id="
|
646
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000659_source')" id="l_M000659_source">+</a> ]</p>
|
647
|
+
<div id="M000659_source" class="dyn-source">
|
648
648
|
<pre>
|
649
649
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 211</span>
|
650
650
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">major</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">first</span> <span class="ruby-keyword kw">end</span>
|
@@ -654,11 +654,11 @@ These are useful for using a <a href="Tuple.html">Tuple</a> as a version.
|
|
654
654
|
</div>
|
655
655
|
<div class="method">
|
656
656
|
<div class="title">
|
657
|
-
<a name="
|
657
|
+
<a name="M000660"></a><b>minor</b>()
|
658
658
|
</div>
|
659
659
|
<div class="sourcecode">
|
660
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
661
|
-
<div id="
|
660
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000660_source')" id="l_M000660_source">+</a> ]</p>
|
661
|
+
<div id="M000660_source" class="dyn-source">
|
662
662
|
<pre>
|
663
663
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 212</span>
|
664
664
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">minor</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">at</span>(<span class="ruby-value">1</span>) <span class="ruby-keyword kw">end</span>
|
@@ -668,11 +668,11 @@ These are useful for using a <a href="Tuple.html">Tuple</a> as a version.
|
|
668
668
|
</div>
|
669
669
|
<div class="method">
|
670
670
|
<div class="title">
|
671
|
-
<a name="
|
671
|
+
<a name="M000648"></a><b>pop</b>()
|
672
672
|
</div>
|
673
673
|
<div class="sourcecode">
|
674
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
675
|
-
<div id="
|
674
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000648_source')" id="l_M000648_source">+</a> ]</p>
|
675
|
+
<div id="M000648_source" class="dyn-source">
|
676
676
|
<pre>
|
677
677
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 168</span>
|
678
678
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pop</span>() <span class="ruby-constant">Tuple</span>.<span class="ruby-identifier">instance</span>( <span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">pop</span> ) <span class="ruby-keyword kw">end</span>
|
@@ -682,22 +682,22 @@ These are useful for using a <a href="Tuple.html">Tuple</a> as a version.
|
|
682
682
|
</div>
|
683
683
|
<div class="method">
|
684
684
|
<div class="title">
|
685
|
-
<a name="
|
685
|
+
<a name="M000651"></a><b>pot</b>( obj )
|
686
686
|
</div>
|
687
687
|
<div class="description">
|
688
688
|
<p>
|
689
689
|
Stands for "Put On Top". This method is the opposite of <a
|
690
|
-
href="Tuple.html#
|
691
|
-
href="Tuple.html#
|
690
|
+
href="Tuple.html#M000650">pull</a> and is otherwise known as <a
|
691
|
+
href="Tuple.html#M000652">unshift</a>.
|
692
692
|
</p>
|
693
693
|
</div>
|
694
694
|
<div class="aka">
|
695
695
|
This method is also aliased as
|
696
|
-
<a href="Tuple.html#
|
696
|
+
<a href="Tuple.html#M000652">unshift</a>
|
697
697
|
</div>
|
698
698
|
<div class="sourcecode">
|
699
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
700
|
-
<div id="
|
699
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000651_source')" id="l_M000651_source">+</a> ]</p>
|
700
|
+
<div id="M000651_source" class="dyn-source">
|
701
701
|
<pre>
|
702
702
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 178</span>
|
703
703
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pot</span>( <span class="ruby-identifier">obj</span> ) <span class="ruby-constant">Tuple</span>.<span class="ruby-identifier">instance</span>( <span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">unshift</span>(<span class="ruby-identifier">obj</span>) ) <span class="ruby-keyword kw">end</span>
|
@@ -707,21 +707,21 @@ href="Tuple.html#M000650">unshift</a>.
|
|
707
707
|
</div>
|
708
708
|
<div class="method">
|
709
709
|
<div class="title">
|
710
|
-
<a name="
|
710
|
+
<a name="M000650"></a><b>pull</b>()
|
711
711
|
</div>
|
712
712
|
<div class="description">
|
713
713
|
<p>
|
714
714
|
Pulls a value off the beginning of a tuple. This method is otherwsie known
|
715
|
-
as <a href="Tuple.html#
|
715
|
+
as <a href="Tuple.html#M000653">shift</a>.
|
716
716
|
</p>
|
717
717
|
</div>
|
718
718
|
<div class="aka">
|
719
719
|
This method is also aliased as
|
720
|
-
<a href="Tuple.html#
|
720
|
+
<a href="Tuple.html#M000653">shift</a>
|
721
721
|
</div>
|
722
722
|
<div class="sourcecode">
|
723
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
724
|
-
<div id="
|
723
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000650_source')" id="l_M000650_source">+</a> ]</p>
|
724
|
+
<div id="M000650_source" class="dyn-source">
|
725
725
|
<pre>
|
726
726
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 174</span>
|
727
727
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pull</span>() <span class="ruby-constant">Tuple</span>.<span class="ruby-identifier">instance</span>( <span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">shift</span> ) <span class="ruby-keyword kw">end</span>
|
@@ -731,11 +731,11 @@ as <a href="Tuple.html#M000651">shift</a>.
|
|
731
731
|
</div>
|
732
732
|
<div class="method">
|
733
733
|
<div class="title">
|
734
|
-
<a name="
|
734
|
+
<a name="M000649"></a><b>push</b>( obj )
|
735
735
|
</div>
|
736
736
|
<div class="sourcecode">
|
737
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
738
|
-
<div id="
|
737
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000649_source')" id="l_M000649_source">+</a> ]</p>
|
738
|
+
<div id="M000649_source" class="dyn-source">
|
739
739
|
<pre>
|
740
740
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 170</span>
|
741
741
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span>( <span class="ruby-identifier">obj</span> ) <span class="ruby-constant">Tuple</span>.<span class="ruby-identifier">instance</span>( <span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">obj</span>) ) <span class="ruby-keyword kw">end</span>
|
@@ -745,11 +745,11 @@ as <a href="Tuple.html#M000651">shift</a>.
|
|
745
745
|
</div>
|
746
746
|
<div class="method">
|
747
747
|
<div class="title">
|
748
|
-
<a name="
|
748
|
+
<a name="M000646"></a><b>rindex</b>()
|
749
749
|
</div>
|
750
750
|
<div class="sourcecode">
|
751
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
752
|
-
<div id="
|
751
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000646_source')" id="l_M000646_source">+</a> ]</p>
|
752
|
+
<div id="M000646_source" class="dyn-source">
|
753
753
|
<pre>
|
754
754
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 160</span>
|
755
755
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rindex</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">rindex</span> <span class="ruby-keyword kw">end</span>
|
@@ -759,21 +759,21 @@ as <a href="Tuple.html#M000651">shift</a>.
|
|
759
759
|
</div>
|
760
760
|
<div class="method">
|
761
761
|
<div class="title">
|
762
|
-
<a name="
|
762
|
+
<a name="M000653"></a><b>shift</b>()
|
763
763
|
</div>
|
764
764
|
<div class="description">
|
765
765
|
<p>
|
766
|
-
Alias for <a href="Tuple.html#
|
766
|
+
Alias for <a href="Tuple.html#M000650">pull</a>
|
767
767
|
</p>
|
768
768
|
</div>
|
769
769
|
</div>
|
770
770
|
<div class="method">
|
771
771
|
<div class="title">
|
772
|
-
<a name="
|
772
|
+
<a name="M000638"></a><b>size</b>()
|
773
773
|
</div>
|
774
774
|
<div class="sourcecode">
|
775
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
776
|
-
<div id="
|
775
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000638_source')" id="l_M000638_source">+</a> ]</p>
|
776
|
+
<div id="M000638_source" class="dyn-source">
|
777
777
|
<pre>
|
778
778
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 134</span>
|
779
779
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">size</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">size</span> <span class="ruby-keyword kw">end</span>
|
@@ -783,11 +783,11 @@ Alias for <a href="Tuple.html#M000648">pull</a>
|
|
783
783
|
</div>
|
784
784
|
<div class="method">
|
785
785
|
<div class="title">
|
786
|
-
<a name="
|
786
|
+
<a name="M000661"></a><b>teeny</b>()
|
787
787
|
</div>
|
788
788
|
<div class="sourcecode">
|
789
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
790
|
-
<div id="
|
789
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000661_source')" id="l_M000661_source">+</a> ]</p>
|
790
|
+
<div id="M000661_source" class="dyn-source">
|
791
791
|
<pre>
|
792
792
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 213</span>
|
793
793
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">teeny</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">at</span>(<span class="ruby-value">2</span>) <span class="ruby-keyword kw">end</span>
|
@@ -797,11 +797,11 @@ Alias for <a href="Tuple.html#M000648">pull</a>
|
|
797
797
|
</div>
|
798
798
|
<div class="method">
|
799
799
|
<div class="title">
|
800
|
-
<a name="
|
800
|
+
<a name="M000635"></a><b>to_a</b>()
|
801
801
|
</div>
|
802
802
|
<div class="sourcecode">
|
803
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
804
|
-
<div id="
|
803
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000635_source')" id="l_M000635_source">+</a> ]</p>
|
804
|
+
<div id="M000635_source" class="dyn-source">
|
805
805
|
<pre>
|
806
806
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 127</span>
|
807
807
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span>() <span class="ruby-constant">Array</span>(<span class="ruby-ivar">@values</span>) <span class="ruby-keyword kw">end</span>
|
@@ -811,11 +811,11 @@ Alias for <a href="Tuple.html#M000648">pull</a>
|
|
811
811
|
</div>
|
812
812
|
<div class="method">
|
813
813
|
<div class="title">
|
814
|
-
<a name="
|
814
|
+
<a name="M000636"></a><b>to_ary</b>()
|
815
815
|
</div>
|
816
816
|
<div class="sourcecode">
|
817
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
818
|
-
<div id="
|
817
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000636_source')" id="l_M000636_source">+</a> ]</p>
|
818
|
+
<div id="M000636_source" class="dyn-source">
|
819
819
|
<pre>
|
820
820
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 128</span>
|
821
821
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_ary</span>() <span class="ruby-constant">Array</span>(<span class="ruby-ivar">@values</span>) <span class="ruby-keyword kw">end</span>
|
@@ -825,11 +825,11 @@ Alias for <a href="Tuple.html#M000648">pull</a>
|
|
825
825
|
</div>
|
826
826
|
<div class="method">
|
827
827
|
<div class="title">
|
828
|
-
<a name="
|
828
|
+
<a name="M000637"></a><b>to_s</b>( divider=nil )
|
829
829
|
</div>
|
830
830
|
<div class="sourcecode">
|
831
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
832
|
-
<div id="
|
831
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000637_source')" id="l_M000637_source">+</a> ]</p>
|
832
|
+
<div id="M000637_source" class="dyn-source">
|
833
833
|
<pre>
|
834
834
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 130</span>
|
835
835
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>( <span class="ruby-identifier">divider</span>=<span class="ruby-keyword kw">nil</span> )
|
@@ -841,11 +841,11 @@ Alias for <a href="Tuple.html#M000648">pull</a>
|
|
841
841
|
</div>
|
842
842
|
<div class="method">
|
843
843
|
<div class="title">
|
844
|
-
<a name="
|
844
|
+
<a name="M000633"></a><b>to_t</b>()
|
845
845
|
</div>
|
846
846
|
<div class="sourcecode">
|
847
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
848
|
-
<div id="
|
847
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000633_source')" id="l_M000633_source">+</a> ]</p>
|
848
|
+
<div id="M000633_source" class="dyn-source">
|
849
849
|
<pre>
|
850
850
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 124</span>
|
851
851
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_t</span>() <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">end</span>
|
@@ -855,11 +855,11 @@ Alias for <a href="Tuple.html#M000648">pull</a>
|
|
855
855
|
</div>
|
856
856
|
<div class="method">
|
857
857
|
<div class="title">
|
858
|
-
<a name="
|
858
|
+
<a name="M000634"></a><b>to_tuple</b>()
|
859
859
|
</div>
|
860
860
|
<div class="sourcecode">
|
861
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
862
|
-
<div id="
|
861
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000634_source')" id="l_M000634_source">+</a> ]</p>
|
862
|
+
<div id="M000634_source" class="dyn-source">
|
863
863
|
<pre>
|
864
864
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 125</span>
|
865
865
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_tuple</span>() <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">end</span>
|
@@ -869,22 +869,22 @@ Alias for <a href="Tuple.html#M000648">pull</a>
|
|
869
869
|
</div>
|
870
870
|
<div class="method">
|
871
871
|
<div class="title">
|
872
|
-
<a name="
|
872
|
+
<a name="M000652"></a><b>unshift</b>( obj )
|
873
873
|
</div>
|
874
874
|
<div class="description">
|
875
875
|
<p>
|
876
|
-
Alias for <a href="Tuple.html#
|
876
|
+
Alias for <a href="Tuple.html#M000651">pot</a>
|
877
877
|
</p>
|
878
878
|
</div>
|
879
879
|
</div>
|
880
880
|
<div class="sectiontitle">Protected Instance methods</div>
|
881
881
|
<div class="method">
|
882
882
|
<div class="title">
|
883
|
-
<a name="
|
883
|
+
<a name="M000631"></a><b>values</b>()
|
884
884
|
</div>
|
885
885
|
<div class="sourcecode">
|
886
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
887
|
-
<div id="
|
886
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000631_source')" id="l_M000631_source">+</a> ]</p>
|
887
|
+
<div id="M000631_source" class="dyn-source">
|
888
888
|
<pre>
|
889
889
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 118</span>
|
890
890
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">values</span>() <span class="ruby-ivar">@values</span> <span class="ruby-keyword kw">end</span>
|