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
@@ -79,8 +79,8 @@ Object
79
79
 
80
80
 
81
81
  <div class="sectiontitle">Methods</div>
82
- <span style="padding-right: 5px;"><a href="#M000962">start</a></span>
83
- <span style="padding-right: 5px;"><a href="#M000963">start</a></span>
82
+ <span style="padding-right: 5px;"><a href="#M000967">start</a></span>
83
+ <span style="padding-right: 5px;"><a href="#M000968">start</a></span>
84
84
 
85
85
 
86
86
 
@@ -90,11 +90,11 @@ Object
90
90
  <div class="sectiontitle">Public Class methods</div>
91
91
  <div class="method">
92
92
  <div class="title">
93
- <a name="M000962"></a><b>start</b>(address, port=nil, helo='localhost.localdomain', user=nil, secret=nil, authtype=nil, use_tls=false) {|smtp| ...}
93
+ <a name="M000967"></a><b>start</b>(address, port=nil, helo='localhost.localdomain', user=nil, secret=nil, authtype=nil, use_tls=false) {|smtp| ...}
94
94
  </div>
95
95
  <div class="sourcecode">
96
- <p class="source-link">[ <a href="javascript:toggleSource('M000962_source')" id="l_M000962_source">+</a> ]</p>
97
- <div id="M000962_source" class="dyn-source">
96
+ <p class="source-link">[ <a href="javascript:toggleSource('M000967_source')" id="l_M000967_source">+</a> ]</p>
97
+ <div id="M000967_source" class="dyn-source">
98
98
  <pre>
99
99
  <span class="ruby-comment cmt"># File lib/more/facets/net/smtp_tls.rb, line 44</span>
100
100
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">start</span>(<span class="ruby-identifier">address</span>, <span class="ruby-identifier">port</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">helo</span>=<span class="ruby-value str">'localhost.localdomain'</span>, <span class="ruby-identifier">user</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">secret</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">authtype</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">use_tls</span>=<span class="ruby-keyword kw">false</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>) <span class="ruby-comment cmt"># :yield: smtp</span>
@@ -107,11 +107,11 @@ Object
107
107
  <div class="sectiontitle">Public Instance methods</div>
108
108
  <div class="method">
109
109
  <div class="title">
110
- <a name="M000963"></a><b>start</b>(helo='localhost.localdomain', user=nil, secret=nil, authtype=nil, use_tls=false) {|smtp| ...}
110
+ <a name="M000968"></a><b>start</b>(helo='localhost.localdomain', user=nil, secret=nil, authtype=nil, use_tls=false) {|smtp| ...}
111
111
  </div>
112
112
  <div class="sourcecode">
113
- <p class="source-link">[ <a href="javascript:toggleSource('M000963_source')" id="l_M000963_source">+</a> ]</p>
114
- <div id="M000963_source" class="dyn-source">
113
+ <p class="source-link">[ <a href="javascript:toggleSource('M000968_source')" id="l_M000968_source">+</a> ]</p>
114
+ <div id="M000968_source" class="dyn-source">
115
115
  <pre>
116
116
  <span class="ruby-comment cmt"># File lib/more/facets/net/smtp_tls.rb, line 50</span>
117
117
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start</span>(<span class="ruby-identifier">helo</span>=<span class="ruby-value str">'localhost.localdomain'</span>, <span class="ruby-identifier">user</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">secret</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">authtype</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">use_tls</span>=<span class="ruby-keyword kw">false</span>) <span class="ruby-comment cmt"># :yield: smtp</span>
@@ -75,7 +75,7 @@
75
75
 
76
76
 
77
77
  <div class="sectiontitle">Methods</div>
78
- <span style="padding-right: 5px;"><a href="#M001080">escape</a></span>
78
+ <span style="padding-right: 5px;"><a href="#M001085">escape</a></span>
79
79
 
80
80
 
81
81
 
@@ -103,11 +103,11 @@
103
103
  <div class="sectiontitle">Public Class methods</div>
104
104
  <div class="method">
105
105
  <div class="title">
106
- <a name="M001080"></a><b>escape</b>(str)
106
+ <a name="M001085"></a><b>escape</b>(str)
107
107
  </div>
108
108
  <div class="description">
109
109
  <p>
110
- Applies operator <a href="OpEsc.html#M001080">escape</a>&#8216;s according
110
+ Applies operator <a href="OpEsc.html#M001085">escape</a>&#8216;s according
111
111
  to OPERATORS_ESCAPE_TABLE.
112
112
  </p>
113
113
  <pre>
@@ -118,8 +118,8 @@ CREDIT: Trans
118
118
  </p>
119
119
  </div>
120
120
  <div class="sourcecode">
121
- <p class="source-link">[ <a href="javascript:toggleSource('M001080_source')" id="l_M001080_source">+</a> ]</p>
122
- <div id="M001080_source" class="dyn-source">
121
+ <p class="source-link">[ <a href="javascript:toggleSource('M001085_source')" id="l_M001085_source">+</a> ]</p>
122
+ <div id="M001085_source" class="dyn-source">
123
123
  <pre>
124
124
  <span class="ruby-comment cmt"># File lib/more/facets/opesc.rb, line 40</span>
125
125
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-identifier">str</span>)
@@ -128,7 +128,7 @@ Finally, you can set a node and get the reciever back using the !-mark.
128
128
 
129
129
 
130
130
  <div class="sectiontitle">Methods</div>
131
- <span style="padding-right: 5px;"><a href="#M000623">method_missing</a></span>
131
+ <span style="padding-right: 5px;"><a href="#M000625">method_missing</a></span>
132
132
 
133
133
 
134
134
 
@@ -138,11 +138,11 @@ Finally, you can set a node and get the reciever back using the !-mark.
138
138
  <div class="sectiontitle">Public Instance methods</div>
139
139
  <div class="method">
140
140
  <div class="title">
141
- <a name="M000623"></a><b>method_missing</b>( sym, arg=nil )
141
+ <a name="M000625"></a><b>method_missing</b>( sym, arg=nil )
142
142
  </div>
143
143
  <div class="sourcecode">
144
- <p class="source-link">[ <a href="javascript:toggleSource('M000623_source')" id="l_M000623_source">+</a> ]</p>
145
- <div id="M000623_source" class="dyn-source">
144
+ <p class="source-link">[ <a href="javascript:toggleSource('M000625_source')" id="l_M000625_source">+</a> ]</p>
145
+ <div id="M000625_source" class="dyn-source">
146
146
  <pre>
147
147
  <span class="ruby-comment cmt"># File lib/more/facets/opencascade.rb, line 70</span>
148
148
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>( <span class="ruby-identifier">sym</span>, <span class="ruby-identifier">arg</span>=<span class="ruby-keyword kw">nil</span> )
@@ -82,7 +82,7 @@ Hash
82
82
  <a href="OpenHash.html">OpenHash</a> is akin to an OpenStruct or an <a
83
83
  href="OpenObject.html">OpenObject</a>, but it is much simplier in nature.
84
84
  <a href="It.html">It</a> is a hash with an <a
85
- href="OpenHash.html#M000625">method_missing</a> definition that routes to
85
+ href="OpenHash.html#M000627">method_missing</a> definition that routes to
86
86
  [] and []=.
87
87
  </p>
88
88
  </div>
@@ -90,8 +90,8 @@ href="OpenHash.html#M000625">method_missing</a> definition that routes to
90
90
 
91
91
 
92
92
  <div class="sectiontitle">Methods</div>
93
- <span style="padding-right: 5px;"><a href="#M000625">method_missing</a></span>
94
- <span style="padding-right: 5px;"><a href="#M000624">new</a></span>
93
+ <span style="padding-right: 5px;"><a href="#M000627">method_missing</a></span>
94
+ <span style="padding-right: 5px;"><a href="#M000626">new</a></span>
95
95
 
96
96
 
97
97
 
@@ -101,7 +101,7 @@ href="OpenHash.html#M000625">method_missing</a> definition that routes to
101
101
  <div class="sectiontitle">Public Class methods</div>
102
102
  <div class="method">
103
103
  <div class="title">
104
- <a name="M000624"></a><b>new</b>(data)
104
+ <a name="M000626"></a><b>new</b>(data)
105
105
  </div>
106
106
  <div class="description">
107
107
  <p>
@@ -109,8 +109,8 @@ New <a href="OpenHash.html">OpenHash</a>.
109
109
  </p>
110
110
  </div>
111
111
  <div class="sourcecode">
112
- <p class="source-link">[ <a href="javascript:toggleSource('M000624_source')" id="l_M000624_source">+</a> ]</p>
113
- <div id="M000624_source" class="dyn-source">
112
+ <p class="source-link">[ <a href="javascript:toggleSource('M000626_source')" id="l_M000626_source">+</a> ]</p>
113
+ <div id="M000626_source" class="dyn-source">
114
114
  <pre>
115
115
  <span class="ruby-comment cmt"># File lib/more/facets/openhash.rb, line 22</span>
116
116
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">data</span>)
@@ -124,7 +124,7 @@ New <a href="OpenHash.html">OpenHash</a>.
124
124
  <div class="sectiontitle">Public Instance methods</div>
125
125
  <div class="method">
126
126
  <div class="title">
127
- <a name="M000625"></a><b>method_missing</b>(s, *a)
127
+ <a name="M000627"></a><b>method_missing</b>(s, *a)
128
128
  </div>
129
129
  <div class="description">
130
130
  <p>
@@ -132,8 +132,8 @@ Route get and set calls.
132
132
  </p>
133
133
  </div>
134
134
  <div class="sourcecode">
135
- <p class="source-link">[ <a href="javascript:toggleSource('M000625_source')" id="l_M000625_source">+</a> ]</p>
136
- <div id="M000625_source" class="dyn-source">
135
+ <p class="source-link">[ <a href="javascript:toggleSource('M000627_source')" id="l_M000627_source">+</a> ]</p>
136
+ <div id="M000627_source" class="dyn-source">
137
137
  <pre>
138
138
  <span class="ruby-comment cmt"># File lib/more/facets/openhash.rb, line 29</span>
139
139
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">s</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">a</span>)
@@ -107,15 +107,15 @@ allows extention of data objects with arbitrary attributes.
107
107
 
108
108
 
109
109
  <div class="sectiontitle">Methods</div>
110
- <span style="padding-right: 5px;"><a href="#M000961">==</a></span>
111
- <span style="padding-right: 5px;"><a href="#M000959">delete_field</a></span>
112
- <span style="padding-right: 5px;"><a href="#M000954">initialize_copy</a></span>
113
- <span style="padding-right: 5px;"><a href="#M000960">inspect</a></span>
114
- <span style="padding-right: 5px;"><a href="#M000955">marshal_dump</a></span>
115
- <span style="padding-right: 5px;"><a href="#M000956">marshal_load</a></span>
116
- <span style="padding-right: 5px;"><a href="#M000953">new</a></span>
117
- <span style="padding-right: 5px;"><a href="#M000957">new_ostruct_member</a></span>
118
- <span style="padding-right: 5px;"><a href="#M000958">update</a></span>
110
+ <span style="padding-right: 5px;"><a href="#M000966">==</a></span>
111
+ <span style="padding-right: 5px;"><a href="#M000964">delete_field</a></span>
112
+ <span style="padding-right: 5px;"><a href="#M000959">initialize_copy</a></span>
113
+ <span style="padding-right: 5px;"><a href="#M000965">inspect</a></span>
114
+ <span style="padding-right: 5px;"><a href="#M000960">marshal_dump</a></span>
115
+ <span style="padding-right: 5px;"><a href="#M000961">marshal_load</a></span>
116
+ <span style="padding-right: 5px;"><a href="#M000958">new</a></span>
117
+ <span style="padding-right: 5px;"><a href="#M000962">new_ostruct_member</a></span>
118
+ <span style="padding-right: 5px;"><a href="#M000963">update</a></span>
119
119
 
120
120
 
121
121
 
@@ -125,11 +125,11 @@ allows extention of data objects with arbitrary attributes.
125
125
  <div class="sectiontitle">Public Class methods</div>
126
126
  <div class="method">
127
127
  <div class="title">
128
- <a name="M000953"></a><b>new</b>(hash=nil)
128
+ <a name="M000958"></a><b>new</b>(hash=nil)
129
129
  </div>
130
130
  <div class="sourcecode">
131
- <p class="source-link">[ <a href="javascript:toggleSource('M000953_source')" id="l_M000953_source">+</a> ]</p>
132
- <div id="M000953_source" class="dyn-source">
131
+ <p class="source-link">[ <a href="javascript:toggleSource('M000958_source')" id="l_M000958_source">+</a> ]</p>
132
+ <div id="M000958_source" class="dyn-source">
133
133
  <pre>
134
134
  <span class="ruby-comment cmt"># File lib/more/facets/ostructable.rb, line 64</span>
135
135
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">hash</span>=<span class="ruby-keyword kw">nil</span>)
@@ -148,7 +148,7 @@ allows extention of data objects with arbitrary attributes.
148
148
  <div class="sectiontitle">Public Instance methods</div>
149
149
  <div class="method">
150
150
  <div class="title">
151
- <a name="M000961"></a><b>==</b>(other)
151
+ <a name="M000966"></a><b>==</b>(other)
152
152
  </div>
153
153
  <div class="description">
154
154
  <p>
@@ -156,8 +156,8 @@ Compare this object and <tt>other</tt> for equality.
156
156
  </p>
157
157
  </div>
158
158
  <div class="sourcecode">
159
- <p class="source-link">[ <a href="javascript:toggleSource('M000961_source')" id="l_M000961_source">+</a> ]</p>
160
- <div id="M000961_source" class="dyn-source">
159
+ <p class="source-link">[ <a href="javascript:toggleSource('M000966_source')" id="l_M000966_source">+</a> ]</p>
160
+ <div id="M000966_source" class="dyn-source">
161
161
  <pre>
162
162
  <span class="ruby-comment cmt"># File lib/more/facets/ostructable.rb, line 157</span>
163
163
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">other</span>)
@@ -170,7 +170,7 @@ Compare this object and <tt>other</tt> for equality.
170
170
  </div>
171
171
  <div class="method">
172
172
  <div class="title">
173
- <a name="M000959"></a><b>delete_field</b>(name)
173
+ <a name="M000964"></a><b>delete_field</b>(name)
174
174
  </div>
175
175
  <div class="description">
176
176
  <p>
@@ -178,8 +178,8 @@ Remove the named field from the object.
178
178
  </p>
179
179
  </div>
180
180
  <div class="sourcecode">
181
- <p class="source-link">[ <a href="javascript:toggleSource('M000959_source')" id="l_M000959_source">+</a> ]</p>
182
- <div id="M000959_source" class="dyn-source">
181
+ <p class="source-link">[ <a href="javascript:toggleSource('M000964_source')" id="l_M000964_source">+</a> ]</p>
182
+ <div id="M000964_source" class="dyn-source">
183
183
  <pre>
184
184
  <span class="ruby-comment cmt"># File lib/more/facets/ostructable.rb, line 135</span>
185
185
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_field</span>(<span class="ruby-identifier">name</span>)
@@ -192,7 +192,7 @@ Remove the named field from the object.
192
192
  </div>
193
193
  <div class="method">
194
194
  <div class="title">
195
- <a name="M000954"></a><b>initialize_copy</b>(orig)
195
+ <a name="M000959"></a><b>initialize_copy</b>(orig)
196
196
  </div>
197
197
  <div class="description">
198
198
  <p>
@@ -200,8 +200,8 @@ duplicate an OpenStruct object members.
200
200
  </p>
201
201
  </div>
202
202
  <div class="sourcecode">
203
- <p class="source-link">[ <a href="javascript:toggleSource('M000954_source')" id="l_M000954_source">+</a> ]</p>
204
- <div id="M000954_source" class="dyn-source">
203
+ <p class="source-link">[ <a href="javascript:toggleSource('M000959_source')" id="l_M000959_source">+</a> ]</p>
204
+ <div id="M000959_source" class="dyn-source">
205
205
  <pre>
206
206
  <span class="ruby-comment cmt"># File lib/more/facets/ostructable.rb, line 75</span>
207
207
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize_copy</span>(<span class="ruby-identifier">orig</span>)
@@ -214,7 +214,7 @@ duplicate an OpenStruct object members.
214
214
  </div>
215
215
  <div class="method">
216
216
  <div class="title">
217
- <a name="M000960"></a><b>inspect</b>()
217
+ <a name="M000965"></a><b>inspect</b>()
218
218
  </div>
219
219
  <div class="description">
220
220
  <p>
@@ -222,8 +222,8 @@ Returns a string containing a detailed summary of the keys and values.
222
222
  </p>
223
223
  </div>
224
224
  <div class="sourcecode">
225
- <p class="source-link">[ <a href="javascript:toggleSource('M000960_source')" id="l_M000960_source">+</a> ]</p>
226
- <div id="M000960_source" class="dyn-source">
225
+ <p class="source-link">[ <a href="javascript:toggleSource('M000965_source')" id="l_M000965_source">+</a> ]</p>
226
+ <div id="M000965_source" class="dyn-source">
227
227
  <pre>
228
228
  <span class="ruby-comment cmt"># File lib/more/facets/ostructable.rb, line 143</span>
229
229
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
@@ -239,11 +239,11 @@ Returns a string containing a detailed summary of the keys and values.
239
239
  </div>
240
240
  <div class="method">
241
241
  <div class="title">
242
- <a name="M000955"></a><b>marshal_dump</b>()
242
+ <a name="M000960"></a><b>marshal_dump</b>()
243
243
  </div>
244
244
  <div class="sourcecode">
245
- <p class="source-link">[ <a href="javascript:toggleSource('M000955_source')" id="l_M000955_source">+</a> ]</p>
246
- <div id="M000955_source" class="dyn-source">
245
+ <p class="source-link">[ <a href="javascript:toggleSource('M000960_source')" id="l_M000960_source">+</a> ]</p>
246
+ <div id="M000960_source" class="dyn-source">
247
247
  <pre>
248
248
  <span class="ruby-comment cmt"># File lib/more/facets/ostructable.rb, line 80</span>
249
249
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">marshal_dump</span>
@@ -255,11 +255,11 @@ Returns a string containing a detailed summary of the keys and values.
255
255
  </div>
256
256
  <div class="method">
257
257
  <div class="title">
258
- <a name="M000956"></a><b>marshal_load</b>(x)
258
+ <a name="M000961"></a><b>marshal_load</b>(x)
259
259
  </div>
260
260
  <div class="sourcecode">
261
- <p class="source-link">[ <a href="javascript:toggleSource('M000956_source')" id="l_M000956_source">+</a> ]</p>
262
- <div id="M000956_source" class="dyn-source">
261
+ <p class="source-link">[ <a href="javascript:toggleSource('M000961_source')" id="l_M000961_source">+</a> ]</p>
262
+ <div id="M000961_source" class="dyn-source">
263
263
  <pre>
264
264
  <span class="ruby-comment cmt"># File lib/more/facets/ostructable.rb, line 83</span>
265
265
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">marshal_load</span>(<span class="ruby-identifier">x</span>)
@@ -272,11 +272,11 @@ Returns a string containing a detailed summary of the keys and values.
272
272
  </div>
273
273
  <div class="method">
274
274
  <div class="title">
275
- <a name="M000957"></a><b>new_ostruct_member</b>(name)
275
+ <a name="M000962"></a><b>new_ostruct_member</b>(name)
276
276
  </div>
277
277
  <div class="sourcecode">
278
- <p class="source-link">[ <a href="javascript:toggleSource('M000957_source')" id="l_M000957_source">+</a> ]</p>
279
- <div id="M000957_source" class="dyn-source">
278
+ <p class="source-link">[ <a href="javascript:toggleSource('M000962_source')" id="l_M000962_source">+</a> ]</p>
279
+ <div id="M000962_source" class="dyn-source">
280
280
  <pre>
281
281
  <span class="ruby-comment cmt"># File lib/more/facets/ostructable.rb, line 88</span>
282
282
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new_ostruct_member</span>(<span class="ruby-identifier">name</span>)
@@ -293,7 +293,7 @@ Returns a string containing a detailed summary of the keys and values.
293
293
  </div>
294
294
  <div class="method">
295
295
  <div class="title">
296
- <a name="M000958"></a><b>update</b>(hash)
296
+ <a name="M000963"></a><b>update</b>(hash)
297
297
  </div>
298
298
  <div class="description">
299
299
  <p>
@@ -301,8 +301,8 @@ Generate additional attributes and values.
301
301
  </p>
302
302
  </div>
303
303
  <div class="sourcecode">
304
- <p class="source-link">[ <a href="javascript:toggleSource('M000958_source')" id="l_M000958_source">+</a> ]</p>
305
- <div id="M000958_source" class="dyn-source">
304
+ <p class="source-link">[ <a href="javascript:toggleSource('M000963_source')" id="l_M000963_source">+</a> ]</p>
305
+ <div id="M000963_source" class="dyn-source">
306
306
  <pre>
307
307
  <span class="ruby-comment cmt"># File lib/more/facets/ostructable.rb, line 100</span>
308
308
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>(<span class="ruby-identifier">hash</span>)
@@ -84,8 +84,8 @@ A priority queue is like a standard queue, except that each inserted
84
84
  elements is given a certain priority, based on the result of the comparison
85
85
  block given at instantiation time. Also, retrieving an element from the
86
86
  queue will always return the one with the highest priority (see <a
87
- href="PQueue.html#M000712">pop</a> and <a
88
- href="PQueue.html#M000713">top</a>).
87
+ href="PQueue.html#M000714">pop</a> and <a
88
+ href="PQueue.html#M000715">top</a>).
89
89
  </p>
90
90
  <p>
91
91
  The default is to compare the elements in repect to their #&gt; method. For
@@ -96,24 +96,24 @@ example, Numeric elements with higher values will have higher priorities.
96
96
 
97
97
 
98
98
  <div class="sectiontitle">Methods</div>
99
- <span style="padding-right: 5px;"><a href="#M000711">&lt;&lt;</a></span>
100
- <span style="padding-right: 5px;"><a href="#M000726">==</a></span>
101
- <span style="padding-right: 5px;"><a href="#M000718">clear</a></span>
102
- <span style="padding-right: 5px;"><a href="#M000724">each_pop</a></span>
103
- <span style="padding-right: 5px;"><a href="#M000717">empty?</a></span>
104
- <span style="padding-right: 5px;"><a href="#M000723">include?</a></span>
105
- <span style="padding-right: 5px;"><a href="#M000725">inspect</a></span>
106
- <span style="padding-right: 5px;"><a href="#M000715">merge</a></span>
107
- <span style="padding-right: 5px;"><a href="#M000709">new</a></span>
108
- <span style="padding-right: 5px;"><a href="#M000712">pop</a></span>
109
- <span style="padding-right: 5px;"><a href="#M000716">pop_array</a></span>
110
- <span style="padding-right: 5px;"><a href="#M000710">push</a></span>
111
- <span style="padding-right: 5px;"><a href="#M000714">push_all</a></span>
112
- <span style="padding-right: 5px;"><a href="#M000719">replace</a></span>
113
- <span style="padding-right: 5px;"><a href="#M000722">replace_top</a></span>
114
- <span style="padding-right: 5px;"><a href="#M000721">sort</a></span>
115
- <span style="padding-right: 5px;"><a href="#M000720">to_a</a></span>
116
- <span style="padding-right: 5px;"><a href="#M000713">top</a></span>
99
+ <span style="padding-right: 5px;"><a href="#M000713">&lt;&lt;</a></span>
100
+ <span style="padding-right: 5px;"><a href="#M000728">==</a></span>
101
+ <span style="padding-right: 5px;"><a href="#M000720">clear</a></span>
102
+ <span style="padding-right: 5px;"><a href="#M000726">each_pop</a></span>
103
+ <span style="padding-right: 5px;"><a href="#M000719">empty?</a></span>
104
+ <span style="padding-right: 5px;"><a href="#M000725">include?</a></span>
105
+ <span style="padding-right: 5px;"><a href="#M000727">inspect</a></span>
106
+ <span style="padding-right: 5px;"><a href="#M000717">merge</a></span>
107
+ <span style="padding-right: 5px;"><a href="#M000711">new</a></span>
108
+ <span style="padding-right: 5px;"><a href="#M000714">pop</a></span>
109
+ <span style="padding-right: 5px;"><a href="#M000718">pop_array</a></span>
110
+ <span style="padding-right: 5px;"><a href="#M000712">push</a></span>
111
+ <span style="padding-right: 5px;"><a href="#M000716">push_all</a></span>
112
+ <span style="padding-right: 5px;"><a href="#M000721">replace</a></span>
113
+ <span style="padding-right: 5px;"><a href="#M000724">replace_top</a></span>
114
+ <span style="padding-right: 5px;"><a href="#M000723">sort</a></span>
115
+ <span style="padding-right: 5px;"><a href="#M000722">to_a</a></span>
116
+ <span style="padding-right: 5px;"><a href="#M000715">top</a></span>
117
117
 
118
118
 
119
119
 
@@ -146,15 +146,15 @@ number of elements
146
146
  <div class="sectiontitle">Public Class methods</div>
147
147
  <div class="method">
148
148
  <div class="title">
149
- <a name="M000709"></a><b>new</b>(elements=nil) {|a, b| ...}
149
+ <a name="M000711"></a><b>new</b>(elements=nil) {|a, b| ...}
150
150
  </div>
151
151
  <div class="description">
152
152
  <p>
153
- Returns a <a href="PQueue.html#M000709">new</a> priority queue.
153
+ Returns a <a href="PQueue.html#M000711">new</a> priority queue.
154
154
  </p>
155
155
  <p>
156
156
  If elements are given, build the priority queue with these initial values.
157
- The elements object must respond to <a href="PQueue.html#M000720">to_a</a>.
157
+ The elements object must respond to <a href="PQueue.html#M000722">to_a</a>.
158
158
  </p>
159
159
  <p>
160
160
  If a block is given, it will be used to determine the priority between the
@@ -166,8 +166,8 @@ By default, the priority queue retrieves maximum elements first (using the
166
166
  </p>
167
167
  </div>
168
168
  <div class="sourcecode">
169
- <p class="source-link">[ <a href="javascript:toggleSource('M000709_source')" id="l_M000709_source">+</a> ]</p>
170
- <div id="M000709_source" class="dyn-source">
169
+ <p class="source-link">[ <a href="javascript:toggleSource('M000711_source')" id="l_M000711_source">+</a> ]</p>
170
+ <div id="M000711_source" class="dyn-source">
171
171
  <pre>
172
172
  <span class="ruby-comment cmt"># File lib/more/facets/pqueue.rb, line 62</span>
173
173
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">elements</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>) <span class="ruby-comment cmt"># :yields: a, b</span>
@@ -183,17 +183,17 @@ By default, the priority queue retrieves maximum elements first (using the
183
183
  <div class="sectiontitle">Public Instance methods</div>
184
184
  <div class="method">
185
185
  <div class="title">
186
- <a name="M000711"></a><b>&lt;&lt;</b>(v)
186
+ <a name="M000713"></a><b>&lt;&lt;</b>(v)
187
187
  </div>
188
188
  <div class="description">
189
189
  <p>
190
- Alias for <a href="PQueue.html#M000710">push</a>
190
+ Alias for <a href="PQueue.html#M000712">push</a>
191
191
  </p>
192
192
  </div>
193
193
  </div>
194
194
  <div class="method">
195
195
  <div class="title">
196
- <a name="M000726"></a><b>==</b>(other)
196
+ <a name="M000728"></a><b>==</b>(other)
197
197
  </div>
198
198
  <div class="description">
199
199
  <p>
@@ -201,8 +201,8 @@ Return true if the queues contain equal elements.
201
201
  </p>
202
202
  </div>
203
203
  <div class="sourcecode">
204
- <p class="source-link">[ <a href="javascript:toggleSource('M000726_source')" id="l_M000726_source">+</a> ]</p>
205
- <div id="M000726_source" class="dyn-source">
204
+ <p class="source-link">[ <a href="javascript:toggleSource('M000728_source')" id="l_M000728_source">+</a> ]</p>
205
+ <div id="M000728_source" class="dyn-source">
206
206
  <pre>
207
207
  <span class="ruby-comment cmt"># File lib/more/facets/pqueue.rb, line 287</span>
208
208
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">other</span>)
@@ -214,7 +214,7 @@ Return true if the queues contain equal elements.
214
214
  </div>
215
215
  <div class="method">
216
216
  <div class="title">
217
- <a name="M000718"></a><b>clear</b>()
217
+ <a name="M000720"></a><b>clear</b>()
218
218
  </div>
219
219
  <div class="description">
220
220
  <p>
@@ -222,8 +222,8 @@ Remove all elements from the priority queue.
222
222
  </p>
223
223
  </div>
224
224
  <div class="sourcecode">
225
- <p class="source-link">[ <a href="javascript:toggleSource('M000718_source')" id="l_M000718_source">+</a> ]</p>
226
- <div id="M000718_source" class="dyn-source">
225
+ <p class="source-link">[ <a href="javascript:toggleSource('M000720_source')" id="l_M000720_source">+</a> ]</p>
226
+ <div id="M000720_source" class="dyn-source">
227
227
  <pre>
228
228
  <span class="ruby-comment cmt"># File lib/more/facets/pqueue.rb, line 216</span>
229
229
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear</span>
@@ -237,7 +237,7 @@ Remove all elements from the priority queue.
237
237
  </div>
238
238
  <div class="method">
239
239
  <div class="title">
240
- <a name="M000724"></a><b>each_pop</b>( {|popped| ...}
240
+ <a name="M000726"></a><b>each_pop</b>( {|popped| ...}
241
241
  </div>
242
242
  <div class="description">
243
243
  <p>
@@ -245,8 +245,8 @@ Iterate over the ordered elements, destructively.
245
245
  </p>
246
246
  </div>
247
247
  <div class="sourcecode">
248
- <p class="source-link">[ <a href="javascript:toggleSource('M000724_source')" id="l_M000724_source">+</a> ]</p>
249
- <div id="M000724_source" class="dyn-source">
248
+ <p class="source-link">[ <a href="javascript:toggleSource('M000726_source')" id="l_M000726_source">+</a> ]</p>
249
+ <div id="M000726_source" class="dyn-source">
250
250
  <pre>
251
251
  <span class="ruby-comment cmt"># File lib/more/facets/pqueue.rb, line 271</span>
252
252
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_pop</span> <span class="ruby-comment cmt">#:yields: popped</span>
@@ -261,7 +261,7 @@ Iterate over the ordered elements, destructively.
261
261
  </div>
262
262
  <div class="method">
263
263
  <div class="title">
264
- <a name="M000717"></a><b>empty?</b>()
264
+ <a name="M000719"></a><b>empty?</b>()
265
265
  </div>
266
266
  <div class="description">
267
267
  <p>
@@ -269,8 +269,8 @@ True if there is no more elements left in the priority queue.
269
269
  </p>
270
270
  </div>
271
271
  <div class="sourcecode">
272
- <p class="source-link">[ <a href="javascript:toggleSource('M000717_source')" id="l_M000717_source">+</a> ]</p>
273
- <div id="M000717_source" class="dyn-source">
272
+ <p class="source-link">[ <a href="javascript:toggleSource('M000719_source')" id="l_M000719_source">+</a> ]</p>
273
+ <div id="M000719_source" class="dyn-source">
274
274
  <pre>
275
275
  <span class="ruby-comment cmt"># File lib/more/facets/pqueue.rb, line 211</span>
276
276
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">empty?</span>
@@ -282,7 +282,7 @@ True if there is no more elements left in the priority queue.
282
282
  </div>
283
283
  <div class="method">
284
284
  <div class="title">
285
- <a name="M000723"></a><b>include?</b>(element)
285
+ <a name="M000725"></a><b>include?</b>(element)
286
286
  </div>
287
287
  <div class="description">
288
288
  <p>
@@ -290,8 +290,8 @@ Return true if the given object is present in the queue.
290
290
  </p>
291
291
  </div>
292
292
  <div class="sourcecode">
293
- <p class="source-link">[ <a href="javascript:toggleSource('M000723_source')" id="l_M000723_source">+</a> ]</p>
294
- <div id="M000723_source" class="dyn-source">
293
+ <p class="source-link">[ <a href="javascript:toggleSource('M000725_source')" id="l_M000725_source">+</a> ]</p>
294
+ <div id="M000725_source" class="dyn-source">
295
295
  <pre>
296
296
  <span class="ruby-comment cmt"># File lib/more/facets/pqueue.rb, line 266</span>
297
297
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include?</span>(<span class="ruby-identifier">element</span>)
@@ -303,7 +303,7 @@ Return true if the given object is present in the queue.
303
303
  </div>
304
304
  <div class="method">
305
305
  <div class="title">
306
- <a name="M000725"></a><b>inspect</b>()
306
+ <a name="M000727"></a><b>inspect</b>()
307
307
  </div>
308
308
  <div class="description">
309
309
  <p>
@@ -311,8 +311,8 @@ Pretty print
311
311
  </p>
312
312
  </div>
313
313
  <div class="sourcecode">
314
- <p class="source-link">[ <a href="javascript:toggleSource('M000725_source')" id="l_M000725_source">+</a> ]</p>
315
- <div id="M000725_source" class="dyn-source">
314
+ <p class="source-link">[ <a href="javascript:toggleSource('M000727_source')" id="l_M000727_source">+</a> ]</p>
315
+ <div id="M000727_source" class="dyn-source">
316
316
  <pre>
317
317
  <span class="ruby-comment cmt"># File lib/more/facets/pqueue.rb, line 279</span>
318
318
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
@@ -324,17 +324,17 @@ Pretty print
324
324
  </div>
325
325
  <div class="method">
326
326
  <div class="title">
327
- <a name="M000715"></a><b>merge</b>(elements)
327
+ <a name="M000717"></a><b>merge</b>(elements)
328
328
  </div>
329
329
  <div class="description">
330
330
  <p>
331
- Alias for <a href="PQueue.html#M000714">push_all</a>
331
+ Alias for <a href="PQueue.html#M000716">push_all</a>
332
332
  </p>
333
333
  </div>
334
334
  </div>
335
335
  <div class="method">
336
336
  <div class="title">
337
- <a name="M000712"></a><b>pop</b>()
337
+ <a name="M000714"></a><b>pop</b>()
338
338
  </div>
339
339
  <div class="description">
340
340
  <p>
@@ -352,8 +352,8 @@ Return nil if the queue is empty.
352
352
  </p>
353
353
  </div>
354
354
  <div class="sourcecode">
355
- <p class="source-link">[ <a href="javascript:toggleSource('M000712_source')" id="l_M000712_source">+</a> ]</p>
356
- <div id="M000712_source" class="dyn-source">
355
+ <p class="source-link">[ <a href="javascript:toggleSource('M000714_source')" id="l_M000714_source">+</a> ]</p>
356
+ <div id="M000714_source" class="dyn-source">
357
357
  <pre>
358
358
  <span class="ruby-comment cmt"># File lib/more/facets/pqueue.rb, line 161</span>
359
359
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pop</span>
@@ -370,16 +370,16 @@ Return nil if the queue is empty.
370
370
  </div>
371
371
  <div class="method">
372
372
  <div class="title">
373
- <a name="M000716"></a><b>pop_array</b>(n=@size)
373
+ <a name="M000718"></a><b>pop_array</b>(n=@size)
374
374
  </div>
375
375
  <div class="description">
376
376
  <p>
377
- Return <a href="PQueue.html#M000713">top</a> n-element as a sorted array.
377
+ Return <a href="PQueue.html#M000715">top</a> n-element as a sorted array.
378
378
  </p>
379
379
  </div>
380
380
  <div class="sourcecode">
381
- <p class="source-link">[ <a href="javascript:toggleSource('M000716_source')" id="l_M000716_source">+</a> ]</p>
382
- <div id="M000716_source" class="dyn-source">
381
+ <p class="source-link">[ <a href="javascript:toggleSource('M000718_source')" id="l_M000718_source">+</a> ]</p>
382
+ <div id="M000718_source" class="dyn-source">
383
383
  <pre>
384
384
  <span class="ruby-comment cmt"># File lib/more/facets/pqueue.rb, line 203</span>
385
385
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pop_array</span>(<span class="ruby-identifier">n</span>=<span class="ruby-ivar">@size</span>)
@@ -393,7 +393,7 @@ Return <a href="PQueue.html#M000713">top</a> n-element as a sorted array.
393
393
  </div>
394
394
  <div class="method">
395
395
  <div class="title">
396
- <a name="M000710"></a><b>push</b>(v)
396
+ <a name="M000712"></a><b>push</b>(v)
397
397
  </div>
398
398
  <div class="description">
399
399
  <p>
@@ -405,11 +405,11 @@ The insertion time is O(log n), with n the size of the queue.
405
405
  </div>
406
406
  <div class="aka">
407
407
  This method is also aliased as
408
- <a href="PQueue.html#M000711"><<</a>
408
+ <a href="PQueue.html#M000713"><<</a>
409
409
  </div>
410
410
  <div class="sourcecode">
411
- <p class="source-link">[ <a href="javascript:toggleSource('M000710_source')" id="l_M000710_source">+</a> ]</p>
412
- <div id="M000710_source" class="dyn-source">
411
+ <p class="source-link">[ <a href="javascript:toggleSource('M000712_source')" id="l_M000712_source">+</a> ]</p>
412
+ <div id="M000712_source" class="dyn-source">
413
413
  <pre>
414
414
  <span class="ruby-comment cmt"># File lib/more/facets/pqueue.rb, line 143</span>
415
415
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span>(<span class="ruby-identifier">v</span>)
@@ -424,25 +424,25 @@ The insertion time is O(log n), with n the size of the queue.
424
424
  </div>
425
425
  <div class="method">
426
426
  <div class="title">
427
- <a name="M000714"></a><b>push_all</b>(elements)
427
+ <a name="M000716"></a><b>push_all</b>(elements)
428
428
  </div>
429
429
  <div class="description">
430
430
  <p>
431
431
  Add more than one element at the same time. See <a
432
- href="PQueue.html#M000710">push</a>.
432
+ href="PQueue.html#M000712">push</a>.
433
433
  </p>
434
434
  <p>
435
- The elements object must respond to <a href="PQueue.html#M000720">to_a</a>,
435
+ The elements object must respond to <a href="PQueue.html#M000722">to_a</a>,
436
436
  or to be a <a href="PQueue.html">PQueue</a> itself.
437
437
  </p>
438
438
  </div>
439
439
  <div class="aka">
440
440
  This method is also aliased as
441
- <a href="PQueue.html#M000715">merge</a>
441
+ <a href="PQueue.html#M000717">merge</a>
442
442
  </div>
443
443
  <div class="sourcecode">
444
- <p class="source-link">[ <a href="javascript:toggleSource('M000714_source')" id="l_M000714_source">+</a> ]</p>
445
- <div id="M000714_source" class="dyn-source">
444
+ <p class="source-link">[ <a href="javascript:toggleSource('M000716_source')" id="l_M000716_source">+</a> ]</p>
445
+ <div id="M000716_source" class="dyn-source">
446
446
  <pre>
447
447
  <span class="ruby-comment cmt"># File lib/more/facets/pqueue.rb, line 179</span>
448
448
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push_all</span>(<span class="ruby-identifier">elements</span>)
@@ -470,21 +470,21 @@ or to be a <a href="PQueue.html">PQueue</a> itself.
470
470
  </div>
471
471
  <div class="method">
472
472
  <div class="title">
473
- <a name="M000719"></a><b>replace</b>(elements)
473
+ <a name="M000721"></a><b>replace</b>(elements)
474
474
  </div>
475
475
  <div class="description">
476
476
  <p>
477
477
  Replace the content of the heap by the <a
478
- href="PQueue.html#M000709">new</a> elements.
478
+ href="PQueue.html#M000711">new</a> elements.
479
479
  </p>
480
480
  <p>
481
- The elements object must respond to <a href="PQueue.html#M000720">to_a</a>,
481
+ The elements object must respond to <a href="PQueue.html#M000722">to_a</a>,
482
482
  or to be a <a href="PQueue.html">PQueue</a> itself.
483
483
  </p>
484
484
  </div>
485
485
  <div class="sourcecode">
486
- <p class="source-link">[ <a href="javascript:toggleSource('M000719_source')" id="l_M000719_source">+</a> ]</p>
487
- <div id="M000719_source" class="dyn-source">
486
+ <p class="source-link">[ <a href="javascript:toggleSource('M000721_source')" id="l_M000721_source">+</a> ]</p>
487
+ <div id="M000721_source" class="dyn-source">
488
488
  <pre>
489
489
  <span class="ruby-comment cmt"># File lib/more/facets/pqueue.rb, line 225</span>
490
490
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">replace</span>(<span class="ruby-identifier">elements</span>)
@@ -503,21 +503,21 @@ or to be a <a href="PQueue.html">PQueue</a> itself.
503
503
  </div>
504
504
  <div class="method">
505
505
  <div class="title">
506
- <a name="M000722"></a><b>replace_top</b>(v)
506
+ <a name="M000724"></a><b>replace_top</b>(v)
507
507
  </div>
508
508
  <div class="description">
509
509
  <p>
510
- Replace the <a href="PQueue.html#M000713">top</a> element with the given
511
- one, and return this <a href="PQueue.html#M000713">top</a> element.
510
+ Replace the <a href="PQueue.html#M000715">top</a> element with the given
511
+ one, and return this <a href="PQueue.html#M000715">top</a> element.
512
512
  </p>
513
513
  <p>
514
- Equivalent to successively calling <a href="PQueue.html#M000712">pop</a>
514
+ Equivalent to successively calling <a href="PQueue.html#M000714">pop</a>
515
515
  and push(v).
516
516
  </p>
517
517
  </div>
518
518
  <div class="sourcecode">
519
- <p class="source-link">[ <a href="javascript:toggleSource('M000722_source')" id="l_M000722_source">+</a> ]</p>
520
- <div id="M000722_source" class="dyn-source">
519
+ <p class="source-link">[ <a href="javascript:toggleSource('M000724_source')" id="l_M000724_source">+</a> ]</p>
520
+ <div id="M000724_source" class="dyn-source">
521
521
  <pre>
522
522
  <span class="ruby-comment cmt"># File lib/more/facets/pqueue.rb, line 251</span>
523
523
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">replace_top</span>(<span class="ruby-identifier">v</span>)
@@ -539,17 +539,17 @@ and push(v).
539
539
  </div>
540
540
  <div class="method">
541
541
  <div class="title">
542
- <a name="M000721"></a><b>sort</b>()
542
+ <a name="M000723"></a><b>sort</b>()
543
543
  </div>
544
544
  <div class="description">
545
545
  <p>
546
- Alias for <a href="PQueue.html#M000720">to_a</a>
546
+ Alias for <a href="PQueue.html#M000722">to_a</a>
547
547
  </p>
548
548
  </div>
549
549
  </div>
550
550
  <div class="method">
551
551
  <div class="title">
552
- <a name="M000720"></a><b>to_a</b>()
552
+ <a name="M000722"></a><b>to_a</b>()
553
553
  </div>
554
554
  <div class="description">
555
555
  <p>
@@ -558,11 +558,11 @@ Return a sorted array, with highest priority first.
558
558
  </div>
559
559
  <div class="aka">
560
560
  This method is also aliased as
561
- <a href="PQueue.html#M000721">sort</a>
561
+ <a href="PQueue.html#M000723">sort</a>
562
562
  </div>
563
563
  <div class="sourcecode">
564
- <p class="source-link">[ <a href="javascript:toggleSource('M000720_source')" id="l_M000720_source">+</a> ]</p>
565
- <div id="M000720_source" class="dyn-source">
564
+ <p class="source-link">[ <a href="javascript:toggleSource('M000722_source')" id="l_M000722_source">+</a> ]</p>
565
+ <div id="M000722_source" class="dyn-source">
566
566
  <pre>
567
567
  <span class="ruby-comment cmt"># File lib/more/facets/pqueue.rb, line 237</span>
568
568
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span>
@@ -579,7 +579,7 @@ Return a sorted array, with highest priority first.
579
579
  </div>
580
580
  <div class="method">
581
581
  <div class="title">
582
- <a name="M000713"></a><b>top</b>()
582
+ <a name="M000715"></a><b>top</b>()
583
583
  </div>
584
584
  <div class="description">
585
585
  <p>
@@ -587,8 +587,8 @@ Return the element with the highest priority.
587
587
  </p>
588
588
  </div>
589
589
  <div class="sourcecode">
590
- <p class="source-link">[ <a href="javascript:toggleSource('M000713_source')" id="l_M000713_source">+</a> ]</p>
591
- <div id="M000713_source" class="dyn-source">
590
+ <p class="source-link">[ <a href="javascript:toggleSource('M000715_source')" id="l_M000715_source">+</a> ]</p>
591
+ <div id="M000715_source" class="dyn-source">
592
592
  <pre>
593
593
  <span class="ruby-comment cmt"># File lib/more/facets/pqueue.rb, line 171</span>
594
594
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">top</span>