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
@@ -76,17 +76,17 @@
|
|
76
76
|
|
77
77
|
|
78
78
|
<div class="sectiontitle">Methods</div>
|
79
|
-
<span style="padding-right: 5px;"><a href="#
|
80
|
-
<span style="padding-right: 5px;"><a href="#
|
81
|
-
<span style="padding-right: 5px;"><a href="#
|
82
|
-
<span style="padding-right: 5px;"><a href="#
|
83
|
-
<span style="padding-right: 5px;"><a href="#
|
84
|
-
<span style="padding-right: 5px;"><a href="#
|
85
|
-
<span style="padding-right: 5px;"><a href="#
|
86
|
-
<span style="padding-right: 5px;"><a href="#
|
87
|
-
<span style="padding-right: 5px;"><a href="#
|
88
|
-
<span style="padding-right: 5px;"><a href="#
|
89
|
-
<span style="padding-right: 5px;"><a href="#
|
79
|
+
<span style="padding-right: 5px;"><a href="#M000986">elements</a></span>
|
80
|
+
<span style="padding-right: 5px;"><a href="#M000987">elements!</a></span>
|
81
|
+
<span style="padding-right: 5px;"><a href="#M000979">elementwise</a></span>
|
82
|
+
<span style="padding-right: 5px;"><a href="#M000984">every</a></span>
|
83
|
+
<span style="padding-right: 5px;"><a href="#M000985">every!</a></span>
|
84
|
+
<span style="padding-right: 5px;"><a href="#M000980">ewise</a></span>
|
85
|
+
<span style="padding-right: 5px;"><a href="#M000981">filter</a></span>
|
86
|
+
<span style="padding-right: 5px;"><a href="#M000983">per</a></span>
|
87
|
+
<span style="padding-right: 5px;"><a href="#M000977">threaded_map</a></span>
|
88
|
+
<span style="padding-right: 5px;"><a href="#M000978">threaded_map_send</a></span>
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000982">to_elem</a></span>
|
90
90
|
|
91
91
|
|
92
92
|
|
@@ -101,32 +101,32 @@ Class <a href="Enumerable/Enumerator.html" class="link">Enumerable::Enumerator</
|
|
101
101
|
<div class="sectiontitle">Public Instance methods</div>
|
102
102
|
<div class="method">
|
103
103
|
<div class="title">
|
104
|
-
<a name="
|
104
|
+
<a name="M000986"></a><b>elements</b>()
|
105
105
|
</div>
|
106
106
|
<div class="description">
|
107
107
|
<p>
|
108
|
-
Alias for <a href="Enumerable.html#
|
108
|
+
Alias for <a href="Enumerable.html#M000984">every</a>
|
109
109
|
</p>
|
110
110
|
</div>
|
111
111
|
</div>
|
112
112
|
<div class="method">
|
113
113
|
<div class="title">
|
114
|
-
<a name="
|
114
|
+
<a name="M000987"></a><b>elements!</b>()
|
115
115
|
</div>
|
116
116
|
<div class="description">
|
117
117
|
<p>
|
118
|
-
Alias for <a href="Enumerable.html#
|
118
|
+
Alias for <a href="Enumerable.html#M000984">every</a>!
|
119
119
|
</p>
|
120
120
|
</div>
|
121
121
|
</div>
|
122
122
|
<div class="method">
|
123
123
|
<div class="title">
|
124
|
-
<a name="
|
124
|
+
<a name="M000979"></a><b>elementwise</b>(count=1)
|
125
125
|
</div>
|
126
126
|
<div class="description">
|
127
127
|
<p>
|
128
|
-
Returns an <a href="Enumerable.html#
|
129
|
-
designed to make R-like <a href="Enumerable.html#
|
128
|
+
Returns an <a href="Enumerable.html#M000979">elementwise</a> Functor
|
129
|
+
designed to make R-like <a href="Enumerable.html#M000979">elementwise</a>
|
130
130
|
operations possible.
|
131
131
|
</p>
|
132
132
|
<pre>
|
@@ -137,11 +137,11 @@ operations possible.
|
|
137
137
|
</div>
|
138
138
|
<div class="aka">
|
139
139
|
This method is also aliased as
|
140
|
-
<a href="Enumerable.html#
|
140
|
+
<a href="Enumerable.html#M000980">ewise</a>
|
141
141
|
</div>
|
142
142
|
<div class="sourcecode">
|
143
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
144
|
-
<div id="
|
143
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000979_source')" id="l_M000979_source">+</a> ]</p>
|
144
|
+
<div id="M000979_source" class="dyn-source">
|
145
145
|
<pre>
|
146
146
|
<span class="ruby-comment cmt"># File lib/more/facets/elementwise.rb, line 16</span>
|
147
147
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">elementwise</span>(<span class="ruby-identifier">count</span>=<span class="ruby-value">1</span>)
|
@@ -182,12 +182,12 @@ operations possible.
|
|
182
182
|
</div>
|
183
183
|
<div class="method">
|
184
184
|
<div class="title">
|
185
|
-
<a name="
|
185
|
+
<a name="M000984"></a><b>every</b>()
|
186
186
|
</div>
|
187
187
|
<div class="description">
|
188
188
|
<p>
|
189
189
|
Returns an elemental object. This allows you to map a method on to <a
|
190
|
-
href="Enumerable.html#
|
190
|
+
href="Enumerable.html#M000984">every</a> element.
|
191
191
|
</p>
|
192
192
|
<pre>
|
193
193
|
r = [1,2,3].every + 3 #=> [4,5,6]
|
@@ -195,11 +195,11 @@ href="Enumerable.html#M000979">every</a> element.
|
|
195
195
|
</div>
|
196
196
|
<div class="aka">
|
197
197
|
This method is also aliased as
|
198
|
-
<a href="Enumerable.html#
|
198
|
+
<a href="Enumerable.html#M000986">elements</a>
|
199
199
|
</div>
|
200
200
|
<div class="sourcecode">
|
201
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
202
|
-
<div id="
|
201
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000984_source')" id="l_M000984_source">+</a> ]</p>
|
202
|
+
<div id="M000984_source" class="dyn-source">
|
203
203
|
<pre>
|
204
204
|
<span class="ruby-comment cmt"># File lib/more/facets/elementor.rb, line 57</span>
|
205
205
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">every</span>
|
@@ -211,20 +211,20 @@ href="Enumerable.html#M000979">every</a> element.
|
|
211
211
|
</div>
|
212
212
|
<div class="method">
|
213
213
|
<div class="title">
|
214
|
-
<a name="
|
214
|
+
<a name="M000985"></a><b>every!</b>()
|
215
215
|
</div>
|
216
216
|
<div class="description">
|
217
217
|
<p>
|
218
|
-
In place version of <a href="Enumerable.html#
|
218
|
+
In place version of <a href="Enumerable.html#M000984">every</a>.
|
219
219
|
</p>
|
220
220
|
</div>
|
221
221
|
<div class="aka">
|
222
222
|
This method is also aliased as
|
223
|
-
<a href="Enumerable.html#
|
223
|
+
<a href="Enumerable.html#M000987">elements!</a>
|
224
224
|
</div>
|
225
225
|
<div class="sourcecode">
|
226
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
227
|
-
<div id="
|
226
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000985_source')" id="l_M000985_source">+</a> ]</p>
|
227
|
+
<div id="M000985_source" class="dyn-source">
|
228
228
|
<pre>
|
229
229
|
<span class="ruby-comment cmt"># File lib/more/facets/elementor.rb, line 63</span>
|
230
230
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">every!</span>
|
@@ -237,17 +237,17 @@ In place version of <a href="Enumerable.html#M000979">every</a>.
|
|
237
237
|
</div>
|
238
238
|
<div class="method">
|
239
239
|
<div class="title">
|
240
|
-
<a name="
|
240
|
+
<a name="M000980"></a><b>ewise</b>(count=1)
|
241
241
|
</div>
|
242
242
|
<div class="description">
|
243
243
|
<p>
|
244
|
-
Alias for <a href="Enumerable.html#
|
244
|
+
Alias for <a href="Enumerable.html#M000979">elementwise</a>
|
245
245
|
</p>
|
246
246
|
</div>
|
247
247
|
</div>
|
248
248
|
<div class="method">
|
249
249
|
<div class="title">
|
250
|
-
<a name="
|
250
|
+
<a name="M000981"></a><b>filter</b>() {|output, *input| ...}
|
251
251
|
</div>
|
252
252
|
<div class="description">
|
253
253
|
<p>
|
@@ -264,8 +264,8 @@ results to be provided early, and permits working with infinite series.
|
|
264
264
|
</pre>
|
265
265
|
<p>
|
266
266
|
With a block: the block acts as an arbitrary <a
|
267
|
-
href="Enumerable.html#
|
268
|
-
choose to drop <a href="Enumerable.html#
|
267
|
+
href="Enumerable.html#M000981">filter</a> on the data. Unlike map, it can
|
268
|
+
choose to drop <a href="Enumerable.html#M000986">elements</a> from the
|
269
269
|
result, and/or add additional ones. The first object passed to the block is
|
270
270
|
the receiver of the output.
|
271
271
|
</p>
|
@@ -282,8 +282,8 @@ if you just want to output each result and discard it.
|
|
282
282
|
</p>
|
283
283
|
</div>
|
284
284
|
<div class="sourcecode">
|
285
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
286
|
-
<div id="
|
285
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000981_source')" id="l_M000981_source">+</a> ]</p>
|
286
|
+
<div id="M000981_source" class="dyn-source">
|
287
287
|
<pre>
|
288
288
|
<span class="ruby-comment cmt"># File lib/more/facets/filter.rb, line 30</span>
|
289
289
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">filter</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -307,11 +307,11 @@ if you just want to output each result and discard it.
|
|
307
307
|
</div>
|
308
308
|
<div class="method">
|
309
309
|
<div class="title">
|
310
|
-
<a name="
|
310
|
+
<a name="M000983"></a><b>per</b>()
|
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('M000983_source')" id="l_M000983_source">+</a> ]</p>
|
314
|
+
<div id="M000983_source" class="dyn-source">
|
315
315
|
<pre>
|
316
316
|
<span class="ruby-comment cmt"># File lib/more/facets/elementor.rb, line 46</span>
|
317
317
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">per</span>
|
@@ -325,7 +325,7 @@ if you just want to output each result and discard it.
|
|
325
325
|
</div>
|
326
326
|
<div class="method">
|
327
327
|
<div class="title">
|
328
|
-
<a name="
|
328
|
+
<a name="M000977"></a><b>threaded_map</b>( {|| ...}
|
329
329
|
</div>
|
330
330
|
<div class="description">
|
331
331
|
<p>
|
@@ -336,8 +336,8 @@ CREDIT Sean O‘Halpin
|
|
336
336
|
</p>
|
337
337
|
</div>
|
338
338
|
<div class="sourcecode">
|
339
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
340
|
-
<div id="
|
339
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000977_source')" id="l_M000977_source">+</a> ]</p>
|
340
|
+
<div id="M000977_source" class="dyn-source">
|
341
341
|
<pre>
|
342
342
|
<span class="ruby-comment cmt"># File lib/more/facets/thread.rb, line 37</span>
|
343
343
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">threaded_map</span> <span class="ruby-comment cmt">#:yield:</span>
|
@@ -349,7 +349,7 @@ CREDIT Sean O‘Halpin
|
|
349
349
|
</div>
|
350
350
|
<div class="method">
|
351
351
|
<div class="title">
|
352
|
-
<a name="
|
352
|
+
<a name="M000978"></a><b>threaded_map_send</b>(meth, *args, &block)
|
353
353
|
</div>
|
354
354
|
<div class="description">
|
355
355
|
<p>
|
@@ -361,8 +361,8 @@ CREDIT Sean O‘Halpin
|
|
361
361
|
</p>
|
362
362
|
</div>
|
363
363
|
<div class="sourcecode">
|
364
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
365
|
-
<div id="
|
364
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000978_source')" id="l_M000978_source">+</a> ]</p>
|
365
|
+
<div id="M000978_source" class="dyn-source">
|
366
366
|
<pre>
|
367
367
|
<span class="ruby-comment cmt"># File lib/more/facets/thread.rb, line 46</span>
|
368
368
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">threaded_map_send</span>(<span class="ruby-identifier">meth</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -374,7 +374,7 @@ CREDIT Sean O‘Halpin
|
|
374
374
|
</div>
|
375
375
|
<div class="method">
|
376
376
|
<div class="title">
|
377
|
-
<a name="
|
377
|
+
<a name="M000982"></a><b>to_elem</b>(meth=nil)
|
378
378
|
</div>
|
379
379
|
<div class="description">
|
380
380
|
<p>
|
@@ -382,8 +382,8 @@ Create <a href="Enumerable/Elementor.html">Elementor</a>.
|
|
382
382
|
</p>
|
383
383
|
</div>
|
384
384
|
<div class="sourcecode">
|
385
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
386
|
-
<div id="
|
385
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000982_source')" id="l_M000982_source">+</a> ]</p>
|
386
|
+
<div id="M000982_source" class="dyn-source">
|
387
387
|
<pre>
|
388
388
|
<span class="ruby-comment cmt"># File lib/more/facets/elementor.rb, line 42</span>
|
389
389
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_elem</span>(<span class="ruby-identifier">meth</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -85,10 +85,10 @@ applied to it are routed to each element.
|
|
85
85
|
|
86
86
|
|
87
87
|
<div class="sectiontitle">Methods</div>
|
88
|
-
<span style="padding-right: 5px;"><a href="#
|
89
|
-
<span style="padding-right: 5px;"><a href="#
|
90
|
-
<span style="padding-right: 5px;"><a href="#
|
91
|
-
<span style="padding-right: 5px;"><a href="#
|
88
|
+
<span style="padding-right: 5px;"><a href="#M000996">instance_delegate</a></span>
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000997">instance_operator</a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M000998">method_missing</a></span>
|
91
|
+
<span style="padding-right: 5px;"><a href="#M000995">new</a></span>
|
92
92
|
|
93
93
|
|
94
94
|
|
@@ -98,11 +98,11 @@ applied to it are routed to each element.
|
|
98
98
|
<div class="sectiontitle">Public Class methods</div>
|
99
99
|
<div class="method">
|
100
100
|
<div class="title">
|
101
|
-
<a name="
|
101
|
+
<a name="M000995"></a><b>new</b>(elem_object, elem_method=nil)
|
102
102
|
</div>
|
103
103
|
<div class="sourcecode">
|
104
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
105
|
-
<div id="
|
104
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000995_source')" id="l_M000995_source">+</a> ]</p>
|
105
|
+
<div id="M000995_source" class="dyn-source">
|
106
106
|
<pre>
|
107
107
|
<span class="ruby-comment cmt"># File lib/more/facets/elementor.rb, line 101</span>
|
108
108
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">elem_object</span>, <span class="ruby-identifier">elem_method</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -116,11 +116,11 @@ applied to it are routed to each element.
|
|
116
116
|
<div class="sectiontitle">Public Instance methods</div>
|
117
117
|
<div class="method">
|
118
118
|
<div class="title">
|
119
|
-
<a name="
|
119
|
+
<a name="M000996"></a><b>instance_delegate</b>()
|
120
120
|
</div>
|
121
121
|
<div class="sourcecode">
|
122
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
123
|
-
<div id="
|
122
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000996_source')" id="l_M000996_source">+</a> ]</p>
|
123
|
+
<div id="M000996_source" class="dyn-source">
|
124
124
|
<pre>
|
125
125
|
<span class="ruby-comment cmt"># File lib/more/facets/elementor.rb, line 106</span>
|
126
126
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_delegate</span>
|
@@ -132,11 +132,11 @@ applied to it are routed to each element.
|
|
132
132
|
</div>
|
133
133
|
<div class="method">
|
134
134
|
<div class="title">
|
135
|
-
<a name="
|
135
|
+
<a name="M000997"></a><b>instance_operator</b>()
|
136
136
|
</div>
|
137
137
|
<div class="sourcecode">
|
138
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
139
|
-
<div id="
|
138
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000997_source')" id="l_M000997_source">+</a> ]</p>
|
139
|
+
<div id="M000997_source" class="dyn-source">
|
140
140
|
<pre>
|
141
141
|
<span class="ruby-comment cmt"># File lib/more/facets/elementor.rb, line 110</span>
|
142
142
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_operator</span>
|
@@ -148,11 +148,11 @@ applied to it are routed to each element.
|
|
148
148
|
</div>
|
149
149
|
<div class="method">
|
150
150
|
<div class="title">
|
151
|
-
<a name="
|
151
|
+
<a name="M000998"></a><b>method_missing</b>(sym,*args,&blk)
|
152
152
|
</div>
|
153
153
|
<div class="sourcecode">
|
154
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
155
|
-
<div id="
|
154
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000998_source')" id="l_M000998_source">+</a> ]</p>
|
155
|
+
<div id="M000998_source" class="dyn-source">
|
156
156
|
<pre>
|
157
157
|
<span class="ruby-comment cmt"># File lib/more/facets/elementor.rb, line 114</span>
|
158
158
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">sym</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -79,7 +79,7 @@ Object
|
|
79
79
|
|
80
80
|
|
81
81
|
<div class="sectiontitle">Methods</div>
|
82
|
-
<span style="padding-right: 5px;"><a href="#
|
82
|
+
<span style="padding-right: 5px;"><a href="#M000999">to_elem</a></span>
|
83
83
|
|
84
84
|
|
85
85
|
|
@@ -89,7 +89,7 @@ Object
|
|
89
89
|
<div class="sectiontitle">Public Instance methods</div>
|
90
90
|
<div class="method">
|
91
91
|
<div class="title">
|
92
|
-
<a name="
|
92
|
+
<a name="M000999"></a><b>to_elem</b>(meth=nil)
|
93
93
|
</div>
|
94
94
|
<div class="description">
|
95
95
|
<p>
|
@@ -97,8 +97,8 @@ Create <a href="Elementor.html">Elementor</a>.
|
|
97
97
|
</p>
|
98
98
|
</div>
|
99
99
|
<div class="sourcecode">
|
100
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
101
|
-
<div id="
|
100
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000999_source')" id="l_M000999_source">+</a> ]</p>
|
101
|
+
<div id="M000999_source" class="dyn-source">
|
102
102
|
<pre>
|
103
103
|
<span class="ruby-comment cmt"># File lib/more/facets/elementor.rb, line 124</span>
|
104
104
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_elem</span>(<span class="ruby-identifier">meth</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -72,8 +72,8 @@
|
|
72
72
|
<div class="description"><h1><a href="Filterable.html">Filterable</a></h1>
|
73
73
|
<p>
|
74
74
|
Classes which include <a href="Filterable.html">Enumerable::Filterable</a>
|
75
|
-
will get versions of <a href="Filterable.html#
|
76
|
-
href="Filterable.html#
|
75
|
+
will get versions of <a href="Filterable.html#M000988">map</a>, <a
|
76
|
+
href="Filterable.html#M000990">select</a> etc. which return a Filter, so
|
77
77
|
that they work horizontally without creating intermediate arrays.
|
78
78
|
</p>
|
79
79
|
</div>
|
@@ -81,13 +81,13 @@ that they work horizontally without creating intermediate arrays.
|
|
81
81
|
|
82
82
|
|
83
83
|
<div class="sectiontitle">Methods</div>
|
84
|
-
<span style="padding-right: 5px;"><a href="#
|
85
|
-
<span style="padding-right: 5px;"><a href="#
|
86
|
-
<span style="padding-right: 5px;"><a href="#
|
87
|
-
<span style="padding-right: 5px;"><a href="#
|
88
|
-
<span style="padding-right: 5px;"><a href="#
|
89
|
-
<span style="padding-right: 5px;"><a href="#
|
90
|
-
<span style="padding-right: 5px;"><a href="#
|
84
|
+
<span style="padding-right: 5px;"><a href="#M000989">collect</a></span>
|
85
|
+
<span style="padding-right: 5px;"><a href="#M000991">find_all</a></span>
|
86
|
+
<span style="padding-right: 5px;"><a href="#M000988">map</a></span>
|
87
|
+
<span style="padding-right: 5px;"><a href="#M000992">reject</a></span>
|
88
|
+
<span style="padding-right: 5px;"><a href="#M000990">select</a></span>
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000994">skip</a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M000993">take</a></span>
|
91
91
|
|
92
92
|
|
93
93
|
|
@@ -97,35 +97,35 @@ that they work horizontally without creating intermediate arrays.
|
|
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="M000989"></a><b>collect</b>()
|
101
101
|
</div>
|
102
102
|
<div class="description">
|
103
103
|
<p>
|
104
|
-
Alias for <a href="Filterable.html#
|
104
|
+
Alias for <a href="Filterable.html#M000988">map</a>
|
105
105
|
</p>
|
106
106
|
</div>
|
107
107
|
</div>
|
108
108
|
<div class="method">
|
109
109
|
<div class="title">
|
110
|
-
<a name="
|
110
|
+
<a name="M000991"></a><b>find_all</b>()
|
111
111
|
</div>
|
112
112
|
<div class="description">
|
113
113
|
<p>
|
114
|
-
Alias for <a href="Filterable.html#
|
114
|
+
Alias for <a href="Filterable.html#M000990">select</a>
|
115
115
|
</p>
|
116
116
|
</div>
|
117
117
|
</div>
|
118
118
|
<div class="method">
|
119
119
|
<div class="title">
|
120
|
-
<a name="
|
120
|
+
<a name="M000988"></a><b>map</b>() {|*input| ...}
|
121
121
|
</div>
|
122
122
|
<div class="aka">
|
123
123
|
This method is also aliased as
|
124
|
-
<a href="Filterable.html#
|
124
|
+
<a href="Filterable.html#M000989">collect</a>
|
125
125
|
</div>
|
126
126
|
<div class="sourcecode">
|
127
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
128
|
-
<div id="
|
127
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000988_source')" id="l_M000988_source">+</a> ]</p>
|
128
|
+
<div id="M000988_source" class="dyn-source">
|
129
129
|
<pre>
|
130
130
|
<span class="ruby-comment cmt"># File lib/more/facets/filter.rb, line 53</span>
|
131
131
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">map</span>
|
@@ -141,11 +141,11 @@ Alias for <a href="Filterable.html#M000985">select</a>
|
|
141
141
|
</div>
|
142
142
|
<div class="method">
|
143
143
|
<div class="title">
|
144
|
-
<a name="
|
144
|
+
<a name="M000992"></a><b>reject</b>() {|*input| ...}
|
145
145
|
</div>
|
146
146
|
<div class="sourcecode">
|
147
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
148
|
-
<div id="
|
147
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000992_source')" id="l_M000992_source">+</a> ]</p>
|
148
|
+
<div id="M000992_source" class="dyn-source">
|
149
149
|
<pre>
|
150
150
|
<span class="ruby-comment cmt"># File lib/more/facets/filter.rb, line 71</span>
|
151
151
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reject</span>
|
@@ -161,15 +161,15 @@ Alias for <a href="Filterable.html#M000985">select</a>
|
|
161
161
|
</div>
|
162
162
|
<div class="method">
|
163
163
|
<div class="title">
|
164
|
-
<a name="
|
164
|
+
<a name="M000990"></a><b>select</b>() {|*input| ...}
|
165
165
|
</div>
|
166
166
|
<div class="aka">
|
167
167
|
This method is also aliased as
|
168
|
-
<a href="Filterable.html#
|
168
|
+
<a href="Filterable.html#M000991">find_all</a>
|
169
169
|
</div>
|
170
170
|
<div class="sourcecode">
|
171
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
172
|
-
<div id="
|
171
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000990_source')" id="l_M000990_source">+</a> ]</p>
|
172
|
+
<div id="M000990_source" class="dyn-source">
|
173
173
|
<pre>
|
174
174
|
<span class="ruby-comment cmt"># File lib/more/facets/filter.rb, line 62</span>
|
175
175
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select</span>
|
@@ -185,7 +185,7 @@ Alias for <a href="Filterable.html#M000985">select</a>
|
|
185
185
|
</div>
|
186
186
|
<div class="method">
|
187
187
|
<div class="title">
|
188
|
-
<a name="
|
188
|
+
<a name="M000994"></a><b>skip</b>(n)
|
189
189
|
</div>
|
190
190
|
<div class="description">
|
191
191
|
<p>
|
@@ -193,8 +193,8 @@ Skip the first n items in the list
|
|
193
193
|
</p>
|
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('M000994_source')" id="l_M000994_source">+</a> ]</p>
|
197
|
+
<div id="M000994_source" class="dyn-source">
|
198
198
|
<pre>
|
199
199
|
<span class="ruby-comment cmt"># File lib/more/facets/filter.rb, line 94</span>
|
200
200
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">skip</span>(<span class="ruby-identifier">n</span>)
|
@@ -212,7 +212,7 @@ Skip the first n items in the list
|
|
212
212
|
</div>
|
213
213
|
<div class="method">
|
214
214
|
<div class="title">
|
215
|
-
<a name="
|
215
|
+
<a name="M000993"></a><b>take</b>(n)
|
216
216
|
</div>
|
217
217
|
<div class="description">
|
218
218
|
<p>
|
@@ -220,8 +220,8 @@ Limit to the first n items in the list
|
|
220
220
|
</p>
|
221
221
|
</div>
|
222
222
|
<div class="sourcecode">
|
223
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
224
|
-
<div id="
|
223
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000993_source')" id="l_M000993_source">+</a> ]</p>
|
224
|
+
<div id="M000993_source" class="dyn-source">
|
225
225
|
<pre>
|
226
226
|
<span class="ruby-comment cmt"># File lib/more/facets/filter.rb, line 81</span>
|
227
227
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">take</span>(<span class="ruby-identifier">n</span>)
|