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
@@ -85,12 +85,12 @@ with random access data streams.
|
|
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="#
|
92
|
-
<span style="padding-right: 5px;"><a href="#
|
93
|
-
<span style="padding-right: 5px;"><a href="#
|
88
|
+
<span style="padding-right: 5px;"><a href="#M000937">close</a></span>
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000934">each</a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M000936">each_entry</a></span>
|
91
|
+
<span style="padding-right: 5px;"><a href="#M000933">new</a></span>
|
92
|
+
<span style="padding-right: 5px;"><a href="#M000932">open</a></span>
|
93
|
+
<span style="padding-right: 5px;"><a href="#M000935">rewind</a></span>
|
94
94
|
|
95
95
|
|
96
96
|
|
@@ -100,17 +100,17 @@ with random access data streams.
|
|
100
100
|
<div class="sectiontitle">Public Class methods</div>
|
101
101
|
<div class="method">
|
102
102
|
<div class="title">
|
103
|
-
<a name="
|
103
|
+
<a name="M000933"></a><b>new</b>(anIO)
|
104
104
|
</div>
|
105
105
|
<div class="description">
|
106
106
|
<p>
|
107
|
-
Creates and returns a <a href="Reader.html#
|
107
|
+
Creates and returns a <a href="Reader.html#M000933">new</a> <a
|
108
108
|
href="Reader.html">Reader</a> object.
|
109
109
|
</p>
|
110
110
|
</div>
|
111
111
|
<div class="sourcecode">
|
112
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
113
|
-
<div id="
|
112
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000933_source')" id="l_M000933_source">+</a> ]</p>
|
113
|
+
<div id="M000933_source" class="dyn-source">
|
114
114
|
<pre>
|
115
115
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 662</span>
|
116
116
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">anIO</span>)
|
@@ -123,21 +123,21 @@ href="Reader.html">Reader</a> object.
|
|
123
123
|
</div>
|
124
124
|
<div class="method">
|
125
125
|
<div class="title">
|
126
|
-
<a name="
|
126
|
+
<a name="M000932"></a><b>open</b>(anIO) {|reader| ...}
|
127
127
|
</div>
|
128
128
|
<div class="description">
|
129
129
|
<p>
|
130
130
|
With no associated block, +Reader::open+ is a synonym for +Reader::new+. If
|
131
131
|
the optional code block is given, it will be passed the <a
|
132
|
-
href="Reader.html#
|
132
|
+
href="Reader.html#M000933">new</a> <em>writer</em> as an argument and the
|
133
133
|
<a href="Reader.html">Reader</a> object will automatically be closed when
|
134
134
|
the block terminates. In this instance, +Reader::open+ returns the value of
|
135
135
|
the block.
|
136
136
|
</p>
|
137
137
|
</div>
|
138
138
|
<div class="sourcecode">
|
139
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
140
|
-
<div id="
|
139
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000932_source')" id="l_M000932_source">+</a> ]</p>
|
140
|
+
<div id="M000932_source" class="dyn-source">
|
141
141
|
<pre>
|
142
142
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 647</span>
|
143
143
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">anIO</span>)
|
@@ -160,11 +160,11 @@ the block.
|
|
160
160
|
<div class="sectiontitle">Public Instance methods</div>
|
161
161
|
<div class="method">
|
162
162
|
<div class="title">
|
163
|
-
<a name="
|
163
|
+
<a name="M000937"></a><b>close</b>()
|
164
164
|
</div>
|
165
165
|
<div class="sourcecode">
|
166
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
167
|
-
<div id="
|
166
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000937_source')" id="l_M000937_source">+</a> ]</p>
|
167
|
+
<div id="M000937_source" class="dyn-source">
|
168
168
|
<pre>
|
169
169
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 717</span>
|
170
170
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
@@ -175,17 +175,17 @@ the block.
|
|
175
175
|
</div>
|
176
176
|
<div class="method">
|
177
177
|
<div class="title">
|
178
|
-
<a name="
|
178
|
+
<a name="M000934"></a><b>each</b>(&block)
|
179
179
|
</div>
|
180
180
|
<div class="description">
|
181
181
|
<p>
|
182
|
-
Iterates through <a href="Reader.html#
|
182
|
+
Iterates through <a href="Reader.html#M000934">each</a> entry in the data
|
183
183
|
stream.
|
184
184
|
</p>
|
185
185
|
</div>
|
186
186
|
<div class="sourcecode">
|
187
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
188
|
-
<div id="
|
187
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000934_source')" id="l_M000934_source">+</a> ]</p>
|
188
|
+
<div id="M000934_source" class="dyn-source">
|
189
189
|
<pre>
|
190
190
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 668</span>
|
191
191
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -197,17 +197,17 @@ stream.
|
|
197
197
|
</div>
|
198
198
|
<div class="method">
|
199
199
|
<div class="title">
|
200
|
-
<a name="
|
200
|
+
<a name="M000936"></a><b>each_entry</b>() {|entry| ...}
|
201
201
|
</div>
|
202
202
|
<div class="description">
|
203
203
|
<p>
|
204
|
-
Iterates through <a href="Reader.html#
|
204
|
+
Iterates through <a href="Reader.html#M000934">each</a> entry in the data
|
205
205
|
stream.
|
206
206
|
</p>
|
207
207
|
</div>
|
208
208
|
<div class="sourcecode">
|
209
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
210
|
-
<div id="
|
209
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000936_source')" id="l_M000936_source">+</a> ]</p>
|
210
|
+
<div id="M000936_source" class="dyn-source">
|
211
211
|
<pre>
|
212
212
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 686</span>
|
213
213
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_entry</span>
|
@@ -246,20 +246,20 @@ stream.
|
|
246
246
|
</div>
|
247
247
|
<div class="method">
|
248
248
|
<div class="title">
|
249
|
-
<a name="
|
249
|
+
<a name="M000935"></a><b>rewind</b>()
|
250
250
|
</div>
|
251
251
|
<div class="description">
|
252
252
|
<p>
|
253
253
|
Resets the read pointer to the beginning of data stream. Do not call this
|
254
|
-
during a <a href="Reader.html#
|
255
|
-
href="Reader.html#
|
254
|
+
during a <a href="Reader.html#M000934">each</a> or <a
|
255
|
+
href="Reader.html#M000936">each_entry</a> iteration. This only works with
|
256
256
|
random access data streams that respond to <a
|
257
|
-
href="Reader.html#
|
257
|
+
href="Reader.html#M000935">rewind</a> and pos.
|
258
258
|
</p>
|
259
259
|
</div>
|
260
260
|
<div class="sourcecode">
|
261
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
262
|
-
<div id="
|
261
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000935_source')" id="l_M000935_source">+</a> ]</p>
|
262
|
+
<div id="M000935_source" class="dyn-source">
|
263
263
|
<pre>
|
264
264
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 675</span>
|
265
265
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rewind</span>
|
@@ -83,13 +83,13 @@ The class that writes a tar format archive to a data stream.
|
|
83
83
|
|
84
84
|
|
85
85
|
<div class="sectiontitle">Methods</div>
|
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="#
|
91
|
-
<span style="padding-right: 5px;"><a href="#
|
92
|
-
<span style="padding-right: 5px;"><a href="#
|
86
|
+
<span style="padding-right: 5px;"><a href="#M000941">add_file</a></span>
|
87
|
+
<span style="padding-right: 5px;"><a href="#M000940">add_file_simple</a></span>
|
88
|
+
<span style="padding-right: 5px;"><a href="#M000944">close</a></span>
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000943">flush</a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M000942">mkdir</a></span>
|
91
|
+
<span style="padding-right: 5px;"><a href="#M000939">new</a></span>
|
92
|
+
<span style="padding-right: 5px;"><a href="#M000938">open</a></span>
|
93
93
|
|
94
94
|
|
95
95
|
|
@@ -99,17 +99,17 @@ The class that writes a tar format archive to a data stream.
|
|
99
99
|
<div class="sectiontitle">Public Class methods</div>
|
100
100
|
<div class="method">
|
101
101
|
<div class="title">
|
102
|
-
<a name="
|
102
|
+
<a name="M000939"></a><b>new</b>(anIO)
|
103
103
|
</div>
|
104
104
|
<div class="description">
|
105
105
|
<p>
|
106
|
-
Creates and returns a <a href="Writer.html#
|
106
|
+
Creates and returns a <a href="Writer.html#M000939">new</a> <a
|
107
107
|
href="Writer.html">Writer</a> object.
|
108
108
|
</p>
|
109
109
|
</div>
|
110
110
|
<div class="sourcecode">
|
111
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
112
|
-
<div id="
|
111
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000939_source')" id="l_M000939_source">+</a> ]</p>
|
112
|
+
<div id="M000939_source" class="dyn-source">
|
113
113
|
<pre>
|
114
114
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 388</span>
|
115
115
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">anIO</span>)
|
@@ -122,21 +122,21 @@ href="Writer.html">Writer</a> object.
|
|
122
122
|
</div>
|
123
123
|
<div class="method">
|
124
124
|
<div class="title">
|
125
|
-
<a name="
|
125
|
+
<a name="M000938"></a><b>open</b>(anIO) {|writer| ...}
|
126
126
|
</div>
|
127
127
|
<div class="description">
|
128
128
|
<p>
|
129
129
|
With no associated block, +Writer::open+ is a synonym for +Writer::new+. If
|
130
130
|
the optional code block is given, it will be passed the <a
|
131
|
-
href="Writer.html#
|
131
|
+
href="Writer.html#M000939">new</a> <em>writer</em> as an argument and the
|
132
132
|
<a href="Writer.html">Writer</a> object will automatically be closed when
|
133
133
|
the block terminates. In this instance, +Writer::open+ returns the value of
|
134
134
|
the block.
|
135
135
|
</p>
|
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('M000938_source')" id="l_M000938_source">+</a> ]</p>
|
139
|
+
<div id="M000938_source" class="dyn-source">
|
140
140
|
<pre>
|
141
141
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 373</span>
|
142
142
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">anIO</span>)
|
@@ -159,7 +159,7 @@ the block.
|
|
159
159
|
<div class="sectiontitle">Public Instance methods</div>
|
160
160
|
<div class="method">
|
161
161
|
<div class="title">
|
162
|
-
<a name="
|
162
|
+
<a name="M000941"></a><b>add_file</b>(name, opts = {}) {|RestrictedStream.new(@io), opts| ...}
|
163
163
|
</div>
|
164
164
|
<div class="description">
|
165
165
|
<p>
|
@@ -188,18 +188,18 @@ The file‘s size will be determined from the amount of data written to
|
|
188
188
|
the stream.
|
189
189
|
</p>
|
190
190
|
<p>
|
191
|
-
For <a href="Writer.html#
|
191
|
+
For <a href="Writer.html#M000941">add_file</a> to be used, the <a
|
192
192
|
href="Writer.html">Archive::Tar::Minitar::Writer</a> must be wrapping a
|
193
193
|
stream object that is seekable (e.g., it responds to pos=). Otherwise, <a
|
194
|
-
href="Writer.html#
|
194
|
+
href="Writer.html#M000940">add_file_simple</a> must be used.
|
195
195
|
</p>
|
196
196
|
<p>
|
197
197
|
<tt>opts</tt> may be modified during the writing to the stream.
|
198
198
|
</p>
|
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('M000941_source')" id="l_M000941_source">+</a> ]</p>
|
202
|
+
<div id="M000941_source" class="dyn-source">
|
203
203
|
<pre>
|
204
204
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 448</span>
|
205
205
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_file</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">opts</span> = {}) <span class="ruby-comment cmt"># :yields RestrictedStream, +opts+:</span>
|
@@ -234,7 +234,7 @@ href="Writer.html#M000935">add_file_simple</a> must be used.
|
|
234
234
|
</div>
|
235
235
|
<div class="method">
|
236
236
|
<div class="title">
|
237
|
-
<a name="
|
237
|
+
<a name="M000940"></a><b>add_file_simple</b>(name, opts = {}) {|os| ...}
|
238
238
|
</div>
|
239
239
|
<div class="description">
|
240
240
|
<p>
|
@@ -267,8 +267,8 @@ file owner group ID number.
|
|
267
267
|
</p>
|
268
268
|
</div>
|
269
269
|
<div class="sourcecode">
|
270
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
271
|
-
<div id="
|
270
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000940_source')" id="l_M000940_source">+</a> ]</p>
|
271
|
+
<div id="M000940_source" class="dyn-source">
|
272
272
|
<pre>
|
273
273
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 407</span>
|
274
274
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_file_simple</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">opts</span> = {}) <span class="ruby-comment cmt"># :yields BoundedStream:</span>
|
@@ -298,7 +298,7 @@ file owner group ID number.
|
|
298
298
|
</div>
|
299
299
|
<div class="method">
|
300
300
|
<div class="title">
|
301
|
-
<a name="
|
301
|
+
<a name="M000944"></a><b>close</b>()
|
302
302
|
</div>
|
303
303
|
<div class="description">
|
304
304
|
<p>
|
@@ -306,8 +306,8 @@ Closes the <a href="Writer.html">Writer</a>.
|
|
306
306
|
</p>
|
307
307
|
</div>
|
308
308
|
<div class="sourcecode">
|
309
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
310
|
-
<div id="
|
309
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000944_source')" id="l_M000944_source">+</a> ]</p>
|
310
|
+
<div id="M000944_source" class="dyn-source">
|
311
311
|
<pre>
|
312
312
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 495</span>
|
313
313
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
@@ -321,17 +321,17 @@ Closes the <a href="Writer.html">Writer</a>.
|
|
321
321
|
</div>
|
322
322
|
<div class="method">
|
323
323
|
<div class="title">
|
324
|
-
<a name="
|
324
|
+
<a name="M000943"></a><b>flush</b>()
|
325
325
|
</div>
|
326
326
|
<div class="description">
|
327
327
|
<p>
|
328
|
-
Passes the <a href="Writer.html#
|
328
|
+
Passes the <a href="Writer.html#M000943">flush</a> method to the wrapped
|
329
329
|
stream, used for buffered streams.
|
330
330
|
</p>
|
331
331
|
</div>
|
332
332
|
<div class="sourcecode">
|
333
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
334
|
-
<div id="
|
333
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000943_source')" id="l_M000943_source">+</a> ]</p>
|
334
|
+
<div id="M000943_source" class="dyn-source">
|
335
335
|
<pre>
|
336
336
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 489</span>
|
337
337
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">flush</span>
|
@@ -344,7 +344,7 @@ stream, used for buffered streams.
|
|
344
344
|
</div>
|
345
345
|
<div class="method">
|
346
346
|
<div class="title">
|
347
|
-
<a name="
|
347
|
+
<a name="M000942"></a><b>mkdir</b>(name, opts = {})
|
348
348
|
</div>
|
349
349
|
<div class="description">
|
350
350
|
<p>
|
@@ -352,8 +352,8 @@ Creates a directory in the tar.
|
|
352
352
|
</p>
|
353
353
|
</div>
|
354
354
|
<div class="sourcecode">
|
355
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
356
|
-
<div id="
|
355
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000942_source')" id="l_M000942_source">+</a> ]</p>
|
356
|
+
<div id="M000942_source" class="dyn-source">
|
357
357
|
<pre>
|
358
358
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 476</span>
|
359
359
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mkdir</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">opts</span> = {})
|
@@ -121,18 +121,22 @@ things.
|
|
121
121
|
IPAddr
|
122
122
|
Process::Status
|
123
123
|
</pre>
|
124
|
+
<p>
|
125
|
+
TODO: Should associations be singleton?
|
126
|
+
</p>
|
124
127
|
</div>
|
125
128
|
|
126
129
|
|
127
130
|
|
128
131
|
<div class="sectiontitle">Methods</div>
|
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="#
|
132
|
+
<span style="padding-right: 5px;"><a href="#M000538"><=></a></span>
|
133
|
+
<span style="padding-right: 5px;"><a href="#M000536">[]</a></span>
|
134
|
+
<span style="padding-right: 5px;"><a href="#M000541">inspect</a></span>
|
135
|
+
<span style="padding-right: 5px;"><a href="#M000539">invert!</a></span>
|
136
|
+
<span style="padding-right: 5px;"><a href="#M000537">new</a></span>
|
137
|
+
<span style="padding-right: 5px;"><a href="#M000535">reference</a></span>
|
138
|
+
<span style="padding-right: 5px;"><a href="#M000542">to_ary</a></span>
|
139
|
+
<span style="padding-right: 5px;"><a href="#M000540">to_s</a></span>
|
136
140
|
|
137
141
|
<div class="sectiontitle">Included Modules</div>
|
138
142
|
<ul>
|
@@ -144,21 +148,6 @@ things.
|
|
144
148
|
Module <a href="Association/Kernel.html" class="link">Association::Kernel</a><br />
|
145
149
|
|
146
150
|
|
147
|
-
<div class="sectiontitle">Constants</div>
|
148
|
-
<table border='0' cellpadding='5'>
|
149
|
-
<tr valign='top'>
|
150
|
-
<td class="attr-name">REFERENCE</td>
|
151
|
-
<td>=</td>
|
152
|
-
<td class="attr-value">Hash.new{ |h,k,v| h[k]=[] }</td>
|
153
|
-
</tr>
|
154
|
-
<tr valign='top'>
|
155
|
-
<td> </td>
|
156
|
-
<td colspan="2" class="attr-desc">
|
157
|
-
Store association references.
|
158
|
-
|
159
|
-
</td>
|
160
|
-
</tr>
|
161
|
-
</table>
|
162
151
|
|
163
152
|
<div class="sectiontitle">Attributes</div>
|
164
153
|
<table border='0' cellpadding='5'>
|
@@ -181,47 +170,72 @@ Store association references.
|
|
181
170
|
<div class="sectiontitle">Public Class methods</div>
|
182
171
|
<div class="method">
|
183
172
|
<div class="title">
|
184
|
-
<a name="
|
173
|
+
<a name="M000536"></a><b>[]</b>(index, value)
|
185
174
|
</div>
|
186
175
|
<div class="sourcecode">
|
187
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
188
|
-
<div id="
|
176
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000536_source')" id="l_M000536_source">+</a> ]</p>
|
177
|
+
<div id="M000536_source" class="dyn-source">
|
189
178
|
<pre>
|
190
|
-
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line
|
191
|
-
|
192
|
-
|
193
|
-
|
179
|
+
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line 110</span>
|
180
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">index</span>, <span class="ruby-identifier">value</span>)
|
181
|
+
<span class="ruby-identifier">new</span>(<span class="ruby-identifier">index</span>, <span class="ruby-identifier">value</span>)
|
182
|
+
<span class="ruby-keyword kw">end</span>
|
194
183
|
</pre>
|
195
184
|
</div>
|
196
185
|
</div>
|
197
186
|
</div>
|
198
187
|
<div class="method">
|
199
188
|
<div class="title">
|
200
|
-
<a name="
|
189
|
+
<a name="M000537"></a><b>new</b>(index, value=nil)
|
201
190
|
</div>
|
202
191
|
<div class="sourcecode">
|
203
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
204
|
-
<div id="
|
192
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000537_source')" id="l_M000537_source">+</a> ]</p>
|
193
|
+
<div id="M000537_source" class="dyn-source">
|
205
194
|
<pre>
|
206
|
-
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line
|
195
|
+
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line 126</span>
|
207
196
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">index</span>, <span class="ruby-identifier">value</span>=<span class="ruby-keyword kw">nil</span>)
|
208
197
|
<span class="ruby-ivar">@index</span> = <span class="ruby-identifier">index</span>
|
209
198
|
<span class="ruby-ivar">@value</span> = <span class="ruby-identifier">value</span>
|
199
|
+
|
200
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">index</span>.<span class="ruby-identifier">associations</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">value</span>)
|
201
|
+
<span class="ruby-identifier">index</span>.<span class="ruby-identifier">associations</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">value</span>
|
202
|
+
<span class="ruby-keyword kw">end</span>
|
210
203
|
<span class="ruby-keyword kw">end</span>
|
211
204
|
</pre>
|
212
205
|
</div>
|
213
206
|
</div>
|
214
207
|
</div>
|
208
|
+
<div class="method">
|
209
|
+
<div class="title">
|
210
|
+
<a name="M000535"></a><b>reference</b>()
|
211
|
+
</div>
|
212
|
+
<div class="description">
|
213
|
+
<p>
|
214
|
+
Store association references.
|
215
|
+
</p>
|
216
|
+
</div>
|
217
|
+
<div class="sourcecode">
|
218
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000535_source')" id="l_M000535_source">+</a> ]</p>
|
219
|
+
<div id="M000535_source" class="dyn-source">
|
220
|
+
<pre>
|
221
|
+
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line 106</span>
|
222
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reference</span>
|
223
|
+
<span class="ruby-ivar">@reference</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">h</span>,<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>[<span class="ruby-identifier">k</span>]=[] }
|
224
|
+
<span class="ruby-keyword kw">end</span>
|
225
|
+
</pre>
|
226
|
+
</div>
|
227
|
+
</div>
|
228
|
+
</div>
|
215
229
|
<div class="sectiontitle">Public Instance methods</div>
|
216
230
|
<div class="method">
|
217
231
|
<div class="title">
|
218
|
-
<a name="
|
232
|
+
<a name="M000538"></a><b><=></b>(assoc)
|
219
233
|
</div>
|
220
234
|
<div class="sourcecode">
|
221
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
222
|
-
<div id="
|
235
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000538_source')" id="l_M000538_source">+</a> ]</p>
|
236
|
+
<div id="M000538_source" class="dyn-source">
|
223
237
|
<pre>
|
224
|
-
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line
|
238
|
+
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line 135</span>
|
225
239
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><=></span>(<span class="ruby-identifier">assoc</span>)
|
226
240
|
<span class="ruby-keyword kw">return</span> <span class="ruby-value">-1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">value</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">assoc</span>.<span class="ruby-identifier">value</span>
|
227
241
|
<span class="ruby-keyword kw">return</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">value</span> <span class="ruby-operator">></span> <span class="ruby-identifier">assoc</span>.<span class="ruby-identifier">value</span>
|
@@ -233,13 +247,13 @@ Store association references.
|
|
233
247
|
</div>
|
234
248
|
<div class="method">
|
235
249
|
<div class="title">
|
236
|
-
<a name="
|
250
|
+
<a name="M000541"></a><b>inspect</b>()
|
237
251
|
</div>
|
238
252
|
<div class="sourcecode">
|
239
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
240
|
-
<div id="
|
253
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000541_source')" id="l_M000541_source">+</a> ]</p>
|
254
|
+
<div id="M000541_source" class="dyn-source">
|
241
255
|
<pre>
|
242
|
-
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line
|
256
|
+
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line 151</span>
|
243
257
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
244
258
|
<span class="ruby-node">%{#{@index.inspect} >> #{@value.inspect}}</span>
|
245
259
|
<span class="ruby-keyword kw">end</span>
|
@@ -249,13 +263,13 @@ Store association references.
|
|
249
263
|
</div>
|
250
264
|
<div class="method">
|
251
265
|
<div class="title">
|
252
|
-
<a name="
|
266
|
+
<a name="M000539"></a><b>invert!</b>()
|
253
267
|
</div>
|
254
268
|
<div class="sourcecode">
|
255
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
256
|
-
<div id="
|
269
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000539_source')" id="l_M000539_source">+</a> ]</p>
|
270
|
+
<div id="M000539_source" class="dyn-source">
|
257
271
|
<pre>
|
258
|
-
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line
|
272
|
+
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line 141</span>
|
259
273
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">invert!</span>
|
260
274
|
<span class="ruby-identifier">temp</span> = <span class="ruby-ivar">@index</span>
|
261
275
|
<span class="ruby-ivar">@index</span> = <span class="ruby-ivar">@value</span>
|
@@ -267,13 +281,13 @@ Store association references.
|
|
267
281
|
</div>
|
268
282
|
<div class="method">
|
269
283
|
<div class="title">
|
270
|
-
<a name="
|
284
|
+
<a name="M000542"></a><b>to_ary</b>()
|
271
285
|
</div>
|
272
286
|
<div class="sourcecode">
|
273
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
274
|
-
<div id="
|
287
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000542_source')" id="l_M000542_source">+</a> ]</p>
|
288
|
+
<div id="M000542_source" class="dyn-source">
|
275
289
|
<pre>
|
276
|
-
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line
|
290
|
+
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line 155</span>
|
277
291
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_ary</span>
|
278
292
|
[ <span class="ruby-ivar">@index</span>, <span class="ruby-ivar">@value</span> ]
|
279
293
|
<span class="ruby-keyword kw">end</span>
|
@@ -283,13 +297,13 @@ Store association references.
|
|
283
297
|
</div>
|
284
298
|
<div class="method">
|
285
299
|
<div class="title">
|
286
|
-
<a name="
|
300
|
+
<a name="M000540"></a><b>to_s</b>()
|
287
301
|
</div>
|
288
302
|
<div class="sourcecode">
|
289
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
290
|
-
<div id="
|
303
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000540_source')" id="l_M000540_source">+</a> ]</p>
|
304
|
+
<div id="M000540_source" class="dyn-source">
|
291
305
|
<pre>
|
292
|
-
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line
|
306
|
+
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line 147</span>
|
293
307
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
294
308
|
<span class="ruby-keyword kw">return</span> <span class="ruby-node">"#{index.to_s}#{value.to_s}"</span>
|
295
309
|
<span class="ruby-keyword kw">end</span>
|