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
@@ -73,7 +73,7 @@
73
73
 
74
74
 
75
75
  <div class="sectiontitle">Methods</div>
76
- <span style="padding-right: 5px;"><a href="#M000342">root?</a></span>
76
+ <span style="padding-right: 5px;"><a href="#M000354">root?</a></span>
77
77
 
78
78
 
79
79
 
@@ -83,7 +83,7 @@
83
83
  <div class="sectiontitle">Public Instance methods</div>
84
84
  <div class="method">
85
85
  <div class="title">
86
- <a name="M000342"></a><b>root?</b>(dir=nil)
86
+ <a name="M000354"></a><b>root?</b>(dir=nil)
87
87
  </div>
88
88
  <div class="description">
89
89
  <p>
@@ -94,8 +94,8 @@ CREDIT: Jeffrey Schwab
94
94
  </p>
95
95
  </div>
96
96
  <div class="sourcecode">
97
- <p class="source-link">[ <a href="javascript:toggleSource('M000342_source')" id="l_M000342_source">+</a> ]</p>
98
- <div id="M000342_source" class="dyn-source">
97
+ <p class="source-link">[ <a href="javascript:toggleSource('M000354_source')" id="l_M000354_source">+</a> ]</p>
98
+ <div id="M000354_source" class="dyn-source">
99
99
  <pre>
100
100
  <span class="ruby-comment cmt"># File lib/core/facets/filetest/root.rb, line 9</span>
101
101
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">root?</span>(<span class="ruby-identifier">dir</span>=<span class="ruby-keyword kw">nil</span>)
@@ -81,8 +81,8 @@ Object
81
81
 
82
82
 
83
83
  <div class="sectiontitle">Methods</div>
84
- <span style="padding-right: 5px;"><a href="#M000206">round_at</a></span>
85
- <span style="padding-right: 5px;"><a href="#M000207">round_to</a></span>
84
+ <span style="padding-right: 5px;"><a href="#M000217">round_at</a></span>
85
+ <span style="padding-right: 5px;"><a href="#M000218">round_to</a></span>
86
86
 
87
87
 
88
88
 
@@ -92,7 +92,7 @@ Object
92
92
  <div class="sectiontitle">Public Instance methods</div>
93
93
  <div class="method">
94
94
  <div class="title">
95
- <a name="M000206"></a><b>round_at</b>( d )
95
+ <a name="M000217"></a><b>round_at</b>( d )
96
96
  </div>
97
97
  <div class="description">
98
98
  <p>
@@ -109,8 +109,8 @@ CREDIT: Trans
109
109
  </p>
110
110
  </div>
111
111
  <div class="sourcecode">
112
- <p class="source-link">[ <a href="javascript:toggleSource('M000206_source')" id="l_M000206_source">+</a> ]</p>
113
- <div id="M000206_source" class="dyn-source">
112
+ <p class="source-link">[ <a href="javascript:toggleSource('M000217_source')" id="l_M000217_source">+</a> ]</p>
113
+ <div id="M000217_source" class="dyn-source">
114
114
  <pre>
115
115
  <span class="ruby-comment cmt"># File lib/core/facets/numeric/round.rb, line 50</span>
116
116
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_at</span>( <span class="ruby-identifier">d</span> ) <span class="ruby-comment cmt">#d=0</span>
@@ -122,7 +122,7 @@ CREDIT: Trans
122
122
  </div>
123
123
  <div class="method">
124
124
  <div class="title">
125
- <a name="M000207"></a><b>round_to</b>( n )
125
+ <a name="M000218"></a><b>round_to</b>( n )
126
126
  </div>
127
127
  <div class="description">
128
128
  <p>
@@ -139,8 +139,8 @@ CREDIT: Trans
139
139
  </p>
140
140
  </div>
141
141
  <div class="sourcecode">
142
- <p class="source-link">[ <a href="javascript:toggleSource('M000207_source')" id="l_M000207_source">+</a> ]</p>
143
- <div id="M000207_source" class="dyn-source">
142
+ <p class="source-link">[ <a href="javascript:toggleSource('M000218_source')" id="l_M000218_source">+</a> ]</p>
143
+ <div id="M000218_source" class="dyn-source">
144
144
  <pre>
145
145
  <span class="ruby-comment cmt"># File lib/core/facets/numeric/round.rb, line 63</span>
146
146
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_to</span>( <span class="ruby-identifier">n</span> ) <span class="ruby-comment cmt">#n=1</span>
@@ -99,9 +99,9 @@ accorrding to the operation applied to it.
99
99
 
100
100
 
101
101
  <div class="sectiontitle">Methods</div>
102
- <span style="padding-right: 5px;"><a href="#M000223">method_missing</a></span>
103
- <span style="padding-right: 5px;"><a href="#M000221">new</a></span>
104
- <span style="padding-right: 5px;"><a href="#M000222">to_proc</a></span>
102
+ <span style="padding-right: 5px;"><a href="#M000234">method_missing</a></span>
103
+ <span style="padding-right: 5px;"><a href="#M000232">new</a></span>
104
+ <span style="padding-right: 5px;"><a href="#M000233">to_proc</a></span>
105
105
 
106
106
 
107
107
 
@@ -111,11 +111,11 @@ accorrding to the operation applied to it.
111
111
  <div class="sectiontitle">Public Class methods</div>
112
112
  <div class="method">
113
113
  <div class="title">
114
- <a name="M000221"></a><b>new</b>(&amp;function)
114
+ <a name="M000232"></a><b>new</b>(&amp;function)
115
115
  </div>
116
116
  <div class="sourcecode">
117
- <p class="source-link">[ <a href="javascript:toggleSource('M000221_source')" id="l_M000221_source">+</a> ]</p>
118
- <div id="M000221_source" class="dyn-source">
117
+ <p class="source-link">[ <a href="javascript:toggleSource('M000232_source')" id="l_M000232_source">+</a> ]</p>
118
+ <div id="M000232_source" class="dyn-source">
119
119
  <pre>
120
120
  <span class="ruby-comment cmt"># File lib/core/facets/functor.rb, line 63</span>
121
121
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">function</span>)
@@ -128,7 +128,7 @@ accorrding to the operation applied to it.
128
128
  <div class="sectiontitle">Public Instance methods</div>
129
129
  <div class="method">
130
130
  <div class="title">
131
- <a name="M000223"></a><b>method_missing</b>(op, *args, &amp;blk)
131
+ <a name="M000234"></a><b>method_missing</b>(op, *args, &amp;blk)
132
132
  </div>
133
133
  <div class="description">
134
134
  <p>
@@ -136,8 +136,8 @@ Any action against the functor is processesd by the function.
136
136
  </p>
137
137
  </div>
138
138
  <div class="sourcecode">
139
- <p class="source-link">[ <a href="javascript:toggleSource('M000223_source')" id="l_M000223_source">+</a> ]</p>
140
- <div id="M000223_source" class="dyn-source">
139
+ <p class="source-link">[ <a href="javascript:toggleSource('M000234_source')" id="l_M000234_source">+</a> ]</p>
140
+ <div id="M000234_source" class="dyn-source">
141
141
  <pre>
142
142
  <span class="ruby-comment cmt"># File lib/core/facets/functor.rb, line 72</span>
143
143
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">op</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
@@ -149,11 +149,11 @@ Any action against the functor is processesd by the function.
149
149
  </div>
150
150
  <div class="method">
151
151
  <div class="title">
152
- <a name="M000222"></a><b>to_proc</b>()
152
+ <a name="M000233"></a><b>to_proc</b>()
153
153
  </div>
154
154
  <div class="sourcecode">
155
- <p class="source-link">[ <a href="javascript:toggleSource('M000222_source')" id="l_M000222_source">+</a> ]</p>
156
- <div id="M000222_source" class="dyn-source">
155
+ <p class="source-link">[ <a href="javascript:toggleSource('M000233_source')" id="l_M000233_source">+</a> ]</p>
156
+ <div id="M000233_source" class="dyn-source">
157
157
  <pre>
158
158
  <span class="ruby-comment cmt"># File lib/core/facets/functor.rb, line 67</span>
159
159
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc</span>
@@ -58,6 +58,7 @@
58
58
  <td>In:</td>
59
59
  <td>
60
60
  <a href="../files/lib/core/facets/to_hash_rb.html">lib/core/facets/to_hash.rb</a>
61
+ <a href="../files/lib/core/facets/hash/new_with_rb.html">lib/core/facets/hash/new_with.rb</a>
61
62
  <a href="../files/lib/core/facets/hash/zipnew_rb.html">lib/core/facets/hash/zipnew.rb</a>
62
63
  <a href="../files/lib/core/facets/hash/update_values_rb.html">lib/core/facets/hash/update_values.rb</a>
63
64
  <a href="../files/lib/core/facets/hash/alias_rb.html">lib/core/facets/hash/alias.rb</a>
@@ -86,6 +87,7 @@
86
87
  <a href="../files/lib/core/facets/hash/to_struct_rb.html">lib/core/facets/hash/to_struct.rb</a>
87
88
  <a href="../files/lib/core/facets/hash/symbolize_keys_rb.html">lib/core/facets/hash/symbolize_keys.rb</a>
88
89
  <a href="../files/lib/core/facets/hash/join_rb.html">lib/core/facets/hash/join.rb</a>
90
+ <a href="../files/lib/core/facets/hash/group_by_value_rb.html">lib/core/facets/hash/group_by_value.rb</a>
89
91
  <a href="../files/lib/core/facets/hash/replace_each_rb.html">lib/core/facets/hash/replace_each.rb</a>
90
92
  <a href="../files/lib/core/facets/hash/slice_rb.html">lib/core/facets/hash/slice.rb</a>
91
93
  <a href="../files/lib/core/facets/hash/op_add_rb.html">lib/core/facets/hash/op_add.rb</a>
@@ -118,62 +120,66 @@ Object
118
120
 
119
121
 
120
122
  <div class="sectiontitle">Methods</div>
121
- <span style="padding-right: 5px;"><a href="#M000082">&amp;</a></span>
122
- <span style="padding-right: 5px;"><a href="#M000097">*</a></span>
123
- <span style="padding-right: 5px;"><a href="#M000125">+</a></span>
124
- <span style="padding-right: 5px;"><a href="#M000083">-</a></span>
125
- <span style="padding-right: 5px;"><a href="#M000098">&lt;&lt;</a></span>
126
- <span style="padding-right: 5px;"><a href="#M000078">alias!</a></span>
127
- <span style="padding-right: 5px;"><a href="#M000130">argumentize</a></span>
128
- <span style="padding-right: 5px;"><a href="#M000079">autonew</a></span>
129
- <span style="padding-right: 5px;"><a href="#M000109">collate</a></span>
130
- <span style="padding-right: 5px;"><a href="#M000110">collate!</a></span>
131
- <span style="padding-right: 5px;"><a href="#M000111">delete_unless</a></span>
132
- <span style="padding-right: 5px;"><a href="#M000112">delete_values</a></span>
133
- <span style="padding-right: 5px;"><a href="#M000113">delete_values_at</a></span>
134
- <span style="padding-right: 5px;"><a href="#M000106">diff</a></span>
135
- <span style="padding-right: 5px;"><a href="#M000090">each_with_key</a></span>
136
- <span style="padding-right: 5px;"><a href="#M000084">except</a></span>
137
- <span style="padding-right: 5px;"><a href="#M000085">except!</a></span>
138
- <span style="padding-right: 5px;"><a href="#M000108">graph!</a></span>
139
- <span style="padding-right: 5px;"><a href="#M000086">has_keys?</a></span>
140
- <span style="padding-right: 5px;"><a href="#M000088">has_only_keys?</a></span>
141
- <span style="padding-right: 5px;"><a href="#M000104">insert</a></span>
142
- <span style="padding-right: 5px;"><a href="#M000099">inverse</a></span>
143
- <span style="padding-right: 5px;"><a href="#M000121">join</a></span>
144
- <span style="padding-right: 5px;"><a href="#M000087">keys?</a></span>
145
- <span style="padding-right: 5px;"><a href="#M000107">mash!</a></span>
146
- <span style="padding-right: 5px;"><a href="#M000089">only_keys?</a></span>
147
- <span style="padding-right: 5px;"><a href="#M000100">recursive_merge</a></span>
148
- <span style="padding-right: 5px;"><a href="#M000101">recursive_merge!</a></span>
149
- <span style="padding-right: 5px;"><a href="#M000080">recursively</a></span>
150
- <span style="padding-right: 5px;"><a href="#M000081">recursively!</a></span>
151
- <span style="padding-right: 5px;"><a href="#M000126">rekey</a></span>
152
- <span style="padding-right: 5px;"><a href="#M000127">rekey!</a></span>
153
- <span style="padding-right: 5px;"><a href="#M000122">replace_each</a></span>
154
- <span style="padding-right: 5px;"><a href="#M000091">reverse_merge</a></span>
155
- <span style="padding-right: 5px;"><a href="#M000092">reverse_merge!</a></span>
156
- <span style="padding-right: 5px;"><a href="#M000093">reverse_update</a></span>
157
- <span style="padding-right: 5px;"><a href="#M000105">select!</a></span>
158
- <span style="padding-right: 5px;"><a href="#M000123">slice</a></span>
159
- <span style="padding-right: 5px;"><a href="#M000124">slice!</a></span>
160
- <span style="padding-right: 5px;"><a href="#M000119">stringify_keys</a></span>
161
- <span style="padding-right: 5px;"><a href="#M000120">stringify_keys!</a></span>
162
- <span style="padding-right: 5px;"><a href="#M000115">swap!</a></span>
163
- <span style="padding-right: 5px;"><a href="#M000117">symbolize_keys</a></span>
164
- <span style="padding-right: 5px;"><a href="#M000118">symbolize_keys!</a></span>
165
- <span style="padding-right: 5px;"><a href="#M000075">to_h</a></span>
166
- <span style="padding-right: 5px;"><a href="#M000102">to_proc</a></span>
167
- <span style="padding-right: 5px;"><a href="#M000103">to_proc_with_reponse</a></span>
168
- <span style="padding-right: 5px;"><a href="#M000116">to_struct</a></span>
169
- <span style="padding-right: 5px;"><a href="#M000094">traverse</a></span>
170
- <span style="padding-right: 5px;"><a href="#M000095">traverse!</a></span>
171
- <span style="padding-right: 5px;"><a href="#M000128">update_each</a></span>
172
- <span style="padding-right: 5px;"><a href="#M000129">update_keys</a></span>
173
- <span style="padding-right: 5px;"><a href="#M000077">update_values</a></span>
174
- <span style="padding-right: 5px;"><a href="#M000114">weave</a></span>
175
- <span style="padding-right: 5px;"><a href="#M000076">zipnew</a></span>
176
- <span style="padding-right: 5px;"><a href="#M000096">|</a></span>
123
+ <span style="padding-right: 5px;"><a href="#M000114">&amp;</a></span>
124
+ <span style="padding-right: 5px;"><a href="#M000129">*</a></span>
125
+ <span style="padding-right: 5px;"><a href="#M000158">+</a></span>
126
+ <span style="padding-right: 5px;"><a href="#M000115">-</a></span>
127
+ <span style="padding-right: 5px;"><a href="#M000130">&lt;&lt;</a></span>
128
+ <span style="padding-right: 5px;"><a href="#M000110">alias!</a></span>
129
+ <span style="padding-right: 5px;"><a href="#M000163">argumentize</a></span>
130
+ <span style="padding-right: 5px;"><a href="#M000111">autonew</a></span>
131
+ <span style="padding-right: 5px;"><a href="#M000141">collate</a></span>
132
+ <span style="padding-right: 5px;"><a href="#M000142">collate!</a></span>
133
+ <span style="padding-right: 5px;"><a href="#M000105">dearray_singluar_values</a></span>
134
+ <span style="padding-right: 5px;"><a href="#M000104">dearray_values</a></span>
135
+ <span style="padding-right: 5px;"><a href="#M000143">delete_unless</a></span>
136
+ <span style="padding-right: 5px;"><a href="#M000144">delete_values</a></span>
137
+ <span style="padding-right: 5px;"><a href="#M000145">delete_values_at</a></span>
138
+ <span style="padding-right: 5px;"><a href="#M000138">diff</a></span>
139
+ <span style="padding-right: 5px;"><a href="#M000122">each_with_key</a></span>
140
+ <span style="padding-right: 5px;"><a href="#M000116">except</a></span>
141
+ <span style="padding-right: 5px;"><a href="#M000117">except!</a></span>
142
+ <span style="padding-right: 5px;"><a href="#M000140">graph!</a></span>
143
+ <span style="padding-right: 5px;"><a href="#M000154">group_by_value</a></span>
144
+ <span style="padding-right: 5px;"><a href="#M000118">has_keys?</a></span>
145
+ <span style="padding-right: 5px;"><a href="#M000120">has_only_keys?</a></span>
146
+ <span style="padding-right: 5px;"><a href="#M000136">insert</a></span>
147
+ <span style="padding-right: 5px;"><a href="#M000131">inverse</a></span>
148
+ <span style="padding-right: 5px;"><a href="#M000153">join</a></span>
149
+ <span style="padding-right: 5px;"><a href="#M000119">keys?</a></span>
150
+ <span style="padding-right: 5px;"><a href="#M000139">mash!</a></span>
151
+ <span style="padding-right: 5px;"><a href="#M000107">new_with</a></span>
152
+ <span style="padding-right: 5px;"><a href="#M000121">only_keys?</a></span>
153
+ <span style="padding-right: 5px;"><a href="#M000132">recursive_merge</a></span>
154
+ <span style="padding-right: 5px;"><a href="#M000133">recursive_merge!</a></span>
155
+ <span style="padding-right: 5px;"><a href="#M000112">recursively</a></span>
156
+ <span style="padding-right: 5px;"><a href="#M000113">recursively!</a></span>
157
+ <span style="padding-right: 5px;"><a href="#M000159">rekey</a></span>
158
+ <span style="padding-right: 5px;"><a href="#M000160">rekey!</a></span>
159
+ <span style="padding-right: 5px;"><a href="#M000155">replace_each</a></span>
160
+ <span style="padding-right: 5px;"><a href="#M000123">reverse_merge</a></span>
161
+ <span style="padding-right: 5px;"><a href="#M000124">reverse_merge!</a></span>
162
+ <span style="padding-right: 5px;"><a href="#M000125">reverse_update</a></span>
163
+ <span style="padding-right: 5px;"><a href="#M000137">select!</a></span>
164
+ <span style="padding-right: 5px;"><a href="#M000156">slice</a></span>
165
+ <span style="padding-right: 5px;"><a href="#M000157">slice!</a></span>
166
+ <span style="padding-right: 5px;"><a href="#M000151">stringify_keys</a></span>
167
+ <span style="padding-right: 5px;"><a href="#M000152">stringify_keys!</a></span>
168
+ <span style="padding-right: 5px;"><a href="#M000147">swap!</a></span>
169
+ <span style="padding-right: 5px;"><a href="#M000149">symbolize_keys</a></span>
170
+ <span style="padding-right: 5px;"><a href="#M000150">symbolize_keys!</a></span>
171
+ <span style="padding-right: 5px;"><a href="#M000106">to_h</a></span>
172
+ <span style="padding-right: 5px;"><a href="#M000134">to_proc</a></span>
173
+ <span style="padding-right: 5px;"><a href="#M000135">to_proc_with_reponse</a></span>
174
+ <span style="padding-right: 5px;"><a href="#M000148">to_struct</a></span>
175
+ <span style="padding-right: 5px;"><a href="#M000126">traverse</a></span>
176
+ <span style="padding-right: 5px;"><a href="#M000127">traverse!</a></span>
177
+ <span style="padding-right: 5px;"><a href="#M000161">update_each</a></span>
178
+ <span style="padding-right: 5px;"><a href="#M000162">update_keys</a></span>
179
+ <span style="padding-right: 5px;"><a href="#M000109">update_values</a></span>
180
+ <span style="padding-right: 5px;"><a href="#M000146">weave</a></span>
181
+ <span style="padding-right: 5px;"><a href="#M000108">zipnew</a></span>
182
+ <span style="padding-right: 5px;"><a href="#M000128">|</a></span>
177
183
 
178
184
 
179
185
 
@@ -183,7 +189,7 @@ Object
183
189
  <div class="sectiontitle">Public Class methods</div>
184
190
  <div class="method">
185
191
  <div class="title">
186
- <a name="M000079"></a><b>autonew</b>(*args)
192
+ <a name="M000111"></a><b>autonew</b>(*args)
187
193
  </div>
188
194
  <div class="description">
189
195
  <pre>
@@ -206,8 +212,8 @@ CREDIT: Trans, Jan Molic
206
212
  </p>
207
213
  </div>
208
214
  <div class="sourcecode">
209
- <p class="source-link">[ <a href="javascript:toggleSource('M000079_source')" id="l_M000079_source">+</a> ]</p>
210
- <div id="M000079_source" class="dyn-source">
215
+ <p class="source-link">[ <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">+</a> ]</p>
216
+ <div id="M000111_source" class="dyn-source">
211
217
  <pre>
212
218
  <span class="ruby-comment cmt"># File lib/core/facets/hash/autonew.rb, line 19</span>
213
219
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">autonew</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
@@ -221,7 +227,34 @@ CREDIT: Trans, Jan Molic
221
227
  </div>
222
228
  <div class="method">
223
229
  <div class="title">
224
- <a name="M000076"></a><b>zipnew</b>(keys,values)
230
+ <a name="M000107"></a><b>new_with</b>( {|| ...}
231
+ </div>
232
+ <div class="description">
233
+ <p>
234
+ Instantiate a new hash with a default value determined by the block.
235
+ </p>
236
+ <p>
237
+ <a href="Hash.html#M000107">Hash.new_with</a> { [] }
238
+ </p>
239
+ <p>
240
+ CREDIT: Pit Capitan
241
+ </p>
242
+ </div>
243
+ <div class="sourcecode">
244
+ <p class="source-link">[ <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">+</a> ]</p>
245
+ <div id="M000107_source" class="dyn-source">
246
+ <pre>
247
+ <span class="ruby-comment cmt"># File lib/core/facets/hash/new_with.rb, line 10</span>
248
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new_with</span> <span class="ruby-comment cmt">#:yield:</span>
249
+ <span class="ruby-identifier">new</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">h</span>, <span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-keyword kw">yield</span> }
250
+ <span class="ruby-keyword kw">end</span>
251
+ </pre>
252
+ </div>
253
+ </div>
254
+ </div>
255
+ <div class="method">
256
+ <div class="title">
257
+ <a name="M000108"></a><b>zipnew</b>(keys,values)
225
258
  </div>
226
259
  <div class="description">
227
260
  <p>
@@ -236,8 +269,8 @@ CREDIT: Trans, Ara T. Howard
236
269
  </p>
237
270
  </div>
238
271
  <div class="sourcecode">
239
- <p class="source-link">[ <a href="javascript:toggleSource('M000076_source')" id="l_M000076_source">+</a> ]</p>
240
- <div id="M000076_source" class="dyn-source">
272
+ <p class="source-link">[ <a href="javascript:toggleSource('M000108_source')" id="l_M000108_source">+</a> ]</p>
273
+ <div id="M000108_source" class="dyn-source">
241
274
  <pre>
242
275
  <span class="ruby-comment cmt"># File lib/core/facets/hash/zipnew.rb, line 11</span>
243
276
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">zipnew</span>(<span class="ruby-identifier">keys</span>,<span class="ruby-identifier">values</span>) <span class="ruby-comment cmt"># or some better name</span>
@@ -252,7 +285,7 @@ CREDIT: Trans, Ara T. Howard
252
285
  <div class="sectiontitle">Public Instance methods</div>
253
286
  <div class="method">
254
287
  <div class="title">
255
- <a name="M000082"></a><b>&amp;</b>(other)
288
+ <a name="M000114"></a><b>&amp;</b>(other)
256
289
  </div>
257
290
  <div class="description">
258
291
  <p>
@@ -277,8 +310,8 @@ CREDIT: Trans
277
310
  </p>
278
311
  </div>
279
312
  <div class="sourcecode">
280
- <p class="source-link">[ <a href="javascript:toggleSource('M000082_source')" id="l_M000082_source">+</a> ]</p>
281
- <div id="M000082_source" class="dyn-source">
313
+ <p class="source-link">[ <a href="javascript:toggleSource('M000114_source')" id="l_M000114_source">+</a> ]</p>
314
+ <div id="M000114_source" class="dyn-source">
282
315
  <pre>
283
316
  <span class="ruby-comment cmt"># File lib/core/facets/hash/op_and.rb, line 19</span>
284
317
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&amp;</span>(<span class="ruby-identifier">other</span>)
@@ -299,7 +332,7 @@ CREDIT: Trans
299
332
  </div>
300
333
  <div class="method">
301
334
  <div class="title">
302
- <a name="M000097"></a><b>*</b>(other)
335
+ <a name="M000129"></a><b>*</b>(other)
303
336
  </div>
304
337
  <div class="description">
305
338
  <p>
@@ -317,8 +350,8 @@ CREDIT: Trans
317
350
  </p>
318
351
  </div>
319
352
  <div class="sourcecode">
320
- <p class="source-link">[ <a href="javascript:toggleSource('M000097_source')" id="l_M000097_source">+</a> ]</p>
321
- <div id="M000097_source" class="dyn-source">
353
+ <p class="source-link">[ <a href="javascript:toggleSource('M000129_source')" id="l_M000129_source">+</a> ]</p>
354
+ <div id="M000129_source" class="dyn-source">
322
355
  <pre>
323
356
  <span class="ruby-comment cmt"># File lib/core/facets/hash/op_mul.rb, line 13</span>
324
357
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">*</span>(<span class="ruby-identifier">other</span>)
@@ -330,7 +363,7 @@ CREDIT: Trans
330
363
  </div>
331
364
  <div class="method">
332
365
  <div class="title">
333
- <a name="M000125"></a><b>+</b>(other)
366
+ <a name="M000158"></a><b>+</b>(other)
334
367
  </div>
335
368
  <div class="description">
336
369
  <p>
@@ -341,8 +374,8 @@ CREDIT: Trans
341
374
  </p>
342
375
  </div>
343
376
  <div class="sourcecode">
344
- <p class="source-link">[ <a href="javascript:toggleSource('M000125_source')" id="l_M000125_source">+</a> ]</p>
345
- <div id="M000125_source" class="dyn-source">
377
+ <p class="source-link">[ <a href="javascript:toggleSource('M000158_source')" id="l_M000158_source">+</a> ]</p>
378
+ <div id="M000158_source" class="dyn-source">
346
379
  <pre>
347
380
  <span class="ruby-comment cmt"># File lib/core/facets/hash/op_add.rb, line 7</span>
348
381
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</span>(<span class="ruby-identifier">other</span>)
@@ -354,7 +387,7 @@ CREDIT: Trans
354
387
  </div>
355
388
  <div class="method">
356
389
  <div class="title">
357
- <a name="M000083"></a><b>-</b>(other)
390
+ <a name="M000115"></a><b>-</b>(other)
358
391
  </div>
359
392
  <div class="description">
360
393
  <p>
@@ -367,8 +400,8 @@ CREDIT: Trans
367
400
  </p>
368
401
  </div>
369
402
  <div class="sourcecode">
370
- <p class="source-link">[ <a href="javascript:toggleSource('M000083_source')" id="l_M000083_source">+</a> ]</p>
371
- <div id="M000083_source" class="dyn-source">
403
+ <p class="source-link">[ <a href="javascript:toggleSource('M000115_source')" id="l_M000115_source">+</a> ]</p>
404
+ <div id="M000115_source" class="dyn-source">
372
405
  <pre>
373
406
  <span class="ruby-comment cmt"># File lib/core/facets/hash/op_sub.rb, line 9</span>
374
407
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">other</span>)
@@ -392,7 +425,7 @@ CREDIT: Trans
392
425
  </div>
393
426
  <div class="method">
394
427
  <div class="title">
395
- <a name="M000098"></a><b>&lt;&lt;</b>(other)
428
+ <a name="M000130"></a><b>&lt;&lt;</b>(other)
396
429
  </div>
397
430
  <div class="description">
398
431
  <p>
@@ -403,8 +436,8 @@ CREDIT: Trans
403
436
  </p>
404
437
  </div>
405
438
  <div class="sourcecode">
406
- <p class="source-link">[ <a href="javascript:toggleSource('M000098_source')" id="l_M000098_source">+</a> ]</p>
407
- <div id="M000098_source" class="dyn-source">
439
+ <p class="source-link">[ <a href="javascript:toggleSource('M000130_source')" id="l_M000130_source">+</a> ]</p>
440
+ <div id="M000130_source" class="dyn-source">
408
441
  <pre>
409
442
  <span class="ruby-comment cmt"># File lib/core/facets/hash/op_push.rb, line 8</span>
410
443
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&lt;&lt;</span>(<span class="ruby-identifier">other</span>)
@@ -421,7 +454,7 @@ CREDIT: Trans
421
454
  </div>
422
455
  <div class="method">
423
456
  <div class="title">
424
- <a name="M000078"></a><b>alias!</b>(newkey, oldkey)
457
+ <a name="M000110"></a><b>alias!</b>(newkey, oldkey)
425
458
  </div>
426
459
  <div class="description">
427
460
  <p>
@@ -456,8 +489,8 @@ TODO: Rename to aliaskey or something else.
456
489
  </p>
457
490
  </div>
458
491
  <div class="sourcecode">
459
- <p class="source-link">[ <a href="javascript:toggleSource('M000078_source')" id="l_M000078_source">+</a> ]</p>
460
- <div id="M000078_source" class="dyn-source">
492
+ <p class="source-link">[ <a href="javascript:toggleSource('M000110_source')" id="l_M000110_source">+</a> ]</p>
493
+ <div id="M000110_source" class="dyn-source">
461
494
  <pre>
462
495
  <span class="ruby-comment cmt"># File lib/core/facets/hash/alias.rb, line 25</span>
463
496
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alias!</span>(<span class="ruby-identifier">newkey</span>, <span class="ruby-identifier">oldkey</span>)
@@ -470,7 +503,7 @@ TODO: Rename to aliaskey or something else.
470
503
  </div>
471
504
  <div class="method">
472
505
  <div class="title">
473
- <a name="M000130"></a><b>argumentize</b>(args_field=nil)
506
+ <a name="M000163"></a><b>argumentize</b>(args_field=nil)
474
507
  </div>
475
508
  <div class="description">
476
509
  <p>
@@ -484,8 +517,8 @@ Turn a hash into arguments.
484
517
  </pre>
485
518
  </div>
486
519
  <div class="sourcecode">
487
- <p class="source-link">[ <a href="javascript:toggleSource('M000130_source')" id="l_M000130_source">+</a> ]</p>
488
- <div id="M000130_source" class="dyn-source">
520
+ <p class="source-link">[ <a href="javascript:toggleSource('M000163_source')" id="l_M000163_source">+</a> ]</p>
521
+ <div id="M000163_source" class="dyn-source">
489
522
  <pre>
490
523
  <span class="ruby-comment cmt"># File lib/core/facets/hash/argumentize.rb, line 10</span>
491
524
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">argumentize</span>(<span class="ruby-identifier">args_field</span>=<span class="ruby-keyword kw">nil</span>)
@@ -504,7 +537,7 @@ Turn a hash into arguments.
504
537
  </div>
505
538
  <div class="method">
506
539
  <div class="title">
507
- <a name="M000109"></a><b>collate</b>(other_hash)
540
+ <a name="M000141"></a><b>collate</b>(other_hash)
508
541
  </div>
509
542
  <div class="description">
510
543
  <p>
@@ -516,16 +549,40 @@ to be arrays representing the values from both hashes.
516
549
  #=&gt; { :a=&gt;[1,3], :b=&gt;[2,4], :c=&gt;[5] }
517
550
  </pre>
518
551
  <p>
519
- CREDIT: Gavin Kistner (Phrogz)
552
+ CREDIT: Tilo Sloboda CREDIT: Gavin Kistner (Phrogz)
520
553
  </p>
521
554
  </div>
522
555
  <div class="sourcecode">
523
- <p class="source-link">[ <a href="javascript:toggleSource('M000109_source')" id="l_M000109_source">+</a> ]</p>
524
- <div id="M000109_source" class="dyn-source">
556
+ <p class="source-link">[ <a href="javascript:toggleSource('M000141_source')" id="l_M000141_source">+</a> ]</p>
557
+ <div id="M000141_source" class="dyn-source">
525
558
  <pre>
526
- <span class="ruby-comment cmt"># File lib/core/facets/hash/collate.rb, line 11</span>
559
+ <span class="ruby-comment cmt"># File lib/core/facets/hash/collate.rb, line 12</span>
527
560
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collate</span>(<span class="ruby-identifier">other_hash</span>)
528
- <span class="ruby-identifier">dup</span>.<span class="ruby-identifier">collate!</span>(<span class="ruby-identifier">other_hash</span>)
561
+ <span class="ruby-identifier">h</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
562
+ <span class="ruby-comment cmt"># Prepare, ensuring every existing key is already an Array</span>
563
+ <span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
564
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
565
+ <span class="ruby-identifier">h</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
566
+ <span class="ruby-keyword kw">else</span>
567
+ <span class="ruby-identifier">h</span>[<span class="ruby-identifier">key</span>] = [<span class="ruby-identifier">value</span>]
568
+ <span class="ruby-keyword kw">end</span>
569
+ <span class="ruby-keyword kw">end</span>
570
+ <span class="ruby-comment cmt"># Collate with values from other_hash</span>
571
+ <span class="ruby-identifier">other_hash</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
572
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">h</span>[<span class="ruby-identifier">key</span>]
573
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
574
+ <span class="ruby-identifier">h</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">concat</span>(<span class="ruby-identifier">value</span>)
575
+ <span class="ruby-keyword kw">else</span>
576
+ <span class="ruby-identifier">h</span>[<span class="ruby-identifier">key</span>] <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">value</span>
577
+ <span class="ruby-keyword kw">end</span>
578
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
579
+ <span class="ruby-identifier">h</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
580
+ <span class="ruby-keyword kw">else</span>
581
+ <span class="ruby-identifier">h</span>[<span class="ruby-identifier">key</span>] = [<span class="ruby-identifier">value</span>]
582
+ <span class="ruby-keyword kw">end</span>
583
+ <span class="ruby-keyword kw">end</span>
584
+ <span class="ruby-comment cmt">#each{ |key, value| value.uniq! } if options[ :uniq ]</span>
585
+ <span class="ruby-identifier">h</span>
529
586
  <span class="ruby-keyword kw">end</span>
530
587
  </pre>
531
588
  </div>
@@ -533,44 +590,98 @@ CREDIT: Gavin Kistner (Phrogz)
533
590
  </div>
534
591
  <div class="method">
535
592
  <div class="title">
536
- <a name="M000110"></a><b>collate!</b>(other_hash)
593
+ <a name="M000142"></a><b>collate!</b>(other_hash)
537
594
  </div>
538
595
  <div class="description">
539
596
  <p>
540
- The same as <a href="Hash.html#M000109">collate</a>, but modifies the
597
+ The same as <a href="Hash.html#M000141">collate</a>, but modifies the
541
598
  receiver in place.
542
599
  </p>
543
600
  </div>
544
601
  <div class="sourcecode">
545
- <p class="source-link">[ <a href="javascript:toggleSource('M000110_source')" id="l_M000110_source">+</a> ]</p>
546
- <div id="M000110_source" class="dyn-source">
602
+ <p class="source-link">[ <a href="javascript:toggleSource('M000142_source')" id="l_M000142_source">+</a> ]</p>
603
+ <div id="M000142_source" class="dyn-source">
547
604
  <pre>
548
- <span class="ruby-comment cmt"># File lib/core/facets/hash/collate.rb, line 17</span>
605
+ <span class="ruby-comment cmt"># File lib/core/facets/hash/collate.rb, line 42</span>
549
606
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collate!</span>(<span class="ruby-identifier">other_hash</span>)
550
- <span class="ruby-comment cmt"># Prepare, ensuring every existing key is already an Array</span>
551
- <span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
552
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
553
- <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
607
+ <span class="ruby-identifier">result</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">collate</span>(<span class="ruby-identifier">other_hash</span>)
608
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">replace</span>(<span class="ruby-identifier">result</span>)
609
+ <span class="ruby-keyword kw">end</span>
610
+ </pre>
611
+ </div>
612
+ </div>
613
+ </div>
614
+ <div class="method">
615
+ <div class="title">
616
+ <a name="M000105"></a><b>dearray_singluar_values</b>()
617
+ </div>
618
+ <div class="description">
619
+ <p>
620
+ Any array values with less one or no elements will have the element or nil
621
+ set as the value instead.
622
+ </p>
623
+ <pre>
624
+ h = { :a=&gt;[1], :b=&gt;[1,2], :c=&gt;3, :d=&gt;[] }
625
+ h.dearray_singluar_values #=&gt; { :a=&gt;1, :b=&gt;[1,2], :c=&gt;3, :d=&gt;nil }
626
+ </pre>
627
+ <p>
628
+ CREDIT: Trans
629
+ </p>
630
+ </div>
631
+ <div class="sourcecode">
632
+ <p class="source-link">[ <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">+</a> ]</p>
633
+ <div id="M000105_source" class="dyn-source">
634
+ <pre>
635
+ <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 34</span>
636
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dearray_singluar_values</span>
637
+ <span class="ruby-identifier">h</span> = {}
638
+ <span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
639
+ <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">v</span>
640
+ <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Array</span>
641
+ <span class="ruby-identifier">h</span>[<span class="ruby-identifier">k</span>] = (<span class="ruby-identifier">v</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">2</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">v</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">:</span> <span class="ruby-identifier">v</span>
554
642
  <span class="ruby-keyword kw">else</span>
555
- <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] = [<span class="ruby-identifier">value</span>]
643
+ <span class="ruby-identifier">h</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">v</span>
556
644
  <span class="ruby-keyword kw">end</span>
557
645
  <span class="ruby-keyword kw">end</span>
558
- <span class="ruby-comment cmt"># Collate with values from other_hash</span>
559
- <span class="ruby-identifier">other_hash</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
560
- <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>]
561
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
562
- <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">concat</span>( <span class="ruby-identifier">value</span> )
563
- <span class="ruby-keyword kw">else</span>
564
- <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">value</span>
565
- <span class="ruby-keyword kw">end</span>
566
- <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
567
- <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
646
+ <span class="ruby-identifier">h</span>
647
+ <span class="ruby-keyword kw">end</span>
648
+ </pre>
649
+ </div>
650
+ </div>
651
+ </div>
652
+ <div class="method">
653
+ <div class="title">
654
+ <a name="M000104"></a><b>dearray_values</b>(index=0)
655
+ </div>
656
+ <div class="description">
657
+ <p>
658
+ Any array values with less one or no elements will have the element or nil
659
+ set as the value instead.
660
+ </p>
661
+ <pre>
662
+ h = { :a=&gt;[1], :b=&gt;[1,2], :c=&gt;3, :d=&gt;[] }
663
+ h.dearray_values #=&gt; { :a=&gt;1, :b=&gt;1, :c=&gt;3, :d=&gt;nil }
664
+ </pre>
665
+ <p>
666
+ CREDIT: Trans
667
+ </p>
668
+ </div>
669
+ <div class="sourcecode">
670
+ <p class="source-link">[ <a href="javascript:toggleSource('M000104_source')" id="l_M000104_source">+</a> ]</p>
671
+ <div id="M000104_source" class="dyn-source">
672
+ <pre>
673
+ <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 13</span>
674
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dearray_values</span>(<span class="ruby-identifier">index</span>=<span class="ruby-value">0</span>)
675
+ <span class="ruby-identifier">h</span> = {}
676
+ <span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
677
+ <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">v</span>
678
+ <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Array</span>
679
+ <span class="ruby-identifier">h</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">v</span>[<span class="ruby-identifier">index</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">v</span>[<span class="ruby-value">-1</span>]
568
680
  <span class="ruby-keyword kw">else</span>
569
- <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] = [<span class="ruby-identifier">value</span>]
681
+ <span class="ruby-identifier">h</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">v</span>
570
682
  <span class="ruby-keyword kw">end</span>
571
683
  <span class="ruby-keyword kw">end</span>
572
- <span class="ruby-comment cmt">#each{ |key, value| value.uniq! } if options[ :uniq ]</span>
573
- <span class="ruby-keyword kw">self</span>
684
+ <span class="ruby-identifier">h</span>
574
685
  <span class="ruby-keyword kw">end</span>
575
686
  </pre>
576
687
  </div>
@@ -578,7 +689,7 @@ receiver in place.
578
689
  </div>
579
690
  <div class="method">
580
691
  <div class="title">
581
- <a name="M000111"></a><b>delete_unless</b>( {|| ...}
692
+ <a name="M000143"></a><b>delete_unless</b>( {|| ...}
582
693
  </div>
583
694
  <div class="description">
584
695
  <p>
@@ -589,8 +700,8 @@ CREDIT: Daniel Schierbeck
589
700
  </p>
590
701
  </div>
591
702
  <div class="sourcecode">
592
- <p class="source-link">[ <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">+</a> ]</p>
593
- <div id="M000111_source" class="dyn-source">
703
+ <p class="source-link">[ <a href="javascript:toggleSource('M000143_source')" id="l_M000143_source">+</a> ]</p>
704
+ <div id="M000143_source" class="dyn-source">
594
705
  <pre>
595
706
  <span class="ruby-comment cmt"># File lib/core/facets/hash/delete.rb, line 11</span>
596
707
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_unless</span> <span class="ruby-comment cmt">#:yield:</span>
@@ -602,7 +713,7 @@ CREDIT: Daniel Schierbeck
602
713
  </div>
603
714
  <div class="method">
604
715
  <div class="title">
605
- <a name="M000112"></a><b>delete_values</b>(*values)
716
+ <a name="M000144"></a><b>delete_values</b>(*values)
606
717
  </div>
607
718
  <div class="description">
608
719
  <p>
@@ -619,8 +730,8 @@ CREDIT: Daniel Schierbeck
619
730
  </p>
620
731
  </div>
621
732
  <div class="sourcecode">
622
- <p class="source-link">[ <a href="javascript:toggleSource('M000112_source')" id="l_M000112_source">+</a> ]</p>
623
- <div id="M000112_source" class="dyn-source">
733
+ <p class="source-link">[ <a href="javascript:toggleSource('M000144_source')" id="l_M000144_source">+</a> ]</p>
734
+ <div id="M000144_source" class="dyn-source">
624
735
  <pre>
625
736
  <span class="ruby-comment cmt"># File lib/core/facets/hash/delete.rb, line 24</span>
626
737
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_values</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">values</span>)
@@ -632,7 +743,7 @@ CREDIT: Daniel Schierbeck
632
743
  </div>
633
744
  <div class="method">
634
745
  <div class="title">
635
- <a name="M000113"></a><b>delete_values_at</b>(*keys, &amp;yld)
746
+ <a name="M000145"></a><b>delete_values_at</b>(*keys, &amp;yld)
636
747
  </div>
637
748
  <div class="description">
638
749
  <p>
@@ -655,8 +766,8 @@ CREDIT: Daniel Schierbeck
655
766
  </p>
656
767
  </div>
657
768
  <div class="sourcecode">
658
- <p class="source-link">[ <a href="javascript:toggleSource('M000113_source')" id="l_M000113_source">+</a> ]</p>
659
- <div id="M000113_source" class="dyn-source">
769
+ <p class="source-link">[ <a href="javascript:toggleSource('M000145_source')" id="l_M000145_source">+</a> ]</p>
770
+ <div id="M000145_source" class="dyn-source">
660
771
  <pre>
661
772
  <span class="ruby-comment cmt"># File lib/core/facets/hash/delete.rb, line 42</span>
662
773
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keys</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">yld</span>)
@@ -668,7 +779,7 @@ CREDIT: Daniel Schierbeck
668
779
  </div>
669
780
  <div class="method">
670
781
  <div class="title">
671
- <a name="M000106"></a><b>diff</b>(hash)
782
+ <a name="M000138"></a><b>diff</b>(hash)
672
783
  </div>
673
784
  <div class="description">
674
785
  <p>
@@ -676,8 +787,8 @@ Difference comparison of two hashes.
676
787
  </p>
677
788
  </div>
678
789
  <div class="sourcecode">
679
- <p class="source-link">[ <a href="javascript:toggleSource('M000106_source')" id="l_M000106_source">+</a> ]</p>
680
- <div id="M000106_source" class="dyn-source">
790
+ <p class="source-link">[ <a href="javascript:toggleSource('M000138_source')" id="l_M000138_source">+</a> ]</p>
791
+ <div id="M000138_source" class="dyn-source">
681
792
  <pre>
682
793
  <span class="ruby-comment cmt"># File lib/core/facets/hash/diff.rb, line 5</span>
683
794
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff</span>(<span class="ruby-identifier">hash</span>)
@@ -691,7 +802,7 @@ Difference comparison of two hashes.
691
802
  </div>
692
803
  <div class="method">
693
804
  <div class="title">
694
- <a name="M000090"></a><b>each_with_key</b>( &amp;yld )
805
+ <a name="M000122"></a><b>each_with_key</b>( &amp;yld )
695
806
  </div>
696
807
  <div class="description">
697
808
  <p>
@@ -703,8 +814,8 @@ CREDIT: Trans
703
814
  </p>
704
815
  </div>
705
816
  <div class="sourcecode">
706
- <p class="source-link">[ <a href="javascript:toggleSource('M000090_source')" id="l_M000090_source">+</a> ]</p>
707
- <div id="M000090_source" class="dyn-source">
817
+ <p class="source-link">[ <a href="javascript:toggleSource('M000122_source')" id="l_M000122_source">+</a> ]</p>
818
+ <div id="M000122_source" class="dyn-source">
708
819
  <pre>
709
820
  <span class="ruby-comment cmt"># File lib/core/facets/hash/keys.rb, line 40</span>
710
821
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_with_key</span>( <span class="ruby-operator">&amp;</span><span class="ruby-identifier">yld</span> )
@@ -716,7 +827,7 @@ CREDIT: Trans
716
827
  </div>
717
828
  <div class="method">
718
829
  <div class="title">
719
- <a name="M000084"></a><b>except</b>(*less_keys)
830
+ <a name="M000116"></a><b>except</b>(*less_keys)
720
831
  </div>
721
832
  <div class="description">
722
833
  <p>
@@ -724,8 +835,8 @@ Returns a new hash less the given keys.
724
835
  </p>
725
836
  </div>
726
837
  <div class="sourcecode">
727
- <p class="source-link">[ <a href="javascript:toggleSource('M000084_source')" id="l_M000084_source">+</a> ]</p>
728
- <div id="M000084_source" class="dyn-source">
838
+ <p class="source-link">[ <a href="javascript:toggleSource('M000116_source')" id="l_M000116_source">+</a> ]</p>
839
+ <div id="M000116_source" class="dyn-source">
729
840
  <pre>
730
841
  <span class="ruby-comment cmt"># File lib/core/facets/hash/except.rb, line 5</span>
731
842
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">except</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">less_keys</span>)
@@ -737,7 +848,7 @@ Returns a new hash less the given keys.
737
848
  </div>
738
849
  <div class="method">
739
850
  <div class="title">
740
- <a name="M000085"></a><b>except!</b>(*less_keys)
851
+ <a name="M000117"></a><b>except!</b>(*less_keys)
741
852
  </div>
742
853
  <div class="description">
743
854
  <p>
@@ -751,8 +862,8 @@ keys removed.
751
862
  </pre>
752
863
  </div>
753
864
  <div class="sourcecode">
754
- <p class="source-link">[ <a href="javascript:toggleSource('M000085_source')" id="l_M000085_source">+</a> ]</p>
755
- <div id="M000085_source" class="dyn-source">
865
+ <p class="source-link">[ <a href="javascript:toggleSource('M000117_source')" id="l_M000117_source">+</a> ]</p>
866
+ <div id="M000117_source" class="dyn-source">
756
867
  <pre>
757
868
  <span class="ruby-comment cmt"># File lib/core/facets/hash/except.rb, line 18</span>
758
869
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">except!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">less_keys</span>)
@@ -766,7 +877,7 @@ keys removed.
766
877
  </div>
767
878
  <div class="method">
768
879
  <div class="title">
769
- <a name="M000108"></a><b>graph!</b>(&amp;yld)
880
+ <a name="M000140"></a><b>graph!</b>(&amp;yld)
770
881
  </div>
771
882
  <div class="description">
772
883
  <p>
@@ -776,7 +887,80 @@ Alias for mash!
776
887
  </div>
777
888
  <div class="method">
778
889
  <div class="title">
779
- <a name="M000086"></a><b>has_keys?</b>(*check_keys)
890
+ <a name="M000154"></a><b>group_by_value</b>()
891
+ </div>
892
+ <div class="description">
893
+ <p>
894
+ Like group_by, but allows hash values to be grouped with weeding out the
895
+ keys.
896
+ </p>
897
+ <pre>
898
+ Example:
899
+
900
+ birthdays = {...} # Maps each person to his/her birthday.
901
+ </pre>
902
+ <p>
903
+ Now I want to have the list of people that have their birthday on a
904
+ specific date. This can be done by creating a hash first, using group_by:
905
+ </p>
906
+ <pre>
907
+ birthdays.group_by{|person, birthday| birthday}
908
+ </pre>
909
+ <p>
910
+ This returns:
911
+ </p>
912
+ <p>
913
+ {date=&gt;[[person1, date], [person2, date], [person3, date]]}
914
+ </p>
915
+ <p>
916
+ &#8230; which is a bit inconvient. Too many dates. I would rather like to
917
+ have:
918
+ </p>
919
+ <pre>
920
+ {date=&gt;[person1, person2, person3]]}
921
+ </pre>
922
+ <p>
923
+ This can be achieved by:
924
+ </p>
925
+ <pre>
926
+ birthdays.inject!({}){|h, (person, date)| (h[date] ||= []) &lt;&lt; person}
927
+ </pre>
928
+ <p>
929
+ I&#8216;ve used this pattern just once too often, so I moved the code to <a
930
+ href="Hash.html">Hash</a> (and <a href="Enumerable.html">Enumerable</a>,
931
+ for associative arrays). Here&#8216;s the cleaner code:
932
+ </p>
933
+ <p>
934
+ birthdays.group_by_value
935
+ </p>
936
+ <pre>
937
+ h = {&quot;A&quot;=&gt;1, &quot;B&quot;=&gt;1, &quot;C&quot;=&gt;1, &quot;D&quot;=&gt;2, &quot;E&quot;=&gt;2, &quot;F&quot;=&gt;2, &quot;G&quot;=&gt;3, &quot;H&quot;=&gt;3, &quot;I&quot;=&gt;3}
938
+
939
+ h.group_by{|k, v| v} # ==&gt; {1=&gt;[[&quot;A&quot;, 1], [&quot;B&quot;, 1], [&quot;C&quot;, 1]], 2=&gt;[[&quot;D&quot;, 2], [&quot;E&quot;, 2], [&quot;F&quot;, 2]], 3=&gt;[[&quot;G&quot;, 3], [&quot;H&quot;, 3], [&quot;I&quot;, 3]]}
940
+ h.group_by_value # ==&gt; {1=&gt;[&quot;A&quot;, &quot;B&quot;, &quot;C&quot;], 2=&gt;[&quot;D&quot;, &quot;E&quot;, &quot;F&quot;], 3=&gt;[&quot;G&quot;, &quot;H&quot;, &quot;I&quot;]}
941
+ h.sort.group_by_value # ==&gt; [[1, [&quot;A&quot;, &quot;B&quot;, &quot;C&quot;]], [2, [&quot;D&quot;, &quot;E&quot;, &quot;F&quot;]], [3, [&quot;G&quot;, &quot;H&quot;, &quot;I&quot;]]]
942
+ </pre>
943
+ <p>
944
+ CREDIT: Erik Veenstra
945
+ </p>
946
+ </div>
947
+ <div class="sourcecode">
948
+ <p class="source-link">[ <a href="javascript:toggleSource('M000154_source')" id="l_M000154_source">+</a> ]</p>
949
+ <div id="M000154_source" class="dyn-source">
950
+ <pre>
951
+ <span class="ruby-comment cmt"># File lib/core/facets/hash/group_by_value.rb, line 42</span>
952
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">group_by_value</span>
953
+ <span class="ruby-identifier">res</span> = {}
954
+ <span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span><span class="ruby-operator">|</span> (<span class="ruby-identifier">res</span>[<span class="ruby-identifier">v</span>] <span class="ruby-operator">||=</span> []) <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">k</span>}
955
+ <span class="ruby-identifier">res</span>
956
+ <span class="ruby-keyword kw">end</span>
957
+ </pre>
958
+ </div>
959
+ </div>
960
+ </div>
961
+ <div class="method">
962
+ <div class="title">
963
+ <a name="M000118"></a><b>has_keys?</b>(*check_keys)
780
964
  </div>
781
965
  <div class="description">
782
966
  <p>
@@ -793,11 +977,11 @@ CREDIT: Trans
793
977
  </div>
794
978
  <div class="aka">
795
979
  This method is also aliased as
796
- <a href="Hash.html#M000087">keys?</a>
980
+ <a href="Hash.html#M000119">keys?</a>
797
981
  </div>
798
982
  <div class="sourcecode">
799
- <p class="source-link">[ <a href="javascript:toggleSource('M000086_source')" id="l_M000086_source">+</a> ]</p>
800
- <div id="M000086_source" class="dyn-source">
983
+ <p class="source-link">[ <a href="javascript:toggleSource('M000118_source')" id="l_M000118_source">+</a> ]</p>
984
+ <div id="M000118_source" class="dyn-source">
801
985
  <pre>
802
986
  <span class="ruby-comment cmt"># File lib/core/facets/hash/keys.rb, line 12</span>
803
987
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_keys?</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">check_keys</span>)
@@ -810,7 +994,7 @@ CREDIT: Trans
810
994
  </div>
811
995
  <div class="method">
812
996
  <div class="title">
813
- <a name="M000088"></a><b>has_only_keys?</b>(*check_keys)
997
+ <a name="M000120"></a><b>has_only_keys?</b>(*check_keys)
814
998
  </div>
815
999
  <div class="description">
816
1000
  <p>
@@ -828,11 +1012,11 @@ CREDIT: Trans
828
1012
  </div>
829
1013
  <div class="aka">
830
1014
  This method is also aliased as
831
- <a href="Hash.html#M000089">only_keys?</a>
1015
+ <a href="Hash.html#M000121">only_keys?</a>
832
1016
  </div>
833
1017
  <div class="sourcecode">
834
- <p class="source-link">[ <a href="javascript:toggleSource('M000088_source')" id="l_M000088_source">+</a> ]</p>
835
- <div id="M000088_source" class="dyn-source">
1018
+ <p class="source-link">[ <a href="javascript:toggleSource('M000120_source')" id="l_M000120_source">+</a> ]</p>
1019
+ <div id="M000120_source" class="dyn-source">
836
1020
  <pre>
837
1021
  <span class="ruby-comment cmt"># File lib/core/facets/hash/keys.rb, line 28</span>
838
1022
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_only_keys?</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">check_keys</span>)
@@ -845,7 +1029,7 @@ CREDIT: Trans
845
1029
  </div>
846
1030
  <div class="method">
847
1031
  <div class="title">
848
- <a name="M000104"></a><b>insert</b>(name, value)
1032
+ <a name="M000136"></a><b>insert</b>(name, value)
849
1033
  </div>
850
1034
  <div class="description">
851
1035
  <p>
@@ -859,8 +1043,8 @@ CREDIT: Trans
859
1043
  </p>
860
1044
  </div>
861
1045
  <div class="sourcecode">
862
- <p class="source-link">[ <a href="javascript:toggleSource('M000104_source')" id="l_M000104_source">+</a> ]</p>
863
- <div id="M000104_source" class="dyn-source">
1046
+ <p class="source-link">[ <a href="javascript:toggleSource('M000136_source')" id="l_M000136_source">+</a> ]</p>
1047
+ <div id="M000136_source" class="dyn-source">
864
1048
  <pre>
865
1049
  <span class="ruby-comment cmt"># File lib/core/facets/hash/insert.rb, line 10</span>
866
1050
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
@@ -877,11 +1061,11 @@ CREDIT: Trans
877
1061
  </div>
878
1062
  <div class="method">
879
1063
  <div class="title">
880
- <a name="M000099"></a><b>inverse</b>()
1064
+ <a name="M000131"></a><b>inverse</b>()
881
1065
  </div>
882
1066
  <div class="description">
883
1067
  <p>
884
- Create a &quot;true&quot; <a href="Hash.html#M000099">inverse</a> hash by
1068
+ Create a &quot;true&quot; <a href="Hash.html#M000131">inverse</a> hash by
885
1069
  storing mutliple values in Arrays.
886
1070
  </p>
887
1071
  <pre>
@@ -897,8 +1081,8 @@ CREDIT: Tilo Sloboda
897
1081
  </p>
898
1082
  </div>
899
1083
  <div class="sourcecode">
900
- <p class="source-link">[ <a href="javascript:toggleSource('M000099_source')" id="l_M000099_source">+</a> ]</p>
901
- <div id="M000099_source" class="dyn-source">
1084
+ <p class="source-link">[ <a href="javascript:toggleSource('M000131_source')" id="l_M000131_source">+</a> ]</p>
1085
+ <div id="M000131_source" class="dyn-source">
902
1086
  <pre>
903
1087
  <span class="ruby-comment cmt"># File lib/core/facets/hash/inverse.rb, line 14</span>
904
1088
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inverse</span>
@@ -918,7 +1102,7 @@ CREDIT: Tilo Sloboda
918
1102
  </div>
919
1103
  <div class="method">
920
1104
  <div class="title">
921
- <a name="M000121"></a><b>join</b>(pair_divider='', elem_divider='')
1105
+ <a name="M000153"></a><b>join</b>(pair_divider='', elem_divider='')
922
1106
  </div>
923
1107
  <div class="description">
924
1108
  <p>
@@ -929,8 +1113,8 @@ CREDIT: Mauricio Fernandez
929
1113
  </p>
930
1114
  </div>
931
1115
  <div class="sourcecode">
932
- <p class="source-link">[ <a href="javascript:toggleSource('M000121_source')" id="l_M000121_source">+</a> ]</p>
933
- <div id="M000121_source" class="dyn-source">
1116
+ <p class="source-link">[ <a href="javascript:toggleSource('M000153_source')" id="l_M000153_source">+</a> ]</p>
1117
+ <div id="M000153_source" class="dyn-source">
934
1118
  <pre>
935
1119
  <span class="ruby-comment cmt"># File lib/core/facets/hash/join.rb, line 7</span>
936
1120
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">join</span>(<span class="ruby-identifier">pair_divider</span>=<span class="ruby-value str">''</span>, <span class="ruby-identifier">elem_divider</span>=<span class="ruby-value str">''</span>)
@@ -944,7 +1128,7 @@ CREDIT: Mauricio Fernandez
944
1128
  </div>
945
1129
  <div class="method">
946
1130
  <div class="title">
947
- <a name="M000087"></a><b>keys?</b>(*check_keys)
1131
+ <a name="M000119"></a><b>keys?</b>(*check_keys)
948
1132
  </div>
949
1133
  <div class="description">
950
1134
  <p>
@@ -954,7 +1138,7 @@ Alias for has_keys?
954
1138
  </div>
955
1139
  <div class="method">
956
1140
  <div class="title">
957
- <a name="M000107"></a><b>mash!</b>(&amp;yld)
1141
+ <a name="M000139"></a><b>mash!</b>(&amp;yld)
958
1142
  </div>
959
1143
  <div class="description">
960
1144
  <p>
@@ -967,11 +1151,11 @@ In place version of mash.
967
1151
  </div>
968
1152
  <div class="aka">
969
1153
  This method is also aliased as
970
- <a href="Hash.html#M000108">graph!</a>
1154
+ <a href="Hash.html#M000140">graph!</a>
971
1155
  </div>
972
1156
  <div class="sourcecode">
973
- <p class="source-link">[ <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">+</a> ]</p>
974
- <div id="M000107_source" class="dyn-source">
1157
+ <p class="source-link">[ <a href="javascript:toggleSource('M000139_source')" id="l_M000139_source">+</a> ]</p>
1158
+ <div id="M000139_source" class="dyn-source">
975
1159
  <pre>
976
1160
  <span class="ruby-comment cmt"># File lib/core/facets/hash/mash.rb, line 10</span>
977
1161
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mash!</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">yld</span>)
@@ -983,7 +1167,7 @@ In place version of mash.
983
1167
  </div>
984
1168
  <div class="method">
985
1169
  <div class="title">
986
- <a name="M000089"></a><b>only_keys?</b>(*check_keys)
1170
+ <a name="M000121"></a><b>only_keys?</b>(*check_keys)
987
1171
  </div>
988
1172
  <div class="description">
989
1173
  <p>
@@ -993,17 +1177,17 @@ Alias for has_only_keys?
993
1177
  </div>
994
1178
  <div class="method">
995
1179
  <div class="title">
996
- <a name="M000100"></a><b>recursive_merge</b>(other)
1180
+ <a name="M000132"></a><b>recursive_merge</b>(other)
997
1181
  </div>
998
1182
  <div class="description">
999
1183
  <p>
1000
- Same as Hash#merge but <a href="Hash.html#M000080">recursively</a> merges
1184
+ Same as Hash#merge but <a href="Hash.html#M000112">recursively</a> merges
1001
1185
  sub-hashes.
1002
1186
  </p>
1003
1187
  </div>
1004
1188
  <div class="sourcecode">
1005
- <p class="source-link">[ <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">+</a> ]</p>
1006
- <div id="M000100_source" class="dyn-source">
1189
+ <p class="source-link">[ <a href="javascript:toggleSource('M000132_source')" id="l_M000132_source">+</a> ]</p>
1190
+ <div id="M000132_source" class="dyn-source">
1007
1191
  <pre>
1008
1192
  <span class="ruby-comment cmt"># File lib/core/facets/hash/recursive_merge.rb, line 5</span>
1009
1193
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursive_merge</span>(<span class="ruby-identifier">other</span>)
@@ -1024,17 +1208,17 @@ sub-hashes.
1024
1208
  </div>
1025
1209
  <div class="method">
1026
1210
  <div class="title">
1027
- <a name="M000101"></a><b>recursive_merge!</b>(other)
1211
+ <a name="M000133"></a><b>recursive_merge!</b>(other)
1028
1212
  </div>
1029
1213
  <div class="description">
1030
1214
  <p>
1031
- Same as Hash#merge! but <a href="Hash.html#M000080">recursively</a> merges
1215
+ Same as Hash#merge! but <a href="Hash.html#M000112">recursively</a> merges
1032
1216
  sub-hashes.
1033
1217
  </p>
1034
1218
  </div>
1035
1219
  <div class="sourcecode">
1036
- <p class="source-link">[ <a href="javascript:toggleSource('M000101_source')" id="l_M000101_source">+</a> ]</p>
1037
- <div id="M000101_source" class="dyn-source">
1220
+ <p class="source-link">[ <a href="javascript:toggleSource('M000133_source')" id="l_M000133_source">+</a> ]</p>
1221
+ <div id="M000133_source" class="dyn-source">
1038
1222
  <pre>
1039
1223
  <span class="ruby-comment cmt"># File lib/core/facets/hash/recursive_merge.rb, line 20</span>
1040
1224
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursive_merge!</span>(<span class="ruby-identifier">other</span>)
@@ -1054,11 +1238,11 @@ sub-hashes.
1054
1238
  </div>
1055
1239
  <div class="method">
1056
1240
  <div class="title">
1057
- <a name="M000080"></a><b>recursively</b>() {|h| ...}
1241
+ <a name="M000112"></a><b>recursively</b>() {|h| ...}
1058
1242
  </div>
1059
1243
  <div class="description">
1060
1244
  <p>
1061
- Apply a block to hash, and <a href="Hash.html#M000080">recursively</a>
1245
+ Apply a block to hash, and <a href="Hash.html#M000112">recursively</a>
1062
1246
  apply that block to each subhash.
1063
1247
  </p>
1064
1248
  <pre>
@@ -1068,8 +1252,8 @@ apply that block to each subhash.
1068
1252
  </pre>
1069
1253
  </div>
1070
1254
  <div class="sourcecode">
1071
- <p class="source-link">[ <a href="javascript:toggleSource('M000080_source')" id="l_M000080_source">+</a> ]</p>
1072
- <div id="M000080_source" class="dyn-source">
1255
+ <p class="source-link">[ <a href="javascript:toggleSource('M000112_source')" id="l_M000112_source">+</a> ]</p>
1256
+ <div id="M000112_source" class="dyn-source">
1073
1257
  <pre>
1074
1258
  <span class="ruby-comment cmt"># File lib/core/facets/hash/recursively.rb, line 10</span>
1075
1259
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -1089,11 +1273,11 @@ apply that block to each subhash.
1089
1273
  </div>
1090
1274
  <div class="method">
1091
1275
  <div class="title">
1092
- <a name="M000081"></a><b>recursively!</b>(&amp;block)
1276
+ <a name="M000113"></a><b>recursively!</b>(&amp;block)
1093
1277
  </div>
1094
1278
  <div class="sourcecode">
1095
- <p class="source-link">[ <a href="javascript:toggleSource('M000081_source')" id="l_M000081_source">+</a> ]</p>
1096
- <div id="M000081_source" class="dyn-source">
1279
+ <p class="source-link">[ <a href="javascript:toggleSource('M000113_source')" id="l_M000113_source">+</a> ]</p>
1280
+ <div id="M000113_source" class="dyn-source">
1097
1281
  <pre>
1098
1282
  <span class="ruby-comment cmt"># File lib/core/facets/hash/recursively.rb, line 24</span>
1099
1283
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively!</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -1105,7 +1289,7 @@ apply that block to each subhash.
1105
1289
  </div>
1106
1290
  <div class="method">
1107
1291
  <div class="title">
1108
- <a name="M000126"></a><b>rekey</b>(*args, &amp;block)
1292
+ <a name="M000159"></a><b>rekey</b>(*args, &amp;block)
1109
1293
  </div>
1110
1294
  <div class="description">
1111
1295
  <p>
@@ -1144,8 +1328,8 @@ CREDIT: Trans, Gavin Kistner
1144
1328
  </p>
1145
1329
  </div>
1146
1330
  <div class="sourcecode">
1147
- <p class="source-link">[ <a href="javascript:toggleSource('M000126_source')" id="l_M000126_source">+</a> ]</p>
1148
- <div id="M000126_source" class="dyn-source">
1331
+ <p class="source-link">[ <a href="javascript:toggleSource('M000159_source')" id="l_M000159_source">+</a> ]</p>
1332
+ <div id="M000159_source" class="dyn-source">
1149
1333
  <pre>
1150
1334
  <span class="ruby-comment cmt"># File lib/core/facets/hash/rekey.rb, line 32</span>
1151
1335
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rekey</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -1157,11 +1341,11 @@ CREDIT: Trans, Gavin Kistner
1157
1341
  </div>
1158
1342
  <div class="method">
1159
1343
  <div class="title">
1160
- <a name="M000127"></a><b>rekey!</b>(*args, &amp;block)
1344
+ <a name="M000160"></a><b>rekey!</b>(*args, &amp;block)
1161
1345
  </div>
1162
1346
  <div class="description">
1163
1347
  <p>
1164
- Synonym for <a href="Hash.html#M000126">Hash#rekey</a>, but modifies the
1348
+ Synonym for <a href="Hash.html#M000159">Hash#rekey</a>, but modifies the
1165
1349
  receiver in place (and returns it).
1166
1350
  </p>
1167
1351
  <pre>
@@ -1174,8 +1358,8 @@ CREDIT: Trans, Gavin Kistner
1174
1358
  </p>
1175
1359
  </div>
1176
1360
  <div class="sourcecode">
1177
- <p class="source-link">[ <a href="javascript:toggleSource('M000127_source')" id="l_M000127_source">+</a> ]</p>
1178
- <div id="M000127_source" class="dyn-source">
1361
+ <p class="source-link">[ <a href="javascript:toggleSource('M000160_source')" id="l_M000160_source">+</a> ]</p>
1362
+ <div id="M000160_source" class="dyn-source">
1179
1363
  <pre>
1180
1364
  <span class="ruby-comment cmt"># File lib/core/facets/hash/rekey.rb, line 44</span>
1181
1365
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rekey!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -1201,11 +1385,11 @@ CREDIT: Trans, Gavin Kistner
1201
1385
  </div>
1202
1386
  <div class="method">
1203
1387
  <div class="title">
1204
- <a name="M000122"></a><b>replace_each</b>( {|| ...}
1388
+ <a name="M000155"></a><b>replace_each</b>( {|| ...}
1205
1389
  </div>
1206
1390
  <div class="description">
1207
1391
  <p>
1208
- Same as <a href="Hash.html#M000128">update_each</a>, but deletes the key
1392
+ Same as <a href="Hash.html#M000161">update_each</a>, but deletes the key
1209
1393
  element first.
1210
1394
  </p>
1211
1395
  <p>
@@ -1213,8 +1397,8 @@ CREDIT: Trans
1213
1397
  </p>
1214
1398
  </div>
1215
1399
  <div class="sourcecode">
1216
- <p class="source-link">[ <a href="javascript:toggleSource('M000122_source')" id="l_M000122_source">+</a> ]</p>
1217
- <div id="M000122_source" class="dyn-source">
1400
+ <p class="source-link">[ <a href="javascript:toggleSource('M000155_source')" id="l_M000155_source">+</a> ]</p>
1401
+ <div id="M000155_source" class="dyn-source">
1218
1402
  <pre>
1219
1403
  <span class="ruby-comment cmt"># File lib/core/facets/hash/replace_each.rb, line 7</span>
1220
1404
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">replace_each</span> <span class="ruby-comment cmt"># :yield:</span>
@@ -1230,7 +1414,7 @@ CREDIT: Trans
1230
1414
  </div>
1231
1415
  <div class="method">
1232
1416
  <div class="title">
1233
- <a name="M000091"></a><b>reverse_merge</b>(other)
1417
+ <a name="M000123"></a><b>reverse_merge</b>(other)
1234
1418
  </div>
1235
1419
  <div class="description">
1236
1420
  <p>
@@ -1249,8 +1433,8 @@ in doesn&#8216;t already have those keys set.
1249
1433
  </p>
1250
1434
  </div>
1251
1435
  <div class="sourcecode">
1252
- <p class="source-link">[ <a href="javascript:toggleSource('M000091_source')" id="l_M000091_source">+</a> ]</p>
1253
- <div id="M000091_source" class="dyn-source">
1436
+ <p class="source-link">[ <a href="javascript:toggleSource('M000123_source')" id="l_M000123_source">+</a> ]</p>
1437
+ <div id="M000123_source" class="dyn-source">
1254
1438
  <pre>
1255
1439
  <span class="ruby-comment cmt"># File lib/core/facets/hash/merge.rb, line 15</span>
1256
1440
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse_merge</span>(<span class="ruby-identifier">other</span>)
@@ -1262,20 +1446,20 @@ in doesn&#8216;t already have those keys set.
1262
1446
  </div>
1263
1447
  <div class="method">
1264
1448
  <div class="title">
1265
- <a name="M000092"></a><b>reverse_merge!</b>(other)
1449
+ <a name="M000124"></a><b>reverse_merge!</b>(other)
1266
1450
  </div>
1267
1451
  <div class="description">
1268
1452
  <p>
1269
- Inplace form of <a href="Hash.html#M000091">reverse_merge</a>.
1453
+ Inplace form of <a href="Hash.html#M000123">reverse_merge</a>.
1270
1454
  </p>
1271
1455
  </div>
1272
1456
  <div class="aka">
1273
1457
  This method is also aliased as
1274
- <a href="Hash.html#M000093">reverse_update</a>
1458
+ <a href="Hash.html#M000125">reverse_update</a>
1275
1459
  </div>
1276
1460
  <div class="sourcecode">
1277
- <p class="source-link">[ <a href="javascript:toggleSource('M000092_source')" id="l_M000092_source">+</a> ]</p>
1278
- <div id="M000092_source" class="dyn-source">
1461
+ <p class="source-link">[ <a href="javascript:toggleSource('M000124_source')" id="l_M000124_source">+</a> ]</p>
1462
+ <div id="M000124_source" class="dyn-source">
1279
1463
  <pre>
1280
1464
  <span class="ruby-comment cmt"># File lib/core/facets/hash/merge.rb, line 21</span>
1281
1465
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse_merge!</span>(<span class="ruby-identifier">other</span>)
@@ -1287,17 +1471,17 @@ Inplace form of <a href="Hash.html#M000091">reverse_merge</a>.
1287
1471
  </div>
1288
1472
  <div class="method">
1289
1473
  <div class="title">
1290
- <a name="M000093"></a><b>reverse_update</b>(other)
1474
+ <a name="M000125"></a><b>reverse_update</b>(other)
1291
1475
  </div>
1292
1476
  <div class="description">
1293
1477
  <p>
1294
- Alias for <a href="Hash.html#M000091">reverse_merge</a>!
1478
+ Alias for <a href="Hash.html#M000123">reverse_merge</a>!
1295
1479
  </p>
1296
1480
  </div>
1297
1481
  </div>
1298
1482
  <div class="method">
1299
1483
  <div class="title">
1300
- <a name="M000105"></a><b>select!</b>() {|k,v| ...}
1484
+ <a name="M000137"></a><b>select!</b>() {|k,v| ...}
1301
1485
  </div>
1302
1486
  <div class="description">
1303
1487
  <p>
@@ -1308,8 +1492,8 @@ CREDIT: Gavin Sinclair, Noah Gibbs
1308
1492
  </p>
1309
1493
  </div>
1310
1494
  <div class="sourcecode">
1311
- <p class="source-link">[ <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">+</a> ]</p>
1312
- <div id="M000105_source" class="dyn-source">
1495
+ <p class="source-link">[ <a href="javascript:toggleSource('M000137_source')" id="l_M000137_source">+</a> ]</p>
1496
+ <div id="M000137_source" class="dyn-source">
1313
1497
  <pre>
1314
1498
  <span class="ruby-comment cmt"># File lib/core/facets/hash/select.rb, line 8</span>
1315
1499
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select!</span>
@@ -1321,7 +1505,7 @@ CREDIT: Gavin Sinclair, Noah Gibbs
1321
1505
  </div>
1322
1506
  <div class="method">
1323
1507
  <div class="title">
1324
- <a name="M000123"></a><b>slice</b>(*keep_keys)
1508
+ <a name="M000156"></a><b>slice</b>(*keep_keys)
1325
1509
  </div>
1326
1510
  <div class="description">
1327
1511
  <p>
@@ -1329,8 +1513,8 @@ Returns a new hash with only the given keys.
1329
1513
  </p>
1330
1514
  </div>
1331
1515
  <div class="sourcecode">
1332
- <p class="source-link">[ <a href="javascript:toggleSource('M000123_source')" id="l_M000123_source">+</a> ]</p>
1333
- <div id="M000123_source" class="dyn-source">
1516
+ <p class="source-link">[ <a href="javascript:toggleSource('M000156_source')" id="l_M000156_source">+</a> ]</p>
1517
+ <div id="M000156_source" class="dyn-source">
1334
1518
  <pre>
1335
1519
  <span class="ruby-comment cmt"># File lib/core/facets/hash/slice.rb, line 9</span>
1336
1520
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">slice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keep_keys</span>)
@@ -1346,7 +1530,7 @@ Returns a new hash with only the given keys.
1346
1530
  </div>
1347
1531
  <div class="method">
1348
1532
  <div class="title">
1349
- <a name="M000124"></a><b>slice!</b>(*keep_keys)
1533
+ <a name="M000157"></a><b>slice!</b>(*keep_keys)
1350
1534
  </div>
1351
1535
  <div class="description">
1352
1536
  <p>
@@ -1360,8 +1544,8 @@ hash of keys removed.
1360
1544
  </pre>
1361
1545
  </div>
1362
1546
  <div class="sourcecode">
1363
- <p class="source-link">[ <a href="javascript:toggleSource('M000124_source')" id="l_M000124_source">+</a> ]</p>
1364
- <div id="M000124_source" class="dyn-source">
1547
+ <p class="source-link">[ <a href="javascript:toggleSource('M000157_source')" id="l_M000157_source">+</a> ]</p>
1548
+ <div id="M000157_source" class="dyn-source">
1365
1549
  <pre>
1366
1550
  <span class="ruby-comment cmt"># File lib/core/facets/hash/slice.rb, line 24</span>
1367
1551
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">slice!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keep_keys</span>)
@@ -1375,7 +1559,7 @@ hash of keys removed.
1375
1559
  </div>
1376
1560
  <div class="method">
1377
1561
  <div class="title">
1378
- <a name="M000119"></a><b>stringify_keys</b>(&amp;filter)
1562
+ <a name="M000151"></a><b>stringify_keys</b>(&amp;filter)
1379
1563
  </div>
1380
1564
  <div class="description">
1381
1565
  <p>
@@ -1390,12 +1574,12 @@ limits conversion to only a certain selection of keys.
1390
1574
  </pre>
1391
1575
  <p>
1392
1576
  This method is considered archaic. Use <a
1393
- href="Hash.html#M000126">rekey</a> instead.
1577
+ href="Hash.html#M000159">rekey</a> instead.
1394
1578
  </p>
1395
1579
  </div>
1396
1580
  <div class="sourcecode">
1397
- <p class="source-link">[ <a href="javascript:toggleSource('M000119_source')" id="l_M000119_source">+</a> ]</p>
1398
- <div id="M000119_source" class="dyn-source">
1581
+ <p class="source-link">[ <a href="javascript:toggleSource('M000151_source')" id="l_M000151_source">+</a> ]</p>
1582
+ <div id="M000151_source" class="dyn-source">
1399
1583
  <pre>
1400
1584
  <span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 54</span>
1401
1585
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stringify_keys</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">filter</span>)
@@ -1411,11 +1595,11 @@ href="Hash.html#M000126">rekey</a> instead.
1411
1595
  </div>
1412
1596
  <div class="method">
1413
1597
  <div class="title">
1414
- <a name="M000120"></a><b>stringify_keys!</b>(&amp;filter)
1598
+ <a name="M000152"></a><b>stringify_keys!</b>(&amp;filter)
1415
1599
  </div>
1416
1600
  <div class="description">
1417
1601
  <p>
1418
- Synonym for <a href="Hash.html#M000119">Hash#stringify_keys</a>, but
1602
+ Synonym for <a href="Hash.html#M000151">Hash#stringify_keys</a>, but
1419
1603
  modifies the receiver in place and returns it. With a <tt>filter</tt>
1420
1604
  parameter, limits conversion to only a certain selection of keys.
1421
1605
  </p>
@@ -1426,12 +1610,12 @@ parameter, limits conversion to only a certain selection of keys.
1426
1610
  </pre>
1427
1611
  <p>
1428
1612
  This method is considered archaic. Use <a
1429
- href="Hash.html#M000126">rekey</a> instead.
1613
+ href="Hash.html#M000159">rekey</a> instead.
1430
1614
  </p>
1431
1615
  </div>
1432
1616
  <div class="sourcecode">
1433
- <p class="source-link">[ <a href="javascript:toggleSource('M000120_source')" id="l_M000120_source">+</a> ]</p>
1434
- <div id="M000120_source" class="dyn-source">
1617
+ <p class="source-link">[ <a href="javascript:toggleSource('M000152_source')" id="l_M000152_source">+</a> ]</p>
1618
+ <div id="M000152_source" class="dyn-source">
1435
1619
  <pre>
1436
1620
  <span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 73</span>
1437
1621
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stringify_keys!</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">filter</span>)
@@ -1447,7 +1631,7 @@ href="Hash.html#M000126">rekey</a> instead.
1447
1631
  </div>
1448
1632
  <div class="method">
1449
1633
  <div class="title">
1450
- <a name="M000115"></a><b>swap!</b>(key1, key2)
1634
+ <a name="M000147"></a><b>swap!</b>(key1, key2)
1451
1635
  </div>
1452
1636
  <div class="description">
1453
1637
  <p>
@@ -1461,8 +1645,8 @@ CREDIT: Gavin Sinclair
1461
1645
  </p>
1462
1646
  </div>
1463
1647
  <div class="sourcecode">
1464
- <p class="source-link">[ <a href="javascript:toggleSource('M000115_source')" id="l_M000115_source">+</a> ]</p>
1465
- <div id="M000115_source" class="dyn-source">
1648
+ <p class="source-link">[ <a href="javascript:toggleSource('M000147_source')" id="l_M000147_source">+</a> ]</p>
1649
+ <div id="M000147_source" class="dyn-source">
1466
1650
  <pre>
1467
1651
  <span class="ruby-comment cmt"># File lib/core/facets/hash/swap.rb, line 9</span>
1468
1652
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">swap!</span>(<span class="ruby-identifier">key1</span>, <span class="ruby-identifier">key2</span>)
@@ -1477,7 +1661,7 @@ CREDIT: Gavin Sinclair
1477
1661
  </div>
1478
1662
  <div class="method">
1479
1663
  <div class="title">
1480
- <a name="M000117"></a><b>symbolize_keys</b>(&amp;filter)
1664
+ <a name="M000149"></a><b>symbolize_keys</b>(&amp;filter)
1481
1665
  </div>
1482
1666
  <div class="description">
1483
1667
  <p>
@@ -1492,12 +1676,12 @@ conversion to only a certain selection of keys.
1492
1676
  </pre>
1493
1677
  <p>
1494
1678
  This method is considered archaic. Use <a
1495
- href="Hash.html#M000126">rekey</a> instead.
1679
+ href="Hash.html#M000159">rekey</a> instead.
1496
1680
  </p>
1497
1681
  </div>
1498
1682
  <div class="sourcecode">
1499
- <p class="source-link">[ <a href="javascript:toggleSource('M000117_source')" id="l_M000117_source">+</a> ]</p>
1500
- <div id="M000117_source" class="dyn-source">
1683
+ <p class="source-link">[ <a href="javascript:toggleSource('M000149_source')" id="l_M000149_source">+</a> ]</p>
1684
+ <div id="M000149_source" class="dyn-source">
1501
1685
  <pre>
1502
1686
  <span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 20</span>
1503
1687
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">symbolize_keys</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">filter</span>)
@@ -1513,11 +1697,11 @@ href="Hash.html#M000126">rekey</a> instead.
1513
1697
  </div>
1514
1698
  <div class="method">
1515
1699
  <div class="title">
1516
- <a name="M000118"></a><b>symbolize_keys!</b>(&amp;filter)
1700
+ <a name="M000150"></a><b>symbolize_keys!</b>(&amp;filter)
1517
1701
  </div>
1518
1702
  <div class="description">
1519
1703
  <p>
1520
- Synonym for <a href="Hash.html#M000117">Hash#symbolize_keys</a>, but
1704
+ Synonym for <a href="Hash.html#M000149">Hash#symbolize_keys</a>, but
1521
1705
  modifies the receiver in place and returns it. With a <tt>filter</tt>
1522
1706
  parameter, limits conversion to only a certain selection of keys.
1523
1707
  </p>
@@ -1528,12 +1712,12 @@ parameter, limits conversion to only a certain selection of keys.
1528
1712
  </pre>
1529
1713
  <p>
1530
1714
  This method is considered archaic. Use <a
1531
- href="Hash.html#M000126">rekey</a> instead.
1715
+ href="Hash.html#M000159">rekey</a> instead.
1532
1716
  </p>
1533
1717
  </div>
1534
1718
  <div class="sourcecode">
1535
- <p class="source-link">[ <a href="javascript:toggleSource('M000118_source')" id="l_M000118_source">+</a> ]</p>
1536
- <div id="M000118_source" class="dyn-source">
1719
+ <p class="source-link">[ <a href="javascript:toggleSource('M000150_source')" id="l_M000150_source">+</a> ]</p>
1720
+ <div id="M000150_source" class="dyn-source">
1537
1721
  <pre>
1538
1722
  <span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 37</span>
1539
1723
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">symbolize_keys!</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">filter</span>)
@@ -1549,7 +1733,7 @@ href="Hash.html#M000126">rekey</a> instead.
1549
1733
  </div>
1550
1734
  <div class="method">
1551
1735
  <div class="title">
1552
- <a name="M000075"></a><b>to_h</b>()
1736
+ <a name="M000106"></a><b>to_h</b>()
1553
1737
  </div>
1554
1738
  <div class="description">
1555
1739
  <p>
@@ -1563,10 +1747,10 @@ CREDIT: Forian Gross
1563
1747
  </p>
1564
1748
  </div>
1565
1749
  <div class="sourcecode">
1566
- <p class="source-link">[ <a href="javascript:toggleSource('M000075_source')" id="l_M000075_source">+</a> ]</p>
1567
- <div id="M000075_source" class="dyn-source">
1750
+ <p class="source-link">[ <a href="javascript:toggleSource('M000106_source')" id="l_M000106_source">+</a> ]</p>
1751
+ <div id="M000106_source" class="dyn-source">
1568
1752
  <pre>
1569
- <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 54</span>
1753
+ <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 254</span>
1570
1754
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>; <span class="ruby-identifier">rehash</span>; <span class="ruby-keyword kw">end</span>
1571
1755
  </pre>
1572
1756
  </div>
@@ -1574,7 +1758,7 @@ CREDIT: Forian Gross
1574
1758
  </div>
1575
1759
  <div class="method">
1576
1760
  <div class="title">
1577
- <a name="M000102"></a><b>to_proc</b>()
1761
+ <a name="M000134"></a><b>to_proc</b>()
1578
1762
  </div>
1579
1763
  <div class="description">
1580
1764
  <p>
@@ -1594,8 +1778,8 @@ CREDIT: Trans
1594
1778
  </p>
1595
1779
  </div>
1596
1780
  <div class="sourcecode">
1597
- <p class="source-link">[ <a href="javascript:toggleSource('M000102_source')" id="l_M000102_source">+</a> ]</p>
1598
- <div id="M000102_source" class="dyn-source">
1781
+ <p class="source-link">[ <a href="javascript:toggleSource('M000134_source')" id="l_M000134_source">+</a> ]</p>
1782
+ <div id="M000134_source" class="dyn-source">
1599
1783
  <pre>
1600
1784
  <span class="ruby-comment cmt"># File lib/core/facets/hash/to_proc.rb, line 15</span>
1601
1785
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc</span>
@@ -1612,14 +1796,14 @@ CREDIT: Trans
1612
1796
  </div>
1613
1797
  <div class="method">
1614
1798
  <div class="title">
1615
- <a name="M000103"></a><b>to_proc_with_reponse</b>()
1799
+ <a name="M000135"></a><b>to_proc_with_reponse</b>()
1616
1800
  </div>
1617
1801
  <div class="description">
1618
1802
  <p>
1619
- A fault-tolerent version of <a href="Hash.html#M000102">to_proc</a>.
1803
+ A fault-tolerent version of <a href="Hash.html#M000134">to_proc</a>.
1620
1804
  </p>
1621
1805
  <p>
1622
- It works just like <a href="Hash.html#M000102">to_proc</a>, but the block
1806
+ It works just like <a href="Hash.html#M000134">to_proc</a>, but the block
1623
1807
  will make sure# the object responds to the assignment.
1624
1808
  </p>
1625
1809
  <p>
@@ -1627,8 +1811,8 @@ CREDIT: Trans
1627
1811
  </p>
1628
1812
  </div>
1629
1813
  <div class="sourcecode">
1630
- <p class="source-link">[ <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">+</a> ]</p>
1631
- <div id="M000103_source" class="dyn-source">
1814
+ <p class="source-link">[ <a href="javascript:toggleSource('M000135_source')" id="l_M000135_source">+</a> ]</p>
1815
+ <div id="M000135_source" class="dyn-source">
1632
1816
  <pre>
1633
1817
  <span class="ruby-comment cmt"># File lib/core/facets/hash/to_proc.rb, line 31</span>
1634
1818
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc_with_reponse</span>
@@ -1645,7 +1829,7 @@ CREDIT: Trans
1645
1829
  </div>
1646
1830
  <div class="method">
1647
1831
  <div class="title">
1648
- <a name="M000116"></a><b>to_struct</b>(struct_name)
1832
+ <a name="M000148"></a><b>to_struct</b>(struct_name)
1649
1833
  </div>
1650
1834
  <div class="description">
1651
1835
  <p>
@@ -1664,8 +1848,8 @@ CREDIT: Daniel Berger
1664
1848
  </p>
1665
1849
  </div>
1666
1850
  <div class="sourcecode">
1667
- <p class="source-link">[ <a href="javascript:toggleSource('M000116_source')" id="l_M000116_source">+</a> ]</p>
1668
- <div id="M000116_source" class="dyn-source">
1851
+ <p class="source-link">[ <a href="javascript:toggleSource('M000148_source')" id="l_M000148_source">+</a> ]</p>
1852
+ <div id="M000148_source" class="dyn-source">
1669
1853
  <pre>
1670
1854
  <span class="ruby-comment cmt"># File lib/core/facets/hash/to_struct.rb, line 12</span>
1671
1855
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_struct</span>(<span class="ruby-identifier">struct_name</span>)
@@ -1677,7 +1861,7 @@ CREDIT: Daniel Berger
1677
1861
  </div>
1678
1862
  <div class="method">
1679
1863
  <div class="title">
1680
- <a name="M000094"></a><b>traverse</b>(&amp;b)
1864
+ <a name="M000126"></a><b>traverse</b>(&amp;b)
1681
1865
  </div>
1682
1866
  <div class="description">
1683
1867
  <p>
@@ -1705,8 +1889,8 @@ CREDIT: Trans
1705
1889
  </p>
1706
1890
  </div>
1707
1891
  <div class="sourcecode">
1708
- <p class="source-link">[ <a href="javascript:toggleSource('M000094_source')" id="l_M000094_source">+</a> ]</p>
1709
- <div id="M000094_source" class="dyn-source">
1892
+ <p class="source-link">[ <a href="javascript:toggleSource('M000126_source')" id="l_M000126_source">+</a> ]</p>
1893
+ <div id="M000126_source" class="dyn-source">
1710
1894
  <pre>
1711
1895
  <span class="ruby-comment cmt"># File lib/core/facets/hash/traverse.rb, line 18</span>
1712
1896
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">b</span>)
@@ -1723,11 +1907,11 @@ CREDIT: Trans
1723
1907
  </div>
1724
1908
  <div class="method">
1725
1909
  <div class="title">
1726
- <a name="M000095"></a><b>traverse!</b>(&amp;b)
1910
+ <a name="M000127"></a><b>traverse!</b>(&amp;b)
1727
1911
  </div>
1728
1912
  <div class="description">
1729
1913
  <p>
1730
- In place version of <a href="Hash.html#M000094">traverse</a>, which
1914
+ In place version of <a href="Hash.html#M000126">traverse</a>, which
1731
1915
  traverses the hash and its subhashes, executing the given block on the key
1732
1916
  and value.
1733
1917
  </p>
@@ -1741,8 +1925,8 @@ CREDIT: Trans
1741
1925
  </p>
1742
1926
  </div>
1743
1927
  <div class="sourcecode">
1744
- <p class="source-link">[ <a href="javascript:toggleSource('M000095_source')" id="l_M000095_source">+</a> ]</p>
1745
- <div id="M000095_source" class="dyn-source">
1928
+ <p class="source-link">[ <a href="javascript:toggleSource('M000127_source')" id="l_M000127_source">+</a> ]</p>
1929
+ <div id="M000127_source" class="dyn-source">
1746
1930
  <pre>
1747
1931
  <span class="ruby-comment cmt"># File lib/core/facets/hash/traverse.rb, line 36</span>
1748
1932
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse!</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">b</span>)
@@ -1754,13 +1938,13 @@ CREDIT: Trans
1754
1938
  </div>
1755
1939
  <div class="method">
1756
1940
  <div class="title">
1757
- <a name="M000128"></a><b>update_each</b>( {|| ...}
1941
+ <a name="M000161"></a><b>update_each</b>( {|| ...}
1758
1942
  </div>
1759
1943
  <div class="description">
1760
1944
  <p>
1761
1945
  Iterates through each pair and updates a the hash in place. This is
1762
1946
  formally equivalent to mash! But does not use mash to accomplish the task.
1763
- Hence <a href="Hash.html#M000128">update_each</a> is probably a touch
1947
+ Hence <a href="Hash.html#M000161">update_each</a> is probably a touch
1764
1948
  faster.
1765
1949
  </p>
1766
1950
  <p>
@@ -1768,8 +1952,8 @@ CREDIT: Trans
1768
1952
  </p>
1769
1953
  </div>
1770
1954
  <div class="sourcecode">
1771
- <p class="source-link">[ <a href="javascript:toggleSource('M000128_source')" id="l_M000128_source">+</a> ]</p>
1772
- <div id="M000128_source" class="dyn-source">
1955
+ <p class="source-link">[ <a href="javascript:toggleSource('M000161_source')" id="l_M000161_source">+</a> ]</p>
1956
+ <div id="M000161_source" class="dyn-source">
1773
1957
  <pre>
1774
1958
  <span class="ruby-comment cmt"># File lib/core/facets/hash/update_each.rb, line 10</span>
1775
1959
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_each</span> <span class="ruby-comment cmt"># :yield:</span>
@@ -1784,7 +1968,7 @@ CREDIT: Trans
1784
1968
  </div>
1785
1969
  <div class="method">
1786
1970
  <div class="title">
1787
- <a name="M000129"></a><b>update_keys</b>( {|| ...}
1971
+ <a name="M000162"></a><b>update_keys</b>( {|| ...}
1788
1972
  </div>
1789
1973
  <div class="description">
1790
1974
  <p>
@@ -1800,8 +1984,8 @@ CREDIT: Trans
1800
1984
  </p>
1801
1985
  </div>
1802
1986
  <div class="sourcecode">
1803
- <p class="source-link">[ <a href="javascript:toggleSource('M000129_source')" id="l_M000129_source">+</a> ]</p>
1804
- <div id="M000129_source" class="dyn-source">
1987
+ <p class="source-link">[ <a href="javascript:toggleSource('M000162_source')" id="l_M000162_source">+</a> ]</p>
1988
+ <div id="M000162_source" class="dyn-source">
1805
1989
  <pre>
1806
1990
  <span class="ruby-comment cmt"># File lib/core/facets/hash/update_keys.rb, line 11</span>
1807
1991
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_keys</span> <span class="ruby-comment cmt">#:yield:</span>
@@ -1817,7 +2001,7 @@ CREDIT: Trans
1817
2001
  </div>
1818
2002
  <div class="method">
1819
2003
  <div class="title">
1820
- <a name="M000077"></a><b>update_values</b>( {|| ...}
2004
+ <a name="M000109"></a><b>update_values</b>( {|| ...}
1821
2005
  </div>
1822
2006
  <div class="description">
1823
2007
  <p>
@@ -1833,8 +2017,8 @@ CREDIT: Trans
1833
2017
  </p>
1834
2018
  </div>
1835
2019
  <div class="sourcecode">
1836
- <p class="source-link">[ <a href="javascript:toggleSource('M000077_source')" id="l_M000077_source">+</a> ]</p>
1837
- <div id="M000077_source" class="dyn-source">
2020
+ <p class="source-link">[ <a href="javascript:toggleSource('M000109_source')" id="l_M000109_source">+</a> ]</p>
2021
+ <div id="M000109_source" class="dyn-source">
1838
2022
  <pre>
1839
2023
  <span class="ruby-comment cmt"># File lib/core/facets/hash/update_values.rb, line 11</span>
1840
2024
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_values</span> <span class="ruby-comment cmt">#:yield:</span>
@@ -1850,7 +2034,7 @@ CREDIT: Trans
1850
2034
  </div>
1851
2035
  <div class="method">
1852
2036
  <div class="title">
1853
- <a name="M000114"></a><b>weave</b>(h)
2037
+ <a name="M000146"></a><b>weave</b>(h)
1854
2038
  </div>
1855
2039
  <div class="description">
1856
2040
  <p>
@@ -1897,8 +2081,8 @@ CREDIT: Thomas Sawyer
1897
2081
  </p>
1898
2082
  </div>
1899
2083
  <div class="sourcecode">
1900
- <p class="source-link">[ <a href="javascript:toggleSource('M000114_source')" id="l_M000114_source">+</a> ]</p>
1901
- <div id="M000114_source" class="dyn-source">
2084
+ <p class="source-link">[ <a href="javascript:toggleSource('M000146_source')" id="l_M000146_source">+</a> ]</p>
2085
+ <div id="M000146_source" class="dyn-source">
1902
2086
  <pre>
1903
2087
  <span class="ruby-comment cmt"># File lib/core/facets/hash/weave.rb, line 40</span>
1904
2088
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">weave</span>(<span class="ruby-identifier">h</span>)
@@ -1947,19 +2131,19 @@ CREDIT: Thomas Sawyer
1947
2131
  </div>
1948
2132
  <div class="method">
1949
2133
  <div class="title">
1950
- <a name="M000096"></a><b>|</b>(other)
2134
+ <a name="M000128"></a><b>|</b>(other)
1951
2135
  </div>
1952
2136
  <div class="description">
1953
2137
  <p>
1954
- Operator for <a href="Hash.html#M000091">reverse_merge</a>.
2138
+ Operator for <a href="Hash.html#M000123">reverse_merge</a>.
1955
2139
  </p>
1956
2140
  <p>
1957
2141
  CREDIT: Trans
1958
2142
  </p>
1959
2143
  </div>
1960
2144
  <div class="sourcecode">
1961
- <p class="source-link">[ <a href="javascript:toggleSource('M000096_source')" id="l_M000096_source">+</a> ]</p>
1962
- <div id="M000096_source" class="dyn-source">
2145
+ <p class="source-link">[ <a href="javascript:toggleSource('M000128_source')" id="l_M000128_source">+</a> ]</p>
2146
+ <div id="M000128_source" class="dyn-source">
1963
2147
  <pre>
1964
2148
  <span class="ruby-comment cmt"># File lib/core/facets/hash/op_or.rb, line 7</span>
1965
2149
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">|</span>(<span class="ruby-identifier">other</span>)