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
@@ -72,13 +72,13 @@
72
72
  <div class="description"><h1><a href="Indexable.html">Indexable</a></h1>
73
73
  <p>
74
74
  <a href="Indexable.html">Indexable</a> is a mixin that provides <a
75
- href="Indexable.html#M000332">index</a> based methods, working soley with
76
- four methods: <a href="Indexable.html#M000332">index</a>, slice, splice and
75
+ href="Indexable.html#M000344">index</a> based methods, working soley with
76
+ four methods: <a href="Indexable.html#M000344">index</a>, slice, splice and
77
77
  size.
78
78
  </p>
79
79
  <p>
80
80
  These methods work in harmony. Where <a
81
- href="Indexable.html#M000332">index</a> returns a position of a given
81
+ href="Indexable.html#M000344">index</a> returns a position of a given
82
82
  element, slice returns elements for given positions. splice is like slice
83
83
  but replaces the given position with new values. This mehtod is not part of
84
84
  ruby core, but it generally just an alias for #[]=, just as slice is an
@@ -90,24 +90,24 @@ indexable object.
90
90
 
91
91
 
92
92
  <div class="sectiontitle">Methods</div>
93
- <span style="padding-right: 5px;"><a href="#M000320">body</a></span>
94
- <span style="padding-right: 5px;"><a href="#M000330">ends</a></span>
95
- <span style="padding-right: 5px;"><a href="#M000324">first</a></span>
96
- <span style="padding-right: 5px;"><a href="#M000328">first!</a></span>
97
- <span style="padding-right: 5px;"><a href="#M000326">first=</a></span>
98
- <span style="padding-right: 5px;"><a href="#M000319">foot</a></span>
99
- <span style="padding-right: 5px;"><a href="#M000317">head</a></span>
100
- <span style="padding-right: 5px;"><a href="#M000332">index</a></span>
101
- <span style="padding-right: 5px;"><a href="#M000333">index_of</a></span>
102
- <span style="padding-right: 5px;"><a href="#M000325">last</a></span>
103
- <span style="padding-right: 5px;"><a href="#M000329">last!</a></span>
104
- <span style="padding-right: 5px;"><a href="#M000327">last=</a></span>
105
- <span style="padding-right: 5px;"><a href="#M000321">mid</a></span>
106
- <span style="padding-right: 5px;"><a href="#M000322">middle</a></span>
107
- <span style="padding-right: 5px;"><a href="#M000331">pos</a></span>
108
- <span style="padding-right: 5px;"><a href="#M000334">range</a></span>
109
- <span style="padding-right: 5px;"><a href="#M000318">tail</a></span>
110
- <span style="padding-right: 5px;"><a href="#M000323">thru</a></span>
93
+ <span style="padding-right: 5px;"><a href="#M000332">body</a></span>
94
+ <span style="padding-right: 5px;"><a href="#M000342">ends</a></span>
95
+ <span style="padding-right: 5px;"><a href="#M000336">first</a></span>
96
+ <span style="padding-right: 5px;"><a href="#M000340">first!</a></span>
97
+ <span style="padding-right: 5px;"><a href="#M000338">first=</a></span>
98
+ <span style="padding-right: 5px;"><a href="#M000331">foot</a></span>
99
+ <span style="padding-right: 5px;"><a href="#M000329">head</a></span>
100
+ <span style="padding-right: 5px;"><a href="#M000344">index</a></span>
101
+ <span style="padding-right: 5px;"><a href="#M000345">index_of</a></span>
102
+ <span style="padding-right: 5px;"><a href="#M000337">last</a></span>
103
+ <span style="padding-right: 5px;"><a href="#M000341">last!</a></span>
104
+ <span style="padding-right: 5px;"><a href="#M000339">last=</a></span>
105
+ <span style="padding-right: 5px;"><a href="#M000333">mid</a></span>
106
+ <span style="padding-right: 5px;"><a href="#M000334">middle</a></span>
107
+ <span style="padding-right: 5px;"><a href="#M000343">pos</a></span>
108
+ <span style="padding-right: 5px;"><a href="#M000346">range</a></span>
109
+ <span style="padding-right: 5px;"><a href="#M000330">tail</a></span>
110
+ <span style="padding-right: 5px;"><a href="#M000335">thru</a></span>
111
111
 
112
112
 
113
113
 
@@ -117,12 +117,12 @@ indexable object.
117
117
  <div class="sectiontitle">Public Instance methods</div>
118
118
  <div class="method">
119
119
  <div class="title">
120
- <a name="M000320"></a><b>body</b>()
120
+ <a name="M000332"></a><b>body</b>()
121
121
  </div>
122
122
  <div class="description">
123
123
  <p>
124
- Returns an array of the <a href="Indexable.html#M000324">first</a> element
125
- upto, but not including, the <a href="Indexable.html#M000325">last</a>
124
+ Returns an array of the <a href="Indexable.html#M000336">first</a> element
125
+ upto, but not including, the <a href="Indexable.html#M000337">last</a>
126
126
  element.
127
127
  </p>
128
128
  <pre>
@@ -130,8 +130,8 @@ element.
130
130
  </pre>
131
131
  </div>
132
132
  <div class="sourcecode">
133
- <p class="source-link">[ <a href="javascript:toggleSource('M000320_source')" id="l_M000320_source">+</a> ]</p>
134
- <div id="M000320_source" class="dyn-source">
133
+ <p class="source-link">[ <a href="javascript:toggleSource('M000332_source')" id="l_M000332_source">+</a> ]</p>
134
+ <div id="M000332_source" class="dyn-source">
135
135
  <pre>
136
136
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 71</span>
137
137
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">body</span>
@@ -143,13 +143,13 @@ element.
143
143
  </div>
144
144
  <div class="method">
145
145
  <div class="title">
146
- <a name="M000330"></a><b>ends</b>()
146
+ <a name="M000342"></a><b>ends</b>()
147
147
  </div>
148
148
  <div class="description">
149
149
  <p>
150
- A shorting of &quot;<a href="Indexable.html#M000330">ends</a> at&quot;,
151
- returns the <a href="Indexable.html#M000325">last</a> <a
152
- href="Indexable.html#M000332">index</a> of the indexable object. Returns
150
+ A shorting of &quot;<a href="Indexable.html#M000342">ends</a> at&quot;,
151
+ returns the <a href="Indexable.html#M000337">last</a> <a
152
+ href="Indexable.html#M000344">index</a> of the indexable object. Returns
153
153
  nil if there are no elements.
154
154
  </p>
155
155
  <pre>
@@ -160,8 +160,8 @@ This nearly equivalent to +size - 1+.
160
160
  </p>
161
161
  </div>
162
162
  <div class="sourcecode">
163
- <p class="source-link">[ <a href="javascript:toggleSource('M000330_source')" id="l_M000330_source">+</a> ]</p>
164
- <div id="M000330_source" class="dyn-source">
163
+ <p class="source-link">[ <a href="javascript:toggleSource('M000342_source')" id="l_M000342_source">+</a> ]</p>
164
+ <div id="M000342_source" class="dyn-source">
165
165
  <pre>
166
166
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 192</span>
167
167
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ends</span>
@@ -174,19 +174,19 @@ This nearly equivalent to +size - 1+.
174
174
  </div>
175
175
  <div class="method">
176
176
  <div class="title">
177
- <a name="M000324"></a><b>first</b>(n=1)
177
+ <a name="M000336"></a><b>first</b>(n=1)
178
178
  </div>
179
179
  <div class="description">
180
180
  <p>
181
- Returns <a href="Indexable.html#M000324">first</a> <em>n</em> elements.
181
+ Returns <a href="Indexable.html#M000336">first</a> <em>n</em> elements.
182
182
  </p>
183
183
  <pre>
184
184
  &quot;Hello World&quot;.first(3) #=&gt; &quot;Hel&quot;
185
185
  </pre>
186
186
  </div>
187
187
  <div class="sourcecode">
188
- <p class="source-link">[ <a href="javascript:toggleSource('M000324_source')" id="l_M000324_source">+</a> ]</p>
189
- <div id="M000324_source" class="dyn-source">
188
+ <p class="source-link">[ <a href="javascript:toggleSource('M000336_source')" id="l_M000336_source">+</a> ]</p>
189
+ <div id="M000336_source" class="dyn-source">
190
190
  <pre>
191
191
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 130</span>
192
192
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
@@ -198,11 +198,11 @@ Returns <a href="Indexable.html#M000324">first</a> <em>n</em> elements.
198
198
  </div>
199
199
  <div class="method">
200
200
  <div class="title">
201
- <a name="M000328"></a><b>first!</b>()
201
+ <a name="M000340"></a><b>first!</b>()
202
202
  </div>
203
203
  <div class="description">
204
204
  <p>
205
- Remove and return the <a href="Indexable.html#M000324">first</a> element.
205
+ Remove and return the <a href="Indexable.html#M000336">first</a> element.
206
206
  </p>
207
207
  <pre>
208
208
  a = [1,2,3]
@@ -211,8 +211,8 @@ Remove and return the <a href="Indexable.html#M000324">first</a> element.
211
211
  </pre>
212
212
  </div>
213
213
  <div class="sourcecode">
214
- <p class="source-link">[ <a href="javascript:toggleSource('M000328_source')" id="l_M000328_source">+</a> ]</p>
215
- <div id="M000328_source" class="dyn-source">
214
+ <p class="source-link">[ <a href="javascript:toggleSource('M000340_source')" id="l_M000340_source">+</a> ]</p>
215
+ <div id="M000340_source" class="dyn-source">
216
216
  <pre>
217
217
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 170</span>
218
218
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first!</span>
@@ -224,11 +224,11 @@ Remove and return the <a href="Indexable.html#M000324">first</a> element.
224
224
  </div>
225
225
  <div class="method">
226
226
  <div class="title">
227
- <a name="M000326"></a><b>first=</b>(x)
227
+ <a name="M000338"></a><b>first=</b>(x)
228
228
  </div>
229
229
  <div class="description">
230
230
  <p>
231
- Change the <a href="Indexable.html#M000324">first</a> element.
231
+ Change the <a href="Indexable.html#M000336">first</a> element.
232
232
  </p>
233
233
  <pre>
234
234
  a = [&quot;a&quot;,&quot;y&quot;,&quot;z&quot;]
@@ -237,8 +237,8 @@ Change the <a href="Indexable.html#M000324">first</a> element.
237
237
  </pre>
238
238
  </div>
239
239
  <div class="sourcecode">
240
- <p class="source-link">[ <a href="javascript:toggleSource('M000326_source')" id="l_M000326_source">+</a> ]</p>
241
- <div id="M000326_source" class="dyn-source">
240
+ <p class="source-link">[ <a href="javascript:toggleSource('M000338_source')" id="l_M000338_source">+</a> ]</p>
241
+ <div id="M000338_source" class="dyn-source">
242
242
  <pre>
243
243
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 150</span>
244
244
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first=</span>(<span class="ruby-identifier">x</span>)
@@ -250,20 +250,20 @@ Change the <a href="Indexable.html#M000324">first</a> element.
250
250
  </div>
251
251
  <div class="method">
252
252
  <div class="title">
253
- <a name="M000319"></a><b>foot</b>()
253
+ <a name="M000331"></a><b>foot</b>()
254
254
  </div>
255
255
  <div class="description">
256
256
  <p>
257
- Like <a href="Indexable.html#M000325">last</a>, returning the <a
258
- href="Indexable.html#M000325">last</a> element in an array.
257
+ Like <a href="Indexable.html#M000337">last</a>, returning the <a
258
+ href="Indexable.html#M000337">last</a> element in an array.
259
259
  </p>
260
260
  <pre>
261
261
  [1,2,3].foot #=&gt; [3]
262
262
  </pre>
263
263
  </div>
264
264
  <div class="sourcecode">
265
- <p class="source-link">[ <a href="javascript:toggleSource('M000319_source')" id="l_M000319_source">+</a> ]</p>
266
- <div id="M000319_source" class="dyn-source">
265
+ <p class="source-link">[ <a href="javascript:toggleSource('M000331_source')" id="l_M000331_source">+</a> ]</p>
266
+ <div id="M000331_source" class="dyn-source">
267
267
  <pre>
268
268
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 58</span>
269
269
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">foot</span>
@@ -275,20 +275,20 @@ href="Indexable.html#M000325">last</a> element in an array.
275
275
  </div>
276
276
  <div class="method">
277
277
  <div class="title">
278
- <a name="M000317"></a><b>head</b>()
278
+ <a name="M000329"></a><b>head</b>()
279
279
  </div>
280
280
  <div class="description">
281
281
  <p>
282
- Like <a href="Indexable.html#M000324">first</a> but returns the <a
283
- href="Indexable.html#M000324">first</a> element in a new array.
282
+ Like <a href="Indexable.html#M000336">first</a> but returns the <a
283
+ href="Indexable.html#M000336">first</a> element in a new array.
284
284
  </p>
285
285
  <pre>
286
286
  [1,2,3].head #=&gt; [1]
287
287
  </pre>
288
288
  </div>
289
289
  <div class="sourcecode">
290
- <p class="source-link">[ <a href="javascript:toggleSource('M000317_source')" id="l_M000317_source">+</a> ]</p>
291
- <div id="M000317_source" class="dyn-source">
290
+ <p class="source-link">[ <a href="javascript:toggleSource('M000329_source')" id="l_M000329_source">+</a> ]</p>
291
+ <div id="M000329_source" class="dyn-source">
292
292
  <pre>
293
293
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 41</span>
294
294
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">head</span>
@@ -300,12 +300,12 @@ href="Indexable.html#M000324">first</a> element in a new array.
300
300
  </div>
301
301
  <div class="method">
302
302
  <div class="title">
303
- <a name="M000332"></a><b>index</b>(obj=nil) {|slice(i)| ...}
303
+ <a name="M000344"></a><b>index</b>(obj=nil) {|slice(i)| ...}
304
304
  </div>
305
305
  <div class="description">
306
306
  <p>
307
- Returns the <a href="Indexable.html#M000332">index</a> of the <a
308
- href="Indexable.html#M000324">first</a> element equal to the given object
307
+ Returns the <a href="Indexable.html#M000344">index</a> of the <a
308
+ href="Indexable.html#M000336">first</a> element equal to the given object
309
309
  or satisfying the block condition.
310
310
  </p>
311
311
  <pre>
@@ -315,11 +315,11 @@ or satisfying the block condition.
315
315
  </div>
316
316
  <div class="aka">
317
317
  This method is also aliased as
318
- <a href="Indexable.html#M000333">index_of</a>
318
+ <a href="Indexable.html#M000345">index_of</a>
319
319
  </div>
320
320
  <div class="sourcecode">
321
- <p class="source-link">[ <a href="javascript:toggleSource('M000332_source')" id="l_M000332_source">+</a> ]</p>
322
- <div id="M000332_source" class="dyn-source">
321
+ <p class="source-link">[ <a href="javascript:toggleSource('M000344_source')" id="l_M000344_source">+</a> ]</p>
322
+ <div id="M000344_source" class="dyn-source">
323
323
  <pre>
324
324
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 217</span>
325
325
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>(<span class="ruby-identifier">obj</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -340,29 +340,29 @@ or satisfying the block condition.
340
340
  </div>
341
341
  <div class="method">
342
342
  <div class="title">
343
- <a name="M000333"></a><b>index_of</b>(obj=nil, &amp;block)
343
+ <a name="M000345"></a><b>index_of</b>(obj=nil, &amp;block)
344
344
  </div>
345
345
  <div class="description">
346
346
  <p>
347
- Alias for <a href="Indexable.html#M000332">index</a>
347
+ Alias for <a href="Indexable.html#M000344">index</a>
348
348
  </p>
349
349
  </div>
350
350
  </div>
351
351
  <div class="method">
352
352
  <div class="title">
353
- <a name="M000325"></a><b>last</b>(n=1)
353
+ <a name="M000337"></a><b>last</b>(n=1)
354
354
  </div>
355
355
  <div class="description">
356
356
  <p>
357
- Returns <a href="Indexable.html#M000325">last</a> <em>n</em> elements.
357
+ Returns <a href="Indexable.html#M000337">last</a> <em>n</em> elements.
358
358
  </p>
359
359
  <pre>
360
360
  &quot;Hello World&quot;.last(3) #=&gt; &quot;rld&quot;
361
361
  </pre>
362
362
  </div>
363
363
  <div class="sourcecode">
364
- <p class="source-link">[ <a href="javascript:toggleSource('M000325_source')" id="l_M000325_source">+</a> ]</p>
365
- <div id="M000325_source" class="dyn-source">
364
+ <p class="source-link">[ <a href="javascript:toggleSource('M000337_source')" id="l_M000337_source">+</a> ]</p>
365
+ <div id="M000337_source" class="dyn-source">
366
366
  <pre>
367
367
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 138</span>
368
368
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
@@ -376,11 +376,11 @@ Returns <a href="Indexable.html#M000325">last</a> <em>n</em> elements.
376
376
  </div>
377
377
  <div class="method">
378
378
  <div class="title">
379
- <a name="M000329"></a><b>last!</b>()
379
+ <a name="M000341"></a><b>last!</b>()
380
380
  </div>
381
381
  <div class="description">
382
382
  <p>
383
- Remove and return the <a href="Indexable.html#M000325">last</a> element.
383
+ Remove and return the <a href="Indexable.html#M000337">last</a> element.
384
384
  </p>
385
385
  <pre>
386
386
  a = [1,2,3]
@@ -389,8 +389,8 @@ Remove and return the <a href="Indexable.html#M000325">last</a> element.
389
389
  </pre>
390
390
  </div>
391
391
  <div class="sourcecode">
392
- <p class="source-link">[ <a href="javascript:toggleSource('M000329_source')" id="l_M000329_source">+</a> ]</p>
393
- <div id="M000329_source" class="dyn-source">
392
+ <p class="source-link">[ <a href="javascript:toggleSource('M000341_source')" id="l_M000341_source">+</a> ]</p>
393
+ <div id="M000341_source" class="dyn-source">
394
394
  <pre>
395
395
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 180</span>
396
396
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last!</span>
@@ -402,11 +402,11 @@ Remove and return the <a href="Indexable.html#M000325">last</a> element.
402
402
  </div>
403
403
  <div class="method">
404
404
  <div class="title">
405
- <a name="M000327"></a><b>last=</b>(x)
405
+ <a name="M000339"></a><b>last=</b>(x)
406
406
  </div>
407
407
  <div class="description">
408
408
  <p>
409
- Change the <a href="Indexable.html#M000325">last</a> element.
409
+ Change the <a href="Indexable.html#M000337">last</a> element.
410
410
  </p>
411
411
  <pre>
412
412
  a = [1,2,5]
@@ -415,8 +415,8 @@ Change the <a href="Indexable.html#M000325">last</a> element.
415
415
  </pre>
416
416
  </div>
417
417
  <div class="sourcecode">
418
- <p class="source-link">[ <a href="javascript:toggleSource('M000327_source')" id="l_M000327_source">+</a> ]</p>
419
- <div id="M000327_source" class="dyn-source">
418
+ <p class="source-link">[ <a href="javascript:toggleSource('M000339_source')" id="l_M000339_source">+</a> ]</p>
419
+ <div id="M000339_source" class="dyn-source">
420
420
  <pre>
421
421
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 160</span>
422
422
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last=</span>(<span class="ruby-identifier">x</span>)
@@ -428,16 +428,16 @@ Change the <a href="Indexable.html#M000325">last</a> element.
428
428
  </div>
429
429
  <div class="method">
430
430
  <div class="title">
431
- <a name="M000321"></a><b>mid</b>(offset=0)
431
+ <a name="M000333"></a><b>mid</b>(offset=0)
432
432
  </div>
433
433
  <div class="description">
434
434
  <p>
435
- Returns the <a href="Indexable.html#M000322">middle</a> element of an
435
+ Returns the <a href="Indexable.html#M000334">middle</a> element of an
436
436
  array, or the element offset from <a
437
- href="Indexable.html#M000322">middle</a> if the parameter is given.
437
+ href="Indexable.html#M000334">middle</a> if the parameter is given.
438
438
  Even-sized arrays, not having an exact <a
439
- href="Indexable.html#M000322">middle</a>, return the <a
440
- href="Indexable.html#M000322">middle</a>-right element.
439
+ href="Indexable.html#M000334">middle</a>, return the <a
440
+ href="Indexable.html#M000334">middle</a>-right element.
441
441
  </p>
442
442
  <pre>
443
443
  [1,2,3,4,5].mid #=&gt; 3
@@ -452,8 +452,8 @@ of the two center elements is indexed as orgin (0).
452
452
  </p>
453
453
  </div>
454
454
  <div class="sourcecode">
455
- <p class="source-link">[ <a href="javascript:toggleSource('M000321_source')" id="l_M000321_source">+</a> ]</p>
456
- <div id="M000321_source" class="dyn-source">
455
+ <p class="source-link">[ <a href="javascript:toggleSource('M000333_source')" id="l_M000333_source">+</a> ]</p>
456
+ <div id="M000333_source" class="dyn-source">
457
457
  <pre>
458
458
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 89</span>
459
459
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mid</span>(<span class="ruby-identifier">offset</span>=<span class="ruby-value">0</span>)
@@ -465,27 +465,27 @@ of the two center elements is indexed as orgin (0).
465
465
  </div>
466
466
  <div class="method">
467
467
  <div class="title">
468
- <a name="M000322"></a><b>middle</b>()
468
+ <a name="M000334"></a><b>middle</b>()
469
469
  </div>
470
470
  <div class="description">
471
471
  <p>
472
- Returns the <a href="Indexable.html#M000322">middle</a> element(s) of an
472
+ Returns the <a href="Indexable.html#M000334">middle</a> element(s) of an
473
473
  array. Even-sized arrays, not having an exact <a
474
- href="Indexable.html#M000322">middle</a>, returns a two-element array of
475
- the two <a href="Indexable.html#M000322">middle</a> elements.
474
+ href="Indexable.html#M000334">middle</a>, returns a two-element array of
475
+ the two <a href="Indexable.html#M000334">middle</a> elements.
476
476
  </p>
477
477
  <pre>
478
478
  [1,2,3,4,5].middle #=&gt; 3
479
479
  [1,2,3,4,5,6].middle #=&gt; [3,4]
480
480
  </pre>
481
481
  <p>
482
- In contrast to <a href="Indexable.html#M000321">mid</a> which utilizes an
482
+ In contrast to <a href="Indexable.html#M000333">mid</a> which utilizes an
483
483
  offset.
484
484
  </p>
485
485
  </div>
486
486
  <div class="sourcecode">
487
- <p class="source-link">[ <a href="javascript:toggleSource('M000322_source')" id="l_M000322_source">+</a> ]</p>
488
- <div id="M000322_source" class="dyn-source">
487
+ <p class="source-link">[ <a href="javascript:toggleSource('M000334_source')" id="l_M000334_source">+</a> ]</p>
488
+ <div id="M000334_source" class="dyn-source">
489
489
  <pre>
490
490
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 102</span>
491
491
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">middle</span>
@@ -502,11 +502,11 @@ offset.
502
502
  </div>
503
503
  <div class="method">
504
504
  <div class="title">
505
- <a name="M000331"></a><b>pos</b>(i)
505
+ <a name="M000343"></a><b>pos</b>(i)
506
506
  </div>
507
507
  <div class="description">
508
508
  <p>
509
- Returns the positive ordinal <a href="Indexable.html#M000332">index</a>
509
+ Returns the positive ordinal <a href="Indexable.html#M000344">index</a>
510
510
  given a cardinal position, 1 to n or -n to -1.
511
511
  </p>
512
512
  <pre>
@@ -515,8 +515,8 @@ given a cardinal position, 1 to n or -n to -1.
515
515
  </pre>
516
516
  </div>
517
517
  <div class="sourcecode">
518
- <p class="source-link">[ <a href="javascript:toggleSource('M000331_source')" id="l_M000331_source">+</a> ]</p>
519
- <div id="M000331_source" class="dyn-source">
518
+ <p class="source-link">[ <a href="javascript:toggleSource('M000343_source')" id="l_M000343_source">+</a> ]</p>
519
+ <div id="M000343_source" class="dyn-source">
520
520
  <pre>
521
521
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 203</span>
522
522
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pos</span>(<span class="ruby-identifier">i</span>)
@@ -532,15 +532,15 @@ given a cardinal position, 1 to n or -n to -1.
532
532
  </div>
533
533
  <div class="method">
534
534
  <div class="title">
535
- <a name="M000334"></a><b>range</b>(a=nil,z=nil)
535
+ <a name="M000346"></a><b>range</b>(a=nil,z=nil)
536
536
  </div>
537
537
  <div class="description">
538
538
  <p>
539
- Returns the <a href="Indexable.html#M000332">index</a> <a
540
- href="Indexable.html#M000334">range</a> between two elements. If no
541
- elements are given, returns the <a href="Indexable.html#M000334">range</a>
542
- from <a href="Indexable.html#M000324">first</a> to <a
543
- href="Indexable.html#M000325">last</a>.
539
+ Returns the <a href="Indexable.html#M000344">index</a> <a
540
+ href="Indexable.html#M000346">range</a> between two elements. If no
541
+ elements are given, returns the <a href="Indexable.html#M000346">range</a>
542
+ from <a href="Indexable.html#M000336">first</a> to <a
543
+ href="Indexable.html#M000337">last</a>.
544
544
  </p>
545
545
  <pre>
546
546
  ['a','b','c','d'].range #=&gt; 0..3
@@ -548,8 +548,8 @@ href="Indexable.html#M000325">last</a>.
548
548
  </pre>
549
549
  </div>
550
550
  <div class="sourcecode">
551
- <p class="source-link">[ <a href="javascript:toggleSource('M000334_source')" id="l_M000334_source">+</a> ]</p>
552
- <div id="M000334_source" class="dyn-source">
551
+ <p class="source-link">[ <a href="javascript:toggleSource('M000346_source')" id="l_M000346_source">+</a> ]</p>
552
+ <div id="M000346_source" class="dyn-source">
553
553
  <pre>
554
554
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 242</span>
555
555
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range</span>(<span class="ruby-identifier">a</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-identifier">z</span>=<span class="ruby-keyword kw">nil</span>)
@@ -565,20 +565,20 @@ href="Indexable.html#M000325">last</a>.
565
565
  </div>
566
566
  <div class="method">
567
567
  <div class="title">
568
- <a name="M000318"></a><b>tail</b>()
568
+ <a name="M000330"></a><b>tail</b>()
569
569
  </div>
570
570
  <div class="description">
571
571
  <p>
572
572
  Returns an array from second element to <a
573
- href="Indexable.html#M000325">last</a> element.
573
+ href="Indexable.html#M000337">last</a> element.
574
574
  </p>
575
575
  <pre>
576
576
  [1,2,3].tail #=&gt; [2,3]
577
577
  </pre>
578
578
  </div>
579
579
  <div class="sourcecode">
580
- <p class="source-link">[ <a href="javascript:toggleSource('M000318_source')" id="l_M000318_source">+</a> ]</p>
581
- <div id="M000318_source" class="dyn-source">
580
+ <p class="source-link">[ <a href="javascript:toggleSource('M000330_source')" id="l_M000330_source">+</a> ]</p>
581
+ <div id="M000330_source" class="dyn-source">
582
582
  <pre>
583
583
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 49</span>
584
584
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tail</span>
@@ -590,13 +590,13 @@ href="Indexable.html#M000325">last</a> element.
590
590
  </div>
591
591
  <div class="method">
592
592
  <div class="title">
593
- <a name="M000323"></a><b>thru</b>(from, to)
593
+ <a name="M000335"></a><b>thru</b>(from, to)
594
594
  </div>
595
595
  <div class="description">
596
596
  <p>
597
- Fetch values from a start <a href="Indexable.html#M000332">index</a> <a
598
- href="Indexable.html#M000323">thru</a> an end <a
599
- href="Indexable.html#M000332">index</a>.
597
+ Fetch values from a start <a href="Indexable.html#M000344">index</a> <a
598
+ href="Indexable.html#M000335">thru</a> an end <a
599
+ href="Indexable.html#M000344">index</a>.
600
600
  </p>
601
601
  <pre>
602
602
  [1,2,3,4,5].thru(0,2) #=&gt; [1,2,3]
@@ -604,8 +604,8 @@ href="Indexable.html#M000332">index</a>.
604
604
  </pre>
605
605
  </div>
606
606
  <div class="sourcecode">
607
- <p class="source-link">[ <a href="javascript:toggleSource('M000323_source')" id="l_M000323_source">+</a> ]</p>
608
- <div id="M000323_source" class="dyn-source">
607
+ <p class="source-link">[ <a href="javascript:toggleSource('M000335_source')" id="l_M000335_source">+</a> ]</p>
608
+ <div id="M000335_source" class="dyn-source">
609
609
  <pre>
610
610
  <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 116</span>
611
611
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">thru</span>(<span class="ruby-identifier">from</span>, <span class="ruby-identifier">to</span>)