facets 2.4.2 → 2.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (293) hide show
  1. data/AUTHORS +1 -1
  2. data/CHANGES +25 -5
  3. data/MANIFEST +67 -34
  4. data/METADATA +2 -2
  5. data/NEWS +54 -46
  6. data/doc/news/NEWS-2.4.0 +52 -0
  7. data/doc/rdoc/core/classes/Array.html +198 -198
  8. data/doc/rdoc/core/classes/Binding.html +86 -192
  9. data/doc/rdoc/core/classes/Class.html +136 -136
  10. data/doc/rdoc/core/classes/Comparable.html +45 -45
  11. data/doc/rdoc/core/classes/Dir.html +64 -64
  12. data/doc/rdoc/core/classes/Enumerable.html +287 -281
  13. data/doc/rdoc/core/classes/Exception.html +16 -16
  14. data/doc/rdoc/core/classes/FalseClass.html +8 -8
  15. data/doc/rdoc/core/classes/File.html +100 -100
  16. data/doc/rdoc/core/classes/FileTest.html +8 -8
  17. data/doc/rdoc/core/classes/Float.html +32 -32
  18. data/doc/rdoc/core/classes/Friend.html +8 -8
  19. data/doc/rdoc/core/classes/Functor.html +12 -12
  20. data/doc/rdoc/core/classes/Hash.html +439 -847
  21. data/doc/rdoc/{more → core}/classes/Indexable.html +115 -115
  22. data/doc/rdoc/core/classes/InstanceVariables.html +88 -88
  23. data/doc/rdoc/core/classes/Integer.html +142 -142
  24. data/doc/rdoc/core/classes/Kernel.html +602 -600
  25. data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
  26. data/doc/rdoc/core/classes/MatchData.html +30 -30
  27. data/doc/rdoc/core/classes/Module.html +379 -327
  28. data/doc/rdoc/core/classes/NilClass.html +32 -32
  29. data/doc/rdoc/core/classes/Numeric.html +46 -46
  30. data/doc/rdoc/core/classes/Object.html +4 -4
  31. data/doc/rdoc/core/classes/Proc.html +46 -134
  32. data/doc/rdoc/core/classes/Range.html +60 -60
  33. data/doc/rdoc/core/classes/Regexp.html +28 -28
  34. data/doc/rdoc/{more → core}/classes/Stackable.html +38 -38
  35. data/doc/rdoc/core/classes/String.html +844 -504
  36. data/doc/rdoc/core/classes/Symbol.html +62 -62
  37. data/doc/rdoc/core/classes/Time.html +112 -112
  38. data/doc/rdoc/core/classes/TrueClass.html +8 -8
  39. data/doc/rdoc/core/classes/UnboundMethod.html +22 -22
  40. data/doc/rdoc/core/created.rid +1 -1
  41. data/doc/rdoc/core/files/lib/core/facets/array_rb.html +4 -1
  42. data/doc/rdoc/core/files/lib/core/facets/binding_rb.html +1 -1
  43. data/doc/rdoc/core/files/lib/core/facets/boolean_rb.html +2 -2
  44. data/doc/rdoc/core/files/lib/core/facets/class/methodize_rb.html +96 -0
  45. data/doc/rdoc/core/files/lib/core/facets/class/pathize_rb.html +96 -0
  46. data/doc/rdoc/core/files/lib/core/facets/class_rb.html +5 -1
  47. data/doc/rdoc/core/files/lib/core/facets/dir_rb.html +1 -1
  48. data/doc/rdoc/core/files/lib/core/facets/{class/to_methodname_rb.html → enumerable/commonality_rb.html} +4 -4
  49. data/doc/rdoc/core/files/lib/core/facets/enumerable/entropy_rb.html +96 -0
  50. data/doc/rdoc/core/files/lib/core/facets/{class/to_pathname_rb.html → enumerable/frequency_rb.html} +4 -4
  51. data/doc/rdoc/core/files/lib/core/facets/enumerable/probability_rb.html +1 -1
  52. data/doc/rdoc/core/files/lib/core/facets/enumerable_rb.html +6 -2
  53. data/doc/rdoc/core/files/lib/core/facets/file_rb.html +2 -1
  54. data/doc/rdoc/core/files/lib/core/facets/hash_rb.html +7 -1
  55. data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/indexable_rb.html +2 -2
  56. data/doc/rdoc/core/files/lib/core/facets/kernel/require_all_rb.html +92 -0
  57. data/doc/rdoc/core/files/lib/core/facets/kernel/require_local_rb.html +92 -0
  58. data/doc/rdoc/core/files/lib/core/facets/kernel_rb.html +15 -2
  59. data/doc/rdoc/core/files/lib/core/facets/module/integrate_rb.html +96 -0
  60. data/doc/rdoc/core/files/lib/core/facets/module/methodize_rb.html +96 -0
  61. data/doc/rdoc/core/files/lib/core/facets/module/module_load_rb.html +1 -1
  62. data/doc/rdoc/core/files/lib/core/facets/module/pathize_rb.html +5 -1
  63. data/doc/rdoc/core/files/lib/core/facets/module/redefine_method_rb.html +92 -0
  64. data/doc/rdoc/core/files/lib/core/facets/module/redirect_method_rb.html +92 -0
  65. data/doc/rdoc/core/files/lib/core/facets/module/rename_method_rb.html +92 -0
  66. data/doc/rdoc/core/files/lib/core/facets/module/revise_rb.html +8 -1
  67. data/doc/rdoc/core/files/lib/core/facets/module/wrap_method_rb.html +92 -0
  68. data/doc/rdoc/core/files/lib/core/facets/module_rb.html +8 -5
  69. data/doc/rdoc/core/files/lib/core/facets/numeric_rb.html +2 -1
  70. data/doc/rdoc/core/files/lib/core/facets/proc_rb.html +3 -5
  71. data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/stackable_rb.html +3 -4
  72. data/doc/rdoc/core/files/lib/core/facets/string/each_word_rb.html +96 -0
  73. data/doc/rdoc/core/files/lib/core/facets/{module/clone_rb.html → string/methodize_rb.html} +4 -4
  74. data/doc/rdoc/core/files/lib/core/facets/{kernel/load_rb.html → string/pathize_rb.html} +4 -4
  75. data/doc/rdoc/core/files/lib/core/facets/string/word_wrap_rb.html +92 -0
  76. data/doc/rdoc/core/files/lib/core/facets/string/words_rb.html +1 -5
  77. data/doc/rdoc/core/files/lib/core/facets/string_rb.html +8 -3
  78. data/doc/rdoc/core/files/lib/core/facets/symbol_rb.html +2 -1
  79. data/doc/rdoc/core/fr_class_index.html +2 -3
  80. data/doc/rdoc/core/fr_file_index.html +36 -16
  81. data/doc/rdoc/core/fr_method_index.html +778 -784
  82. data/doc/rdoc/lore/created.rid +1 -1
  83. data/doc/rdoc/more/classes/ANSICode.html +66 -66
  84. data/doc/rdoc/more/classes/Advisable.html +37 -37
  85. data/doc/rdoc/more/classes/Advisable/Method.html +20 -20
  86. data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +27 -27
  87. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +28 -28
  88. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +19 -19
  89. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +31 -31
  90. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +33 -33
  91. data/doc/rdoc/more/classes/Association.html +28 -28
  92. data/doc/rdoc/more/classes/Association/Kernel.html +8 -8
  93. data/doc/rdoc/more/classes/Autoarray.html +12 -12
  94. data/doc/rdoc/more/classes/BBCode.html +34 -34
  95. data/doc/rdoc/more/classes/BaseX.html +16 -16
  96. data/doc/rdoc/more/classes/BiCrypt.html +67 -67
  97. data/doc/rdoc/more/classes/BigDuration.html +30 -30
  98. data/doc/rdoc/more/classes/BinReadable.html +85 -85
  99. data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +25 -25
  100. data/doc/rdoc/more/classes/Binding.html +201 -0
  101. data/doc/rdoc/more/classes/Buildable.html +4 -4
  102. data/doc/rdoc/more/classes/BuildingBlock.html +32 -32
  103. data/doc/rdoc/more/classes/CLI.html +108 -0
  104. data/doc/rdoc/more/classes/CLI/Arguments.html +76 -76
  105. data/doc/rdoc/more/classes/CLI/Command.html +22 -22
  106. data/doc/rdoc/more/classes/CLI/NoCommandError.html +4 -4
  107. data/doc/rdoc/more/classes/CLI/NoOptionError.html +4 -4
  108. data/doc/rdoc/more/classes/CacheDecorator.html +21 -21
  109. data/doc/rdoc/more/classes/Capsule.html +41 -41
  110. data/doc/rdoc/more/classes/Chain.html +17 -17
  111. data/doc/rdoc/more/classes/Cloneable.html +4 -4
  112. data/doc/rdoc/more/classes/ConsoleUtils.html +18 -18
  113. data/doc/rdoc/more/classes/Coroutine.html +28 -28
  114. data/doc/rdoc/more/classes/Crypt.html +16 -16
  115. data/doc/rdoc/more/classes/CssFilter.html +45 -45
  116. data/doc/rdoc/more/classes/CssTree.html +8 -8
  117. data/doc/rdoc/more/classes/Dictionary.html +228 -228
  118. data/doc/rdoc/more/classes/DictionaryMatcher.html +38 -38
  119. data/doc/rdoc/more/classes/DictionaryMatcher/MatchData.html +4 -4
  120. data/doc/rdoc/more/classes/Downloader.html +56 -56
  121. data/doc/rdoc/more/classes/Duration.html +68 -68
  122. data/doc/rdoc/more/classes/Enumerable.html +44 -44
  123. data/doc/rdoc/more/classes/Enumerable/Elementor.html +16 -16
  124. data/doc/rdoc/more/classes/Enumerable/Enumerator.html +4 -4
  125. data/doc/rdoc/more/classes/EnumerablePass.html +15 -15
  126. data/doc/rdoc/more/classes/Equatable.html +16 -16
  127. data/doc/rdoc/more/classes/EventHook.html +8 -8
  128. data/doc/rdoc/more/classes/Expirable.html +17 -17
  129. data/doc/rdoc/more/classes/FileList.html +125 -125
  130. data/doc/rdoc/more/classes/FileShell.html +147 -147
  131. data/doc/rdoc/more/classes/Fileable.html +14 -14
  132. data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
  133. data/doc/rdoc/more/classes/Hash.html +306 -14
  134. data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
  135. data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
  136. data/doc/rdoc/more/classes/IORedirect.html +19 -19
  137. data/doc/rdoc/more/classes/InfinityClass.html +36 -36
  138. data/doc/rdoc/more/classes/InfinityClass/Numeric.html +23 -23
  139. data/doc/rdoc/more/classes/Ini.html +37 -37
  140. data/doc/rdoc/more/classes/Instantiable.html +9 -9
  141. data/doc/rdoc/more/classes/Instantise.html +8 -8
  142. data/doc/rdoc/more/classes/Interval.html +187 -187
  143. data/doc/rdoc/more/classes/It.html +12 -12
  144. data/doc/rdoc/more/classes/Kernel.html +77 -77
  145. data/doc/rdoc/more/classes/LRUCache.html +38 -38
  146. data/doc/rdoc/more/classes/LinkedList.html +68 -68
  147. data/doc/rdoc/more/classes/LinkedList/Node.html +4 -4
  148. data/doc/rdoc/{core → more}/classes/MissingArgument.html +1 -2
  149. data/doc/rdoc/more/classes/Module.html +171 -171
  150. data/doc/rdoc/more/classes/Multiton.html +12 -12
  151. data/doc/rdoc/more/classes/Multiton/MetaMethods.html +28 -28
  152. data/doc/rdoc/more/classes/Net/SMTP.html +19 -19
  153. data/doc/rdoc/more/classes/NullClass.html +24 -24
  154. data/doc/rdoc/more/classes/ObjectReflection.html +12 -12
  155. data/doc/rdoc/more/classes/OpEsc.html +5 -5
  156. data/doc/rdoc/more/classes/OpenCascade.html +4 -4
  157. data/doc/rdoc/more/classes/OpenCollection.html +8 -8
  158. data/doc/rdoc/more/classes/OpenHash.html +9 -9
  159. data/doc/rdoc/more/classes/OpenObject.html +95 -95
  160. data/doc/rdoc/more/classes/PQueue.html +84 -84
  161. data/doc/rdoc/more/classes/Paramix.html +11 -11
  162. data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
  163. data/doc/rdoc/more/classes/PathList.html +8 -8
  164. data/doc/rdoc/more/classes/PathList/Finder.html +8 -8
  165. data/doc/rdoc/more/classes/Platform.html +46 -46
  166. data/doc/rdoc/more/classes/Pool.html +18 -18
  167. data/doc/rdoc/more/classes/Proc.html +48 -4
  168. data/doc/rdoc/more/classes/ProgressBar.html +52 -52
  169. data/doc/rdoc/more/classes/Prototype.html +28 -28
  170. data/doc/rdoc/more/classes/RWDelegator.html +16 -16
  171. data/doc/rdoc/more/classes/Random.html +9 -9
  172. data/doc/rdoc/more/classes/Random/Array.html +37 -37
  173. data/doc/rdoc/more/classes/Random/Hash.html +52 -52
  174. data/doc/rdoc/more/classes/Random/Object.html +4 -4
  175. data/doc/rdoc/more/classes/Random/String.html +34 -34
  176. data/doc/rdoc/more/classes/Random/String/Self.html +9 -9
  177. data/doc/rdoc/more/classes/Recorder.html +16 -16
  178. data/doc/rdoc/more/classes/Reference.html +19 -19
  179. data/doc/rdoc/more/classes/Registerable.html +13 -13
  180. data/doc/rdoc/more/classes/Semaphore.html +36 -36
  181. data/doc/rdoc/more/classes/Settings.html +28 -28
  182. data/doc/rdoc/more/classes/Settings/Setting.html +13 -13
  183. data/doc/rdoc/more/classes/Settings/SettingCollection.html +4 -4
  184. data/doc/rdoc/more/classes/SimpleStringIO.html +8 -8
  185. data/doc/rdoc/more/classes/Snapshot.html +16 -16
  186. data/doc/rdoc/more/classes/Snapshot/ValueHolder.html +12 -12
  187. data/doc/rdoc/more/classes/String/Style.html +113 -113
  188. data/doc/rdoc/{core → more}/classes/String/Words.html +78 -78
  189. data/doc/rdoc/more/classes/Struct.html +8 -8
  190. data/doc/rdoc/more/classes/SyncArray.html +4 -4
  191. data/doc/rdoc/more/classes/SyncHash.html +4 -4
  192. data/doc/rdoc/more/classes/SyncHash/Delegator.html +28 -28
  193. data/doc/rdoc/more/classes/SyncHash/Inheritor.html +28 -28
  194. data/doc/rdoc/more/classes/System.html +253 -253
  195. data/doc/rdoc/more/classes/Timer.html +48 -48
  196. data/doc/rdoc/more/classes/Timer/Dummy.html +9 -9
  197. data/doc/rdoc/more/classes/TracePoint.html +64 -62
  198. data/doc/rdoc/more/classes/Tuple.html +170 -170
  199. data/doc/rdoc/more/classes/TypeCast/Class.html +4 -4
  200. data/doc/rdoc/more/classes/TypeCast/Object.html +4 -4
  201. data/doc/rdoc/more/classes/Uninheritable.html +6 -6
  202. data/doc/rdoc/more/classes/UploadUtils.html +49 -49
  203. data/doc/rdoc/more/classes/VersionNumber.html +53 -53
  204. data/doc/rdoc/more/classes/Weekdays.html +28 -28
  205. data/doc/rdoc/more/classes/XOXO.html +9 -9
  206. data/doc/rdoc/more/classes/ZipUtils.html +58 -58
  207. data/doc/rdoc/more/classes/ZipUtils/DryRun.html +28 -28
  208. data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +28 -28
  209. data/doc/rdoc/more/classes/ZipUtils/Verbose.html +28 -28
  210. data/doc/rdoc/more/created.rid +1 -1
  211. data/doc/rdoc/more/files/lib/more/facets/ansicode_rb.html +1 -1
  212. data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/binding/opvars_rb.html +2 -2
  213. data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/hash/stringify_keys_rb.html +2 -2
  214. data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/hash/symbolize_keys_rb.html +2 -2
  215. data/doc/rdoc/{core/files/lib/core/facets/proc → more/files/lib/more/facets}/partial_rb.html +8 -7
  216. data/doc/rdoc/more/files/lib/more/facets/snapshot_rb.html +2 -2
  217. data/doc/rdoc/more/files/lib/more/facets/string/words_rb.html +96 -0
  218. data/doc/rdoc/more/files/lib/more/facets/tracepoint_rb.html +13 -8
  219. data/doc/rdoc/more/fr_class_index.html +4 -2
  220. data/doc/rdoc/more/fr_file_index.html +9 -2
  221. data/doc/rdoc/more/fr_method_index.html +1013 -1009
  222. data/doc/ri/CLI/cdesc-CLI.yaml +7 -2
  223. data/doc/ri/Enumerable/probability-i.yaml +1 -1
  224. data/doc/ri/Module/append_features-i.yaml +4 -3
  225. data/doc/ri/Module/cdesc-Module.yaml +4 -3
  226. data/doc/ri/Module/methodize-i.yaml +14 -0
  227. data/doc/ri/Module/redefine_method-i.yaml +1 -1
  228. data/doc/ri/Module/redirect_method-i.yaml +3 -1
  229. data/doc/ri/Module/rename_method-i.yaml +1 -1
  230. data/doc/ri/created.rid +1 -1
  231. data/lib/core/facets/array.rb +3 -0
  232. data/lib/core/facets/binding.rb +0 -1
  233. data/lib/core/facets/class.rb +4 -4
  234. data/lib/core/facets/class/{to_methodname.rb → methodize.rb} +5 -2
  235. data/lib/core/facets/class/pathize.rb +14 -0
  236. data/lib/core/facets/enumerable.rb +5 -2
  237. data/lib/core/facets/enumerable/commonality.rb +33 -0
  238. data/lib/core/facets/enumerable/entropy.rb +37 -0
  239. data/lib/core/facets/enumerable/frequency.rb +18 -0
  240. data/lib/core/facets/enumerable/probability.rb +1 -98
  241. data/lib/core/facets/file.rb +1 -1
  242. data/lib/core/facets/hash.rb +6 -0
  243. data/lib/{more → core}/facets/indexable.rb +0 -0
  244. data/lib/core/facets/kernel.rb +15 -1
  245. data/lib/core/facets/kernel/require_all.rb +21 -0
  246. data/lib/core/facets/kernel/{load.rb → require_local.rb} +6 -23
  247. data/lib/core/facets/module.rb +7 -3
  248. data/lib/core/facets/module/integrate.rb +2 -0
  249. data/lib/core/facets/module/methodize.rb +14 -0
  250. data/lib/core/facets/module/pathize.rb +10 -7
  251. data/lib/core/facets/module/redefine_method.rb +35 -0
  252. data/lib/core/facets/module/redirect_method.rb +45 -0
  253. data/lib/core/facets/module/rename_method.rb +20 -0
  254. data/lib/core/facets/module/revise.rb +7 -113
  255. data/lib/core/facets/module/wrap_method.rb +28 -0
  256. data/lib/core/facets/numeric.rb +1 -1
  257. data/lib/core/facets/proc.rb +2 -3
  258. data/lib/{more → core}/facets/stackable.rb +0 -0
  259. data/lib/core/facets/string.rb +8 -6
  260. data/lib/core/facets/string/each_word.rb +13 -0
  261. data/lib/core/facets/string/methodize.rb +12 -0
  262. data/lib/core/facets/string/pathize.rb +12 -0
  263. data/lib/core/facets/string/word_wrap.rb +34 -0
  264. data/lib/core/facets/string/words.rb +6 -167
  265. data/lib/core/facets/symbol.rb +1 -0
  266. data/lib/more/facets/ansicode.rb +4 -4
  267. data/lib/{core → more}/facets/binding/opvars.rb +0 -0
  268. data/lib/{core → more}/facets/hash/stringify_keys.rb +0 -0
  269. data/lib/{core → more}/facets/hash/symbolize_keys.rb +5 -6
  270. data/lib/{core/facets/proc → more/facets}/partial.rb +0 -0
  271. data/lib/more/facets/string/words.rb +173 -0
  272. data/test/core/dir/test_multiglob.rb +1 -0
  273. data/test/core/dir/test_recurse.rb +1 -0
  274. data/test/core/enumerable/test_commonality.rb +15 -0
  275. data/test/core/enumerable/test_entropy.rb +15 -0
  276. data/test/core/enumerable/test_frequency.rb +11 -0
  277. data/test/core/enumerable/test_probability.rb +1 -34
  278. data/test/core/string/test_each_word.rb +14 -0
  279. data/test/core/string/test_fold.rb +1 -1
  280. data/test/core/string/test_word_wrap.rb +35 -0
  281. data/test/core/string/test_words.rb +12 -61
  282. data/test/more/test_command.rb +7 -9
  283. data/test/more/test_paramix.rb +4 -1
  284. data/test/{core/proc → more}/test_partial.rb +1 -1
  285. metadata +75 -38
  286. data/doc/rdoc/core/classes/Module/CloneExtensions.html +0 -287
  287. data/doc/ri/Module/CloneExtensions/cdesc-CloneExtensions.yaml +0 -20
  288. data/doc/ri/Module/CloneExtensions/clone_removing-i.yaml +0 -14
  289. data/doc/ri/Module/CloneExtensions/clone_renaming-i.yaml +0 -14
  290. data/doc/ri/Module/CloneExtensions/clone_using-i.yaml +0 -14
  291. data/lib/core/facets/class/to_pathname.rb +0 -12
  292. data/lib/core/facets/module/clone.rb +0 -57
  293. data/test/core/module/test_clone.rb +0 -45
@@ -57,7 +57,7 @@
57
57
  <tr valign="top">
58
58
  <td>In:</td>
59
59
  <td>
60
- <a href="../files/lib/more/facets/indexable_rb.html">lib/more/facets/indexable.rb</a>
60
+ <a href="../files/lib/core/facets/indexable_rb.html">lib/core/facets/indexable.rb</a>
61
61
  </td>
62
62
  </tr>
63
63
  </table>
@@ -88,23 +88,23 @@ indexable object.
88
88
 
89
89
  <div class="sectiontitle">Methods</div>
90
90
  <ul>
91
- <li><a href="#M000720">body</a></li>
92
- <li><a href="#M000730">ends</a></li>
93
- <li><a href="#M000724">first</a></li>
94
- <li><a href="#M000728">first!</a></li>
95
- <li><a href="#M000726">first=</a></li>
96
- <li><a href="#M000719">foot</a></li>
97
- <li><a href="#M000717">head</a></li>
98
- <li><a href="#M000732">index_of</a></li>
99
- <li><a href="#M000725">last</a></li>
100
- <li><a href="#M000729">last!</a></li>
101
- <li><a href="#M000727">last=</a></li>
102
- <li><a href="#M000721">mid</a></li>
103
- <li><a href="#M000722">middle</a></li>
104
- <li><a href="#M000731">pos</a></li>
105
- <li><a href="#M000733">range</a></li>
106
- <li><a href="#M000718">tail</a></li>
107
- <li><a href="#M000723">thru</a></li>
91
+ <li><a href="#M000575">body</a></li>
92
+ <li><a href="#M000585">ends</a></li>
93
+ <li><a href="#M000579">first</a></li>
94
+ <li><a href="#M000583">first!</a></li>
95
+ <li><a href="#M000581">first=</a></li>
96
+ <li><a href="#M000574">foot</a></li>
97
+ <li><a href="#M000572">head</a></li>
98
+ <li><a href="#M000587">index_of</a></li>
99
+ <li><a href="#M000580">last</a></li>
100
+ <li><a href="#M000584">last!</a></li>
101
+ <li><a href="#M000582">last=</a></li>
102
+ <li><a href="#M000576">mid</a></li>
103
+ <li><a href="#M000577">middle</a></li>
104
+ <li><a href="#M000586">pos</a></li>
105
+ <li><a href="#M000588">range</a></li>
106
+ <li><a href="#M000573">tail</a></li>
107
+ <li><a href="#M000578">thru</a></li>
108
108
  </ul>
109
109
 
110
110
 
@@ -115,12 +115,12 @@ indexable object.
115
115
  <div class="sectiontitle">Public Instance methods</div>
116
116
  <div class="method">
117
117
  <div class="title">
118
- <a name="M000720"></a><b>body</b>()
118
+ <a name="M000575"></a><b>body</b>()
119
119
  </div>
120
120
  <div class="description">
121
121
  <p>
122
- Returns an array of the <a href="Indexable.html#M000724">first</a> element
123
- upto, but not including, the <a href="Indexable.html#M000725">last</a>
122
+ Returns an array of the <a href="Indexable.html#M000579">first</a> element
123
+ upto, but not including, the <a href="Indexable.html#M000580">last</a>
124
124
  element.
125
125
  </p>
126
126
  <pre>
@@ -128,10 +128,10 @@ element.
128
128
  </pre>
129
129
  </div>
130
130
  <div class="sourcecode">
131
- <p class="source-link">[ <a href="javascript:toggleSource('M000720_source')" id="l_M000720_source">show source</a> ]</p>
132
- <div id="M000720_source" class="dyn-source">
131
+ <p class="source-link">[ <a href="javascript:toggleSource('M000575_source')" id="l_M000575_source">show source</a> ]</p>
132
+ <div id="M000575_source" class="dyn-source">
133
133
  <pre>
134
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 71</span>
134
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 71</span>
135
135
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">body</span>
136
136
  <span class="ruby-identifier">slice</span>(<span class="ruby-value">0</span>,<span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>)
137
137
  <span class="ruby-keyword kw">end</span>
@@ -141,12 +141,12 @@ element.
141
141
  </div>
142
142
  <div class="method">
143
143
  <div class="title">
144
- <a name="M000730"></a><b>ends</b>()
144
+ <a name="M000585"></a><b>ends</b>()
145
145
  </div>
146
146
  <div class="description">
147
147
  <p>
148
- A shorting of &quot;<a href="Indexable.html#M000730">ends</a> at&quot;,
149
- returns the <a href="Indexable.html#M000725">last</a> index of the
148
+ A shorting of &quot;<a href="Indexable.html#M000585">ends</a> at&quot;,
149
+ returns the <a href="Indexable.html#M000580">last</a> index of the
150
150
  indexable object. Returns nil if there are no elements.
151
151
  </p>
152
152
  <pre>
@@ -157,10 +157,10 @@ This nearly equivalent to +size - 1+.
157
157
  </p>
158
158
  </div>
159
159
  <div class="sourcecode">
160
- <p class="source-link">[ <a href="javascript:toggleSource('M000730_source')" id="l_M000730_source">show source</a> ]</p>
161
- <div id="M000730_source" class="dyn-source">
160
+ <p class="source-link">[ <a href="javascript:toggleSource('M000585_source')" id="l_M000585_source">show source</a> ]</p>
161
+ <div id="M000585_source" class="dyn-source">
162
162
  <pre>
163
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 192</span>
163
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 192</span>
164
164
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ends</span>
165
165
  <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
166
166
  <span class="ruby-identifier">size</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>
@@ -171,21 +171,21 @@ This nearly equivalent to +size - 1+.
171
171
  </div>
172
172
  <div class="method">
173
173
  <div class="title">
174
- <a name="M000724"></a><b>first</b>(n=1)
174
+ <a name="M000579"></a><b>first</b>(n=1)
175
175
  </div>
176
176
  <div class="description">
177
177
  <p>
178
- Returns <a href="Indexable.html#M000724">first</a> <em>n</em> elements.
178
+ Returns <a href="Indexable.html#M000579">first</a> <em>n</em> elements.
179
179
  </p>
180
180
  <pre>
181
181
  &quot;Hello World&quot;.first(3) #=&gt; &quot;Hel&quot;
182
182
  </pre>
183
183
  </div>
184
184
  <div class="sourcecode">
185
- <p class="source-link">[ <a href="javascript:toggleSource('M000724_source')" id="l_M000724_source">show source</a> ]</p>
186
- <div id="M000724_source" class="dyn-source">
185
+ <p class="source-link">[ <a href="javascript:toggleSource('M000579_source')" id="l_M000579_source">show source</a> ]</p>
186
+ <div id="M000579_source" class="dyn-source">
187
187
  <pre>
188
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 130</span>
188
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 130</span>
189
189
  <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>)
190
190
  <span class="ruby-identifier">slice</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>)
191
191
  <span class="ruby-keyword kw">end</span>
@@ -195,11 +195,11 @@ Returns <a href="Indexable.html#M000724">first</a> <em>n</em> elements.
195
195
  </div>
196
196
  <div class="method">
197
197
  <div class="title">
198
- <a name="M000728"></a><b>first!</b>()
198
+ <a name="M000583"></a><b>first!</b>()
199
199
  </div>
200
200
  <div class="description">
201
201
  <p>
202
- Remove and return the <a href="Indexable.html#M000724">first</a> element.
202
+ Remove and return the <a href="Indexable.html#M000579">first</a> element.
203
203
  </p>
204
204
  <pre>
205
205
  a = [1,2,3]
@@ -208,10 +208,10 @@ Remove and return the <a href="Indexable.html#M000724">first</a> element.
208
208
  </pre>
209
209
  </div>
210
210
  <div class="sourcecode">
211
- <p class="source-link">[ <a href="javascript:toggleSource('M000728_source')" id="l_M000728_source">show source</a> ]</p>
212
- <div id="M000728_source" class="dyn-source">
211
+ <p class="source-link">[ <a href="javascript:toggleSource('M000583_source')" id="l_M000583_source">show source</a> ]</p>
212
+ <div id="M000583_source" class="dyn-source">
213
213
  <pre>
214
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 170</span>
214
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 170</span>
215
215
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first!</span>
216
216
  <span class="ruby-identifier">splice</span>(<span class="ruby-value">0</span>)
217
217
  <span class="ruby-keyword kw">end</span>
@@ -221,11 +221,11 @@ Remove and return the <a href="Indexable.html#M000724">first</a> element.
221
221
  </div>
222
222
  <div class="method">
223
223
  <div class="title">
224
- <a name="M000726"></a><b>first=</b>(x)
224
+ <a name="M000581"></a><b>first=</b>(x)
225
225
  </div>
226
226
  <div class="description">
227
227
  <p>
228
- Change the <a href="Indexable.html#M000724">first</a> element.
228
+ Change the <a href="Indexable.html#M000579">first</a> element.
229
229
  </p>
230
230
  <pre>
231
231
  a = [&quot;a&quot;,&quot;y&quot;,&quot;z&quot;]
@@ -234,10 +234,10 @@ Change the <a href="Indexable.html#M000724">first</a> element.
234
234
  </pre>
235
235
  </div>
236
236
  <div class="sourcecode">
237
- <p class="source-link">[ <a href="javascript:toggleSource('M000726_source')" id="l_M000726_source">show source</a> ]</p>
238
- <div id="M000726_source" class="dyn-source">
237
+ <p class="source-link">[ <a href="javascript:toggleSource('M000581_source')" id="l_M000581_source">show source</a> ]</p>
238
+ <div id="M000581_source" class="dyn-source">
239
239
  <pre>
240
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 150</span>
240
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 150</span>
241
241
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first=</span>(<span class="ruby-identifier">x</span>)
242
242
  <span class="ruby-identifier">splice</span>(<span class="ruby-value">0</span>,<span class="ruby-identifier">x</span>)
243
243
  <span class="ruby-keyword kw">end</span>
@@ -247,22 +247,22 @@ Change the <a href="Indexable.html#M000724">first</a> element.
247
247
  </div>
248
248
  <div class="method">
249
249
  <div class="title">
250
- <a name="M000719"></a><b>foot</b>()
250
+ <a name="M000574"></a><b>foot</b>()
251
251
  </div>
252
252
  <div class="description">
253
253
  <p>
254
- Like <a href="Indexable.html#M000725">last</a>, returning the <a
255
- href="Indexable.html#M000725">last</a> element in an array.
254
+ Like <a href="Indexable.html#M000580">last</a>, returning the <a
255
+ href="Indexable.html#M000580">last</a> element in an array.
256
256
  </p>
257
257
  <pre>
258
258
  [1,2,3].foot #=&gt; [3]
259
259
  </pre>
260
260
  </div>
261
261
  <div class="sourcecode">
262
- <p class="source-link">[ <a href="javascript:toggleSource('M000719_source')" id="l_M000719_source">show source</a> ]</p>
263
- <div id="M000719_source" class="dyn-source">
262
+ <p class="source-link">[ <a href="javascript:toggleSource('M000574_source')" id="l_M000574_source">show source</a> ]</p>
263
+ <div id="M000574_source" class="dyn-source">
264
264
  <pre>
265
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 58</span>
265
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 58</span>
266
266
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">foot</span>
267
267
  <span class="ruby-identifier">slice</span>(<span class="ruby-value">-1</span>,<span class="ruby-value">1</span>)
268
268
  <span class="ruby-keyword kw">end</span>
@@ -272,22 +272,22 @@ href="Indexable.html#M000725">last</a> element in an array.
272
272
  </div>
273
273
  <div class="method">
274
274
  <div class="title">
275
- <a name="M000717"></a><b>head</b>()
275
+ <a name="M000572"></a><b>head</b>()
276
276
  </div>
277
277
  <div class="description">
278
278
  <p>
279
- Like <a href="Indexable.html#M000724">first</a> but returns the <a
280
- href="Indexable.html#M000724">first</a> element in a new array.
279
+ Like <a href="Indexable.html#M000579">first</a> but returns the <a
280
+ href="Indexable.html#M000579">first</a> element in a new array.
281
281
  </p>
282
282
  <pre>
283
283
  [1,2,3].head #=&gt; [1]
284
284
  </pre>
285
285
  </div>
286
286
  <div class="sourcecode">
287
- <p class="source-link">[ <a href="javascript:toggleSource('M000717_source')" id="l_M000717_source">show source</a> ]</p>
288
- <div id="M000717_source" class="dyn-source">
287
+ <p class="source-link">[ <a href="javascript:toggleSource('M000572_source')" id="l_M000572_source">show source</a> ]</p>
288
+ <div id="M000572_source" class="dyn-source">
289
289
  <pre>
290
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 41</span>
290
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 41</span>
291
291
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">head</span>
292
292
  <span class="ruby-identifier">slice</span>(<span class="ruby-value">0</span>,<span class="ruby-value">1</span>)
293
293
  <span class="ruby-keyword kw">end</span>
@@ -297,11 +297,11 @@ href="Indexable.html#M000724">first</a> element in a new array.
297
297
  </div>
298
298
  <div class="method">
299
299
  <div class="title">
300
- <a name="M000732"></a><b>index_of</b>(obj=nil) {|self[i]| ...}
300
+ <a name="M000587"></a><b>index_of</b>(obj=nil) {|self[i]| ...}
301
301
  </div>
302
302
  <div class="description">
303
303
  <p>
304
- Returns the index of the <a href="Indexable.html#M000724">first</a> element
304
+ Returns the index of the <a href="Indexable.html#M000579">first</a> element
305
305
  to satisfy the block condition. This is simply index with a block.
306
306
  </p>
307
307
  <pre>
@@ -313,10 +313,10 @@ TODO: Remove Array#index_of when Ruby 1.9 adds block to index.
313
313
  </p>
314
314
  </div>
315
315
  <div class="sourcecode">
316
- <p class="source-link">[ <a href="javascript:toggleSource('M000732_source')" id="l_M000732_source">show source</a> ]</p>
317
- <div id="M000732_source" class="dyn-source">
316
+ <p class="source-link">[ <a href="javascript:toggleSource('M000587_source')" id="l_M000587_source">show source</a> ]</p>
317
+ <div id="M000587_source" class="dyn-source">
318
318
  <pre>
319
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 219</span>
319
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 219</span>
320
320
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index_of</span>(<span class="ruby-identifier">obj</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
321
321
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">index</span>(<span class="ruby-identifier">obj</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block_given?</span>
322
322
  <span class="ruby-identifier">i</span>=<span class="ruby-value">0</span>; <span class="ruby-identifier">i</span><span class="ruby-operator">+=</span><span class="ruby-value">1</span> <span class="ruby-keyword kw">until</span> <span class="ruby-keyword kw">yield</span>(<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">i</span>])
@@ -328,21 +328,21 @@ TODO: Remove Array#index_of when Ruby 1.9 adds block to index.
328
328
  </div>
329
329
  <div class="method">
330
330
  <div class="title">
331
- <a name="M000725"></a><b>last</b>(n=1)
331
+ <a name="M000580"></a><b>last</b>(n=1)
332
332
  </div>
333
333
  <div class="description">
334
334
  <p>
335
- Returns <a href="Indexable.html#M000725">last</a> <em>n</em> elements.
335
+ Returns <a href="Indexable.html#M000580">last</a> <em>n</em> elements.
336
336
  </p>
337
337
  <pre>
338
338
  &quot;Hello World&quot;.last(3) #=&gt; &quot;rld&quot;
339
339
  </pre>
340
340
  </div>
341
341
  <div class="sourcecode">
342
- <p class="source-link">[ <a href="javascript:toggleSource('M000725_source')" id="l_M000725_source">show source</a> ]</p>
343
- <div id="M000725_source" class="dyn-source">
342
+ <p class="source-link">[ <a href="javascript:toggleSource('M000580_source')" id="l_M000580_source">show source</a> ]</p>
343
+ <div id="M000580_source" class="dyn-source">
344
344
  <pre>
345
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 138</span>
345
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 138</span>
346
346
  <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>)
347
347
  <span class="ruby-identifier">n</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>
348
348
  <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">&gt;</span> <span class="ruby-identifier">size</span>
@@ -354,11 +354,11 @@ Returns <a href="Indexable.html#M000725">last</a> <em>n</em> elements.
354
354
  </div>
355
355
  <div class="method">
356
356
  <div class="title">
357
- <a name="M000729"></a><b>last!</b>()
357
+ <a name="M000584"></a><b>last!</b>()
358
358
  </div>
359
359
  <div class="description">
360
360
  <p>
361
- Remove and return the <a href="Indexable.html#M000725">last</a> element.
361
+ Remove and return the <a href="Indexable.html#M000580">last</a> element.
362
362
  </p>
363
363
  <pre>
364
364
  a = [1,2,3]
@@ -367,10 +367,10 @@ Remove and return the <a href="Indexable.html#M000725">last</a> element.
367
367
  </pre>
368
368
  </div>
369
369
  <div class="sourcecode">
370
- <p class="source-link">[ <a href="javascript:toggleSource('M000729_source')" id="l_M000729_source">show source</a> ]</p>
371
- <div id="M000729_source" class="dyn-source">
370
+ <p class="source-link">[ <a href="javascript:toggleSource('M000584_source')" id="l_M000584_source">show source</a> ]</p>
371
+ <div id="M000584_source" class="dyn-source">
372
372
  <pre>
373
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 180</span>
373
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 180</span>
374
374
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last!</span>
375
375
  <span class="ruby-identifier">splice</span>(<span class="ruby-value">-1</span>)
376
376
  <span class="ruby-keyword kw">end</span>
@@ -380,11 +380,11 @@ Remove and return the <a href="Indexable.html#M000725">last</a> element.
380
380
  </div>
381
381
  <div class="method">
382
382
  <div class="title">
383
- <a name="M000727"></a><b>last=</b>(x)
383
+ <a name="M000582"></a><b>last=</b>(x)
384
384
  </div>
385
385
  <div class="description">
386
386
  <p>
387
- Change the <a href="Indexable.html#M000725">last</a> element.
387
+ Change the <a href="Indexable.html#M000580">last</a> element.
388
388
  </p>
389
389
  <pre>
390
390
  a = [1,2,5]
@@ -393,10 +393,10 @@ Change the <a href="Indexable.html#M000725">last</a> element.
393
393
  </pre>
394
394
  </div>
395
395
  <div class="sourcecode">
396
- <p class="source-link">[ <a href="javascript:toggleSource('M000727_source')" id="l_M000727_source">show source</a> ]</p>
397
- <div id="M000727_source" class="dyn-source">
396
+ <p class="source-link">[ <a href="javascript:toggleSource('M000582_source')" id="l_M000582_source">show source</a> ]</p>
397
+ <div id="M000582_source" class="dyn-source">
398
398
  <pre>
399
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 160</span>
399
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 160</span>
400
400
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last=</span>(<span class="ruby-identifier">x</span>)
401
401
  <span class="ruby-identifier">splice</span>(<span class="ruby-value">-1</span>,<span class="ruby-identifier">x</span>)
402
402
  <span class="ruby-keyword kw">end</span>
@@ -406,16 +406,16 @@ Change the <a href="Indexable.html#M000725">last</a> element.
406
406
  </div>
407
407
  <div class="method">
408
408
  <div class="title">
409
- <a name="M000721"></a><b>mid</b>(offset=0)
409
+ <a name="M000576"></a><b>mid</b>(offset=0)
410
410
  </div>
411
411
  <div class="description">
412
412
  <p>
413
- Returns the <a href="Indexable.html#M000722">middle</a> element of an
413
+ Returns the <a href="Indexable.html#M000577">middle</a> element of an
414
414
  array, or the element offset from <a
415
- href="Indexable.html#M000722">middle</a> if the parameter is given.
415
+ href="Indexable.html#M000577">middle</a> if the parameter is given.
416
416
  Even-sized arrays, not having an exact <a
417
- href="Indexable.html#M000722">middle</a>, return the <a
418
- href="Indexable.html#M000722">middle</a>-right element.
417
+ href="Indexable.html#M000577">middle</a>, return the <a
418
+ href="Indexable.html#M000577">middle</a>-right element.
419
419
  </p>
420
420
  <pre>
421
421
  [1,2,3,4,5].mid #=&gt; 3
@@ -430,10 +430,10 @@ of the two center elements is indexed as orgin (0).
430
430
  </p>
431
431
  </div>
432
432
  <div class="sourcecode">
433
- <p class="source-link">[ <a href="javascript:toggleSource('M000721_source')" id="l_M000721_source">show source</a> ]</p>
434
- <div id="M000721_source" class="dyn-source">
433
+ <p class="source-link">[ <a href="javascript:toggleSource('M000576_source')" id="l_M000576_source">show source</a> ]</p>
434
+ <div id="M000576_source" class="dyn-source">
435
435
  <pre>
436
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 89</span>
436
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 89</span>
437
437
  <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>)
438
438
  <span class="ruby-identifier">slice</span>((<span class="ruby-identifier">size</span> <span class="ruby-operator">/</span> <span class="ruby-value">2</span>) <span class="ruby-operator">+</span> <span class="ruby-identifier">offset</span>)
439
439
  <span class="ruby-keyword kw">end</span>
@@ -443,29 +443,29 @@ of the two center elements is indexed as orgin (0).
443
443
  </div>
444
444
  <div class="method">
445
445
  <div class="title">
446
- <a name="M000722"></a><b>middle</b>()
446
+ <a name="M000577"></a><b>middle</b>()
447
447
  </div>
448
448
  <div class="description">
449
449
  <p>
450
- Returns the <a href="Indexable.html#M000722">middle</a> element(s) of an
450
+ Returns the <a href="Indexable.html#M000577">middle</a> element(s) of an
451
451
  array. Even-sized arrays, not having an exact <a
452
- href="Indexable.html#M000722">middle</a>, returns a two-element array of
453
- the two <a href="Indexable.html#M000722">middle</a> elements.
452
+ href="Indexable.html#M000577">middle</a>, returns a two-element array of
453
+ the two <a href="Indexable.html#M000577">middle</a> elements.
454
454
  </p>
455
455
  <pre>
456
456
  [1,2,3,4,5].middle #=&gt; 3
457
457
  [1,2,3,4,5,6].middle #=&gt; [3,4]
458
458
  </pre>
459
459
  <p>
460
- In contrast to <a href="Indexable.html#M000721">mid</a> which utilizes an
460
+ In contrast to <a href="Indexable.html#M000576">mid</a> which utilizes an
461
461
  offset.
462
462
  </p>
463
463
  </div>
464
464
  <div class="sourcecode">
465
- <p class="source-link">[ <a href="javascript:toggleSource('M000722_source')" id="l_M000722_source">show source</a> ]</p>
466
- <div id="M000722_source" class="dyn-source">
465
+ <p class="source-link">[ <a href="javascript:toggleSource('M000577_source')" id="l_M000577_source">show source</a> ]</p>
466
+ <div id="M000577_source" class="dyn-source">
467
467
  <pre>
468
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 102</span>
468
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 102</span>
469
469
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">middle</span>
470
470
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">size</span> <span class="ruby-operator">%</span> <span class="ruby-value">2</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
471
471
  <span class="ruby-identifier">slice</span>( (<span class="ruby-identifier">size</span> <span class="ruby-operator">/</span> <span class="ruby-value">2</span>) <span class="ruby-operator">-</span> <span class="ruby-value">1</span>, <span class="ruby-value">2</span> )
@@ -480,7 +480,7 @@ offset.
480
480
  </div>
481
481
  <div class="method">
482
482
  <div class="title">
483
- <a name="M000731"></a><b>pos</b>(i)
483
+ <a name="M000586"></a><b>pos</b>(i)
484
484
  </div>
485
485
  <div class="description">
486
486
  <p>
@@ -493,10 +493,10 @@ to -1.
493
493
  </pre>
494
494
  </div>
495
495
  <div class="sourcecode">
496
- <p class="source-link">[ <a href="javascript:toggleSource('M000731_source')" id="l_M000731_source">show source</a> ]</p>
497
- <div id="M000731_source" class="dyn-source">
496
+ <p class="source-link">[ <a href="javascript:toggleSource('M000586_source')" id="l_M000586_source">show source</a> ]</p>
497
+ <div id="M000586_source" class="dyn-source">
498
498
  <pre>
499
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 203</span>
499
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 203</span>
500
500
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pos</span>(<span class="ruby-identifier">i</span>)
501
501
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
502
502
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>
@@ -510,15 +510,15 @@ to -1.
510
510
  </div>
511
511
  <div class="method">
512
512
  <div class="title">
513
- <a name="M000733"></a><b>range</b>(a=nil,z=nil)
513
+ <a name="M000588"></a><b>range</b>(a=nil,z=nil)
514
514
  </div>
515
515
  <div class="description">
516
516
  <p>
517
- Returns the index <a href="Indexable.html#M000733">range</a> between two
517
+ Returns the index <a href="Indexable.html#M000588">range</a> between two
518
518
  elements. If no elements are given, returns the <a
519
- href="Indexable.html#M000733">range</a> from <a
520
- href="Indexable.html#M000724">first</a> to <a
521
- href="Indexable.html#M000725">last</a>.
519
+ href="Indexable.html#M000588">range</a> from <a
520
+ href="Indexable.html#M000579">first</a> to <a
521
+ href="Indexable.html#M000580">last</a>.
522
522
  </p>
523
523
  <pre>
524
524
  ['a','b','c','d'].range #=&gt; 0..3
@@ -526,10 +526,10 @@ href="Indexable.html#M000725">last</a>.
526
526
  </pre>
527
527
  </div>
528
528
  <div class="sourcecode">
529
- <p class="source-link">[ <a href="javascript:toggleSource('M000733_source')" id="l_M000733_source">show source</a> ]</p>
530
- <div id="M000733_source" class="dyn-source">
529
+ <p class="source-link">[ <a href="javascript:toggleSource('M000588_source')" id="l_M000588_source">show source</a> ]</p>
530
+ <div id="M000588_source" class="dyn-source">
531
531
  <pre>
532
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 234</span>
532
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 234</span>
533
533
  <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>)
534
534
  <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">a</span>
535
535
  <span class="ruby-value">0</span><span class="ruby-operator">..</span>(<span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>)
@@ -543,22 +543,22 @@ href="Indexable.html#M000725">last</a>.
543
543
  </div>
544
544
  <div class="method">
545
545
  <div class="title">
546
- <a name="M000718"></a><b>tail</b>()
546
+ <a name="M000573"></a><b>tail</b>()
547
547
  </div>
548
548
  <div class="description">
549
549
  <p>
550
550
  Returns an array from second element to <a
551
- href="Indexable.html#M000725">last</a> element.
551
+ href="Indexable.html#M000580">last</a> element.
552
552
  </p>
553
553
  <pre>
554
554
  [1,2,3].tail #=&gt; [2,3]
555
555
  </pre>
556
556
  </div>
557
557
  <div class="sourcecode">
558
- <p class="source-link">[ <a href="javascript:toggleSource('M000718_source')" id="l_M000718_source">show source</a> ]</p>
559
- <div id="M000718_source" class="dyn-source">
558
+ <p class="source-link">[ <a href="javascript:toggleSource('M000573_source')" id="l_M000573_source">show source</a> ]</p>
559
+ <div id="M000573_source" class="dyn-source">
560
560
  <pre>
561
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 49</span>
561
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 49</span>
562
562
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tail</span>
563
563
  <span class="ruby-identifier">slice</span>(<span class="ruby-value">1</span>,<span class="ruby-identifier">length</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>)
564
564
  <span class="ruby-keyword kw">end</span>
@@ -568,11 +568,11 @@ href="Indexable.html#M000725">last</a> element.
568
568
  </div>
569
569
  <div class="method">
570
570
  <div class="title">
571
- <a name="M000723"></a><b>thru</b>(from, to)
571
+ <a name="M000578"></a><b>thru</b>(from, to)
572
572
  </div>
573
573
  <div class="description">
574
574
  <p>
575
- Fetch values from a start index <a href="Indexable.html#M000723">thru</a>
575
+ Fetch values from a start index <a href="Indexable.html#M000578">thru</a>
576
576
  an end index.
577
577
  </p>
578
578
  <pre>
@@ -581,10 +581,10 @@ an end index.
581
581
  </pre>
582
582
  </div>
583
583
  <div class="sourcecode">
584
- <p class="source-link">[ <a href="javascript:toggleSource('M000723_source')" id="l_M000723_source">show source</a> ]</p>
585
- <div id="M000723_source" class="dyn-source">
584
+ <p class="source-link">[ <a href="javascript:toggleSource('M000578_source')" id="l_M000578_source">show source</a> ]</p>
585
+ <div id="M000578_source" class="dyn-source">
586
586
  <pre>
587
- <span class="ruby-comment cmt"># File lib/more/facets/indexable.rb, line 116</span>
587
+ <span class="ruby-comment cmt"># File lib/core/facets/indexable.rb, line 116</span>
588
588
  <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>)
589
589
  <span class="ruby-identifier">a</span> = []
590
590
  <span class="ruby-identifier">i</span> = <span class="ruby-identifier">from</span>