facets 2.5.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. data/AUTHORS +1 -1
  2. data/CHANGES +28 -45
  3. data/MANIFEST +35 -4
  4. data/README +3 -14
  5. data/RELEASE +36 -70
  6. data/VERSION +1 -1
  7. data/doc/archive/RELEASE-2.5.0 +83 -0
  8. data/doc/log/basic_stats/index.html +4 -4
  9. data/doc/log/changelog.html +509 -2
  10. data/doc/log/changelog.txt +130 -1522
  11. data/doc/rdoc/core/classes/Array.html +366 -141
  12. data/doc/rdoc/core/classes/Binding.html +45 -45
  13. data/doc/rdoc/core/classes/Class.html +38 -38
  14. data/doc/rdoc/core/classes/Comparable.html +26 -26
  15. data/doc/rdoc/core/classes/Enumerable.html +174 -170
  16. data/doc/rdoc/core/classes/Enumerable/Enumerator.html +130 -0
  17. data/doc/rdoc/core/classes/Enumerator.html +132 -0
  18. data/doc/rdoc/core/classes/Exception.html +8 -8
  19. data/doc/rdoc/core/classes/File.html +58 -58
  20. data/doc/rdoc/core/classes/FileTest.html +4 -4
  21. data/doc/rdoc/core/classes/Float.html +8 -8
  22. data/doc/rdoc/core/classes/Functor.html +12 -12
  23. data/doc/rdoc/core/classes/Hash.html +447 -263
  24. data/doc/rdoc/core/classes/Indexable.html +110 -110
  25. data/doc/rdoc/core/classes/Integer.html +2 -2
  26. data/doc/rdoc/core/classes/Kernel.html +329 -329
  27. data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
  28. data/doc/rdoc/core/classes/MatchData.html +15 -15
  29. data/doc/rdoc/core/classes/Module.html +176 -157
  30. data/doc/rdoc/core/classes/NilClass.html +23 -23
  31. data/doc/rdoc/core/classes/Numeric.html +27 -27
  32. data/doc/rdoc/core/classes/Object.html +8 -8
  33. data/doc/rdoc/core/classes/ObjectSpace.html +5 -5
  34. data/doc/rdoc/core/classes/Proc.html +22 -22
  35. data/doc/rdoc/core/classes/Regexp.html +1 -1
  36. data/doc/rdoc/core/classes/Stackable.html +31 -31
  37. data/doc/rdoc/core/classes/String.html +332 -291
  38. data/doc/rdoc/core/classes/Symbol.html +1 -1
  39. data/doc/rdoc/core/classes/TrueClass.html +8 -8
  40. data/doc/rdoc/core/classes/UnboundMethod.html +18 -13
  41. data/doc/rdoc/core/created.rid +1 -1
  42. data/doc/rdoc/core/files/README.html +7 -29
  43. data/doc/rdoc/core/files/lib/core/facets/array/product_rb.html +1 -1
  44. data/doc/rdoc/core/files/lib/core/facets/enumerable/collect_rb.html +10 -1
  45. data/doc/rdoc/core/files/lib/core/facets/enumerable/compact_map_rb.html +92 -0
  46. data/doc/rdoc/core/files/lib/core/facets/enumerable/map_with_index_rb.html +92 -0
  47. data/doc/rdoc/core/files/lib/core/facets/enumerable/split_rb.html +1 -1
  48. data/doc/rdoc/core/files/lib/core/facets/hash/collate_rb.html +1 -1
  49. data/doc/rdoc/core/files/lib/core/facets/hash/group_by_value_rb.html +92 -0
  50. data/doc/rdoc/core/files/lib/core/facets/hash/new_with_rb.html +92 -0
  51. data/doc/rdoc/core/files/lib/core/facets/module/conflict_rb.html +1 -1
  52. data/doc/rdoc/core/files/lib/core/facets/module/extend_rb.html +92 -0
  53. data/doc/rdoc/core/files/lib/core/facets/string/align_rb.html +1 -1
  54. data/doc/rdoc/core/files/lib/core/facets/string/file_rb.html +96 -0
  55. data/doc/rdoc/core/files/lib/core/facets/string/xor_rb.html +1 -1
  56. data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +5 -1
  57. data/doc/rdoc/core/files/lib/core/facets/unboundmethod/name_rb.html +1 -1
  58. data/doc/rdoc/core/fr_class_index.html +2 -0
  59. data/doc/rdoc/core/fr_file_index.html +6 -0
  60. data/doc/rdoc/core/fr_method_index.html +386 -373
  61. data/doc/rdoc/lore/classes/OpenStruct.html +6 -4
  62. data/doc/rdoc/lore/created.rid +1 -1
  63. data/doc/rdoc/lore/files/README.html +7 -29
  64. data/doc/rdoc/lore/files/lib/lore/facets/ostruct_rb.html +1 -1
  65. data/doc/rdoc/more/classes/ANSICode.html +66 -66
  66. data/doc/rdoc/more/classes/Advisable.html +37 -37
  67. data/doc/rdoc/more/classes/Advisable/Method.html +20 -20
  68. data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +27 -27
  69. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +28 -28
  70. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +19 -19
  71. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +31 -31
  72. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +33 -33
  73. data/doc/rdoc/more/classes/Association.html +67 -53
  74. data/doc/rdoc/more/classes/Association/Kernel.html +11 -12
  75. data/doc/rdoc/more/classes/BBCode.html +36 -36
  76. data/doc/rdoc/more/classes/BaseX.html +16 -16
  77. data/doc/rdoc/more/classes/BiCrypt.html +67 -67
  78. data/doc/rdoc/more/classes/BinReadable.html +85 -85
  79. data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +25 -25
  80. data/doc/rdoc/more/classes/Binding.html +8 -8
  81. data/doc/rdoc/more/classes/Buildable.html +4 -4
  82. data/doc/rdoc/more/classes/Cloneable.html +4 -4
  83. data/doc/rdoc/more/classes/ConsoleUtils.html +18 -18
  84. data/doc/rdoc/more/classes/Crypt.html +16 -16
  85. data/doc/rdoc/more/classes/CssTree.html +8 -8
  86. data/doc/rdoc/more/classes/Dictionary.html +52 -45
  87. data/doc/rdoc/more/classes/Enumerable.html +50 -50
  88. data/doc/rdoc/more/classes/Enumerable/Elementor.html +16 -16
  89. data/doc/rdoc/more/classes/Enumerable/Enumerator.html +4 -4
  90. data/doc/rdoc/more/classes/Enumerable/Filterable.html +30 -30
  91. data/doc/rdoc/more/classes/EnumerablePass.html +15 -15
  92. data/doc/rdoc/more/classes/Equatable.html +16 -16
  93. data/doc/rdoc/more/classes/Expirable.html +17 -17
  94. data/doc/rdoc/more/classes/Fileable.html +14 -14
  95. data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
  96. data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
  97. data/doc/rdoc/more/classes/Hook.html +162 -0
  98. data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
  99. data/doc/rdoc/more/classes/Instantiable.html +9 -9
  100. data/doc/rdoc/more/classes/Instantize.html +8 -8
  101. data/doc/rdoc/more/classes/Interval.html +187 -187
  102. data/doc/rdoc/more/classes/It.html +12 -12
  103. data/doc/rdoc/more/classes/Matcher.html +38 -38
  104. data/doc/rdoc/more/classes/Matcher/MatchData.html +4 -4
  105. data/doc/rdoc/more/classes/Memoizer.html +21 -21
  106. data/doc/rdoc/more/classes/Multiton.html +12 -12
  107. data/doc/rdoc/more/classes/Multiton/MetaMethods.html +28 -28
  108. data/doc/rdoc/more/classes/Net/SMTP.html +8 -8
  109. data/doc/rdoc/more/classes/OpEsc.html +5 -5
  110. data/doc/rdoc/more/classes/OpenCascade.html +4 -4
  111. data/doc/rdoc/more/classes/OpenHash.html +9 -9
  112. data/doc/rdoc/more/classes/OpenStructable.html +36 -36
  113. data/doc/rdoc/more/classes/PQueue.html +84 -84
  114. data/doc/rdoc/more/classes/Paramix.html +16 -16
  115. data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
  116. data/doc/rdoc/more/classes/RWDelegator.html +16 -16
  117. data/doc/rdoc/more/classes/Random.html +5 -5
  118. data/doc/rdoc/more/classes/Random/Array.html +37 -37
  119. data/doc/rdoc/more/classes/Random/Hash.html +52 -52
  120. data/doc/rdoc/more/classes/Random/Object.html +4 -4
  121. data/doc/rdoc/more/classes/Random/String.html +34 -34
  122. data/doc/rdoc/more/classes/Random/String/Self.html +9 -9
  123. data/doc/rdoc/more/classes/Registerable.html +13 -13
  124. data/doc/rdoc/more/classes/Stash.html +28 -28
  125. data/doc/rdoc/more/classes/String/Mask.html +72 -72
  126. data/doc/rdoc/more/classes/String/Words.html +31 -31
  127. data/doc/rdoc/more/classes/System.html +253 -253
  128. data/doc/rdoc/more/classes/Timer.html +48 -48
  129. data/doc/rdoc/more/classes/Timer/Dummy.html +9 -9
  130. data/doc/rdoc/more/classes/Tuple.html +170 -170
  131. data/doc/rdoc/more/classes/TypeCast/Class.html +4 -4
  132. data/doc/rdoc/more/classes/TypeCast/Object.html +4 -4
  133. data/doc/rdoc/more/classes/Uninheritable.html +6 -6
  134. data/doc/rdoc/more/classes/X.html +117 -0
  135. data/doc/rdoc/more/classes/XOXO.html +11 -11
  136. data/doc/rdoc/more/classes/ZipUtils.html +88 -88
  137. data/doc/rdoc/more/classes/ZipUtils/DryRun.html +68 -68
  138. data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +68 -68
  139. data/doc/rdoc/more/classes/ZipUtils/Verbose.html +60 -60
  140. data/doc/rdoc/more/created.rid +1 -1
  141. data/doc/rdoc/more/files/README.html +7 -29
  142. data/doc/rdoc/more/files/lib/more/facets/association_rb.html +1 -1
  143. data/doc/rdoc/more/files/lib/more/facets/dictionary_rb.html +1 -1
  144. data/doc/rdoc/more/files/lib/more/facets/hook_rb.html +96 -0
  145. data/doc/rdoc/more/files/lib/more/facets/paramix_rb.html +1 -1
  146. data/doc/rdoc/more/files/lib/more/facets/xoxo_rb.html +2 -2
  147. data/doc/rdoc/more/fr_class_index.html +2 -0
  148. data/doc/rdoc/more/fr_file_index.html +1 -0
  149. data/doc/rdoc/more/fr_method_index.html +686 -681
  150. data/lib/core/facets/array/product.rb +6 -23
  151. data/lib/core/facets/enumerable/collect.rb +3 -53
  152. data/lib/core/facets/enumerable/compact_map.rb +35 -0
  153. data/lib/core/facets/enumerable/map_with_index.rb +23 -0
  154. data/lib/core/facets/enumerable/split.rb +3 -3
  155. data/lib/core/facets/hash/collate.rb +45 -14
  156. data/lib/core/facets/hash/group_by_value.rb +65 -0
  157. data/lib/core/facets/hash/new_with.rb +15 -0
  158. data/lib/core/facets/module/extend.rb +11 -0
  159. data/lib/core/facets/string/align.rb +19 -18
  160. data/lib/core/facets/string/file.rb +17 -0
  161. data/lib/core/facets/string/xor.rb +9 -3
  162. data/lib/core/facets/to_hash.rb +274 -17
  163. data/lib/core/facets/unboundmethod/name.rb +4 -2
  164. data/lib/lore/facets/ostruct.rb +3 -0
  165. data/lib/more/facets/association.rb +28 -12
  166. data/lib/more/facets/dictionary.rb +10 -4
  167. data/lib/more/facets/hook.rb +65 -0
  168. data/lib/more/facets/paramix.rb +5 -5
  169. data/meta/abstract +13 -0
  170. data/meta/authors +1 -0
  171. data/meta/contact +1 -0
  172. data/meta/contributors +48 -0
  173. data/meta/created +1 -0
  174. data/meta/homepage +1 -0
  175. data/meta/license +1 -0
  176. data/meta/loadpath +3 -0
  177. data/meta/releases +14 -0
  178. data/meta/slogan +1 -0
  179. data/meta/summary +1 -0
  180. data/task/test.rake +116 -18
  181. data/test/core/array/test_product.rb +0 -6
  182. data/test/core/binding/test_local_variables.rb +9 -3
  183. data/test/core/enumerable/test_split.rb +19 -0
  184. data/test/core/module/test_conflict.rb +8 -3
  185. data/test/core/test_to_hash.rb +152 -0
  186. data/test/core/unboundmethod/test_arguments.rb +1 -1
  187. data/test/core/unboundmethod/test_name.rb +2 -2
  188. metadata +39 -8
  189. data/doc/log/bstats/stats.html +0 -39
  190. data/doc/log/stats.html +0 -25
  191. 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="#M000932">close</a></span>
89
- <span style="padding-right: 5px;"><a href="#M000929">each</a></span>
90
- <span style="padding-right: 5px;"><a href="#M000931">each_entry</a></span>
91
- <span style="padding-right: 5px;"><a href="#M000928">new</a></span>
92
- <span style="padding-right: 5px;"><a href="#M000927">open</a></span>
93
- <span style="padding-right: 5px;"><a href="#M000930">rewind</a></span>
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="M000928"></a><b>new</b>(anIO)
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#M000928">new</a> <a
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('M000928_source')" id="l_M000928_source">+</a> ]</p>
113
- <div id="M000928_source" class="dyn-source">
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="M000927"></a><b>open</b>(anIO) {|reader| ...}
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#M000928">new</a> <em>writer</em> as an argument and the
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('M000927_source')" id="l_M000927_source">+</a> ]</p>
140
- <div id="M000927_source" class="dyn-source">
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="M000932"></a><b>close</b>()
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('M000932_source')" id="l_M000932_source">+</a> ]</p>
167
- <div id="M000932_source" class="dyn-source">
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="M000929"></a><b>each</b>(&amp;block)
178
+ <a name="M000934"></a><b>each</b>(&amp;block)
179
179
  </div>
180
180
  <div class="description">
181
181
  <p>
182
- Iterates through <a href="Reader.html#M000929">each</a> entry in the data
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('M000929_source')" id="l_M000929_source">+</a> ]</p>
188
- <div id="M000929_source" class="dyn-source">
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">&amp;</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="M000931"></a><b>each_entry</b>() {|entry| ...}
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#M000929">each</a> entry in the data
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('M000931_source')" id="l_M000931_source">+</a> ]</p>
210
- <div id="M000931_source" class="dyn-source">
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="M000930"></a><b>rewind</b>()
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#M000929">each</a> or <a
255
- href="Reader.html#M000931">each_entry</a> iteration. This only works with
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#M000930">rewind</a> and pos.
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('M000930_source')" id="l_M000930_source">+</a> ]</p>
262
- <div id="M000930_source" class="dyn-source">
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="#M000936">add_file</a></span>
87
- <span style="padding-right: 5px;"><a href="#M000935">add_file_simple</a></span>
88
- <span style="padding-right: 5px;"><a href="#M000939">close</a></span>
89
- <span style="padding-right: 5px;"><a href="#M000938">flush</a></span>
90
- <span style="padding-right: 5px;"><a href="#M000937">mkdir</a></span>
91
- <span style="padding-right: 5px;"><a href="#M000934">new</a></span>
92
- <span style="padding-right: 5px;"><a href="#M000933">open</a></span>
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="M000934"></a><b>new</b>(anIO)
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#M000934">new</a> <a
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('M000934_source')" id="l_M000934_source">+</a> ]</p>
112
- <div id="M000934_source" class="dyn-source">
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="M000933"></a><b>open</b>(anIO) {|writer| ...}
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#M000934">new</a> <em>writer</em> as an argument and the
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('M000933_source')" id="l_M000933_source">+</a> ]</p>
139
- <div id="M000933_source" class="dyn-source">
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="M000936"></a><b>add_file</b>(name, opts = {}) {|RestrictedStream.new(@io), opts| ...}
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&#8216;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#M000936">add_file</a> to be used, the <a
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#M000935">add_file_simple</a> must be used.
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('M000936_source')" id="l_M000936_source">+</a> ]</p>
202
- <div id="M000936_source" class="dyn-source">
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="M000935"></a><b>add_file_simple</b>(name, opts = {}) {|os| ...}
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('M000935_source')" id="l_M000935_source">+</a> ]</p>
271
- <div id="M000935_source" class="dyn-source">
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="M000939"></a><b>close</b>()
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('M000939_source')" id="l_M000939_source">+</a> ]</p>
310
- <div id="M000939_source" class="dyn-source">
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="M000938"></a><b>flush</b>()
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#M000938">flush</a> method to the wrapped
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('M000938_source')" id="l_M000938_source">+</a> ]</p>
334
- <div id="M000938_source" class="dyn-source">
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="M000937"></a><b>mkdir</b>(name, opts = {})
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('M000937_source')" id="l_M000937_source">+</a> ]</p>
356
- <div id="M000937_source" class="dyn-source">
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="#M000536">&lt;=&gt;</a></span>
130
- <span style="padding-right: 5px;"><a href="#M000534">[]</a></span>
131
- <span style="padding-right: 5px;"><a href="#M000539">inspect</a></span>
132
- <span style="padding-right: 5px;"><a href="#M000537">invert!</a></span>
133
- <span style="padding-right: 5px;"><a href="#M000535">new</a></span>
134
- <span style="padding-right: 5px;"><a href="#M000540">to_ary</a></span>
135
- <span style="padding-right: 5px;"><a href="#M000538">to_s</a></span>
132
+ <span style="padding-right: 5px;"><a href="#M000538">&lt;=&gt;</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>&nbsp;</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="M000534"></a><b>[]</b>(*args)
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('M000534_source')" id="l_M000534_source">+</a> ]</p>
188
- <div id="M000534_source" class="dyn-source">
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 105</span>
191
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-operator">[]</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
192
- <span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
193
- <span class="ruby-keyword kw">end</span>
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="M000535"></a><b>new</b>(index, value=nil)
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('M000535_source')" id="l_M000535_source">+</a> ]</p>
204
- <div id="M000535_source" class="dyn-source">
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 109</span>
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">&lt;&lt;</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="M000536"></a><b>&lt;=&gt;</b>(assoc)
232
+ <a name="M000538"></a><b>&lt;=&gt;</b>(assoc)
219
233
  </div>
220
234
  <div class="sourcecode">
221
- <p class="source-link">[ <a href="javascript:toggleSource('M000536_source')" id="l_M000536_source">+</a> ]</p>
222
- <div id="M000536_source" class="dyn-source">
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 114</span>
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">&lt;=&gt;</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">&lt;</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">&gt;</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="M000539"></a><b>inspect</b>()
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('M000539_source')" id="l_M000539_source">+</a> ]</p>
240
- <div id="M000539_source" class="dyn-source">
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 130</span>
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} &gt;&gt; #{@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="M000537"></a><b>invert!</b>()
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('M000537_source')" id="l_M000537_source">+</a> ]</p>
256
- <div id="M000537_source" class="dyn-source">
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 120</span>
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="M000540"></a><b>to_ary</b>()
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('M000540_source')" id="l_M000540_source">+</a> ]</p>
274
- <div id="M000540_source" class="dyn-source">
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 134</span>
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="M000538"></a><b>to_s</b>()
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('M000538_source')" id="l_M000538_source">+</a> ]</p>
290
- <div id="M000538_source" class="dyn-source">
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 126</span>
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">&quot;#{index.to_s}#{value.to_s}&quot;</span>
295
309
  <span class="ruby-keyword kw">end</span>