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
@@ -82,8 +82,8 @@ NOTE Any <a href="Enumerable.html">Enumerable</a> method with a negative
82
82
  arity cannot do pass arguments due to ambiguity in the argument count. So
83
83
  the methods inject and zip do NOT work this way, but simply work as they do
84
84
  in <a href="Enumerable.html">Enumerable</a>. The method <a
85
- href="EnumerablePass.html#M000825">find</a> (and <a
86
- href="EnumerablePass.html#M000826">detect</a>) though has been made to work
85
+ href="EnumerablePass.html#M000827">find</a> (and <a
86
+ href="EnumerablePass.html#M000828">detect</a>) though has been made to work
87
87
  by removing its rarely used optional parameter and providing instead an
88
88
  optional keyword parameter (:ifnone =&gt; &#8230;). Please keep these
89
89
  difference in mind.
@@ -108,9 +108,9 @@ difference in mind.
108
108
 
109
109
 
110
110
  <div class="sectiontitle">Methods</div>
111
- <span style="padding-right: 5px;"><a href="#M000826">detect</a></span>
112
- <span style="padding-right: 5px;"><a href="#M000825">find</a></span>
113
- <span style="padding-right: 5px;"><a href="#M000824">wrap_enumerable_method</a></span>
111
+ <span style="padding-right: 5px;"><a href="#M000828">detect</a></span>
112
+ <span style="padding-right: 5px;"><a href="#M000827">find</a></span>
113
+ <span style="padding-right: 5px;"><a href="#M000826">wrap_enumerable_method</a></span>
114
114
 
115
115
 
116
116
 
@@ -120,11 +120,11 @@ difference in mind.
120
120
  <div class="sectiontitle">Public Class methods</div>
121
121
  <div class="method">
122
122
  <div class="title">
123
- <a name="M000824"></a><b>wrap_enumerable_method</b>( methodname )
123
+ <a name="M000826"></a><b>wrap_enumerable_method</b>( methodname )
124
124
  </div>
125
125
  <div class="sourcecode">
126
- <p class="source-link">[ <a href="javascript:toggleSource('M000824_source')" id="l_M000824_source">+</a> ]</p>
127
- <div id="M000824_source" class="dyn-source">
126
+ <p class="source-link">[ <a href="javascript:toggleSource('M000826_source')" id="l_M000826_source">+</a> ]</p>
127
+ <div id="M000826_source" class="dyn-source">
128
128
  <pre>
129
129
  <span class="ruby-comment cmt"># File lib/more/facets/enumerablepass.rb, line 78</span>
130
130
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">wrap_enumerable_method</span>( <span class="ruby-identifier">methodname</span> )
@@ -162,21 +162,21 @@ difference in mind.
162
162
  <div class="sectiontitle">Public Instance methods</div>
163
163
  <div class="method">
164
164
  <div class="title">
165
- <a name="M000826"></a><b>detect</b>(*args, &amp;yld)
165
+ <a name="M000828"></a><b>detect</b>(*args, &amp;yld)
166
166
  </div>
167
167
  <div class="description">
168
168
  <p>
169
- Alias for <a href="EnumerablePass.html#M000825">find</a>
169
+ Alias for <a href="EnumerablePass.html#M000827">find</a>
170
170
  </p>
171
171
  </div>
172
172
  </div>
173
173
  <div class="method">
174
174
  <div class="title">
175
- <a name="M000825"></a><b>find</b>(*args, &amp;yld)
175
+ <a name="M000827"></a><b>find</b>(*args, &amp;yld)
176
176
  </div>
177
177
  <div class="description">
178
178
  <p>
179
- Make exception for <a href="EnumerablePass.html#M000825">find</a> (a
179
+ Make exception for <a href="EnumerablePass.html#M000827">find</a> (a
180
180
  negative arity method) to accept keyword argument.
181
181
  </p>
182
182
  <pre>
@@ -186,11 +186,11 @@ negative arity method) to accept keyword argument.
186
186
  </div>
187
187
  <div class="aka">
188
188
  This method is also aliased as
189
- <a href="EnumerablePass.html#M000826">detect</a>
189
+ <a href="EnumerablePass.html#M000828">detect</a>
190
190
  </div>
191
191
  <div class="sourcecode">
192
- <p class="source-link">[ <a href="javascript:toggleSource('M000825_source')" id="l_M000825_source">+</a> ]</p>
193
- <div id="M000825_source" class="dyn-source">
192
+ <p class="source-link">[ <a href="javascript:toggleSource('M000827_source')" id="l_M000827_source">+</a> ]</p>
193
+ <div id="M000827_source" class="dyn-source">
194
194
  <pre>
195
195
  <span class="ruby-comment cmt"># File lib/more/facets/enumerablepass.rb, line 117</span>
196
196
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">yld</span>) <span class="ruby-comment cmt"># future use **keys ?</span>
@@ -103,10 +103,10 @@ is equivalent to including a module containing:
103
103
 
104
104
 
105
105
  <div class="sectiontitle">Methods</div>
106
- <span style="padding-right: 5px;"><a href="#M000830">==</a></span>
107
- <span style="padding-right: 5px;"><a href="#M000831">eql?</a></span>
108
- <span style="padding-right: 5px;"><a href="#M000832">hash</a></span>
109
- <span style="padding-right: 5px;"><a href="#M000829">identify</a></span>
106
+ <span style="padding-right: 5px;"><a href="#M000835">==</a></span>
107
+ <span style="padding-right: 5px;"><a href="#M000836">eql?</a></span>
108
+ <span style="padding-right: 5px;"><a href="#M000837">hash</a></span>
109
+ <span style="padding-right: 5px;"><a href="#M000834">identify</a></span>
110
110
 
111
111
 
112
112
 
@@ -116,11 +116,11 @@ is equivalent to including a module containing:
116
116
  <div class="sectiontitle">Public Class methods</div>
117
117
  <div class="method">
118
118
  <div class="title">
119
- <a name="M000829"></a><b>identify</b>(base, *accessors)
119
+ <a name="M000834"></a><b>identify</b>(base, *accessors)
120
120
  </div>
121
121
  <div class="sourcecode">
122
- <p class="source-link">[ <a href="javascript:toggleSource('M000829_source')" id="l_M000829_source">+</a> ]</p>
123
- <div id="M000829_source" class="dyn-source">
122
+ <p class="source-link">[ <a href="javascript:toggleSource('M000834_source')" id="l_M000834_source">+</a> ]</p>
123
+ <div id="M000834_source" class="dyn-source">
124
124
  <pre>
125
125
  <span class="ruby-comment cmt"># File lib/more/facets/equatable.rb, line 73</span>
126
126
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">identify</span>(<span class="ruby-identifier">base</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">accessors</span>)
@@ -134,11 +134,11 @@ is equivalent to including a module containing:
134
134
  <div class="sectiontitle">Public Instance methods</div>
135
135
  <div class="method">
136
136
  <div class="title">
137
- <a name="M000830"></a><b>==</b>(o)
137
+ <a name="M000835"></a><b>==</b>(o)
138
138
  </div>
139
139
  <div class="sourcecode">
140
- <p class="source-link">[ <a href="javascript:toggleSource('M000830_source')" id="l_M000830_source">+</a> ]</p>
141
- <div id="M000830_source" class="dyn-source">
140
+ <p class="source-link">[ <a href="javascript:toggleSource('M000835_source')" id="l_M000835_source">+</a> ]</p>
141
+ <div id="M000835_source" class="dyn-source">
142
142
  <pre>
143
143
  <span class="ruby-comment cmt"># File lib/more/facets/equatable.rb, line 78</span>
144
144
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">o</span>)
@@ -150,11 +150,11 @@ is equivalent to including a module containing:
150
150
  </div>
151
151
  <div class="method">
152
152
  <div class="title">
153
- <a name="M000831"></a><b>eql?</b>(o)
153
+ <a name="M000836"></a><b>eql?</b>(o)
154
154
  </div>
155
155
  <div class="sourcecode">
156
- <p class="source-link">[ <a href="javascript:toggleSource('M000831_source')" id="l_M000831_source">+</a> ]</p>
157
- <div id="M000831_source" class="dyn-source">
156
+ <p class="source-link">[ <a href="javascript:toggleSource('M000836_source')" id="l_M000836_source">+</a> ]</p>
157
+ <div id="M000836_source" class="dyn-source">
158
158
  <pre>
159
159
  <span class="ruby-comment cmt"># File lib/more/facets/equatable.rb, line 82</span>
160
160
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eql?</span>(<span class="ruby-identifier">o</span>)
@@ -166,11 +166,11 @@ is equivalent to including a module containing:
166
166
  </div>
167
167
  <div class="method">
168
168
  <div class="title">
169
- <a name="M000832"></a><b>hash</b>()
169
+ <a name="M000837"></a><b>hash</b>()
170
170
  </div>
171
171
  <div class="sourcecode">
172
- <p class="source-link">[ <a href="javascript:toggleSource('M000832_source')" id="l_M000832_source">+</a> ]</p>
173
- <div id="M000832_source" class="dyn-source">
172
+ <p class="source-link">[ <a href="javascript:toggleSource('M000837_source')" id="l_M000837_source">+</a> ]</p>
173
+ <div id="M000837_source" class="dyn-source">
174
174
  <pre>
175
175
  <span class="ruby-comment cmt"># File lib/more/facets/equatable.rb, line 86</span>
176
176
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash</span>
@@ -78,10 +78,10 @@ Generic expirability mixin.
78
78
 
79
79
 
80
80
  <div class="sectiontitle">Methods</div>
81
- <span style="padding-right: 5px;"><a href="#M000742">expired?</a></span>
82
- <span style="padding-right: 5px;"><a href="#M000740">expires_after</a></span>
83
- <span style="padding-right: 5px;"><a href="#M000741">expires_spread</a></span>
84
- <span style="padding-right: 5px;"><a href="#M000743">touch!</a></span>
81
+ <span style="padding-right: 5px;"><a href="#M000744">expired?</a></span>
82
+ <span style="padding-right: 5px;"><a href="#M000742">expires_after</a></span>
83
+ <span style="padding-right: 5px;"><a href="#M000743">expires_spread</a></span>
84
+ <span style="padding-right: 5px;"><a href="#M000745">touch!</a></span>
85
85
 
86
86
 
87
87
 
@@ -101,16 +101,16 @@ Generic expirability mixin.
101
101
  <div class="sectiontitle">Public Instance methods</div>
102
102
  <div class="method">
103
103
  <div class="title">
104
- <a name="M000742"></a><b>expired?</b>()
104
+ <a name="M000744"></a><b>expired?</b>()
105
105
  </div>
106
106
  <div class="description">
107
107
  <p>
108
- Is this entry <a href="Expirable.html#M000742">expired?</a>
108
+ Is this entry <a href="Expirable.html#M000744">expired?</a>
109
109
  </p>
110
110
  </div>
111
111
  <div class="sourcecode">
112
- <p class="source-link">[ <a href="javascript:toggleSource('M000742_source')" id="l_M000742_source">+</a> ]</p>
113
- <div id="M000742_source" class="dyn-source">
112
+ <p class="source-link">[ <a href="javascript:toggleSource('M000744_source')" id="l_M000744_source">+</a> ]</p>
113
+ <div id="M000744_source" class="dyn-source">
114
114
  <pre>
115
115
  <span class="ruby-comment cmt"># File lib/more/facets/expirable.rb, line 45</span>
116
116
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expired?</span>
@@ -126,7 +126,7 @@ Is this entry <a href="Expirable.html#M000742">expired?</a>
126
126
  </div>
127
127
  <div class="method">
128
128
  <div class="title">
129
- <a name="M000740"></a><b>expires_after</b>(timeout = (60*60*24))
129
+ <a name="M000742"></a><b>expires_after</b>(timeout = (60*60*24))
130
130
  </div>
131
131
  <div class="description">
132
132
  <p>
@@ -134,8 +134,8 @@ Set the expires timeout for this entry.
134
134
  </p>
135
135
  </div>
136
136
  <div class="sourcecode">
137
- <p class="source-link">[ <a href="javascript:toggleSource('M000740_source')" id="l_M000740_source">+</a> ]</p>
138
- <div id="M000740_source" class="dyn-source">
137
+ <p class="source-link">[ <a href="javascript:toggleSource('M000742_source')" id="l_M000742_source">+</a> ]</p>
138
+ <div id="M000742_source" class="dyn-source">
139
139
  <pre>
140
140
  <span class="ruby-comment cmt"># File lib/more/facets/expirable.rb, line 32</span>
141
141
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expires_after</span>(<span class="ruby-identifier">timeout</span> = (<span class="ruby-value">60</span><span class="ruby-operator">*</span><span class="ruby-value">60</span><span class="ruby-operator">*</span><span class="ruby-value">24</span>))
@@ -147,7 +147,7 @@ Set the expires timeout for this entry.
147
147
  </div>
148
148
  <div class="method">
149
149
  <div class="title">
150
- <a name="M000741"></a><b>expires_spread</b>(base, spread)
150
+ <a name="M000743"></a><b>expires_spread</b>(base, spread)
151
151
  </div>
152
152
  <div class="description">
153
153
  <p>
@@ -156,8 +156,8 @@ rand(spread)) seconds.
156
156
  </p>
157
157
  </div>
158
158
  <div class="sourcecode">
159
- <p class="source-link">[ <a href="javascript:toggleSource('M000741_source')" id="l_M000741_source">+</a> ]</p>
160
- <div id="M000741_source" class="dyn-source">
159
+ <p class="source-link">[ <a href="javascript:toggleSource('M000743_source')" id="l_M000743_source">+</a> ]</p>
160
+ <div id="M000743_source" class="dyn-source">
161
161
  <pre>
162
162
  <span class="ruby-comment cmt"># File lib/more/facets/expirable.rb, line 39</span>
163
163
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expires_spread</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">spread</span>)
@@ -169,7 +169,7 @@ rand(spread)) seconds.
169
169
  </div>
170
170
  <div class="method">
171
171
  <div class="title">
172
- <a name="M000743"></a><b>touch!</b>()
172
+ <a name="M000745"></a><b>touch!</b>()
173
173
  </div>
174
174
  <div class="description">
175
175
  <p>
@@ -177,8 +177,8 @@ Update the expiration period. Override in your application.
177
177
  </p>
178
178
  </div>
179
179
  <div class="sourcecode">
180
- <p class="source-link">[ <a href="javascript:toggleSource('M000743_source')" id="l_M000743_source">+</a> ]</p>
181
- <div id="M000743_source" class="dyn-source">
180
+ <p class="source-link">[ <a href="javascript:toggleSource('M000745_source')" id="l_M000745_source">+</a> ]</p>
181
+ <div id="M000745_source" class="dyn-source">
182
182
  <pre>
183
183
  <span class="ruby-comment cmt"># File lib/more/facets/expirable.rb, line 55</span>
184
184
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">touch!</span>
@@ -89,9 +89,9 @@ NOTE: This is an expiremental library, and is still
89
89
 
90
90
 
91
91
  <div class="sectiontitle">Methods</div>
92
- <span style="padding-right: 5px;"><a href="#M000729">included</a></span>
93
- <span style="padding-right: 5px;"><a href="#M000730">new</a></span>
94
- <span style="padding-right: 5px;"><a href="#M000731">read</a></span>
92
+ <span style="padding-right: 5px;"><a href="#M000731">included</a></span>
93
+ <span style="padding-right: 5px;"><a href="#M000732">new</a></span>
94
+ <span style="padding-right: 5px;"><a href="#M000733">read</a></span>
95
95
 
96
96
 
97
97
 
@@ -104,17 +104,17 @@ NOTE: This is an expiremental library, and is still
104
104
  <div class="sectiontitle">Public Class methods</div>
105
105
  <div class="method">
106
106
  <div class="title">
107
- <a name="M000729"></a><b>included</b>(base)
107
+ <a name="M000731"></a><b>included</b>(base)
108
108
  </div>
109
109
  <div class="description">
110
110
  <p>
111
- When <a href="Fileable.html#M000729">included</a> extend <a
111
+ When <a href="Fileable.html#M000731">included</a> extend <a
112
112
  href="Fileable/DSL.html">DSL</a> too.
113
113
  </p>
114
114
  </div>
115
115
  <div class="sourcecode">
116
- <p class="source-link">[ <a href="javascript:toggleSource('M000729_source')" id="l_M000729_source">+</a> ]</p>
117
- <div id="M000729_source" class="dyn-source">
116
+ <p class="source-link">[ <a href="javascript:toggleSource('M000731_source')" id="l_M000731_source">+</a> ]</p>
117
+ <div id="M000731_source" class="dyn-source">
118
118
  <pre>
119
119
  <span class="ruby-comment cmt"># File lib/more/facets/fileable.rb, line 50</span>
120
120
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">base</span>)
@@ -126,18 +126,18 @@ href="Fileable/DSL.html">DSL</a> too.
126
126
  </div>
127
127
  <div class="method">
128
128
  <div class="title">
129
- <a name="M000730"></a><b>new</b>(content)
129
+ <a name="M000732"></a><b>new</b>(content)
130
130
  </div>
131
131
  <div class="description">
132
132
  <p>
133
133
  New fileable object. By default this is called by <a
134
- href="Fileable.html#M000731">read</a> passing the file contents. Override
134
+ href="Fileable.html#M000733">read</a> passing the file contents. Override
135
135
  it if need is differnt.
136
136
  </p>
137
137
  </div>
138
138
  <div class="sourcecode">
139
- <p class="source-link">[ <a href="javascript:toggleSource('M000730_source')" id="l_M000730_source">+</a> ]</p>
140
- <div id="M000730_source" class="dyn-source">
139
+ <p class="source-link">[ <a href="javascript:toggleSource('M000732_source')" id="l_M000732_source">+</a> ]</p>
140
+ <div id="M000732_source" class="dyn-source">
141
141
  <pre>
142
142
  <span class="ruby-comment cmt"># File lib/more/facets/fileable.rb, line 62</span>
143
143
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">content</span>)
@@ -150,7 +150,7 @@ it if need is differnt.
150
150
  <div class="sectiontitle">Public Instance methods</div>
151
151
  <div class="method">
152
152
  <div class="title">
153
- <a name="M000731"></a><b>read</b>(file)
153
+ <a name="M000733"></a><b>read</b>(file)
154
154
  </div>
155
155
  <div class="description">
156
156
  <p>
@@ -158,8 +158,8 @@ Override this if reading is differnt.
158
158
  </p>
159
159
  </div>
160
160
  <div class="sourcecode">
161
- <p class="source-link">[ <a href="javascript:toggleSource('M000731_source')" id="l_M000731_source">+</a> ]</p>
162
- <div id="M000731_source" class="dyn-source">
161
+ <p class="source-link">[ <a href="javascript:toggleSource('M000733_source')" id="l_M000733_source">+</a> ]</p>
162
+ <div id="M000733_source" class="dyn-source">
163
163
  <pre>
164
164
  <span class="ruby-comment cmt"># File lib/more/facets/fileable.rb, line 68</span>
165
165
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read</span>(<span class="ruby-identifier">file</span>)
@@ -73,14 +73,14 @@
73
73
 
74
74
 
75
75
  <div class="sectiontitle">Methods</div>
76
- <span style="padding-right: 5px;"><a href="#M000738">file</a></span>
77
- <span style="padding-right: 5px;"><a href="#M000733">filename</a></span>
78
- <span style="padding-right: 5px;"><a href="#M000732">included</a></span>
79
- <span style="padding-right: 5px;"><a href="#M000735">load</a></span>
80
- <span style="padding-right: 5px;"><a href="#M000739">load_cache</a></span>
81
- <span style="padding-right: 5px;"><a href="#M000737">locate</a></span>
82
- <span style="padding-right: 5px;"><a href="#M000736">lookup</a></span>
83
- <span style="padding-right: 5px;"><a href="#M000734">open</a></span>
76
+ <span style="padding-right: 5px;"><a href="#M000740">file</a></span>
77
+ <span style="padding-right: 5px;"><a href="#M000735">filename</a></span>
78
+ <span style="padding-right: 5px;"><a href="#M000734">included</a></span>
79
+ <span style="padding-right: 5px;"><a href="#M000737">load</a></span>
80
+ <span style="padding-right: 5px;"><a href="#M000741">load_cache</a></span>
81
+ <span style="padding-right: 5px;"><a href="#M000739">locate</a></span>
82
+ <span style="padding-right: 5px;"><a href="#M000738">lookup</a></span>
83
+ <span style="padding-right: 5px;"><a href="#M000736">open</a></span>
84
84
 
85
85
 
86
86
 
@@ -90,18 +90,18 @@
90
90
  <div class="sectiontitle">Public Instance methods</div>
91
91
  <div class="method">
92
92
  <div class="title">
93
- <a name="M000738"></a><b>file</b>(path=nil)
93
+ <a name="M000740"></a><b>file</b>(path=nil)
94
94
  </div>
95
95
  <div class="description">
96
96
  <p>
97
- Find <a href="DSL.html#M000738">file</a>. The <tt>path</tt> has to be
97
+ Find <a href="DSL.html#M000740">file</a>. The <tt>path</tt> has to be
98
98
  either the exact path or the directory where a standard-named <a
99
- href="DSL.html#M000738">file</a> resides.
99
+ href="DSL.html#M000740">file</a> resides.
100
100
  </p>
101
101
  </div>
102
102
  <div class="sourcecode">
103
- <p class="source-link">[ <a href="javascript:toggleSource('M000738_source')" id="l_M000738_source">+</a> ]</p>
104
- <div id="M000738_source" class="dyn-source">
103
+ <p class="source-link">[ <a href="javascript:toggleSource('M000740_source')" id="l_M000740_source">+</a> ]</p>
104
+ <div id="M000740_source" class="dyn-source">
105
105
  <pre>
106
106
  <span class="ruby-comment cmt"># File lib/more/facets/fileable.rb, line 140</span>
107
107
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file</span>(<span class="ruby-identifier">path</span>=<span class="ruby-keyword kw">nil</span>)
@@ -124,17 +124,17 @@ href="DSL.html#M000738">file</a> resides.
124
124
  </div>
125
125
  <div class="method">
126
126
  <div class="title">
127
- <a name="M000733"></a><b>filename</b>()
127
+ <a name="M000735"></a><b>filename</b>()
128
128
  </div>
129
129
  <div class="description">
130
130
  <p>
131
131
  Override this with the name or name-glob of the default <a
132
- href="DSL.html#M000738">file</a>. If no default, return nil.
132
+ href="DSL.html#M000740">file</a>. If no default, return nil.
133
133
  </p>
134
134
  </div>
135
135
  <div class="sourcecode">
136
- <p class="source-link">[ <a href="javascript:toggleSource('M000733_source')" id="l_M000733_source">+</a> ]</p>
137
- <div id="M000733_source" class="dyn-source">
136
+ <p class="source-link">[ <a href="javascript:toggleSource('M000735_source')" id="l_M000735_source">+</a> ]</p>
137
+ <div id="M000735_source" class="dyn-source">
138
138
  <pre>
139
139
  <span class="ruby-comment cmt"># File lib/more/facets/fileable.rb, line 86</span>
140
140
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">filename</span>; <span class="ruby-keyword kw">nil</span>; <span class="ruby-keyword kw">end</span>
@@ -144,7 +144,7 @@ href="DSL.html#M000738">file</a>. If no default, return nil.
144
144
  </div>
145
145
  <div class="method">
146
146
  <div class="title">
147
- <a name="M000732"></a><b>included</b>(base)
147
+ <a name="M000734"></a><b>included</b>(base)
148
148
  </div>
149
149
  <div class="description">
150
150
  <p>
@@ -153,8 +153,8 @@ the <a href="DSL.html">DSL</a> inheritance going.
153
153
  </p>
154
154
  </div>
155
155
  <div class="sourcecode">
156
- <p class="source-link">[ <a href="javascript:toggleSource('M000732_source')" id="l_M000732_source">+</a> ]</p>
157
- <div id="M000732_source" class="dyn-source">
156
+ <p class="source-link">[ <a href="javascript:toggleSource('M000734_source')" id="l_M000734_source">+</a> ]</p>
157
+ <div id="M000734_source" class="dyn-source">
158
158
  <pre>
159
159
  <span class="ruby-comment cmt"># File lib/more/facets/fileable.rb, line 79</span>
160
160
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">included</span>(<span class="ruby-identifier">base</span>)
@@ -166,19 +166,19 @@ the <a href="DSL.html">DSL</a> inheritance going.
166
166
  </div>
167
167
  <div class="method">
168
168
  <div class="title">
169
- <a name="M000735"></a><b>load</b>(path_or_data)
169
+ <a name="M000737"></a><b>load</b>(path_or_data)
170
170
  </div>
171
171
  <div class="description">
172
172
  <p>
173
173
  An initializer that can take either a File, Pathname or raw data. This
174
174
  works much like YAML::load does. Unlike <tt><a
175
- href="DSL.html#M000734">open</a></tt>, <tt><a
176
- href="DSL.html#M000735">load</a></tt> requires an exact path parameter.
175
+ href="DSL.html#M000736">open</a></tt>, <tt><a
176
+ href="DSL.html#M000737">load</a></tt> requires an exact path parameter.
177
177
  </p>
178
178
  </div>
179
179
  <div class="sourcecode">
180
- <p class="source-link">[ <a href="javascript:toggleSource('M000735_source')" id="l_M000735_source">+</a> ]</p>
181
- <div id="M000735_source" class="dyn-source">
180
+ <p class="source-link">[ <a href="javascript:toggleSource('M000737_source')" id="l_M000737_source">+</a> ]</p>
181
+ <div id="M000737_source" class="dyn-source">
182
182
  <pre>
183
183
  <span class="ruby-comment cmt"># File lib/more/facets/fileable.rb, line 103</span>
184
184
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load</span>(<span class="ruby-identifier">path_or_data</span>)
@@ -197,17 +197,17 @@ href="DSL.html#M000735">load</a></tt> requires an exact path parameter.
197
197
  </div>
198
198
  <div class="method">
199
199
  <div class="title">
200
- <a name="M000739"></a><b>load_cache</b>()
200
+ <a name="M000741"></a><b>load_cache</b>()
201
201
  </div>
202
202
  <div class="description">
203
203
  <p>
204
204
  Load cache. PackageInfo is multiton when loaded by <a
205
- href="DSL.html#M000738">file</a>.
205
+ href="DSL.html#M000740">file</a>.
206
206
  </p>
207
207
  </div>
208
208
  <div class="sourcecode">
209
- <p class="source-link">[ <a href="javascript:toggleSource('M000739_source')" id="l_M000739_source">+</a> ]</p>
210
- <div id="M000739_source" class="dyn-source">
209
+ <p class="source-link">[ <a href="javascript:toggleSource('M000741_source')" id="l_M000741_source">+</a> ]</p>
210
+ <div id="M000741_source" class="dyn-source">
211
211
  <pre>
212
212
  <span class="ruby-comment cmt"># File lib/more/facets/fileable.rb, line 157</span>
213
213
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_cache</span>
@@ -219,16 +219,16 @@ href="DSL.html#M000738">file</a>.
219
219
  </div>
220
220
  <div class="method">
221
221
  <div class="title">
222
- <a name="M000737"></a><b>locate</b>(name=nil)
222
+ <a name="M000739"></a><b>locate</b>(name=nil)
223
223
  </div>
224
224
  <div class="description">
225
225
  <p>
226
- Locate <a href="DSL.html#M000738">file</a> (case insensitive).
226
+ Locate <a href="DSL.html#M000740">file</a> (case insensitive).
227
227
  </p>
228
228
  </div>
229
229
  <div class="sourcecode">
230
- <p class="source-link">[ <a href="javascript:toggleSource('M000737_source')" id="l_M000737_source">+</a> ]</p>
231
- <div id="M000737_source" class="dyn-source">
230
+ <p class="source-link">[ <a href="javascript:toggleSource('M000739_source')" id="l_M000739_source">+</a> ]</p>
231
+ <div id="M000739_source" class="dyn-source">
232
232
  <pre>
233
233
  <span class="ruby-comment cmt"># File lib/more/facets/fileable.rb, line 123</span>
234
234
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">locate</span>(<span class="ruby-identifier">name</span>=<span class="ruby-keyword kw">nil</span>)
@@ -249,16 +249,16 @@ Locate <a href="DSL.html#M000738">file</a> (case insensitive).
249
249
  </div>
250
250
  <div class="method">
251
251
  <div class="title">
252
- <a name="M000736"></a><b>lookup</b>(name=nil)
252
+ <a name="M000738"></a><b>lookup</b>(name=nil)
253
253
  </div>
254
254
  <div class="description">
255
255
  <p>
256
- Lookup <a href="DSL.html#M000738">file</a>.
256
+ Lookup <a href="DSL.html#M000740">file</a>.
257
257
  </p>
258
258
  </div>
259
259
  <div class="sourcecode">
260
- <p class="source-link">[ <a href="javascript:toggleSource('M000736_source')" id="l_M000736_source">+</a> ]</p>
261
- <div id="M000736_source" class="dyn-source">
260
+ <p class="source-link">[ <a href="javascript:toggleSource('M000738_source')" id="l_M000738_source">+</a> ]</p>
261
+ <div id="M000738_source" class="dyn-source">
262
262
  <pre>
263
263
  <span class="ruby-comment cmt"># File lib/more/facets/fileable.rb, line 116</span>
264
264
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lookup</span>(<span class="ruby-identifier">name</span>=<span class="ruby-keyword kw">nil</span>)
@@ -271,16 +271,16 @@ Lookup <a href="DSL.html#M000738">file</a>.
271
271
  </div>
272
272
  <div class="method">
273
273
  <div class="title">
274
- <a name="M000734"></a><b>open</b>(path=nil)
274
+ <a name="M000736"></a><b>open</b>(path=nil)
275
275
  </div>
276
276
  <div class="description">
277
277
  <p>
278
- Load from <a href="DSL.html#M000738">file</a>(s).
278
+ Load from <a href="DSL.html#M000740">file</a>(s).
279
279
  </p>
280
280
  </div>
281
281
  <div class="sourcecode">
282
- <p class="source-link">[ <a href="javascript:toggleSource('M000734_source')" id="l_M000734_source">+</a> ]</p>
283
- <div id="M000734_source" class="dyn-source">
282
+ <p class="source-link">[ <a href="javascript:toggleSource('M000736_source')" id="l_M000736_source">+</a> ]</p>
283
+ <div id="M000736_source" class="dyn-source">
284
284
  <pre>
285
285
  <span class="ruby-comment cmt"># File lib/more/facets/fileable.rb, line 90</span>
286
286
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open</span>(<span class="ruby-identifier">path</span>=<span class="ruby-keyword kw">nil</span>)