facets 2.4.3 → 2.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1943) hide show
  1. data/CHANGES +1584 -108
  2. data/MANIFEST +78 -1746
  3. data/METADATA +1 -1
  4. data/NEWS +37 -57
  5. data/demo/bench/bench_load.rb +56 -0
  6. data/{README.core → doc/README.core} +0 -0
  7. data/{README.lore → doc/README.lore} +0 -0
  8. data/{README.more → doc/README.more} +0 -0
  9. data/doc/{notes → book}/history.rdoc +0 -0
  10. data/doc/{notes → book}/notes.rdoc +0 -0
  11. data/doc/news/news-2.0.5 +8 -0
  12. data/doc/news/news-2.1.0 +9 -0
  13. data/doc/news/news-2.1.1 +5 -0
  14. data/doc/news/news-2.1.2 +6 -0
  15. data/doc/news/news-2.1.3 +5 -0
  16. data/doc/news/news-2.2.0 +14 -0
  17. data/doc/news/news-2.2.1 +4 -0
  18. data/doc/news/news-2.3.0 +6 -0
  19. data/doc/news/{NEWS-2.4.0 → news-2.4.0} +19 -1
  20. data/doc/news/news-2.4.1 +8 -0
  21. data/doc/news/news-2.4.2 +4 -0
  22. data/doc/news/news-2.4.3 +78 -0
  23. data/doc/rdoc/core/classes/Array.html +118 -850
  24. data/doc/rdoc/core/classes/Binding.html +45 -291
  25. data/doc/rdoc/core/classes/Class.html +20 -244
  26. data/doc/rdoc/core/classes/Comparable.html +26 -195
  27. data/doc/rdoc/core/classes/Dir.html +32 -332
  28. data/doc/rdoc/core/classes/Enumerable.html +152 -1154
  29. data/doc/rdoc/core/classes/Exception.html +8 -76
  30. data/doc/rdoc/core/classes/FalseClass.html +8 -8
  31. data/doc/rdoc/core/classes/File.html +59 -456
  32. data/doc/rdoc/core/classes/FileTest.html +4 -33
  33. data/doc/rdoc/core/classes/Float.html +10 -148
  34. data/doc/rdoc/core/classes/Friend.html +4 -43
  35. data/doc/rdoc/core/classes/Functor.html +12 -12
  36. data/doc/rdoc/core/classes/Hash.html +278 -1930
  37. data/doc/rdoc/core/classes/Indexable.html +97 -97
  38. data/doc/rdoc/core/classes/InstanceVariables.html +44 -251
  39. data/doc/rdoc/core/classes/Integer.html +90 -365
  40. data/doc/rdoc/core/classes/Kernel.html +365 -2062
  41. data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
  42. data/doc/rdoc/core/classes/MatchData.html +15 -121
  43. data/doc/rdoc/core/classes/Module.html +213 -1197
  44. data/doc/rdoc/core/classes/NilClass.html +22 -79
  45. data/doc/rdoc/core/classes/Numeric.html +27 -136
  46. data/doc/rdoc/core/classes/Object.html +52 -4
  47. data/doc/rdoc/core/classes/Proc.html +23 -228
  48. data/doc/rdoc/core/classes/Range.html +1 -263
  49. data/doc/rdoc/core/classes/Regexp.html +14 -110
  50. data/doc/rdoc/core/classes/Stackable.html +31 -31
  51. data/doc/rdoc/core/classes/String.html +401 -2464
  52. data/doc/rdoc/core/classes/Symbol.html +67 -245
  53. data/doc/rdoc/core/classes/Time.html +157 -459
  54. data/doc/rdoc/core/classes/TrueClass.html +8 -8
  55. data/doc/rdoc/core/classes/UnboundMethod.html +11 -110
  56. data/doc/rdoc/core/created.rid +1 -1
  57. data/doc/rdoc/core/files/{README_core.html → doc/README_core.html} +7 -6
  58. data/doc/rdoc/core/files/lib/core/facets/{module/alias_rb.html → array/index_rb.html} +4 -4
  59. data/doc/rdoc/core/files/lib/core/facets/array_rb.html +1 -37
  60. data/doc/rdoc/core/files/lib/core/facets/binding_rb.html +1 -9
  61. data/doc/rdoc/core/files/lib/core/facets/class/descendents_rb.html +1 -1
  62. data/doc/rdoc/core/files/lib/core/facets/class_rb.html +1 -10
  63. data/doc/rdoc/core/files/lib/core/facets/comparable_rb.html +1 -7
  64. data/doc/rdoc/core/files/lib/core/facets/dir_rb.html +1 -11
  65. data/doc/rdoc/core/files/lib/core/facets/enumerable/group_by_rb.html +1 -1
  66. data/doc/rdoc/core/files/lib/core/facets/enumerable_rb.html +1 -27
  67. data/doc/rdoc/core/files/lib/core/facets/exception_rb.html +1 -6
  68. data/doc/rdoc/core/files/lib/core/facets/file/split_root_rb.html +92 -0
  69. data/doc/rdoc/core/files/lib/core/facets/file_rb.html +1 -9
  70. data/doc/rdoc/core/files/lib/core/facets/filetest_rb.html +1 -5
  71. data/doc/rdoc/core/files/lib/core/facets/float/round_rb.html +5 -5
  72. data/doc/rdoc/core/files/lib/core/facets/float_rb.html +1 -5
  73. data/doc/rdoc/core/files/lib/core/facets/hash/except_rb.html +1 -1
  74. data/doc/rdoc/core/files/lib/core/facets/{time/to_date_rb.html → hash/op_push_rb.html} +4 -4
  75. data/doc/rdoc/core/files/lib/core/facets/hash/slice_rb.html +1 -1
  76. data/doc/rdoc/core/files/lib/core/facets/hash/update_rb.html +5 -1
  77. data/doc/rdoc/core/files/lib/core/facets/hash_rb.html +1 -32
  78. data/doc/rdoc/core/files/lib/core/facets/indexable_rb.html +1 -1
  79. data/doc/rdoc/core/files/lib/core/facets/integer_rb.html +1 -10
  80. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_exec_rb.html +1 -5
  81. data/doc/rdoc/core/files/lib/core/facets/kernel/qua_class_rb.html +92 -0
  82. data/doc/rdoc/core/files/lib/core/facets/kernel/singleton_class_rb.html +1 -1
  83. data/doc/rdoc/core/files/lib/core/facets/kernel/with_rb.html +1 -1
  84. data/doc/rdoc/core/files/lib/core/facets/kernel_rb.html +1 -46
  85. data/doc/rdoc/core/files/lib/core/facets/matchdata_rb.html +1 -6
  86. data/doc/rdoc/core/files/lib/core/facets/metaid_rb.html +1 -1
  87. data/doc/rdoc/core/files/lib/core/facets/module/alias_accessor_rb.html +92 -0
  88. data/doc/rdoc/core/files/lib/core/facets/module/alias_method_chain_rb.html +92 -0
  89. data/doc/rdoc/core/files/lib/core/facets/module/alias_module_function_rb.html +92 -0
  90. data/doc/rdoc/core/files/lib/core/facets/module/instance_methods_rb.html +1 -1
  91. data/doc/rdoc/core/files/lib/core/facets/module_rb.html +1 -27
  92. data/doc/rdoc/core/files/lib/core/facets/nilclass/ergo_rb.html +96 -0
  93. data/doc/rdoc/core/files/lib/core/facets/nilclass/to_f_rb.html +1 -1
  94. data/doc/rdoc/core/files/lib/core/facets/nilclass_rb.html +1 -5
  95. data/doc/rdoc/core/files/lib/core/facets/numeric/round_rb.html +1 -1
  96. data/doc/rdoc/core/files/lib/core/facets/numeric_rb.html +1 -7
  97. data/doc/rdoc/core/files/lib/core/facets/proc/bind_rb.html +1 -1
  98. data/doc/rdoc/core/files/lib/core/facets/proc_rb.html +1 -9
  99. data/doc/rdoc/core/files/lib/core/facets/range_rb.html +1 -9
  100. data/doc/rdoc/core/files/lib/core/facets/regexp_rb.html +1 -6
  101. data/doc/rdoc/core/files/lib/core/facets/string/chars_rb.html +1 -1
  102. data/doc/rdoc/core/files/lib/core/facets/string/each_char_rb.html +5 -1
  103. data/doc/rdoc/core/files/lib/core/facets/{kernel/suppress_rb.html → string/op_sub_rb.html} +4 -4
  104. data/doc/rdoc/core/files/lib/core/facets/string/subtract_rb.html +9 -1
  105. data/doc/rdoc/core/files/lib/core/facets/string/variablize_rb.html +92 -0
  106. data/doc/rdoc/core/files/lib/core/facets/string_rb.html +1 -38
  107. data/doc/rdoc/core/files/lib/core/facets/symbol/plain_rb.html +92 -0
  108. data/doc/rdoc/core/files/lib/core/facets/symbol/query_rb.html +96 -0
  109. data/doc/rdoc/core/files/lib/core/facets/symbol/setter_rb.html +96 -0
  110. data/doc/rdoc/core/files/lib/core/facets/symbol/variablize_rb.html +92 -0
  111. data/doc/rdoc/core/files/lib/core/facets/symbol_rb.html +1 -9
  112. data/doc/rdoc/core/files/lib/core/facets/time/advance_rb.html +92 -0
  113. data/doc/rdoc/core/files/lib/core/facets/time/change_rb.html +1 -1
  114. data/doc/rdoc/core/files/lib/core/facets/time/elapse_rb.html +1 -1
  115. data/doc/rdoc/core/files/lib/core/facets/time/hence_rb.html +1 -1
  116. data/doc/rdoc/core/files/lib/core/facets/time/set_rb.html +1 -5
  117. data/doc/rdoc/core/files/lib/core/facets/time/stamp_rb.html +1 -1
  118. data/doc/rdoc/core/files/lib/core/facets/time/to_time_rb.html +1 -1
  119. data/doc/rdoc/core/files/lib/core/facets/time/trunc_rb.html +1 -1
  120. data/doc/rdoc/core/files/lib/core/facets/time_rb.html +1 -15
  121. data/doc/rdoc/core/files/lib/core/facets/unboundmethod_rb.html +1 -6
  122. data/doc/rdoc/core/fr_file_index.html +16 -242
  123. data/doc/rdoc/core/fr_method_index.html +425 -780
  124. data/doc/rdoc/core/index.html +1 -1
  125. data/doc/rdoc/lore/classes/Array.html +16 -16
  126. data/doc/rdoc/lore/classes/CGI.html +25 -19
  127. data/doc/rdoc/lore/classes/Config.html +8 -8
  128. data/doc/rdoc/lore/classes/Continuation.html +4 -4
  129. data/doc/rdoc/lore/classes/Date.html +425 -47
  130. data/doc/rdoc/lore/classes/DateTime.html +585 -0
  131. data/doc/rdoc/lore/classes/File.html +4 -4
  132. data/doc/rdoc/lore/classes/FileUtils.html +32 -376
  133. data/doc/rdoc/lore/classes/GetoptLong.html +4 -4
  134. data/doc/rdoc/lore/classes/GetoptLong/DSL.html +24 -24
  135. data/doc/rdoc/lore/classes/Kernel.html +137 -0
  136. data/doc/rdoc/lore/classes/Logger.html +12 -12
  137. data/doc/rdoc/lore/classes/Logger/Ansicolor.html +40 -40
  138. data/doc/rdoc/lore/classes/Logger/LogDevice.html +4 -4
  139. data/doc/rdoc/lore/classes/NilClass.html +5 -5
  140. data/doc/rdoc/lore/classes/OpenStruct.html +47 -47
  141. data/doc/rdoc/lore/classes/Pathname.html +126 -40
  142. data/doc/rdoc/lore/classes/Shellwords.html +4 -4
  143. data/doc/rdoc/lore/classes/String.html +29 -8
  144. data/doc/rdoc/lore/classes/Time.html +156 -0
  145. data/doc/rdoc/lore/classes/URI.html +48 -48
  146. data/doc/rdoc/lore/classes/URI/Hash.html +4 -4
  147. data/doc/rdoc/lore/classes/URI/Kernel.html +8 -8
  148. data/doc/rdoc/lore/created.rid +1 -1
  149. data/doc/rdoc/lore/files/{README_lore.html → doc/README_lore.html} +4 -4
  150. data/doc/rdoc/lore/files/lib/lore/facets/basicobject_rb.html +22 -94
  151. data/doc/rdoc/lore/files/lib/lore/facets/cgi_rb.html +1 -1
  152. data/doc/rdoc/lore/files/lib/lore/facets/continuation_rb.html +2 -2
  153. data/doc/rdoc/lore/files/lib/lore/facets/date_rb.html +2 -27
  154. data/doc/rdoc/lore/files/lib/lore/facets/ostruct_rb.html +1 -1
  155. data/doc/rdoc/lore/files/lib/lore/facets/pathname_rb.html +1 -15
  156. data/doc/rdoc/lore/files/lib/lore/facets/yaml_rb.html +2 -1
  157. data/doc/rdoc/lore/fr_class_index.html +3 -1
  158. data/doc/rdoc/lore/fr_file_index.html +1 -8
  159. data/doc/rdoc/lore/fr_method_index.html +125 -93
  160. data/doc/rdoc/lore/index.html +1 -1
  161. data/doc/rdoc/more/classes/ANSICode.html +66 -66
  162. data/doc/rdoc/more/classes/Advisable.html +37 -37
  163. data/doc/rdoc/more/classes/Advisable/Method.html +20 -20
  164. data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +27 -27
  165. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +28 -28
  166. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +19 -19
  167. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +31 -31
  168. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +33 -33
  169. data/doc/rdoc/more/classes/Argvector.html +489 -0
  170. data/doc/rdoc/more/classes/Association.html +28 -28
  171. data/doc/rdoc/more/classes/Association/Kernel.html +8 -8
  172. data/doc/rdoc/more/classes/BBCode.html +34 -34
  173. data/doc/rdoc/more/classes/BaseX.html +16 -16
  174. data/doc/rdoc/more/classes/BiCrypt.html +67 -67
  175. data/doc/rdoc/more/classes/BigDuration.html +30 -30
  176. data/doc/rdoc/more/classes/BinReadable.html +85 -85
  177. data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +25 -25
  178. data/doc/rdoc/more/classes/Binding.html +8 -61
  179. data/doc/rdoc/more/classes/BlankSlate.html +131 -0
  180. data/doc/rdoc/more/classes/Buildable.html +4 -4
  181. data/doc/rdoc/more/classes/BuildingBlock.html +1 -1
  182. data/doc/rdoc/more/classes/CLI/Arguments.html +88 -88
  183. data/doc/rdoc/more/classes/CLI/Command.html +29 -28
  184. data/doc/rdoc/more/classes/CLI/NoCommandError.html +5 -5
  185. data/doc/rdoc/more/classes/CLI/NoOptionError.html +5 -5
  186. data/doc/rdoc/more/classes/CacheDecorator.html +21 -21
  187. data/doc/rdoc/more/classes/Capsule.html +41 -41
  188. data/doc/rdoc/more/classes/Chain.html +17 -17
  189. data/doc/rdoc/more/classes/Cloneable.html +4 -4
  190. data/doc/rdoc/more/classes/ConsoleUtils.html +18 -18
  191. data/doc/rdoc/more/classes/Coroutine.html +35 -34
  192. data/doc/rdoc/more/classes/Crypt.html +16 -16
  193. data/doc/rdoc/more/classes/CssTree.html +8 -8
  194. data/doc/rdoc/more/classes/Dictionary.html +232 -232
  195. data/doc/rdoc/more/classes/DictionaryMatcher.html +38 -38
  196. data/doc/rdoc/more/classes/DictionaryMatcher/MatchData.html +4 -4
  197. data/doc/rdoc/more/classes/Duration.html +68 -68
  198. data/doc/rdoc/more/classes/Enumerable.html +44 -44
  199. data/doc/rdoc/more/classes/Enumerable/Elementor.html +16 -16
  200. data/doc/rdoc/more/classes/Enumerable/Enumerator.html +4 -4
  201. data/doc/rdoc/more/classes/EnumerablePass.html +15 -15
  202. data/doc/rdoc/more/classes/Equatable.html +16 -16
  203. data/doc/rdoc/more/classes/EventHook.html +8 -8
  204. data/doc/rdoc/more/classes/Expirable.html +17 -17
  205. data/doc/rdoc/more/classes/FileShell.html +174 -174
  206. data/doc/rdoc/more/classes/Fileable.html +14 -14
  207. data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
  208. data/doc/rdoc/more/classes/Hash.html +35 -181
  209. data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
  210. data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
  211. data/doc/rdoc/more/classes/InfinityClass.html +36 -36
  212. data/doc/rdoc/more/classes/InfinityClass/Numeric.html +23 -23
  213. data/doc/rdoc/more/classes/Ini.html +37 -37
  214. data/doc/rdoc/more/classes/Instantiable.html +9 -9
  215. data/doc/rdoc/more/classes/{Instantise.html → Instantize.html} +17 -17
  216. data/doc/rdoc/more/classes/Interval.html +189 -189
  217. data/doc/rdoc/more/classes/It.html +12 -12
  218. data/doc/rdoc/more/classes/LRUCache.html +38 -38
  219. data/doc/rdoc/more/classes/LinkedList.html +68 -68
  220. data/doc/rdoc/more/classes/LinkedList/Node.html +4 -4
  221. data/doc/rdoc/more/classes/Module.html +177 -177
  222. data/doc/rdoc/more/classes/Multiton.html +12 -12
  223. data/doc/rdoc/more/classes/Multiton/MetaMethods.html +28 -28
  224. data/doc/rdoc/more/classes/Net/SMTP.html +8 -69
  225. data/doc/rdoc/more/classes/NullClass.html +24 -24
  226. data/doc/rdoc/more/classes/OpEsc.html +5 -5
  227. data/doc/rdoc/more/classes/OpenCascade.html +4 -4
  228. data/doc/rdoc/more/classes/OpenCollection.html +8 -8
  229. data/doc/rdoc/more/classes/OpenHash.html +9 -9
  230. data/doc/rdoc/more/classes/OpenObject.html +117 -117
  231. data/doc/rdoc/more/classes/PQueue.html +84 -84
  232. data/doc/rdoc/more/classes/Paramix.html +11 -11
  233. data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
  234. data/doc/rdoc/more/classes/PathList.html +8 -8
  235. data/doc/rdoc/more/classes/PathList/Finder.html +8 -8
  236. data/doc/rdoc/more/classes/Pool.html +18 -18
  237. data/doc/rdoc/more/classes/Proc.html +10 -10
  238. data/doc/rdoc/more/classes/ProgressBar.html +52 -52
  239. data/doc/rdoc/more/classes/Prototype.html +28 -28
  240. data/doc/rdoc/more/classes/RWDelegator.html +16 -16
  241. data/doc/rdoc/more/classes/Random.html +6 -23
  242. data/doc/rdoc/more/classes/Random/Array.html +52 -52
  243. data/doc/rdoc/more/classes/Random/Hash.html +64 -64
  244. data/doc/rdoc/more/classes/Random/Object.html +5 -5
  245. data/doc/rdoc/more/classes/Random/String.html +46 -46
  246. data/doc/rdoc/more/classes/Random/String/Self.html +13 -13
  247. data/doc/rdoc/more/classes/Recorder.html +16 -16
  248. data/doc/rdoc/more/classes/Reference.html +19 -19
  249. data/doc/rdoc/more/classes/Registerable.html +13 -13
  250. data/doc/rdoc/more/classes/Rope.html +434 -0
  251. data/doc/rdoc/more/classes/Semaphore.html +36 -36
  252. data/doc/rdoc/more/classes/Settings.html +28 -28
  253. data/doc/rdoc/more/classes/Settings/Setting.html +13 -13
  254. data/doc/rdoc/more/classes/Settings/SettingCollection.html +4 -4
  255. data/doc/rdoc/more/classes/SimpleStringIO.html +8 -8
  256. data/doc/rdoc/more/classes/String/Mask.html +557 -0
  257. data/doc/rdoc/more/classes/String/Style.html +146 -147
  258. data/doc/rdoc/more/classes/String/Words.html +31 -272
  259. data/doc/rdoc/more/classes/System.html +253 -253
  260. data/doc/rdoc/more/classes/Timer.html +50 -50
  261. data/doc/rdoc/more/classes/Timer/Dummy.html +9 -9
  262. data/doc/rdoc/more/classes/TracePoint.html +58 -58
  263. data/doc/rdoc/more/classes/Tuple.html +170 -170
  264. data/doc/rdoc/more/classes/TypeCast/Class.html +4 -4
  265. data/doc/rdoc/more/classes/TypeCast/Object.html +4 -4
  266. data/doc/rdoc/more/classes/Uninheritable.html +6 -6
  267. data/doc/rdoc/more/classes/UploadUtils.html +49 -49
  268. data/doc/rdoc/more/classes/VersionNumber.html +82 -56
  269. data/doc/rdoc/more/classes/Weekdays.html +28 -28
  270. data/doc/rdoc/more/classes/XOXO.html +9 -9
  271. data/doc/rdoc/more/classes/ZipUtils.html +58 -58
  272. data/doc/rdoc/more/classes/ZipUtils/DryRun.html +28 -28
  273. data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +28 -28
  274. data/doc/rdoc/more/classes/ZipUtils/Verbose.html +28 -28
  275. data/doc/rdoc/more/created.rid +1 -1
  276. data/doc/rdoc/more/files/{README_more.html → doc/README_more.html} +3 -3
  277. data/doc/rdoc/more/files/lib/more/facets/annotations_rb.html +1 -1
  278. data/doc/rdoc/more/files/lib/more/facets/arguments_rb.html +1 -1
  279. data/doc/rdoc/more/files/lib/more/facets/argvector_rb.html +142 -0
  280. data/doc/rdoc/more/files/lib/more/facets/bicrypt_rb.html +2 -2
  281. data/doc/rdoc/more/files/lib/more/facets/blankslate_rb.html +92 -0
  282. data/doc/rdoc/more/files/lib/more/facets/buildable_rb.html +1 -1
  283. data/doc/rdoc/more/files/lib/more/facets/bytes_rb.html +1 -78
  284. data/doc/rdoc/more/files/lib/more/facets/command_rb.html +1 -1
  285. data/doc/rdoc/more/files/lib/more/facets/coroutine_rb.html +1 -1
  286. data/doc/rdoc/more/files/lib/more/facets/dictionary_rb.html +1 -1
  287. data/doc/rdoc/more/files/lib/more/facets/elementor_rb.html +1 -1
  288. data/doc/rdoc/more/files/lib/more/facets/fileshell_rb.html +1 -29
  289. data/doc/rdoc/more/files/lib/more/facets/inheritor_rb.html +1 -1
  290. data/doc/rdoc/more/files/lib/more/facets/instantise_rb.html +5 -54
  291. data/doc/rdoc/more/files/lib/more/facets/instantize_rb.html +160 -0
  292. data/doc/rdoc/more/files/lib/more/facets/interval_rb.html +1 -1
  293. data/doc/rdoc/more/files/lib/more/facets/multipliers_rb.html +1 -1
  294. data/doc/rdoc/more/files/lib/more/facets/openobject_rb.html +1 -1
  295. data/doc/rdoc/more/files/lib/more/facets/random_rb.html +1 -1
  296. data/doc/rdoc/more/files/lib/more/facets/recorder_rb.html +1 -1
  297. data/doc/rdoc/more/files/lib/more/facets/reflection_rb.html +1 -2
  298. data/doc/rdoc/more/files/lib/more/facets/rope_rb.html +98 -0
  299. data/doc/rdoc/{core/files/lib/core/facets/string/to_time_rb.html → more/files/lib/more/facets/string/mask_rb.html} +5 -5
  300. data/doc/rdoc/more/files/lib/more/facets/{style_rb.html → string/style_rb.html} +4 -4
  301. data/doc/rdoc/more/files/lib/more/facets/timer_rb.html +2 -2
  302. data/doc/rdoc/more/files/lib/more/facets/typecast_rb.html +2 -2
  303. data/doc/rdoc/more/files/lib/more/facets/version_rb.html +2 -3
  304. data/doc/rdoc/more/fr_class_index.html +5 -2
  305. data/doc/rdoc/more/fr_file_index.html +7 -8
  306. data/doc/rdoc/more/fr_method_index.html +940 -926
  307. data/doc/rdoc/more/index.html +1 -1
  308. data/lib/core/facets-load.rb +12 -0
  309. data/lib/core/facets.rb +1 -1
  310. data/lib/core/facets/array.rb +5 -25
  311. data/lib/core/facets/array/index.rb +23 -0
  312. data/lib/core/facets/binding.rb +5 -6
  313. data/lib/core/facets/class.rb +5 -6
  314. data/lib/core/facets/class/descendents.rb +10 -2
  315. data/lib/core/facets/comparable.rb +5 -3
  316. data/lib/core/facets/dir.rb +5 -6
  317. data/lib/core/facets/enumerable.rb +5 -23
  318. data/lib/core/facets/enumerable/group_by.rb +2 -2
  319. data/lib/core/facets/exception.rb +6 -2
  320. data/lib/core/facets/file.rb +5 -5
  321. data/lib/core/facets/file/split_root.rb +10 -0
  322. data/lib/core/facets/filetest.rb +6 -1
  323. data/lib/core/facets/float.rb +6 -1
  324. data/lib/core/facets/float/round.rb +1 -35
  325. data/lib/core/facets/hash.rb +5 -28
  326. data/lib/core/facets/hash/except.rb +15 -11
  327. data/lib/core/facets/hash/op_push.rb +17 -0
  328. data/lib/core/facets/hash/slice.rb +21 -13
  329. data/lib/core/facets/hash/update.rb +19 -13
  330. data/lib/core/facets/indexable.rb +1 -0
  331. data/lib/core/facets/integer.rb +5 -7
  332. data/lib/core/facets/kernel.rb +5 -44
  333. data/lib/core/facets/kernel/instance_exec.rb +29 -8
  334. data/lib/core/facets/kernel/qua_class.rb +19 -0
  335. data/lib/core/facets/kernel/singleton_class.rb +6 -1
  336. data/lib/core/facets/kernel/with.rb +1 -1
  337. data/lib/core/facets/matchdata.rb +5 -3
  338. data/lib/core/facets/metaid.rb +0 -51
  339. data/lib/core/facets/module.rb +5 -23
  340. data/lib/core/facets/module/alias_accessor.rb +45 -0
  341. data/lib/core/facets/module/{alias.rb → alias_method_chain.rb} +0 -65
  342. data/lib/core/facets/module/alias_module_function.rb +30 -0
  343. data/lib/core/facets/module/instance_methods.rb +2 -2
  344. data/lib/core/facets/nilclass.rb +5 -2
  345. data/lib/core/facets/nilclass/ergo.rb +1 -0
  346. data/lib/core/facets/nilclass/to_f.rb +2 -2
  347. data/lib/core/facets/numeric.rb +5 -3
  348. data/lib/core/facets/numeric/round.rb +21 -0
  349. data/lib/core/facets/proc.rb +5 -5
  350. data/lib/core/facets/range.rb +5 -5
  351. data/lib/core/facets/regexp.rb +5 -2
  352. data/lib/core/facets/string.rb +5 -36
  353. data/lib/core/facets/string/chars.rb +3 -3
  354. data/lib/core/facets/string/each_char.rb +15 -6
  355. data/lib/core/facets/string/op_sub.rb +14 -0
  356. data/lib/core/facets/string/subtract.rb +3 -13
  357. data/lib/core/facets/string/variablize.rb +12 -0
  358. data/lib/core/facets/symbol.rb +5 -5
  359. data/lib/core/facets/symbol/plain.rb +44 -0
  360. data/lib/core/facets/symbol/query.rb +1 -0
  361. data/lib/core/facets/symbol/setter.rb +1 -0
  362. data/lib/core/facets/symbol/variablize.rb +12 -0
  363. data/lib/core/facets/time.rb +5 -12
  364. data/lib/core/facets/time/advance.rb +17 -0
  365. data/lib/core/facets/time/change.rb +16 -22
  366. data/lib/core/facets/time/elapse.rb +2 -2
  367. data/lib/core/facets/time/hence.rb +83 -50
  368. data/lib/core/facets/time/set.rb +21 -1
  369. data/lib/core/facets/time/stamp.rb +2 -4
  370. data/lib/core/facets/time/to_time.rb +8 -2
  371. data/lib/core/facets/unboundmethod.rb +5 -2
  372. data/lib/lore/facets/basicobject.rb +8 -257
  373. data/lib/lore/facets/cgi.rb +1 -1
  374. data/lib/lore/facets/date.rb +349 -43
  375. data/lib/lore/facets/ostruct.rb +1 -1
  376. data/lib/lore/facets/pathname.rb +41 -10
  377. data/lib/more/facets/annotations.rb +2 -0
  378. data/lib/more/facets/arguments.rb +2 -0
  379. data/lib/more/facets/argvector.rb +353 -0
  380. data/lib/more/facets/bicrypt.rb +1 -1
  381. data/lib/more/facets/blankslate.rb +66 -0
  382. data/lib/more/facets/buildable.rb +1 -1
  383. data/lib/more/facets/bytes.rb +2 -0
  384. data/lib/more/facets/command.rb +4 -1
  385. data/lib/more/facets/coroutine.rb +1 -0
  386. data/lib/more/facets/dictionary.rb +4 -4
  387. data/lib/more/facets/elementor.rb +1 -1
  388. data/lib/more/facets/fileshell.rb +2 -0
  389. data/lib/more/facets/inheritor.rb +9 -5
  390. data/lib/more/facets/instantise.rb +1 -92
  391. data/lib/more/facets/instantize.rb +95 -0
  392. data/lib/more/facets/interval.rb +2 -2
  393. data/lib/more/facets/multipliers.rb +4 -4
  394. data/lib/more/facets/openobject.rb +6 -1
  395. data/lib/more/facets/random.rb +25 -22
  396. data/lib/more/facets/recorder.rb +1 -1
  397. data/lib/more/facets/rope.rb +131 -0
  398. data/lib/more/facets/string/mask.rb +278 -0
  399. data/lib/more/facets/{style.rb → string/style.rb} +7 -6
  400. data/lib/more/facets/typecast.rb +1 -1
  401. data/lib/more/facets/version.rb +14 -0
  402. data/test/core/binding/test_local_variables.rb +1 -1
  403. data/test/core/enumerable/test_group_by.rb +7 -2
  404. data/test/core/hash/test_slice.rb +20 -0
  405. data/test/core/kernel/test_tap.rb +1 -1
  406. data/test/core/module/test_alias.rb +2 -1
  407. data/test/core/module/test_revise.rb +2 -2
  408. data/test/lore/test_basicobject.rb +26 -26
  409. data/test/lore/test_date.rb +9 -0
  410. data/test/lore/test_ostruct.rb +5 -5
  411. data/test/more/test_class_extension.rb +1 -1
  412. data/test/more/test_classmethods.rb +5 -5
  413. data/test/more/test_dictionary.rb +1 -1
  414. data/test/more/test_instantise.rb +2 -4
  415. data/test/more/test_interval.rb +4 -4
  416. data/test/more/test_linkedlist.rb +1 -1
  417. data/test/more/test_multipliers.rb +1 -1
  418. data/test/more/test_multiton.rb +1 -1
  419. data/test/more/test_random.rb +1 -1
  420. data/test/more/test_style.rb +1 -1
  421. data/test/more/test_typecast.rb +1 -1
  422. data/test/test_facets.rb +9 -0
  423. metadata +82 -1753
  424. data/doc/rdoc/lore/classes/BasicObject.html +0 -259
  425. data/doc/rdoc/more/classes/Kernel.html +0 -641
  426. data/doc/ri/ANSICode/cdesc-ANSICode.yaml +0 -60
  427. data/doc/ri/ANSICode/clear_line-i.yaml +0 -13
  428. data/doc/ri/ANSICode/clear_screen-i.yaml +0 -13
  429. data/doc/ri/ANSICode/clr-i.yaml +0 -12
  430. data/doc/ri/ANSICode/cls-i.yaml +0 -12
  431. data/doc/ri/ANSICode/colors-i.yaml +0 -10
  432. data/doc/ri/ANSICode/define_ansicolor_method-c.yaml +0 -12
  433. data/doc/ri/ANSICode/display-i.yaml +0 -12
  434. data/doc/ri/ANSICode/down-i.yaml +0 -12
  435. data/doc/ri/ANSICode/left-i.yaml +0 -12
  436. data/doc/ri/ANSICode/move-i.yaml +0 -12
  437. data/doc/ri/ANSICode/restore-i.yaml +0 -12
  438. data/doc/ri/ANSICode/right-i.yaml +0 -12
  439. data/doc/ri/ANSICode/save-i.yaml +0 -12
  440. data/doc/ri/ANSICode/uncolored-i.yaml +0 -10
  441. data/doc/ri/ANSICode/up-i.yaml +0 -12
  442. data/doc/ri/Advisable/Method/advice_after%3d-i.yaml +0 -10
  443. data/doc/ri/Advisable/Method/advice_around%3d-i.yaml +0 -10
  444. data/doc/ri/Advisable/Method/advice_before%3d-i.yaml +0 -10
  445. data/doc/ri/Advisable/Method/advised%3f-i.yaml +0 -10
  446. data/doc/ri/Advisable/Method/call_with_advice-i.yaml +0 -12
  447. data/doc/ri/Advisable/Method/cdesc-Method.yaml +0 -43
  448. data/doc/ri/Advisable/Method/lambda_target-i.yaml +0 -12
  449. data/doc/ri/Advisable/advice_after-i.yaml +0 -10
  450. data/doc/ri/Advisable/advice_around-i.yaml +0 -10
  451. data/doc/ri/Advisable/advice_before-i.yaml +0 -10
  452. data/doc/ri/Advisable/advise-i.yaml +0 -12
  453. data/doc/ri/Advisable/after-i.yaml +0 -10
  454. data/doc/ri/Advisable/around-i.yaml +0 -10
  455. data/doc/ri/Advisable/before-i.yaml +0 -10
  456. data/doc/ri/Advisable/cdesc-Advisable.yaml +0 -35
  457. data/doc/ri/Advisable/method_added-i.yaml +0 -16
  458. data/doc/ri/Archive/Tar/Minitar/BlockRequired/cdesc-BlockRequired.yaml +0 -17
  459. data/doc/ri/Archive/Tar/Minitar/ClosedStream/cdesc-ClosedStream.yaml +0 -17
  460. data/doc/ri/Archive/Tar/Minitar/FileNameTooLong/cdesc-FileNameTooLong.yaml +0 -17
  461. data/doc/ri/Archive/Tar/Minitar/Input/cdesc-Input.yaml +0 -30
  462. data/doc/ri/Archive/Tar/Minitar/Input/close-i.yaml +0 -12
  463. data/doc/ri/Archive/Tar/Minitar/Input/each-i.yaml +0 -12
  464. data/doc/ri/Archive/Tar/Minitar/Input/extract_entry-i.yaml +0 -43
  465. data/doc/ri/Archive/Tar/Minitar/Input/fsync_dir-i.yaml +0 -10
  466. data/doc/ri/Archive/Tar/Minitar/Input/new-c.yaml +0 -12
  467. data/doc/ri/Archive/Tar/Minitar/Input/open-c.yaml +0 -12
  468. data/doc/ri/Archive/Tar/Minitar/Input/tar-i.yaml +0 -12
  469. data/doc/ri/Archive/Tar/Minitar/NonSeekableStream/cdesc-NonSeekableStream.yaml +0 -17
  470. data/doc/ri/Archive/Tar/Minitar/Output/cdesc-Output.yaml +0 -23
  471. data/doc/ri/Archive/Tar/Minitar/Output/close-i.yaml +0 -12
  472. data/doc/ri/Archive/Tar/Minitar/Output/new-c.yaml +0 -12
  473. data/doc/ri/Archive/Tar/Minitar/Output/open-c.yaml +0 -12
  474. data/doc/ri/Archive/Tar/Minitar/Output/tar-i.yaml +0 -12
  475. data/doc/ri/Archive/Tar/Minitar/Reader/EntryStream/cdesc-EntryStream.yaml +0 -17
  476. data/doc/ri/Archive/Tar/Minitar/Reader/InvalidEntryStream/cdesc-InvalidEntryStream.yaml +0 -17
  477. data/doc/ri/Archive/Tar/Minitar/Reader/cdesc-Reader.yaml +0 -27
  478. data/doc/ri/Archive/Tar/Minitar/Reader/close-i.yaml +0 -10
  479. data/doc/ri/Archive/Tar/Minitar/Reader/each-i.yaml +0 -12
  480. data/doc/ri/Archive/Tar/Minitar/Reader/each_entry-i.yaml +0 -12
  481. data/doc/ri/Archive/Tar/Minitar/Reader/new-c.yaml +0 -12
  482. data/doc/ri/Archive/Tar/Minitar/Reader/open-c.yaml +0 -12
  483. data/doc/ri/Archive/Tar/Minitar/Reader/rewind-i.yaml +0 -12
  484. data/doc/ri/Archive/Tar/Minitar/UnexpectedEOF/cdesc-UnexpectedEOF.yaml +0 -17
  485. data/doc/ri/Archive/Tar/Minitar/Writer/BoundedStream/FileOverflow/cdesc-FileOverflow.yaml +0 -17
  486. data/doc/ri/Archive/Tar/Minitar/Writer/BoundedStream/cdesc-BoundedStream.yaml +0 -17
  487. data/doc/ri/Archive/Tar/Minitar/Writer/RestrictedStream/cdesc-RestrictedStream.yaml +0 -17
  488. data/doc/ri/Archive/Tar/Minitar/Writer/add_file-i.yaml +0 -34
  489. data/doc/ri/Archive/Tar/Minitar/Writer/add_file_simple-i.yaml +0 -33
  490. data/doc/ri/Archive/Tar/Minitar/Writer/cdesc-Writer.yaml +0 -31
  491. data/doc/ri/Archive/Tar/Minitar/Writer/close-i.yaml +0 -12
  492. data/doc/ri/Archive/Tar/Minitar/Writer/flush-i.yaml +0 -12
  493. data/doc/ri/Archive/Tar/Minitar/Writer/mkdir-i.yaml +0 -12
  494. data/doc/ri/Archive/Tar/Minitar/Writer/new-c.yaml +0 -12
  495. data/doc/ri/Archive/Tar/Minitar/Writer/open-c.yaml +0 -12
  496. data/doc/ri/Archive/Tar/Minitar/Writer/split_name-i.yaml +0 -10
  497. data/doc/ri/Archive/Tar/Minitar/cdesc-Minitar.yaml +0 -68
  498. data/doc/ri/Archive/Tar/Minitar/dir%3f-c.yaml +0 -12
  499. data/doc/ri/Archive/Tar/Minitar/open-c.yaml +0 -12
  500. data/doc/ri/Archive/Tar/Minitar/pack-c.yaml +0 -14
  501. data/doc/ri/Archive/Tar/Minitar/pack_file-c.yaml +0 -75
  502. data/doc/ri/Archive/Tar/Minitar/unpack-c.yaml +0 -12
  503. data/doc/ri/Archive/Tar/PosixHeader/cdesc-PosixHeader.yaml +0 -53
  504. data/doc/ri/Archive/Tar/cdesc-Tar.yaml +0 -15
  505. data/doc/ri/Archive/cdesc-Archive.yaml +0 -16
  506. data/doc/ri/Array/cdesc-Array.yaml +0 -17
  507. data/doc/ri/As/cdesc-As.yaml +0 -19
  508. data/doc/ri/Association/%3c%3d%3e-i.yaml +0 -10
  509. data/doc/ri/Association/%5b%5d-c.yaml +0 -10
  510. data/doc/ri/Association/Kernel/%3e%3e-i.yaml +0 -12
  511. data/doc/ri/Association/Kernel/associations-i.yaml +0 -10
  512. data/doc/ri/Association/Kernel/cdesc-Kernel.yaml +0 -20
  513. data/doc/ri/Association/cdesc-Association.yaml +0 -67
  514. data/doc/ri/Association/inspect-i.yaml +0 -10
  515. data/doc/ri/Association/invert%21-i.yaml +0 -10
  516. data/doc/ri/Association/new-c.yaml +0 -10
  517. data/doc/ri/Association/to_ary-i.yaml +0 -10
  518. data/doc/ri/Association/to_s-i.yaml +0 -10
  519. data/doc/ri/Autoarray/%5b%5d%3d-i.yaml +0 -10
  520. data/doc/ri/Autoarray/%5b%5d-i.yaml +0 -10
  521. data/doc/ri/Autoarray/cdesc-Autoarray.yaml +0 -26
  522. data/doc/ri/Autoarray/new-c.yaml +0 -10
  523. data/doc/ri/BBCode/ansi-c.yaml +0 -12
  524. data/doc/ri/BBCode/ansi_to_bbcode-c.yaml +0 -12
  525. data/doc/ri/BBCode/ansi_to_html-c.yaml +0 -12
  526. data/doc/ri/BBCode/bbcode_to_ansi-c.yaml +0 -12
  527. data/doc/ri/BBCode/bbcode_to_html-c.yaml +0 -12
  528. data/doc/ri/BBCode/cdesc-BBCode.yaml +0 -59
  529. data/doc/ri/BBCode/html_to_ansi-c.yaml +0 -12
  530. data/doc/ri/BBCode/html_to_bbcode-c.yaml +0 -12
  531. data/doc/ri/BBCode/strip_bbcode-c.yaml +0 -12
  532. data/doc/ri/BaseX/cdesc-BaseX.yaml +0 -27
  533. data/doc/ri/BaseX/convert_base-i.yaml +0 -10
  534. data/doc/ri/BaseX/decode-i.yaml +0 -10
  535. data/doc/ri/BaseX/encode-i.yaml +0 -10
  536. data/doc/ri/BaseX/new-c.yaml +0 -10
  537. data/doc/ri/BasicObject/__self__-i.yaml +0 -12
  538. data/doc/ri/BasicObject/cdesc-BasicObject.yaml +0 -53
  539. data/doc/ri/BasicObject/hide-c.yaml +0 -12
  540. data/doc/ri/BasicObject/object_self-i.yaml +0 -13
  541. data/doc/ri/BiCrypt/block_size-i.yaml +0 -10
  542. data/doc/ri/BiCrypt/carefully_open_file-i.yaml +0 -10
  543. data/doc/ri/BiCrypt/cdesc-BiCrypt.yaml +0 -53
  544. data/doc/ri/BiCrypt/decrypt_block-i.yaml +0 -10
  545. data/doc/ri/BiCrypt/decrypt_file-i.yaml +0 -10
  546. data/doc/ri/BiCrypt/decrypt_pair-i.yaml +0 -10
  547. data/doc/ri/BiCrypt/decrypt_stream-i.yaml +0 -10
  548. data/doc/ri/BiCrypt/decrypt_string-i.yaml +0 -10
  549. data/doc/ri/BiCrypt/encrypt_block-i.yaml +0 -10
  550. data/doc/ri/BiCrypt/encrypt_file-i.yaml +0 -10
  551. data/doc/ri/BiCrypt/encrypt_pair-i.yaml +0 -10
  552. data/doc/ri/BiCrypt/encrypt_stream-i.yaml +0 -10
  553. data/doc/ri/BiCrypt/encrypt_string-i.yaml +0 -10
  554. data/doc/ri/BiCrypt/f-i.yaml +0 -10
  555. data/doc/ri/BiCrypt/generate_initialization_vector-i.yaml +0 -12
  556. data/doc/ri/BiCrypt/new-c.yaml +0 -10
  557. data/doc/ri/BiCrypt/precalculate_S_table-i.yaml +0 -10
  558. data/doc/ri/BigDuration/cdesc-BigDuration.yaml +0 -41
  559. data/doc/ri/BigDuration/each-i.yaml +0 -12
  560. data/doc/ri/BigDuration/months%3d-i.yaml +0 -12
  561. data/doc/ri/BigDuration/new-c.yaml +0 -12
  562. data/doc/ri/BigDuration/seconds-i.yaml +0 -12
  563. data/doc/ri/BigDuration/strftime-i.yaml +0 -16
  564. data/doc/ri/BigDuration/years%3d-i.yaml +0 -12
  565. data/doc/ri/BinReadable/ByteOrder/big%3f-i.yaml +0 -12
  566. data/doc/ri/BinReadable/ByteOrder/big_endian%3f-i.yaml +0 -13
  567. data/doc/ri/BinReadable/ByteOrder/byte_order-i.yaml +0 -13
  568. data/doc/ri/BinReadable/ByteOrder/byteorder-i.yaml +0 -12
  569. data/doc/ri/BinReadable/ByteOrder/cdesc-ByteOrder.yaml +0 -39
  570. data/doc/ri/BinReadable/ByteOrder/little%3f-i.yaml +0 -12
  571. data/doc/ri/BinReadable/ByteOrder/little_endian%3f-i.yaml +0 -11
  572. data/doc/ri/BinReadable/ByteOrder/network%3f-i.yaml +0 -12
  573. data/doc/ri/BinReadable/byte_order%3d-i.yaml +0 -11
  574. data/doc/ri/BinReadable/byte_order-i.yaml +0 -13
  575. data/doc/ri/BinReadable/byteorder%3d-i.yaml +0 -12
  576. data/doc/ri/BinReadable/byteorder-i.yaml +0 -12
  577. data/doc/ri/BinReadable/cdesc-BinReadable.yaml +0 -65
  578. data/doc/ri/BinReadable/read_cstring-i.yaml +0 -10
  579. data/doc/ri/BinReadable/read_int16_big-i.yaml +0 -10
  580. data/doc/ri/BinReadable/read_int16_little-i.yaml +0 -10
  581. data/doc/ri/BinReadable/read_int16_native-i.yaml +0 -13
  582. data/doc/ri/BinReadable/read_int32_big-i.yaml +0 -10
  583. data/doc/ri/BinReadable/read_int32_little-i.yaml +0 -10
  584. data/doc/ri/BinReadable/read_int32_native-i.yaml +0 -13
  585. data/doc/ri/BinReadable/read_int8-i.yaml +0 -10
  586. data/doc/ri/BinReadable/read_uint8-i.yaml +0 -12
  587. data/doc/ri/BinReadable/read_word16_big-i.yaml +0 -10
  588. data/doc/ri/BinReadable/read_word16_little-i.yaml +0 -10
  589. data/doc/ri/BinReadable/read_word16_native-i.yaml +0 -13
  590. data/doc/ri/BinReadable/read_word32_big-i.yaml +0 -10
  591. data/doc/ri/BinReadable/read_word32_little-i.yaml +0 -10
  592. data/doc/ri/BinReadable/read_word32_native-i.yaml +0 -13
  593. data/doc/ri/BinReadable/read_word8-i.yaml +0 -13
  594. data/doc/ri/BinReadable/readn-i.yaml +0 -12
  595. data/doc/ri/BinReadable/ru-i.yaml +0 -12
  596. data/doc/ri/BinReadable/ru_swap-i.yaml +0 -12
  597. data/doc/ri/Binding/%5b%5d%3d-i.yaml +0 -14
  598. data/doc/ri/Binding/%5b%5d-i.yaml +0 -14
  599. data/doc/ri/Binding/__DIR__-i.yaml +0 -12
  600. data/doc/ri/Binding/__FILE__-i.yaml +0 -12
  601. data/doc/ri/Binding/__LINE__-i.yaml +0 -12
  602. data/doc/ri/Binding/__callee__-i.yaml +0 -14
  603. data/doc/ri/Binding/__method__-i.yaml +0 -14
  604. data/doc/ri/Binding/caller-i.yaml +0 -12
  605. data/doc/ri/Binding/callstack-i.yaml +0 -12
  606. data/doc/ri/Binding/cdesc-Binding.yaml +0 -40
  607. data/doc/ri/Binding/defined%3f-i.yaml +0 -12
  608. data/doc/ri/Binding/eval-i.yaml +0 -12
  609. data/doc/ri/Binding/local_variables-i.yaml +0 -14
  610. data/doc/ri/Binding/self-i.yaml +0 -12
  611. data/doc/ri/Buildable/cdesc-Buildable.yaml +0 -29
  612. data/doc/ri/Buildable/included-c.yaml +0 -10
  613. data/doc/ri/BuildingBlock/%3c%3c-i.yaml +0 -12
  614. data/doc/ri/BuildingBlock/build%21-i.yaml +0 -11
  615. data/doc/ri/BuildingBlock/cdesc-BuildingBlock.yaml +0 -57
  616. data/doc/ri/BuildingBlock/inspect-i.yaml +0 -12
  617. data/doc/ri/BuildingBlock/method_missing-i.yaml +0 -11
  618. data/doc/ri/BuildingBlock/new-c.yaml +0 -11
  619. data/doc/ri/BuildingBlock/to_buffer-i.yaml +0 -12
  620. data/doc/ri/BuildingBlock/to_s-i.yaml +0 -12
  621. data/doc/ri/BuildingBlock/to_str-i.yaml +0 -10
  622. data/doc/ri/CGI/cdesc-CGI.yaml +0 -25
  623. data/doc/ri/CGI/esc-i.yaml +0 -12
  624. data/doc/ri/CGI/escformat-i.yaml +0 -12
  625. data/doc/ri/CGI/marshal_from_cgi-i.yaml +0 -12
  626. data/doc/ri/CGI/marshal_to_cgi-i.yaml +0 -12
  627. data/doc/ri/CLI/Arguments/arguments-i.yaml +0 -12
  628. data/doc/ri/CLI/Arguments/assoc_options-i.yaml +0 -14
  629. data/doc/ri/CLI/Arguments/cdesc-Arguments.yaml +0 -77
  630. data/doc/ri/CLI/Arguments/flags-i.yaml +0 -12
  631. data/doc/ri/CLI/Arguments/format_options-i.yaml +0 -12
  632. data/doc/ri/CLI/Arguments/multi_flag-i.yaml +0 -12
  633. data/doc/ri/CLI/Arguments/new-c.yaml +0 -12
  634. data/doc/ri/CLI/Arguments/operands-i.yaml +0 -13
  635. data/doc/ri/CLI/Arguments/options-i.yaml +0 -12
  636. data/doc/ri/CLI/Arguments/parameters-c.yaml +0 -10
  637. data/doc/ri/CLI/Arguments/parameters-i.yaml +0 -12
  638. data/doc/ri/CLI/Arguments/parameters_without_duplicates-i.yaml +0 -12
  639. data/doc/ri/CLI/Arguments/parse-i.yaml +0 -14
  640. data/doc/ri/CLI/Arguments/parse_arity-i.yaml +0 -12
  641. data/doc/ri/CLI/Arguments/parse_line-i.yaml +0 -12
  642. data/doc/ri/CLI/Arguments/parse_preoptions-i.yaml +0 -12
  643. data/doc/ri/CLI/Arguments/preflags-i.yaml +0 -12
  644. data/doc/ri/CLI/Arguments/preoptions-i.yaml +0 -14
  645. data/doc/ri/CLI/Arguments/subcommand-i.yaml +0 -12
  646. data/doc/ri/CLI/Arguments/subcommand_with_arguments-i.yaml +0 -14
  647. data/doc/ri/CLI/Arguments/subcommand_with_parameters-i.yaml +0 -13
  648. data/doc/ri/CLI/Arguments/subcommand_with_preoptions-i.yaml +0 -11
  649. data/doc/ri/CLI/Command/UniversalOptions/cdesc-UniversalOptions.yaml +0 -17
  650. data/doc/ri/CLI/Command/call-i.yaml +0 -12
  651. data/doc/ri/CLI/Command/cdesc-Command.yaml +0 -50
  652. data/doc/ri/CLI/Command/command_missing-i.yaml +0 -11
  653. data/doc/ri/CLI/Command/commands-i.yaml +0 -11
  654. data/doc/ri/CLI/Command/default-i.yaml +0 -12
  655. data/doc/ri/CLI/Command/initialize_arguments-i.yaml +0 -11
  656. data/doc/ri/CLI/Command/initialize_options-i.yaml +0 -11
  657. data/doc/ri/CLI/Command/new-c.yaml +0 -11
  658. data/doc/ri/CLI/Command/option_arity-c.yaml +0 -11
  659. data/doc/ri/CLI/Command/option_missing-i.yaml +0 -11
  660. data/doc/ri/CLI/Command/start-c.yaml +0 -11
  661. data/doc/ri/CLI/Command/subcommand-c.yaml +0 -12
  662. data/doc/ri/CLI/NoCommandError/cdesc-NoCommandError.yaml +0 -16
  663. data/doc/ri/CLI/NoCommandError/new-c.yaml +0 -10
  664. data/doc/ri/CLI/NoOptionError/cdesc-NoOptionError.yaml +0 -18
  665. data/doc/ri/CLI/NoOptionError/new-c.yaml +0 -10
  666. data/doc/ri/CLI/cdesc-CLI.yaml +0 -20
  667. data/doc/ri/CacheDecorator/cache-c.yaml +0 -10
  668. data/doc/ri/CacheDecorator/cdesc-CacheDecorator.yaml +0 -45
  669. data/doc/ri/CacheDecorator/method_missing-i.yaml +0 -10
  670. data/doc/ri/CacheDecorator/new-c.yaml +0 -10
  671. data/doc/ri/CacheDecorator/self-i.yaml +0 -10
  672. data/doc/ri/CacheDecorator/uncache-c.yaml +0 -10
  673. data/doc/ri/Capsule/MissingFile/cdesc-MissingFile.yaml +0 -17
  674. data/doc/ri/Capsule/cdesc-Capsule.yaml +0 -55
  675. data/doc/ri/Capsule/include-i.yaml +0 -11
  676. data/doc/ri/Capsule/include_script-i.yaml +0 -10
  677. data/doc/ri/Capsule/load-c.yaml +0 -12
  678. data/doc/ri/Capsule/load-i.yaml +0 -16
  679. data/doc/ri/Capsule/load_in_module-i.yaml +0 -12
  680. data/doc/ri/Capsule/load_path_lookup-i.yaml +0 -12
  681. data/doc/ri/Capsule/new-c.yaml +0 -12
  682. data/doc/ri/Capsule/require-i.yaml +0 -14
  683. data/doc/ri/Chain/%7e-i.yaml +0 -10
  684. data/doc/ri/Chain/cdesc-Chain.yaml +0 -36
  685. data/doc/ri/Chain/end-i.yaml +0 -16
  686. data/doc/ri/Chain/method_missing-i.yaml +0 -10
  687. data/doc/ri/Chain/new-c.yaml +0 -10
  688. data/doc/ri/Class/cdesc-Class.yaml +0 -17
  689. data/doc/ri/Cloneable/cdesc-Cloneable.yaml +0 -21
  690. data/doc/ri/Cloneable/initialize_copy-i.yaml +0 -10
  691. data/doc/ri/Comparable/at_least-i.yaml +0 -14
  692. data/doc/ri/Comparable/at_most-i.yaml +0 -14
  693. data/doc/ri/Comparable/bound-i.yaml +0 -15
  694. data/doc/ri/Comparable/cap-i.yaml +0 -14
  695. data/doc/ri/Comparable/cdesc-Comparable.yaml +0 -26
  696. data/doc/ri/Comparable/clip-i.yaml +0 -12
  697. data/doc/ri/Comparable/cmp-i.yaml +0 -18
  698. data/doc/ri/Config/cdesc-Config.yaml +0 -18
  699. data/doc/ri/Config/datadir-c.yaml +0 -16
  700. data/doc/ri/Config/inspect-c.yaml +0 -10
  701. data/doc/ri/Console/cdesc-Console.yaml +0 -17
  702. data/doc/ri/ConsoleUtils/ask-i.yaml +0 -12
  703. data/doc/ri/ConsoleUtils/cdesc-ConsoleUtils.yaml +0 -27
  704. data/doc/ri/ConsoleUtils/password-i.yaml +0 -12
  705. data/doc/ri/ConsoleUtils/print_justified-i.yaml +0 -14
  706. data/doc/ri/ConsoleUtils/screen_width-i.yaml +0 -14
  707. data/doc/ri/Continuation/cdesc-Continuation.yaml +0 -16
  708. data/doc/ri/Continuation/create-c.yaml +0 -10
  709. data/doc/ri/Coroutine/%5b%5d%3d-i.yaml +0 -10
  710. data/doc/ri/Coroutine/%5b%5d-i.yaml +0 -10
  711. data/doc/ri/Coroutine/cdesc-Coroutine.yaml +0 -42
  712. data/doc/ri/Coroutine/continue-i.yaml +0 -10
  713. data/doc/ri/Coroutine/new-c.yaml +0 -10
  714. data/doc/ri/Coroutine/resume-i.yaml +0 -10
  715. data/doc/ri/Coroutine/run-i.yaml +0 -10
  716. data/doc/ri/Coroutine/stop-i.yaml +0 -10
  717. data/doc/ri/Crypt/cdesc-Crypt.yaml +0 -28
  718. data/doc/ri/Crypt/check-c.yaml +0 -12
  719. data/doc/ri/Crypt/crypt-c.yaml +0 -20
  720. data/doc/ri/Crypt/generate_salt-c.yaml +0 -12
  721. data/doc/ri/CssFilter/accept_host-i.yaml +0 -11
  722. data/doc/ri/CssFilter/cdesc-CssFilter.yaml +0 -98
  723. data/doc/ri/CssFilter/clean_properties-i.yaml +0 -14
  724. data/doc/ri/CssFilter/clean_value-i.yaml +0 -11
  725. data/doc/ri/CssFilter/filter-i.yaml +0 -11
  726. data/doc/ri/CssFilter/new-c.yaml +0 -11
  727. data/doc/ri/CssFilter/parse-i.yaml +0 -14
  728. data/doc/ri/CssFilter/remove_blanklines-i.yaml +0 -11
  729. data/doc/ri/CssFilter/remove_comments-i.yaml +0 -11
  730. data/doc/ri/CssFilter/remove_nullvalues-i.yaml +0 -11
  731. data/doc/ri/CssFilter/remove_urls-i.yaml +0 -12
  732. data/doc/ri/CssFilter/remove_whitespace-i.yaml +0 -11
  733. data/doc/ri/CssTree/cdesc-CssTree.yaml +0 -19
  734. data/doc/ri/CssTree/new-c.yaml +0 -10
  735. data/doc/ri/CssTree/to_css-i.yaml +0 -12
  736. data/doc/ri/Date/cdesc-Date.yaml +0 -28
  737. data/doc/ri/Date/days_in_month-i.yaml +0 -14
  738. data/doc/ri/Date/days_of_month-i.yaml +0 -10
  739. data/doc/ri/Date/month_name-i.yaml +0 -14
  740. data/doc/ri/Date/stamp-i.yaml +0 -13
  741. data/doc/ri/Date/to_date-i.yaml +0 -12
  742. data/doc/ri/Date/to_s-i.yaml +0 -12
  743. data/doc/ri/Date/to_time-i.yaml +0 -12
  744. data/doc/ri/Dictionary/%3c%3c-i.yaml +0 -10
  745. data/doc/ri/Dictionary/%3d%3d-i.yaml +0 -16
  746. data/doc/ri/Dictionary/%5b%5d%3d-i.yaml +0 -18
  747. data/doc/ri/Dictionary/%5b%5d-c.yaml +0 -10
  748. data/doc/ri/Dictionary/%5b%5d-i.yaml +0 -10
  749. data/doc/ri/Dictionary/alpha-c.yaml +0 -18
  750. data/doc/ri/Dictionary/auto-c.yaml +0 -14
  751. data/doc/ri/Dictionary/cdesc-Dictionary.yaml +0 -150
  752. data/doc/ri/Dictionary/clear-i.yaml +0 -10
  753. data/doc/ri/Dictionary/delete-i.yaml +0 -10
  754. data/doc/ri/Dictionary/delete_if-i.yaml +0 -10
  755. data/doc/ri/Dictionary/dup-i.yaml +0 -10
  756. data/doc/ri/Dictionary/each-i.yaml +0 -11
  757. data/doc/ri/Dictionary/each_key-i.yaml +0 -10
  758. data/doc/ri/Dictionary/each_pair-i.yaml +0 -12
  759. data/doc/ri/Dictionary/each_value-i.yaml +0 -10
  760. data/doc/ri/Dictionary/empty%3f-i.yaml +0 -10
  761. data/doc/ri/Dictionary/fetch-i.yaml +0 -10
  762. data/doc/ri/Dictionary/first-i.yaml +0 -11
  763. data/doc/ri/Dictionary/has_key%3f-i.yaml +0 -10
  764. data/doc/ri/Dictionary/insert-i.yaml +0 -10
  765. data/doc/ri/Dictionary/inspect-i.yaml +0 -10
  766. data/doc/ri/Dictionary/invert-i.yaml +0 -10
  767. data/doc/ri/Dictionary/key%3f-i.yaml +0 -10
  768. data/doc/ri/Dictionary/keys-i.yaml +0 -10
  769. data/doc/ri/Dictionary/last-i.yaml +0 -11
  770. data/doc/ri/Dictionary/length-i.yaml +0 -11
  771. data/doc/ri/Dictionary/merge%21-i.yaml +0 -12
  772. data/doc/ri/Dictionary/merge-i.yaml +0 -10
  773. data/doc/ri/Dictionary/new-c.yaml +0 -12
  774. data/doc/ri/Dictionary/new_by-c.yaml +0 -12
  775. data/doc/ri/Dictionary/order-i.yaml +0 -10
  776. data/doc/ri/Dictionary/order_by-i.yaml +0 -12
  777. data/doc/ri/Dictionary/order_by_key-i.yaml +0 -20
  778. data/doc/ri/Dictionary/order_by_value-i.yaml +0 -18
  779. data/doc/ri/Dictionary/pop-i.yaml +0 -10
  780. data/doc/ri/Dictionary/push-i.yaml +0 -10
  781. data/doc/ri/Dictionary/reject%21-i.yaml +0 -10
  782. data/doc/ri/Dictionary/reject-i.yaml +0 -10
  783. data/doc/ri/Dictionary/reorder-i.yaml +0 -11
  784. data/doc/ri/Dictionary/replace-i.yaml +0 -10
  785. data/doc/ri/Dictionary/reverse%21-i.yaml +0 -10
  786. data/doc/ri/Dictionary/reverse-i.yaml +0 -10
  787. data/doc/ri/Dictionary/select-i.yaml +0 -10
  788. data/doc/ri/Dictionary/shift-i.yaml +0 -10
  789. data/doc/ri/Dictionary/size-i.yaml +0 -12
  790. data/doc/ri/Dictionary/store-i.yaml +0 -10
  791. data/doc/ri/Dictionary/to_a-i.yaml +0 -10
  792. data/doc/ri/Dictionary/to_h-i.yaml +0 -10
  793. data/doc/ri/Dictionary/to_hash-i.yaml +0 -10
  794. data/doc/ri/Dictionary/to_s-i.yaml +0 -10
  795. data/doc/ri/Dictionary/unshift-i.yaml +0 -10
  796. data/doc/ri/Dictionary/update-i.yaml +0 -11
  797. data/doc/ri/Dictionary/values-i.yaml +0 -10
  798. data/doc/ri/DictionaryMatcher/%3c%3c-i.yaml +0 -12
  799. data/doc/ri/DictionaryMatcher/%3d%3d%3d-i.yaml +0 -12
  800. data/doc/ri/DictionaryMatcher/%3d%7e-i.yaml +0 -13
  801. data/doc/ri/DictionaryMatcher/MatchData/cdesc-MatchData.yaml +0 -18
  802. data/doc/ri/DictionaryMatcher/MatchData/inspect-i.yaml +0 -10
  803. data/doc/ri/DictionaryMatcher/add-i.yaml +0 -13
  804. data/doc/ri/DictionaryMatcher/cdesc-DictionaryMatcher.yaml +0 -38
  805. data/doc/ri/DictionaryMatcher/compute_failure_function-i.yaml +0 -10
  806. data/doc/ri/DictionaryMatcher/include%3f-i.yaml +0 -12
  807. data/doc/ri/DictionaryMatcher/inspect-i.yaml +0 -10
  808. data/doc/ri/DictionaryMatcher/internal_match-i.yaml +0 -10
  809. data/doc/ri/DictionaryMatcher/match-i.yaml +0 -12
  810. data/doc/ri/DictionaryMatcher/new-c.yaml +0 -12
  811. data/doc/ri/DictionaryMatcher/scan-i.yaml +0 -12
  812. data/doc/ri/Dir/ascend-c.yaml +0 -18
  813. data/doc/ri/Dir/cdesc-Dir.yaml +0 -28
  814. data/doc/ri/Dir/descend-c.yaml +0 -18
  815. data/doc/ri/Dir/ls_r-c.yaml +0 -12
  816. data/doc/ri/Dir/multiglob-c.yaml +0 -30
  817. data/doc/ri/Dir/multiglob_r-c.yaml +0 -22
  818. data/doc/ri/Dir/parent%3f-c.yaml +0 -14
  819. data/doc/ri/Dir/recurse-c.yaml +0 -14
  820. data/doc/ri/Downloader/Checksum/cdesc-Checksum.yaml +0 -17
  821. data/doc/ri/Downloader/Mirror/cdesc-Mirror.yaml +0 -15
  822. data/doc/ri/Downloader/add_mirror-i.yaml +0 -10
  823. data/doc/ri/Downloader/add_mirrors-i.yaml +0 -10
  824. data/doc/ri/Downloader/cdesc-Downloader.yaml +0 -49
  825. data/doc/ri/Downloader/compute_checksum-i.yaml +0 -12
  826. data/doc/ri/Downloader/download-i.yaml +0 -14
  827. data/doc/ri/Downloader/extract-i.yaml +0 -12
  828. data/doc/ri/Downloader/fetch-i.yaml +0 -12
  829. data/doc/ri/Downloader/interface%3d-i.yaml +0 -10
  830. data/doc/ri/Downloader/interface-i.yaml +0 -12
  831. data/doc/ri/Downloader/mirrors-i.yaml +0 -10
  832. data/doc/ri/Downloader/monitored_download-i.yaml +0 -12
  833. data/doc/ri/Downloader/new-c.yaml +0 -10
  834. data/doc/ri/Downloader/prioritize_urls-i.yaml +0 -12
  835. data/doc/ri/Duration/%2a-i.yaml +0 -16
  836. data/doc/ri/Duration/%2b-i.yaml +0 -16
  837. data/doc/ri/Duration/%2d-i.yaml +0 -16
  838. data/doc/ri/Duration/%2f-i.yaml +0 -16
  839. data/doc/ri/Duration/%3c%3d%3e-i.yaml +0 -16
  840. data/doc/ri/Duration/cdesc-Duration.yaml +0 -93
  841. data/doc/ri/Duration/days%3d-i.yaml +0 -16
  842. data/doc/ri/Duration/each-i.yaml +0 -20
  843. data/doc/ri/Duration/hours%3d-i.yaml +0 -16
  844. data/doc/ri/Duration/inspect-i.yaml +0 -16
  845. data/doc/ri/Duration/minutes%3d-i.yaml +0 -16
  846. data/doc/ri/Duration/new-c.yaml +0 -16
  847. data/doc/ri/Duration/seconds%3d-i.yaml +0 -16
  848. data/doc/ri/Duration/seconds-i.yaml +0 -16
  849. data/doc/ri/Duration/strftime-i.yaml +0 -20
  850. data/doc/ri/Duration/to_s-i.yaml +0 -16
  851. data/doc/ri/Duration/weeks%3d-i.yaml +0 -16
  852. data/doc/ri/Enumerable/Elementor/cdesc-Elementor.yaml +0 -26
  853. data/doc/ri/Enumerable/Elementor/instance_delegate-i.yaml +0 -10
  854. data/doc/ri/Enumerable/Elementor/instance_operator-i.yaml +0 -10
  855. data/doc/ri/Enumerable/Elementor/method_missing-i.yaml +0 -10
  856. data/doc/ri/Enumerable/Elementor/new-c.yaml +0 -10
  857. data/doc/ri/Enumerable/Enumerator/cdesc-Enumerator.yaml +0 -16
  858. data/doc/ri/Enumerable/Enumerator/to_elem-i.yaml +0 -12
  859. data/doc/ri/Enumerable/accumulate-i.yaml +0 -18
  860. data/doc/ri/Enumerable/cdesc-Enumerable.yaml +0 -94
  861. data/doc/ri/Enumerable/cluster_by-i.yaml +0 -18
  862. data/doc/ri/Enumerable/collect_with_index-i.yaml +0 -15
  863. data/doc/ri/Enumerable/commonality-i.yaml +0 -14
  864. data/doc/ri/Enumerable/compact_collect-i.yaml +0 -12
  865. data/doc/ri/Enumerable/compact_map-i.yaml +0 -23
  866. data/doc/ri/Enumerable/count-i.yaml +0 -18
  867. data/doc/ri/Enumerable/divide-i.yaml +0 -14
  868. data/doc/ri/Enumerable/duplicates-i.yaml +0 -12
  869. data/doc/ri/Enumerable/each_by-i.yaml +0 -18
  870. data/doc/ri/Enumerable/elements%21-i.yaml +0 -12
  871. data/doc/ri/Enumerable/elements-i.yaml +0 -12
  872. data/doc/ri/Enumerable/elementwise-i.yaml +0 -15
  873. data/doc/ri/Enumerable/entropy-i.yaml +0 -14
  874. data/doc/ri/Enumerable/every%21-i.yaml +0 -13
  875. data/doc/ri/Enumerable/every-i.yaml +0 -15
  876. data/doc/ri/Enumerable/ewise-i.yaml +0 -12
  877. data/doc/ri/Enumerable/frequency-i.yaml +0 -14
  878. data/doc/ri/Enumerable/graph-i.yaml +0 -12
  879. data/doc/ri/Enumerable/group_by-i.yaml +0 -14
  880. data/doc/ri/Enumerable/ideal_entropy-i.yaml +0 -14
  881. data/doc/ri/Enumerable/inject%21-i.yaml +0 -20
  882. data/doc/ri/Enumerable/map_send-i.yaml +0 -14
  883. data/doc/ri/Enumerable/map_with_index-i.yaml +0 -12
  884. data/doc/ri/Enumerable/mash-i.yaml +0 -19
  885. data/doc/ri/Enumerable/mode-i.yaml +0 -14
  886. data/doc/ri/Enumerable/modulate-i.yaml +0 -18
  887. data/doc/ri/Enumerable/none%3f-i.yaml +0 -16
  888. data/doc/ri/Enumerable/nonuniq-i.yaml +0 -15
  889. data/doc/ri/Enumerable/occur-i.yaml +0 -14
  890. data/doc/ri/Enumerable/one%3f-i.yaml +0 -16
  891. data/doc/ri/Enumerable/per-i.yaml +0 -10
  892. data/doc/ri/Enumerable/probability-i.yaml +0 -14
  893. data/doc/ri/Enumerable/split-i.yaml +0 -16
  894. data/doc/ri/Enumerable/sum-i.yaml +0 -14
  895. data/doc/ri/Enumerable/threaded_map-i.yaml +0 -14
  896. data/doc/ri/Enumerable/threaded_map_send-i.yaml +0 -14
  897. data/doc/ri/Enumerable/to_elem-i.yaml +0 -12
  898. data/doc/ri/Enumerable/to_h-i.yaml +0 -14
  899. data/doc/ri/Enumerable/uniq_by-i.yaml +0 -18
  900. data/doc/ri/EnumerablePass/cdesc-EnumerablePass.yaml +0 -28
  901. data/doc/ri/EnumerablePass/detect-i.yaml +0 -12
  902. data/doc/ri/EnumerablePass/find-i.yaml +0 -15
  903. data/doc/ri/EnumerablePass/wrap_enumerable_method-c.yaml +0 -10
  904. data/doc/ri/Equatable/%3d%3d-i.yaml +0 -10
  905. data/doc/ri/Equatable/cdesc-Equatable.yaml +0 -34
  906. data/doc/ri/Equatable/eql%3f-i.yaml +0 -10
  907. data/doc/ri/Equatable/hash-i.yaml +0 -10
  908. data/doc/ri/Equatable/identify-c.yaml +0 -10
  909. data/doc/ri/EventHook/call-i.yaml +0 -10
  910. data/doc/ri/EventHook/cdesc-EventHook.yaml +0 -31
  911. data/doc/ri/EventHook/new-c.yaml +0 -10
  912. data/doc/ri/Exception/cdesc-Exception.yaml +0 -17
  913. data/doc/ri/Exception/detail-i.yaml +0 -18
  914. data/doc/ri/Exception/suppress-c.yaml +0 -14
  915. data/doc/ri/Expirable/cdesc-Expirable.yaml +0 -30
  916. data/doc/ri/Expirable/expired%3f-i.yaml +0 -12
  917. data/doc/ri/Expirable/expires_after-i.yaml +0 -12
  918. data/doc/ri/Expirable/expires_spread-i.yaml +0 -12
  919. data/doc/ri/Expirable/touch%21-i.yaml +0 -12
  920. data/doc/ri/FalseClass/cdesc-FalseClass.yaml +0 -15
  921. data/doc/ri/File/append-c.yaml +0 -14
  922. data/doc/ri/File/cdesc-File.yaml +0 -38
  923. data/doc/ri/File/create-c.yaml +0 -14
  924. data/doc/ri/File/null-c.yaml +0 -14
  925. data/doc/ri/File/read_binary-c.yaml +0 -14
  926. data/doc/ri/File/read_list-c.yaml +0 -14
  927. data/doc/ri/File/rewrite%21-c.yaml +0 -14
  928. data/doc/ri/File/rewrite-c.yaml +0 -24
  929. data/doc/ri/File/rootname-c.yaml +0 -14
  930. data/doc/ri/File/sanitize-c.yaml +0 -14
  931. data/doc/ri/File/write-c.yaml +0 -16
  932. data/doc/ri/File/writelines-c.yaml +0 -18
  933. data/doc/ri/File/yaml%3f-c.yaml +0 -14
  934. data/doc/ri/FileList/%2a-i.yaml +0 -12
  935. data/doc/ri/FileList/%3d%3d-i.yaml +0 -12
  936. data/doc/ri/FileList/%5b%5d-c.yaml +0 -14
  937. data/doc/ri/FileList/add-i.yaml +0 -12
  938. data/doc/ri/FileList/add_matching-i.yaml +0 -12
  939. data/doc/ri/FileList/calculate_exclude_regexp-i.yaml +0 -10
  940. data/doc/ri/FileList/cdesc-FileList.yaml +0 -111
  941. data/doc/ri/FileList/clear_exclude-i.yaml +0 -12
  942. data/doc/ri/FileList/clear_ignore_patterns-c.yaml +0 -12
  943. data/doc/ri/FileList/clone-i.yaml +0 -13
  944. data/doc/ri/FileList/dup-i.yaml +0 -12
  945. data/doc/ri/FileList/egrep-i.yaml +0 -12
  946. data/doc/ri/FileList/exclude%3f-i.yaml +0 -12
  947. data/doc/ri/FileList/exclude-i.yaml +0 -26
  948. data/doc/ri/FileList/ext-i.yaml +0 -18
  949. data/doc/ri/FileList/gsub%21-i.yaml +0 -12
  950. data/doc/ri/FileList/gsub-i.yaml +0 -16
  951. data/doc/ri/FileList/import-i.yaml +0 -10
  952. data/doc/ri/FileList/include-i.yaml +0 -17
  953. data/doc/ri/FileList/new-c.yaml +0 -16
  954. data/doc/ri/FileList/resolve-i.yaml +0 -12
  955. data/doc/ri/FileList/resolve_add-i.yaml +0 -10
  956. data/doc/ri/FileList/resolve_exclude-i.yaml +0 -10
  957. data/doc/ri/FileList/select_default_ignore_patterns-c.yaml +0 -35
  958. data/doc/ri/FileList/sub%21-i.yaml +0 -12
  959. data/doc/ri/FileList/sub-i.yaml +0 -16
  960. data/doc/ri/FileList/to_a-i.yaml +0 -12
  961. data/doc/ri/FileList/to_ary-i.yaml +0 -12
  962. data/doc/ri/FileList/to_s-i.yaml +0 -12
  963. data/doc/ri/FileShell/%5b%5d-i.yaml +0 -12
  964. data/doc/ri/FileShell/cd-i.yaml +0 -15
  965. data/doc/ri/FileShell/cdesc-FileShell.yaml +0 -83
  966. data/doc/ri/FileShell/chdir-i.yaml +0 -12
  967. data/doc/ri/FileShell/chmod-i.yaml +0 -12
  968. data/doc/ri/FileShell/chmod_R-i.yaml +0 -12
  969. data/doc/ri/FileShell/chown-i.yaml +0 -12
  970. data/doc/ri/FileShell/chown_R-i.yaml +0 -12
  971. data/doc/ri/FileShell/cp-i.yaml +0 -12
  972. data/doc/ri/FileShell/cp_r-i.yaml +0 -12
  973. data/doc/ri/FileShell/dryrun%3f-i.yaml +0 -10
  974. data/doc/ri/FileShell/fu-i.yaml +0 -11
  975. data/doc/ri/FileShell/install-i.yaml +0 -12
  976. data/doc/ri/FileShell/ln-i.yaml +0 -12
  977. data/doc/ri/FileShell/ln_s-i.yaml +0 -12
  978. data/doc/ri/FileShell/ln_sf-i.yaml +0 -12
  979. data/doc/ri/FileShell/ls-i.yaml +0 -12
  980. data/doc/ri/FileShell/mkdir-i.yaml +0 -12
  981. data/doc/ri/FileShell/mkdir_p-i.yaml +0 -12
  982. data/doc/ri/FileShell/move-i.yaml +0 -12
  983. data/doc/ri/FileShell/mv-i.yaml +0 -13
  984. data/doc/ri/FileShell/new-c.yaml +0 -10
  985. data/doc/ri/FileShell/pwd-i.yaml +0 -12
  986. data/doc/ri/FileShell/quiet%3f-i.yaml +0 -10
  987. data/doc/ri/FileShell/rm-i.yaml +0 -12
  988. data/doc/ri/FileShell/rm_r-i.yaml +0 -12
  989. data/doc/ri/FileShell/rm_rf-i.yaml +0 -12
  990. data/doc/ri/FileShell/rmdir-i.yaml +0 -12
  991. data/doc/ri/FileShell/root%3f-i.yaml +0 -12
  992. data/doc/ri/FileShell/touch-i.yaml +0 -12
  993. data/doc/ri/FileShell/verbose%3f-i.yaml +0 -10
  994. data/doc/ri/FileTest/cdesc-FileTest.yaml +0 -16
  995. data/doc/ri/FileTest/root%3f-i.yaml +0 -14
  996. data/doc/ri/FileUtils/cdesc-FileUtils.yaml +0 -39
  997. data/doc/ri/FileUtils/head-i.yaml +0 -14
  998. data/doc/ri/FileUtils/safe_ln-i.yaml +0 -14
  999. data/doc/ri/FileUtils/slice-i.yaml +0 -16
  1000. data/doc/ri/FileUtils/tail-i.yaml +0 -16
  1001. data/doc/ri/FileUtils/wc-i.yaml +0 -18
  1002. data/doc/ri/FileUtils/whereis-i.yaml +0 -10
  1003. data/doc/ri/FileUtils/which-i.yaml +0 -16
  1004. data/doc/ri/Fileable/DSL/cdesc-DSL.yaml +0 -31
  1005. data/doc/ri/Fileable/DSL/file-i.yaml +0 -12
  1006. data/doc/ri/Fileable/DSL/filename-i.yaml +0 -12
  1007. data/doc/ri/Fileable/DSL/included-i.yaml +0 -12
  1008. data/doc/ri/Fileable/DSL/load-i.yaml +0 -12
  1009. data/doc/ri/Fileable/DSL/load_cache-i.yaml +0 -12
  1010. data/doc/ri/Fileable/DSL/locate-i.yaml +0 -12
  1011. data/doc/ri/Fileable/DSL/lookup-i.yaml +0 -12
  1012. data/doc/ri/Fileable/DSL/open-i.yaml +0 -12
  1013. data/doc/ri/Fileable/cdesc-Fileable.yaml +0 -30
  1014. data/doc/ri/Fileable/included-c.yaml +0 -12
  1015. data/doc/ri/Fileable/new-c.yaml +0 -12
  1016. data/doc/ri/Fileable/read-i.yaml +0 -12
  1017. data/doc/ri/Float/cdesc-Float.yaml +0 -17
  1018. data/doc/ri/Friend/cdesc-Friend.yaml +0 -27
  1019. data/doc/ri/Friend/new-c.yaml +0 -10
  1020. data/doc/ri/Functor/cdesc-Functor.yaml +0 -23
  1021. data/doc/ri/Functor/method_missing-i.yaml +0 -12
  1022. data/doc/ri/Functor/new-c.yaml +0 -10
  1023. data/doc/ri/Functor/to_proc-i.yaml +0 -10
  1024. data/doc/ri/GetoptLong/DSL/cdesc-DSL.yaml +0 -30
  1025. data/doc/ri/GetoptLong/DSL/flag-i.yaml +0 -10
  1026. data/doc/ri/GetoptLong/DSL/new-c.yaml +0 -10
  1027. data/doc/ri/GetoptLong/DSL/optional-i.yaml +0 -11
  1028. data/doc/ri/GetoptLong/DSL/opts-i.yaml +0 -12
  1029. data/doc/ri/GetoptLong/DSL/reqs-i.yaml +0 -12
  1030. data/doc/ri/GetoptLong/DSL/required-i.yaml +0 -11
  1031. data/doc/ri/GetoptLong/cdesc-GetoptLong.yaml +0 -16
  1032. data/doc/ri/GetoptLong/new-c.yaml +0 -10
  1033. data/doc/ri/Hash/cdesc-Hash.yaml +0 -15
  1034. data/doc/ri/Hash2Xml/cdesc-Hash2Xml.yaml +0 -21
  1035. data/doc/ri/Hash2Xml/convert-i.yaml +0 -10
  1036. data/doc/ri/Hash2Xml/convert_body-i.yaml +0 -11
  1037. data/doc/ri/Hash2Xml/convert_tag-i.yaml +0 -11
  1038. data/doc/ri/HtmlFilter/balance_html-i.yaml +0 -11
  1039. data/doc/ri/HtmlFilter/cdesc-HtmlFilter.yaml +0 -149
  1040. data/doc/ri/HtmlFilter/check_entity-i.yaml +0 -11
  1041. data/doc/ri/HtmlFilter/check_tags-i.yaml +0 -11
  1042. data/doc/ri/HtmlFilter/decode_dec_entity-i.yaml +0 -11
  1043. data/doc/ri/HtmlFilter/decode_entities-i.yaml +0 -12
  1044. data/doc/ri/HtmlFilter/decode_hex_entity-i.yaml +0 -11
  1045. data/doc/ri/HtmlFilter/decode_num_entity-i.yaml +0 -11
  1046. data/doc/ri/HtmlFilter/escape_comments-i.yaml +0 -11
  1047. data/doc/ri/HtmlFilter/escape_special_chars-i.yaml +0 -12
  1048. data/doc/ri/HtmlFilter/filter-i.yaml +0 -12
  1049. data/doc/ri/HtmlFilter/fix_case-i.yaml +0 -11
  1050. data/doc/ri/HtmlFilter/fix_case_inner-i.yaml +0 -11
  1051. data/doc/ri/HtmlFilter/is_valid_entity-i.yaml +0 -11
  1052. data/doc/ri/HtmlFilter/new-c.yaml +0 -12
  1053. data/doc/ri/HtmlFilter/process_param_protocol-i.yaml +0 -11
  1054. data/doc/ri/HtmlFilter/process_remove_blanks-i.yaml +0 -11
  1055. data/doc/ri/HtmlFilter/process_tag-i.yaml +0 -11
  1056. data/doc/ri/HtmlFilter/strip_single-i.yaml +0 -11
  1057. data/doc/ri/HtmlFilter/validate_entities-i.yaml +0 -11
  1058. data/doc/ri/IORedirect/cdesc-IORedirect.yaml +0 -28
  1059. data/doc/ri/IORedirect/new-c.yaml +0 -12
  1060. data/doc/ri/IORedirect/redirect-c.yaml +0 -12
  1061. data/doc/ri/IORedirect/start-i.yaml +0 -12
  1062. data/doc/ri/IORedirect/stop-i.yaml +0 -12
  1063. data/doc/ri/Indexable/body-i.yaml +0 -14
  1064. data/doc/ri/Indexable/cdesc-Indexable.yaml +0 -55
  1065. data/doc/ri/Indexable/ends-i.yaml +0 -16
  1066. data/doc/ri/Indexable/first%21-i.yaml +0 -14
  1067. data/doc/ri/Indexable/first%3d-i.yaml +0 -14
  1068. data/doc/ri/Indexable/first-i.yaml +0 -14
  1069. data/doc/ri/Indexable/foot-i.yaml +0 -14
  1070. data/doc/ri/Indexable/head-i.yaml +0 -14
  1071. data/doc/ri/Indexable/index_of-i.yaml +0 -16
  1072. data/doc/ri/Indexable/last%21-i.yaml +0 -14
  1073. data/doc/ri/Indexable/last%3d-i.yaml +0 -14
  1074. data/doc/ri/Indexable/last-i.yaml +0 -14
  1075. data/doc/ri/Indexable/mid-i.yaml +0 -16
  1076. data/doc/ri/Indexable/middle-i.yaml +0 -16
  1077. data/doc/ri/Indexable/pos-i.yaml +0 -14
  1078. data/doc/ri/Indexable/range-i.yaml +0 -14
  1079. data/doc/ri/Indexable/tail-i.yaml +0 -14
  1080. data/doc/ri/Indexable/thru-i.yaml +0 -14
  1081. data/doc/ri/InfinityClass/%2b%40-i.yaml +0 -12
  1082. data/doc/ri/InfinityClass/%2d%40-i.yaml +0 -12
  1083. data/doc/ri/InfinityClass/%3c%3d%3e-i.yaml +0 -12
  1084. data/doc/ri/InfinityClass/%3d%3d-i.yaml +0 -12
  1085. data/doc/ri/InfinityClass/Numeric/cdesc-Numeric.yaml +0 -27
  1086. data/doc/ri/InfinityClass/Numeric/finite%3f-i.yaml +0 -10
  1087. data/doc/ri/InfinityClass/Numeric/inf%3f-i.yaml +0 -12
  1088. data/doc/ri/InfinityClass/Numeric/infinite%3f-i.yaml +0 -11
  1089. data/doc/ri/InfinityClass/Numeric/nan%3f-i.yaml +0 -10
  1090. data/doc/ri/InfinityClass/Numeric/neginf%3f-i.yaml +0 -10
  1091. data/doc/ri/InfinityClass/Numeric/posinf%3f-i.yaml +0 -10
  1092. data/doc/ri/InfinityClass/cdesc-InfinityClass.yaml +0 -75
  1093. data/doc/ri/InfinityClass/coerce-i.yaml +0 -12
  1094. data/doc/ri/InfinityClass/new-c.yaml +0 -10
  1095. data/doc/ri/InfinityClass/times-i.yaml +0 -12
  1096. data/doc/ri/InfinityClass/to_f-i.yaml +0 -12
  1097. data/doc/ri/InfinityClass/to_s-i.yaml +0 -11
  1098. data/doc/ri/Ini/%5b%5d%3d-i.yaml +0 -12
  1099. data/doc/ri/Ini/%5b%5d-i.yaml +0 -12
  1100. data/doc/ri/Ini/cdesc-Ini.yaml +0 -51
  1101. data/doc/ri/Ini/new-c.yaml +0 -16
  1102. data/doc/ri/Ini/read_comment_from_file-c.yaml +0 -16
  1103. data/doc/ri/Ini/read_from_file-c.yaml +0 -16
  1104. data/doc/ri/Ini/restore-i.yaml +0 -12
  1105. data/doc/ri/Ini/to_s-c.yaml +0 -16
  1106. data/doc/ri/Ini/update-i.yaml +0 -12
  1107. data/doc/ri/Ini/write_to_file-c.yaml +0 -16
  1108. data/doc/ri/InstanceVariables/%3c%3c-i.yaml +0 -10
  1109. data/doc/ri/InstanceVariables/%5b%5d%3d-i.yaml +0 -10
  1110. data/doc/ri/InstanceVariables/%5b%5d-i.yaml +0 -10
  1111. data/doc/ri/InstanceVariables/atize-i.yaml +0 -10
  1112. data/doc/ri/InstanceVariables/cdesc-InstanceVariables.yaml +0 -38
  1113. data/doc/ri/InstanceVariables/each-i.yaml +0 -10
  1114. data/doc/ri/InstanceVariables/instance_delegate-i.yaml +0 -10
  1115. data/doc/ri/InstanceVariables/keys-i.yaml +0 -10
  1116. data/doc/ri/InstanceVariables/names-i.yaml +0 -10
  1117. data/doc/ri/InstanceVariables/new-c.yaml +0 -10
  1118. data/doc/ri/InstanceVariables/to_hash-i.yaml +0 -10
  1119. data/doc/ri/InstanceVariables/update-i.yaml +0 -10
  1120. data/doc/ri/InstanceVariables/values-i.yaml +0 -10
  1121. data/doc/ri/Instantiable/append_features-c.yaml +0 -10
  1122. data/doc/ri/Instantiable/cdesc-Instantiable.yaml +0 -24
  1123. data/doc/ri/Instantiable/new-i.yaml +0 -12
  1124. data/doc/ri/Instantise/append_features-c.yaml +0 -10
  1125. data/doc/ri/Instantise/cdesc-Instantise.yaml +0 -29
  1126. data/doc/ri/Instantise/singleton_method_added-i.yaml +0 -10
  1127. data/doc/ri/Integer/cdesc-Integer.yaml +0 -15
  1128. data/doc/ri/Interval/%2b%40-i.yaml +0 -12
  1129. data/doc/ri/Interval/%2d%40-i.yaml +0 -10
  1130. data/doc/ri/Interval/%3d%3d%3d-i.yaml +0 -12
  1131. data/doc/ri/Interval/%5b%5d-c.yaml +0 -10
  1132. data/doc/ri/Interval/%7e-i.yaml +0 -10
  1133. data/doc/ri/Interval/begin-i.yaml +0 -12
  1134. data/doc/ri/Interval/cdesc-Interval.yaml +0 -97
  1135. data/doc/ri/Interval/closed-i.yaml +0 -12
  1136. data/doc/ri/Interval/degenerate%3f-i.yaml +0 -12
  1137. data/doc/ri/Interval/direction-i.yaml +0 -14
  1138. data/doc/ri/Interval/distance-i.yaml +0 -15
  1139. data/doc/ri/Interval/each-i.yaml +0 -15
  1140. data/doc/ri/Interval/end-i.yaml +0 -12
  1141. data/doc/ri/Interval/eql%3f-i.yaml +0 -12
  1142. data/doc/ri/Interval/exclude_begin%3f-i.yaml +0 -12
  1143. data/doc/ri/Interval/exclude_end%3f-i.yaml +0 -12
  1144. data/doc/ri/Interval/exclude_first%3f-i.yaml +0 -12
  1145. data/doc/ri/Interval/exclude_last%3f-i.yaml +0 -11
  1146. data/doc/ri/Interval/first-i.yaml +0 -13
  1147. data/doc/ri/Interval/first_closed-i.yaml +0 -12
  1148. data/doc/ri/Interval/first_opened-i.yaml +0 -10
  1149. data/doc/ri/Interval/half_closed-i.yaml +0 -12
  1150. data/doc/ri/Interval/include%3f-i.yaml +0 -15
  1151. data/doc/ri/Interval/last-i.yaml +0 -11
  1152. data/doc/ri/Interval/last_closed-i.yaml +0 -10
  1153. data/doc/ri/Interval/last_opened-i.yaml +0 -10
  1154. data/doc/ri/Interval/length-i.yaml +0 -12
  1155. data/doc/ri/Interval/max-i.yaml +0 -12
  1156. data/doc/ri/Interval/member%3f-i.yaml +0 -12
  1157. data/doc/ri/Interval/min-i.yaml +0 -12
  1158. data/doc/ri/Interval/new-c.yaml +0 -10
  1159. data/doc/ri/Interval/null%3f-i.yaml +0 -12
  1160. data/doc/ri/Interval/opened-i.yaml +0 -12
  1161. data/doc/ri/Interval/reversed-i.yaml +0 -14
  1162. data/doc/ri/Interval/sentinels-i.yaml +0 -14
  1163. data/doc/ri/Interval/size-i.yaml +0 -12
  1164. data/doc/ri/Interval/step-i.yaml +0 -12
  1165. data/doc/ri/It/cdesc-It.yaml +0 -39
  1166. data/doc/ri/It/first%3f-i.yaml +0 -10
  1167. data/doc/ri/It/last%3f-i.yaml +0 -10
  1168. data/doc/ri/It/new-c.yaml +0 -10
  1169. data/doc/ri/It/next_iteration-i.yaml +0 -10
  1170. data/doc/ri/Kernel/cdesc-Kernel.yaml +0 -16
  1171. data/doc/ri/LRUCache/%5b%5d%3d-i.yaml +0 -12
  1172. data/doc/ri/LRUCache/%5b%5d-i.yaml +0 -12
  1173. data/doc/ri/LRUCache/Item/cdesc-Item.yaml +0 -28
  1174. data/doc/ri/LRUCache/Sentinel/cdesc-Sentinel.yaml +0 -18
  1175. data/doc/ri/LRUCache/cdesc-LRUCache.yaml +0 -65
  1176. data/doc/ri/LRUCache/clear-i.yaml +0 -12
  1177. data/doc/ri/LRUCache/delete-i.yaml +0 -12
  1178. data/doc/ri/LRUCache/first-i.yaml +0 -12
  1179. data/doc/ri/LRUCache/last-i.yaml +0 -13
  1180. data/doc/ri/LRUCache/lru-i.yaml +0 -12
  1181. data/doc/ri/LRUCache/lru_append-i.yaml +0 -12
  1182. data/doc/ri/LRUCache/lru_clear-i.yaml +0 -12
  1183. data/doc/ri/LRUCache/lru_delete-i.yaml +0 -12
  1184. data/doc/ri/LRUCache/lru_insert-i.yaml +0 -12
  1185. data/doc/ri/LRUCache/lru_join-i.yaml +0 -12
  1186. data/doc/ri/LRUCache/lru_touch-i.yaml +0 -12
  1187. data/doc/ri/LRUCache/new-c.yaml +0 -10
  1188. data/doc/ri/Lazy/DivergenceError/cdesc-DivergenceError.yaml +0 -17
  1189. data/doc/ri/Lazy/Future/cdesc-Future.yaml +0 -20
  1190. data/doc/ri/Lazy/LazyException/cdesc-LazyException.yaml +0 -19
  1191. data/doc/ri/Lazy/Promise/cdesc-Promise.yaml +0 -25
  1192. data/doc/ri/Lazy/PromiseSafe/cdesc-PromiseSafe.yaml +0 -20
  1193. data/doc/ri/Lazy/cdesc-Lazy.yaml +0 -20
  1194. data/doc/ri/LinkedList/%5b%5d%3d-i.yaml +0 -10
  1195. data/doc/ri/LinkedList/%5b%5d-i.yaml +0 -10
  1196. data/doc/ri/LinkedList/Node/cdesc-Node.yaml +0 -33
  1197. data/doc/ri/LinkedList/Node/new-c.yaml +0 -10
  1198. data/doc/ri/LinkedList/cdesc-LinkedList.yaml +0 -57
  1199. data/doc/ri/LinkedList/delete-i.yaml +0 -10
  1200. data/doc/ri/LinkedList/each-i.yaml +0 -10
  1201. data/doc/ri/LinkedList/empty%3f-i.yaml +0 -10
  1202. data/doc/ri/LinkedList/first-i.yaml +0 -10
  1203. data/doc/ri/LinkedList/last-i.yaml +0 -10
  1204. data/doc/ri/LinkedList/length-i.yaml +0 -10
  1205. data/doc/ri/LinkedList/new-c.yaml +0 -10
  1206. data/doc/ri/LinkedList/node_delete-i.yaml +0 -10
  1207. data/doc/ri/LinkedList/node_join-i.yaml +0 -10
  1208. data/doc/ri/LinkedList/node_purge-i.yaml +0 -10
  1209. data/doc/ri/LinkedList/pop-i.yaml +0 -10
  1210. data/doc/ri/LinkedList/push-i.yaml +0 -10
  1211. data/doc/ri/LinkedList/queue-i.yaml +0 -10
  1212. data/doc/ri/LinkedList/shift-i.yaml +0 -10
  1213. data/doc/ri/LinkedList/to_a-i.yaml +0 -10
  1214. data/doc/ri/LinkedList/unshift-i.yaml +0 -10
  1215. data/doc/ri/Logger/Ansicolor/cdesc-Ansicolor.yaml +0 -36
  1216. data/doc/ri/Logger/Ansicolor/debug-i.yaml +0 -10
  1217. data/doc/ri/Logger/Ansicolor/debug_with_color-i.yaml +0 -10
  1218. data/doc/ri/Logger/Ansicolor/error-i.yaml +0 -10
  1219. data/doc/ri/Logger/Ansicolor/error_with_color-i.yaml +0 -10
  1220. data/doc/ri/Logger/Ansicolor/fatal-i.yaml +0 -10
  1221. data/doc/ri/Logger/Ansicolor/fatal_with_color-i.yaml +0 -10
  1222. data/doc/ri/Logger/Ansicolor/info-i.yaml +0 -10
  1223. data/doc/ri/Logger/Ansicolor/info_with_color-i.yaml +0 -10
  1224. data/doc/ri/Logger/Ansicolor/warn-i.yaml +0 -10
  1225. data/doc/ri/Logger/Ansicolor/warn_with_color-i.yaml +0 -10
  1226. data/doc/ri/Logger/LogDevice/ansicolor%3f-i.yaml +0 -10
  1227. data/doc/ri/Logger/LogDevice/cdesc-LogDevice.yaml +0 -19
  1228. data/doc/ri/Logger/ansicolor%3d-i.yaml +0 -10
  1229. data/doc/ri/Logger/cdesc-Logger.yaml +0 -44
  1230. data/doc/ri/Logger/format_procedure-i.yaml +0 -10
  1231. data/doc/ri/Logger/setup_format-i.yaml +0 -21
  1232. data/doc/ri/MatchData/cdesc-MatchData.yaml +0 -20
  1233. data/doc/ri/MatchData/match-i.yaml +0 -14
  1234. data/doc/ri/MatchData/matchset-i.yaml +0 -14
  1235. data/doc/ri/MatchData/matchtree-i.yaml +0 -14
  1236. data/doc/ri/Method/cdesc-Method.yaml +0 -15
  1237. data/doc/ri/MissingArgument/cdesc-MissingArgument.yaml +0 -17
  1238. data/doc/ri/Module/%2a-i.yaml +0 -14
  1239. data/doc/ri/Module/%2b-i.yaml +0 -22
  1240. data/doc/ri/Module/%2d-i.yaml +0 -14
  1241. data/doc/ri/Module/Comparable-i.yaml +0 -18
  1242. data/doc/ri/Module/Equatable-i.yaml +0 -18
  1243. data/doc/ri/Module/abstract-i.yaml +0 -14
  1244. data/doc/ri/Module/alias_accessor%21-i.yaml +0 -17
  1245. data/doc/ri/Module/alias_accessor-i.yaml +0 -14
  1246. data/doc/ri/Module/alias_method_chain-i.yaml +0 -32
  1247. data/doc/ri/Module/alias_module_function-i.yaml +0 -14
  1248. data/doc/ri/Module/alias_reader%21-i.yaml +0 -17
  1249. data/doc/ri/Module/alias_reader%3f-i.yaml +0 -12
  1250. data/doc/ri/Module/alias_reader-i.yaml +0 -12
  1251. data/doc/ri/Module/alias_setter-i.yaml +0 -14
  1252. data/doc/ri/Module/alias_switcher-i.yaml +0 -12
  1253. data/doc/ri/Module/alias_tester-i.yaml +0 -12
  1254. data/doc/ri/Module/alias_toggler-i.yaml +0 -12
  1255. data/doc/ri/Module/alias_validator-i.yaml +0 -12
  1256. data/doc/ri/Module/alias_writer%21-i.yaml +0 -14
  1257. data/doc/ri/Module/alias_writer-i.yaml +0 -12
  1258. data/doc/ri/Module/all_instance_methods-i.yaml +0 -18
  1259. data/doc/ri/Module/ancestor%3f-i.yaml +0 -14
  1260. data/doc/ri/Module/ann%21-i.yaml +0 -12
  1261. data/doc/ri/Module/ann-i.yaml +0 -12
  1262. data/doc/ri/Module/annotations-i.yaml +0 -10
  1263. data/doc/ri/Module/append_features-c.yaml +0 -10
  1264. data/doc/ri/Module/append_features-i.yaml +0 -11
  1265. data/doc/ri/Module/append_features_without_class_extension-i.yaml +0 -12
  1266. data/doc/ri/Module/attr-i.yaml +0 -10
  1267. data/doc/ri/Module/attr_accessor%21-i.yaml +0 -21
  1268. data/doc/ri/Module/attr_reader%21-i.yaml +0 -21
  1269. data/doc/ri/Module/attr_reader%3f-i.yaml +0 -12
  1270. data/doc/ri/Module/attr_setter-i.yaml +0 -18
  1271. data/doc/ri/Module/attr_switcher-i.yaml +0 -12
  1272. data/doc/ri/Module/attr_tester-i.yaml +0 -12
  1273. data/doc/ri/Module/attr_toggler-i.yaml +0 -12
  1274. data/doc/ri/Module/attr_validator-i.yaml +0 -14
  1275. data/doc/ri/Module/attr_writer%21-i.yaml +0 -18
  1276. data/doc/ri/Module/basename-i.yaml +0 -18
  1277. data/doc/ri/Module/cdesc-Module.yaml +0 -192
  1278. data/doc/ri/Module/class_def-i.yaml +0 -14
  1279. data/doc/ri/Module/class_extension-i.yaml +0 -17
  1280. data/doc/ri/Module/class_inherit-i.yaml +0 -12
  1281. data/doc/ri/Module/class_load-i.yaml +0 -12
  1282. data/doc/ri/Module/class_methods-i.yaml +0 -11
  1283. data/doc/ri/Module/class_require-i.yaml +0 -12
  1284. data/doc/ri/Module/classified_attributes-i.yaml +0 -14
  1285. data/doc/ri/Module/conflict%3f-i.yaml +0 -14
  1286. data/doc/ri/Module/define_dependency-i.yaml +0 -11
  1287. data/doc/ri/Module/depend-i.yaml +0 -11
  1288. data/doc/ri/Module/dependencies-i.yaml +0 -12
  1289. data/doc/ri/Module/heritage-i.yaml +0 -10
  1290. data/doc/ri/Module/include_as-i.yaml +0 -14
  1291. data/doc/ri/Module/include_function_module-i.yaml +0 -14
  1292. data/doc/ri/Module/instance_method%21-i.yaml +0 -16
  1293. data/doc/ri/Module/instance_method_defined%3f-i.yaml +0 -14
  1294. data/doc/ri/Module/integrate-i.yaml +0 -20
  1295. data/doc/ri/Module/is%3f-i.yaml +0 -14
  1296. data/doc/ri/Module/is-i.yaml +0 -12
  1297. data/doc/ri/Module/memoize-i.yaml +0 -14
  1298. data/doc/ri/Module/method_overloads-i.yaml +0 -10
  1299. data/doc/ri/Module/method_space-i.yaml +0 -14
  1300. data/doc/ri/Module/methodize-i.yaml +0 -14
  1301. data/doc/ri/Module/mixin_parameters-i.yaml +0 -17
  1302. data/doc/ri/Module/mixin_params-i.yaml +0 -12
  1303. data/doc/ri/Module/modspace-i.yaml +0 -18
  1304. data/doc/ri/Module/module_load-i.yaml +0 -15
  1305. data/doc/ri/Module/module_method_defined%3f-i.yaml +0 -12
  1306. data/doc/ri/Module/module_require-i.yaml +0 -15
  1307. data/doc/ri/Module/nesting-i.yaml +0 -14
  1308. data/doc/ri/Module/overload-i.yaml +0 -14
  1309. data/doc/ri/Module/pathize-i.yaml +0 -16
  1310. data/doc/ri/Module/prepend-i.yaml +0 -14
  1311. data/doc/ri/Module/private_conflict%3f-i.yaml +0 -12
  1312. data/doc/ri/Module/protected_conflict%3f-i.yaml +0 -12
  1313. data/doc/ri/Module/public_conflict%3f-i.yaml +0 -12
  1314. data/doc/ri/Module/redef-i.yaml +0 -12
  1315. data/doc/ri/Module/redefine_method-i.yaml +0 -17
  1316. data/doc/ri/Module/redirect-i.yaml +0 -12
  1317. data/doc/ri/Module/redirect_method-i.yaml +0 -21
  1318. data/doc/ri/Module/rename-i.yaml +0 -12
  1319. data/doc/ri/Module/rename_method-i.yaml +0 -15
  1320. data/doc/ri/Module/revisal-i.yaml +0 -12
  1321. data/doc/ri/Module/revise-i.yaml +0 -15
  1322. data/doc/ri/Module/setting-i.yaml +0 -21
  1323. data/doc/ri/Module/singleton_method_defined%3f-i.yaml +0 -15
  1324. data/doc/ri/Module/spacename-i.yaml +0 -20
  1325. data/doc/ri/Module/wrap-i.yaml +0 -12
  1326. data/doc/ri/Module/wrap_method-i.yaml +0 -19
  1327. data/doc/ri/Multiton/Inclusive/cdesc-Inclusive.yaml +0 -18
  1328. data/doc/ri/Multiton/Inclusive/included-i.yaml +0 -10
  1329. data/doc/ri/Multiton/InstanceMutex/cdesc-InstanceMutex.yaml +0 -17
  1330. data/doc/ri/Multiton/MetaMethods/_load-i.yaml +0 -10
  1331. data/doc/ri/Multiton/MetaMethods/cdesc-MetaMethods.yaml +0 -34
  1332. data/doc/ri/Multiton/MetaMethods/initialized%3f-i.yaml +0 -10
  1333. data/doc/ri/Multiton/MetaMethods/instance-i.yaml +0 -11
  1334. data/doc/ri/Multiton/MetaMethods/multiton_id-i.yaml +0 -12
  1335. data/doc/ri/Multiton/MetaMethods/multiton_instance-i.yaml +0 -10
  1336. data/doc/ri/Multiton/MetaMethods/multiton_mutex-i.yaml +0 -10
  1337. data/doc/ri/Multiton/MetaMethods/new-i.yaml +0 -12
  1338. data/doc/ri/Multiton/MetaMethods/reinitialize-i.yaml +0 -10
  1339. data/doc/ri/Multiton/MetaMethods/singleton_method_added-i.yaml +0 -10
  1340. data/doc/ri/Multiton/_dump-i.yaml +0 -12
  1341. data/doc/ri/Multiton/cdesc-Multiton.yaml +0 -40
  1342. data/doc/ri/Multiton/clone-i.yaml +0 -12
  1343. data/doc/ri/Multiton/dup-i.yaml +0 -10
  1344. data/doc/ri/NackClass/cdesc-NackClass.yaml +0 -20
  1345. data/doc/ri/Net/SMTP/cdesc-SMTP.yaml +0 -25
  1346. data/doc/ri/Net/SMTP/do_helo-i.yaml +0 -10
  1347. data/doc/ri/Net/SMTP/do_tls_start-i.yaml +0 -10
  1348. data/doc/ri/Net/SMTP/quit-i.yaml +0 -10
  1349. data/doc/ri/Net/SMTP/start-c.yaml +0 -10
  1350. data/doc/ri/Net/SMTP/start-i.yaml +0 -10
  1351. data/doc/ri/Net/SMTP/starttls-i.yaml +0 -10
  1352. data/doc/ri/Net/cdesc-Net.yaml +0 -15
  1353. data/doc/ri/NilClass/cdesc-NilClass.yaml +0 -17
  1354. data/doc/ri/NullClass/%5b%5d-i.yaml +0 -10
  1355. data/doc/ri/NullClass/cdesc-NullClass.yaml +0 -32
  1356. data/doc/ri/NullClass/inspect-i.yaml +0 -10
  1357. data/doc/ri/NullClass/method_missing-i.yaml +0 -10
  1358. data/doc/ri/NullClass/new-c.yaml +0 -10
  1359. data/doc/ri/NullClass/nil%3f-i.yaml +0 -10
  1360. data/doc/ri/NullClass/null%3f-i.yaml +0 -10
  1361. data/doc/ri/Numeric/cdesc-Numeric.yaml +0 -26
  1362. data/doc/ri/Object/cdesc-Object.yaml +0 -15
  1363. data/doc/ri/ObjectReflection/_bind_method-i.yaml +0 -10
  1364. data/doc/ri/ObjectReflection/cdesc-ObjectReflection.yaml +0 -28
  1365. data/doc/ri/ObjectReflection/id-i.yaml +0 -11
  1366. data/doc/ri/ObjectReflection/method_missing-i.yaml +0 -16
  1367. data/doc/ri/ObjectReflection/new-c.yaml +0 -11
  1368. data/doc/ri/OpEsc/cdesc-OpEsc.yaml +0 -30
  1369. data/doc/ri/OpEsc/escape-c.yaml +0 -14
  1370. data/doc/ri/OpenCascade/cdesc-OpenCascade.yaml +0 -25
  1371. data/doc/ri/OpenCascade/method_missing-i.yaml +0 -10
  1372. data/doc/ri/OpenCollection/cdesc-OpenCollection.yaml +0 -22
  1373. data/doc/ri/OpenCollection/method_missing-i.yaml +0 -10
  1374. data/doc/ri/OpenCollection/new-c.yaml +0 -10
  1375. data/doc/ri/OpenHash/cdesc-OpenHash.yaml +0 -22
  1376. data/doc/ri/OpenHash/method_missing-i.yaml +0 -12
  1377. data/doc/ri/OpenHash/new-c.yaml +0 -12
  1378. data/doc/ri/OpenObject/%3d%3d-i.yaml +0 -12
  1379. data/doc/ri/OpenObject/%5b%5d%3d-i.yaml +0 -10
  1380. data/doc/ri/OpenObject/%5b%5d-c.yaml +0 -10
  1381. data/doc/ri/OpenObject/%5b%5d-i.yaml +0 -10
  1382. data/doc/ri/OpenObject/as_hash%21-i.yaml +0 -12
  1383. data/doc/ri/OpenObject/cdesc-OpenObject.yaml +0 -77
  1384. data/doc/ri/OpenObject/default%21-i.yaml +0 -12
  1385. data/doc/ri/OpenObject/define_slot-i.yaml +0 -10
  1386. data/doc/ri/OpenObject/delete-i.yaml +0 -11
  1387. data/doc/ri/OpenObject/each-i.yaml +0 -12
  1388. data/doc/ri/OpenObject/fetch-i.yaml +0 -10
  1389. data/doc/ri/OpenObject/initialize_copy-i.yaml +0 -10
  1390. data/doc/ri/OpenObject/inspect-i.yaml +0 -12
  1391. data/doc/ri/OpenObject/merge-i.yaml +0 -12
  1392. data/doc/ri/OpenObject/method_missing-i.yaml +0 -10
  1393. data/doc/ri/OpenObject/new-c.yaml +0 -14
  1394. data/doc/ri/OpenObject/protect_slot-i.yaml +0 -10
  1395. data/doc/ri/OpenObject/store-i.yaml +0 -10
  1396. data/doc/ri/OpenObject/to_a-i.yaml +0 -12
  1397. data/doc/ri/OpenObject/to_h-i.yaml +0 -10
  1398. data/doc/ri/OpenObject/to_hash-i.yaml +0 -10
  1399. data/doc/ri/OpenObject/to_openobject-i.yaml +0 -10
  1400. data/doc/ri/OpenObject/to_proc-i.yaml +0 -10
  1401. data/doc/ri/OpenObject/update-i.yaml +0 -12
  1402. data/doc/ri/OpenStruct/%5b%5d%3d-i.yaml +0 -14
  1403. data/doc/ri/OpenStruct/%5b%5d-i.yaml +0 -14
  1404. data/doc/ri/OpenStruct/__merge__-i.yaml +0 -14
  1405. data/doc/ri/OpenStruct/__update__-i.yaml +0 -14
  1406. data/doc/ri/OpenStruct/cdesc-OpenStruct.yaml +0 -35
  1407. data/doc/ri/OpenStruct/each-i.yaml +0 -11
  1408. data/doc/ri/OpenStruct/instance_delegate-i.yaml +0 -19
  1409. data/doc/ri/OpenStruct/new-c.yaml +0 -18
  1410. data/doc/ri/OpenStruct/ostruct_delegate-i.yaml +0 -12
  1411. data/doc/ri/OpenStruct/ostruct_merge-i.yaml +0 -14
  1412. data/doc/ri/OpenStruct/ostruct_update-i.yaml +0 -14
  1413. data/doc/ri/OpenStruct/to_h-i.yaml +0 -11
  1414. data/doc/ri/PQueue/%3c%3c-i.yaml +0 -12
  1415. data/doc/ri/PQueue/%3d%3d-i.yaml +0 -12
  1416. data/doc/ri/PQueue/cdesc-PQueue.yaml +0 -77
  1417. data/doc/ri/PQueue/clear-i.yaml +0 -12
  1418. data/doc/ri/PQueue/downheap-i.yaml +0 -14
  1419. data/doc/ri/PQueue/each_pop-i.yaml +0 -12
  1420. data/doc/ri/PQueue/empty%3f-i.yaml +0 -12
  1421. data/doc/ri/PQueue/heapify-i.yaml +0 -12
  1422. data/doc/ri/PQueue/include%3f-i.yaml +0 -12
  1423. data/doc/ri/PQueue/initialize_copy-i.yaml +0 -10
  1424. data/doc/ri/PQueue/inspect-i.yaml +0 -12
  1425. data/doc/ri/PQueue/merge-i.yaml +0 -12
  1426. data/doc/ri/PQueue/new-c.yaml +0 -18
  1427. data/doc/ri/PQueue/pop-i.yaml +0 -18
  1428. data/doc/ri/PQueue/pop_array-i.yaml +0 -12
  1429. data/doc/ri/PQueue/push-i.yaml +0 -15
  1430. data/doc/ri/PQueue/push_all-i.yaml +0 -15
  1431. data/doc/ri/PQueue/replace-i.yaml +0 -14
  1432. data/doc/ri/PQueue/replace_top-i.yaml +0 -14
  1433. data/doc/ri/PQueue/sort-i.yaml +0 -12
  1434. data/doc/ri/PQueue/to_a-i.yaml +0 -13
  1435. data/doc/ri/PQueue/top-i.yaml +0 -12
  1436. data/doc/ri/PQueue/upheap-i.yaml +0 -14
  1437. data/doc/ri/Paramix/Delegator/%5b%5d-i.yaml +0 -10
  1438. data/doc/ri/Paramix/Delegator/append_features-i.yaml +0 -11
  1439. data/doc/ri/Paramix/Delegator/cdesc-Delegator.yaml +0 -33
  1440. data/doc/ri/Paramix/Delegator/extend_object-i.yaml +0 -11
  1441. data/doc/ri/Paramix/Delegator/new-c.yaml +0 -11
  1442. data/doc/ri/Paramix/append_features-c.yaml +0 -10
  1443. data/doc/ri/Paramix/cdesc-Paramix.yaml +0 -41
  1444. data/doc/ri/Paramix/new-c.yaml +0 -12
  1445. data/doc/ri/PathList/Finder/cdesc-Finder.yaml +0 -21
  1446. data/doc/ri/PathList/Finder/find-i.yaml +0 -11
  1447. data/doc/ri/PathList/Finder/include%3f-i.yaml +0 -12
  1448. data/doc/ri/PathList/cdesc-PathList.yaml +0 -28
  1449. data/doc/ri/PathList/new-c.yaml +0 -10
  1450. data/doc/ri/PathList/to_s-i.yaml +0 -10
  1451. data/doc/ri/Pathname/%2f-c.yaml +0 -14
  1452. data/doc/ri/Pathname/%5b%5d-c.yaml +0 -14
  1453. data/doc/ri/Pathname/cdesc-Pathname.yaml +0 -27
  1454. data/doc/ri/Pathname/home-c.yaml +0 -14
  1455. data/doc/ri/Pathname/null-c.yaml +0 -12
  1456. data/doc/ri/Pathname/root-c.yaml +0 -12
  1457. data/doc/ri/Pathname/rootname-i.yaml +0 -11
  1458. data/doc/ri/Pathname/work-c.yaml +0 -12
  1459. data/doc/ri/Platform/%3d%3d%3d-i.yaml +0 -10
  1460. data/doc/ri/Platform/%3d%3d-i.yaml +0 -10
  1461. data/doc/ri/Platform/%3d%7e-i.yaml +0 -10
  1462. data/doc/ri/Platform/cdesc-Platform.yaml +0 -65
  1463. data/doc/ri/Platform/const_missing-c.yaml +0 -10
  1464. data/doc/ri/Platform/inspect-i.yaml +0 -10
  1465. data/doc/ri/Platform/local-c.yaml +0 -10
  1466. data/doc/ri/Platform/match-c.yaml +0 -10
  1467. data/doc/ri/Platform/new-c.yaml +0 -10
  1468. data/doc/ri/Platform/supported-c.yaml +0 -12
  1469. data/doc/ri/Platform/to_a-i.yaml +0 -10
  1470. data/doc/ri/Platform/to_s-i.yaml +0 -10
  1471. data/doc/ri/Pool/cdesc-Pool.yaml +0 -27
  1472. data/doc/ri/Pool/new-c.yaml +0 -10
  1473. data/doc/ri/Pool/obtain-i.yaml +0 -12
  1474. data/doc/ri/Pool/pop-i.yaml +0 -12
  1475. data/doc/ri/Pool/push-i.yaml +0 -12
  1476. data/doc/ri/Proc/%2a-i.yaml +0 -14
  1477. data/doc/ri/Proc/bind-i.yaml +0 -16
  1478. data/doc/ri/Proc/cdesc-Proc.yaml +0 -28
  1479. data/doc/ri/Proc/compose-i.yaml +0 -14
  1480. data/doc/ri/Proc/curry-i.yaml +0 -14
  1481. data/doc/ri/Proc/partial-i.yaml +0 -20
  1482. data/doc/ri/Proc/to_method-i.yaml +0 -14
  1483. data/doc/ri/Proc/to_openobject-i.yaml +0 -16
  1484. data/doc/ri/ProgressBar/bar-i.yaml +0 -10
  1485. data/doc/ri/ProgressBar/bar_mark%3d-i.yaml +0 -10
  1486. data/doc/ri/ProgressBar/bytes-i.yaml +0 -10
  1487. data/doc/ri/ProgressBar/cdesc-ProgressBar.yaml +0 -76
  1488. data/doc/ri/ProgressBar/convert_bytes-i.yaml +0 -10
  1489. data/doc/ri/ProgressBar/elapsed-i.yaml +0 -10
  1490. data/doc/ri/ProgressBar/eol-i.yaml +0 -10
  1491. data/doc/ri/ProgressBar/eta-i.yaml +0 -12
  1492. data/doc/ri/ProgressBar/file_transfer_mode-i.yaml +0 -10
  1493. data/doc/ri/ProgressBar/finish-i.yaml +0 -10
  1494. data/doc/ri/ProgressBar/flush-i.yaml +0 -10
  1495. data/doc/ri/ProgressBar/format%3d-i.yaml +0 -10
  1496. data/doc/ri/ProgressBar/format_arguments%3d-i.yaml +0 -10
  1497. data/doc/ri/ProgressBar/format_time-i.yaml +0 -10
  1498. data/doc/ri/ProgressBar/get_width-i.yaml +0 -10
  1499. data/doc/ri/ProgressBar/halt-i.yaml +0 -10
  1500. data/doc/ri/ProgressBar/inc-i.yaml +0 -10
  1501. data/doc/ri/ProgressBar/inspect-i.yaml +0 -10
  1502. data/doc/ri/ProgressBar/new-c.yaml +0 -10
  1503. data/doc/ri/ProgressBar/percentage-i.yaml +0 -10
  1504. data/doc/ri/ProgressBar/set-i.yaml +0 -10
  1505. data/doc/ri/ProgressBar/show-i.yaml +0 -10
  1506. data/doc/ri/ProgressBar/show_progress-i.yaml +0 -10
  1507. data/doc/ri/ProgressBar/stat-i.yaml +0 -10
  1508. data/doc/ri/ProgressBar/stat_for_file_transfer-i.yaml +0 -10
  1509. data/doc/ri/ProgressBar/title%3d-i.yaml +0 -10
  1510. data/doc/ri/ProgressBar/title-i.yaml +0 -10
  1511. data/doc/ri/ProgressBar/total_overflow%3d-i.yaml +0 -10
  1512. data/doc/ri/ProgressBar/transfer_rate-i.yaml +0 -10
  1513. data/doc/ri/Prototype/cdesc-Prototype.yaml +0 -30
  1514. data/doc/ri/Prototype/fn-i.yaml +0 -10
  1515. data/doc/ri/Prototype/meta-i.yaml +0 -10
  1516. data/doc/ri/Prototype/method_missing-i.yaml +0 -10
  1517. data/doc/ri/Prototype/new-c.yaml +0 -12
  1518. data/doc/ri/Prototype/new-i.yaml +0 -10
  1519. data/doc/ri/Prototype/trait-i.yaml +0 -10
  1520. data/doc/ri/Prototype/traits-i.yaml +0 -10
  1521. data/doc/ri/RWDelegator/%3d%3d-i.yaml +0 -10
  1522. data/doc/ri/RWDelegator/cdesc-RWDelegator.yaml +0 -28
  1523. data/doc/ri/RWDelegator/inspect-i.yaml +0 -10
  1524. data/doc/ri/RWDelegator/method_missing-i.yaml +0 -10
  1525. data/doc/ri/RWDelegator/new-c.yaml +0 -10
  1526. data/doc/ri/Random/Array/at_rand%21-i.yaml +0 -14
  1527. data/doc/ri/Random/Array/at_rand-i.yaml +0 -14
  1528. data/doc/ri/Random/Array/cdesc-Array.yaml +0 -31
  1529. data/doc/ri/Random/Array/pick%21-i.yaml +0 -12
  1530. data/doc/ri/Random/Array/pick-i.yaml +0 -12
  1531. data/doc/ri/Random/Array/rand_index-i.yaml +0 -12
  1532. data/doc/ri/Random/Array/rand_subset-i.yaml +0 -18
  1533. data/doc/ri/Random/Array/shuffle%21-i.yaml +0 -16
  1534. data/doc/ri/Random/Array/shuffle-i.yaml +0 -14
  1535. data/doc/ri/Random/Hash/at_rand%21-i.yaml +0 -12
  1536. data/doc/ri/Random/Hash/at_rand-i.yaml +0 -12
  1537. data/doc/ri/Random/Hash/cdesc-Hash.yaml +0 -41
  1538. data/doc/ri/Random/Hash/pick-i.yaml +0 -12
  1539. data/doc/ri/Random/Hash/pick_key-i.yaml +0 -12
  1540. data/doc/ri/Random/Hash/pick_pair-i.yaml +0 -12
  1541. data/doc/ri/Random/Hash/rand_key%21-i.yaml +0 -15
  1542. data/doc/ri/Random/Hash/rand_key-i.yaml +0 -14
  1543. data/doc/ri/Random/Hash/rand_pair%21-i.yaml +0 -15
  1544. data/doc/ri/Random/Hash/rand_pair-i.yaml +0 -14
  1545. data/doc/ri/Random/Hash/rand_value%21-i.yaml +0 -17
  1546. data/doc/ri/Random/Hash/rand_value-i.yaml +0 -15
  1547. data/doc/ri/Random/Hash/shuffle%21-i.yaml +0 -14
  1548. data/doc/ri/Random/Hash/shuffle-i.yaml +0 -14
  1549. data/doc/ri/Random/Object/cdesc-Object.yaml +0 -16
  1550. data/doc/ri/Random/Object/maybe-i.yaml +0 -14
  1551. data/doc/ri/Random/String/Self/cdesc-Self.yaml +0 -20
  1552. data/doc/ri/Random/String/Self/rand_letter-i.yaml +0 -14
  1553. data/doc/ri/Random/String/Self/random-i.yaml +0 -12
  1554. data/doc/ri/Random/String/at_rand%21-i.yaml +0 -14
  1555. data/doc/ri/Random/String/at_rand-i.yaml +0 -14
  1556. data/doc/ri/Random/String/cdesc-String.yaml +0 -30
  1557. data/doc/ri/Random/String/included-c.yaml +0 -10
  1558. data/doc/ri/Random/String/rand_byte%21-i.yaml +0 -14
  1559. data/doc/ri/Random/String/rand_byte-i.yaml +0 -14
  1560. data/doc/ri/Random/String/rand_index-i.yaml +0 -14
  1561. data/doc/ri/Random/String/shuffle%21-i.yaml +0 -12
  1562. data/doc/ri/Random/String/shuffle-i.yaml +0 -14
  1563. data/doc/ri/Random/append_features-c.yaml +0 -11
  1564. data/doc/ri/Random/cdesc-Random.yaml +0 -31
  1565. data/doc/ri/Random/number-c.yaml +0 -11
  1566. data/doc/ri/Range/cdesc-Range.yaml +0 -27
  1567. data/doc/ri/Range/combine-c.yaml +0 -14
  1568. data/doc/ri/Range/combine-i.yaml +0 -14
  1569. data/doc/ri/Range/overlap%3f-i.yaml +0 -14
  1570. data/doc/ri/Range/to_r-i.yaml +0 -14
  1571. data/doc/ri/Range/to_range-i.yaml +0 -16
  1572. data/doc/ri/Range/umbrella-i.yaml +0 -20
  1573. data/doc/ri/Range/within%3f-i.yaml +0 -14
  1574. data/doc/ri/Recorder/__call__-i.yaml +0 -10
  1575. data/doc/ri/Recorder/cdesc-Recorder.yaml +0 -34
  1576. data/doc/ri/Recorder/inspect-i.yaml +0 -10
  1577. data/doc/ri/Recorder/method_missing-i.yaml +0 -10
  1578. data/doc/ri/Recorder/new-c.yaml +0 -11
  1579. data/doc/ri/RecursiveDependency/cdesc-RecursiveDependency.yaml +0 -15
  1580. data/doc/ri/Reference/__value__-i.yaml +0 -11
  1581. data/doc/ri/Reference/become-i.yaml +0 -10
  1582. data/doc/ri/Reference/cdesc-Reference.yaml +0 -30
  1583. data/doc/ri/Reference/instance_delegate-i.yaml +0 -12
  1584. data/doc/ri/Reference/method_missing-i.yaml +0 -10
  1585. data/doc/ri/Reference/new-c.yaml +0 -10
  1586. data/doc/ri/Regexp/arity-i.yaml +0 -18
  1587. data/doc/ri/Regexp/cdesc-Regexp.yaml +0 -20
  1588. data/doc/ri/Regexp/to_re-i.yaml +0 -16
  1589. data/doc/ri/Regexp/to_regexp-i.yaml +0 -16
  1590. data/doc/ri/Registerable/cdesc-Registerable.yaml +0 -23
  1591. data/doc/ri/Registerable/register-i.yaml +0 -12
  1592. data/doc/ri/Registerable/registry-i.yaml +0 -12
  1593. data/doc/ri/Registerable/registry_invalid%3f-i.yaml +0 -11
  1594. data/doc/ri/Semaphore/cdesc-Semaphore.yaml +0 -36
  1595. data/doc/ri/Semaphore/down-i.yaml +0 -12
  1596. data/doc/ri/Semaphore/exclusive-i.yaml +0 -11
  1597. data/doc/ri/Semaphore/new-c.yaml +0 -10
  1598. data/doc/ri/Semaphore/p-i.yaml +0 -12
  1599. data/doc/ri/Semaphore/signal-i.yaml +0 -13
  1600. data/doc/ri/Semaphore/synchronize-i.yaml +0 -12
  1601. data/doc/ri/Semaphore/up-i.yaml +0 -12
  1602. data/doc/ri/Semaphore/v-i.yaml +0 -12
  1603. data/doc/ri/Semaphore/wait-i.yaml +0 -13
  1604. data/doc/ri/Set/cdesc-Set.yaml +0 -16
  1605. data/doc/ri/Set/power_set-i.yaml +0 -10
  1606. data/doc/ri/Settings/Setting/cdesc-Setting.yaml +0 -42
  1607. data/doc/ri/Settings/Setting/new-c.yaml +0 -10
  1608. data/doc/ri/Settings/Setting/to_s-i.yaml +0 -12
  1609. data/doc/ri/Settings/Setting/update-i.yaml +0 -12
  1610. data/doc/ri/Settings/SettingCollection/cdesc-SettingCollection.yaml +0 -23
  1611. data/doc/ri/Settings/SettingCollection/method_missing-i.yaml +0 -12
  1612. data/doc/ri/Settings/add_setting-c.yaml +0 -17
  1613. data/doc/ri/Settings/cdesc-Settings.yaml +0 -33
  1614. data/doc/ri/Settings/load-c.yaml +0 -12
  1615. data/doc/ri/Settings/method_missing-c.yaml +0 -10
  1616. data/doc/ri/Settings/parse-c.yaml +0 -12
  1617. data/doc/ri/Settings/settings-c.yaml +0 -12
  1618. data/doc/ri/Settings/setup-c.yaml +0 -15
  1619. data/doc/ri/Shellwords/cdesc-Shellwords.yaml +0 -16
  1620. data/doc/ri/Shellwords/escape-i.yaml +0 -12
  1621. data/doc/ri/SimpleStringIO/cdesc-SimpleStringIO.yaml +0 -20
  1622. data/doc/ri/SimpleStringIO/new-c.yaml +0 -10
  1623. data/doc/ri/SimpleStringIO/write-i.yaml +0 -10
  1624. data/doc/ri/Snapshot/ValueHolder/cdesc-ValueHolder.yaml +0 -24
  1625. data/doc/ri/Snapshot/ValueHolder/new-c.yaml +0 -10
  1626. data/doc/ri/Snapshot/ValueHolder/restore_snapshot-i.yaml +0 -10
  1627. data/doc/ri/Snapshot/ValueHolder/take_snapshot-i.yaml +0 -10
  1628. data/doc/ri/Snapshot/add-i.yaml +0 -10
  1629. data/doc/ri/Snapshot/cdesc-Snapshot.yaml +0 -36
  1630. data/doc/ri/Snapshot/new-c.yaml +0 -10
  1631. data/doc/ri/Snapshot/restore-i.yaml +0 -10
  1632. data/doc/ri/Stackable/cdesc-Stackable.yaml +0 -33
  1633. data/doc/ri/Stackable/peek-i.yaml +0 -14
  1634. data/doc/ri/Stackable/poke-i.yaml +0 -15
  1635. data/doc/ri/Stackable/pop-i.yaml +0 -14
  1636. data/doc/ri/Stackable/pull-i.yaml +0 -15
  1637. data/doc/ri/Stackable/push-i.yaml +0 -14
  1638. data/doc/ri/Stackable/shift-i.yaml +0 -12
  1639. data/doc/ri/Stackable/unshift-i.yaml +0 -12
  1640. data/doc/ri/String/Style/camelize-c.yaml +0 -18
  1641. data/doc/ri/String/Style/capitalize-c.yaml +0 -12
  1642. data/doc/ri/String/Style/cdesc-Style.yaml +0 -69
  1643. data/doc/ri/String/Style/classify-c.yaml +0 -20
  1644. data/doc/ri/String/Style/dasherize-c.yaml +0 -16
  1645. data/doc/ri/String/Style/demodulize-c.yaml +0 -16
  1646. data/doc/ri/String/Style/downcase-c.yaml +0 -12
  1647. data/doc/ri/String/Style/foreign_key-c.yaml +0 -16
  1648. data/doc/ri/String/Style/humanize-c.yaml +0 -16
  1649. data/doc/ri/String/Style/lowercamel-c.yaml +0 -10
  1650. data/doc/ri/String/Style/lowercase-c.yaml +0 -12
  1651. data/doc/ri/String/Style/methodize-c.yaml +0 -18
  1652. data/doc/ri/String/Style/modulize-c.yaml +0 -18
  1653. data/doc/ri/String/Style/ordinalize-c.yaml +0 -16
  1654. data/doc/ri/String/Style/pathize-c.yaml +0 -22
  1655. data/doc/ri/String/Style/snakecase-c.yaml +0 -18
  1656. data/doc/ri/String/Style/tableize-c.yaml +0 -16
  1657. data/doc/ri/String/Style/titlecase-c.yaml +0 -14
  1658. data/doc/ri/String/Style/titleize-c.yaml +0 -18
  1659. data/doc/ri/String/Style/underscore-c.yaml +0 -18
  1660. data/doc/ri/String/Style/upcase-c.yaml +0 -12
  1661. data/doc/ri/String/Style/uppercamel-c.yaml +0 -10
  1662. data/doc/ri/String/Style/uppercase-c.yaml +0 -12
  1663. data/doc/ri/String/Words/brief-i.yaml +0 -14
  1664. data/doc/ri/String/Words/cdesc-Words.yaml +0 -28
  1665. data/doc/ri/String/Words/each_word-i.yaml +0 -14
  1666. data/doc/ri/String/Words/word_filter%21-i.yaml +0 -14
  1667. data/doc/ri/String/Words/word_filter-i.yaml +0 -14
  1668. data/doc/ri/String/Words/word_wrap%21-i.yaml +0 -14
  1669. data/doc/ri/String/Words/word_wrap-i.yaml +0 -18
  1670. data/doc/ri/String/Words/words-i.yaml +0 -14
  1671. data/doc/ri/String/cdesc-String.yaml +0 -17
  1672. data/doc/ri/Struct/cdesc-Struct.yaml +0 -18
  1673. data/doc/ri/Struct/restore_snapshot-i.yaml +0 -10
  1674. data/doc/ri/Struct/take_snapshot-i.yaml +0 -10
  1675. data/doc/ri/Symbol/cdesc-Symbol.yaml +0 -15
  1676. data/doc/ri/SyncArray/cdesc-SyncArray.yaml +0 -19
  1677. data/doc/ri/SyncArray/new-c.yaml +0 -12
  1678. data/doc/ri/SyncHash/Delegator/%5b%5d%3d-i.yaml +0 -10
  1679. data/doc/ri/SyncHash/Delegator/%5b%5d-i.yaml +0 -10
  1680. data/doc/ri/SyncHash/Delegator/cdesc-Delegator.yaml +0 -30
  1681. data/doc/ri/SyncHash/Delegator/clear-i.yaml +0 -10
  1682. data/doc/ri/SyncHash/Delegator/delete-i.yaml +0 -10
  1683. data/doc/ri/SyncHash/Delegator/keys-i.yaml +0 -10
  1684. data/doc/ri/SyncHash/Delegator/size-i.yaml +0 -10
  1685. data/doc/ri/SyncHash/Delegator/values-i.yaml +0 -10
  1686. data/doc/ri/SyncHash/Inheritor/%5b%5d%3d-i.yaml +0 -10
  1687. data/doc/ri/SyncHash/Inheritor/%5b%5d-i.yaml +0 -10
  1688. data/doc/ri/SyncHash/Inheritor/cdesc-Inheritor.yaml +0 -30
  1689. data/doc/ri/SyncHash/Inheritor/clear-i.yaml +0 -10
  1690. data/doc/ri/SyncHash/Inheritor/delete-i.yaml +0 -10
  1691. data/doc/ri/SyncHash/Inheritor/keys-i.yaml +0 -10
  1692. data/doc/ri/SyncHash/Inheritor/size-i.yaml +0 -10
  1693. data/doc/ri/SyncHash/Inheritor/values-i.yaml +0 -10
  1694. data/doc/ri/SyncHash/cdesc-SyncHash.yaml +0 -38
  1695. data/doc/ri/SyncHash/new-c.yaml +0 -10
  1696. data/doc/ri/System/argf-i.yaml +0 -12
  1697. data/doc/ri/System/argv-i.yaml +0 -11
  1698. data/doc/ri/System/cdesc-System.yaml +0 -145
  1699. data/doc/ri/System/child_status-i.yaml +0 -11
  1700. data/doc/ri/System/coding%3d-i.yaml +0 -10
  1701. data/doc/ri/System/coding-i.yaml +0 -10
  1702. data/doc/ri/System/current_platform-i.yaml +0 -12
  1703. data/doc/ri/System/data-i.yaml +0 -12
  1704. data/doc/ri/System/debug-i.yaml +0 -10
  1705. data/doc/ri/System/default_input-i.yaml +0 -13
  1706. data/doc/ri/System/default_output%3d-i.yaml +0 -11
  1707. data/doc/ri/System/default_output-i.yaml +0 -11
  1708. data/doc/ri/System/defin-i.yaml +0 -12
  1709. data/doc/ri/System/defout%3d-i.yaml +0 -12
  1710. data/doc/ri/System/defout-i.yaml +0 -12
  1711. data/doc/ri/System/env-i.yaml +0 -10
  1712. data/doc/ri/System/environment-i.yaml +0 -10
  1713. data/doc/ri/System/error_info-i.yaml +0 -10
  1714. data/doc/ri/System/error_position-i.yaml +0 -10
  1715. data/doc/ri/System/exit_status-i.yaml +0 -12
  1716. data/doc/ri/System/extentions-i.yaml +0 -10
  1717. data/doc/ri/System/fs%3d-i.yaml +0 -12
  1718. data/doc/ri/System/fs-i.yaml +0 -12
  1719. data/doc/ri/System/input_field_separator%3d-i.yaml +0 -11
  1720. data/doc/ri/System/input_field_separator-i.yaml +0 -11
  1721. data/doc/ri/System/input_line_number-i.yaml +0 -11
  1722. data/doc/ri/System/input_lineno-i.yaml +0 -12
  1723. data/doc/ri/System/input_record_separator%3d-i.yaml +0 -11
  1724. data/doc/ri/System/input_record_separator-i.yaml +0 -11
  1725. data/doc/ri/System/line_end_processing-i.yaml +0 -10
  1726. data/doc/ri/System/load_path-i.yaml +0 -12
  1727. data/doc/ri/System/loaded_features-i.yaml +0 -11
  1728. data/doc/ri/System/match_platform-i.yaml +0 -11
  1729. data/doc/ri/System/ofs%3d-i.yaml +0 -12
  1730. data/doc/ri/System/ofs-i.yaml +0 -12
  1731. data/doc/ri/System/options-i.yaml +0 -12
  1732. data/doc/ri/System/ors%3d-i.yaml +0 -12
  1733. data/doc/ri/System/ors-i.yaml +0 -12
  1734. data/doc/ri/System/output_field_separator%3d-i.yaml +0 -11
  1735. data/doc/ri/System/output_field_separator-i.yaml +0 -11
  1736. data/doc/ri/System/output_record_separator%3d-i.yaml +0 -11
  1737. data/doc/ri/System/output_record_separator-i.yaml +0 -11
  1738. data/doc/ri/System/pid-i.yaml +0 -12
  1739. data/doc/ri/System/platform-i.yaml +0 -10
  1740. data/doc/ri/System/process_id-i.yaml +0 -15
  1741. data/doc/ri/System/program_loop-i.yaml +0 -10
  1742. data/doc/ri/System/program_name%3d-i.yaml +0 -10
  1743. data/doc/ri/System/program_name-i.yaml +0 -12
  1744. data/doc/ri/System/release-i.yaml +0 -10
  1745. data/doc/ri/System/required-i.yaml +0 -12
  1746. data/doc/ri/System/rs%3d-i.yaml +0 -12
  1747. data/doc/ri/System/rs-i.yaml +0 -12
  1748. data/doc/ri/System/rubylibdir-i.yaml +0 -10
  1749. data/doc/ri/System/rubypath-i.yaml +0 -10
  1750. data/doc/ri/System/safe-i.yaml +0 -10
  1751. data/doc/ri/System/stderr%3d-i.yaml +0 -10
  1752. data/doc/ri/System/stderr-i.yaml +0 -10
  1753. data/doc/ri/System/stdin%3d-i.yaml +0 -10
  1754. data/doc/ri/System/stdin-i.yaml +0 -12
  1755. data/doc/ri/System/stdout%3d-i.yaml +0 -10
  1756. data/doc/ri/System/stdout-i.yaml +0 -10
  1757. data/doc/ri/System/verbose%3d-i.yaml +0 -10
  1758. data/doc/ri/System/verbose-i.yaml +0 -10
  1759. data/doc/ri/System/version-i.yaml +0 -10
  1760. data/doc/ri/Time/cdesc-Time.yaml +0 -17
  1761. data/doc/ri/Timer/Dummy/cdesc-Dummy.yaml +0 -20
  1762. data/doc/ri/Timer/Dummy/start-i.yaml +0 -10
  1763. data/doc/ri/Timer/Dummy/stop-i.yaml +0 -10
  1764. data/doc/ri/Timer/cdesc-Timer.yaml +0 -57
  1765. data/doc/ri/Timer/defuse-i.yaml +0 -12
  1766. data/doc/ri/Timer/limit-i.yaml +0 -12
  1767. data/doc/ri/Timer/new-c.yaml +0 -10
  1768. data/doc/ri/Timer/on_timeout-i.yaml +0 -10
  1769. data/doc/ri/Timer/reset-i.yaml +0 -12
  1770. data/doc/ri/Timer/reset_limit-i.yaml +0 -14
  1771. data/doc/ri/Timer/running%3f-i.yaml +0 -12
  1772. data/doc/ri/Timer/start-i.yaml +0 -12
  1773. data/doc/ri/Timer/stop-i.yaml +0 -12
  1774. data/doc/ri/Timer/stopped%3f-i.yaml +0 -12
  1775. data/doc/ri/Timer/total_time-i.yaml +0 -12
  1776. data/doc/ri/TracePoint/%3d%3d%3d-i.yaml +0 -12
  1777. data/doc/ri/TracePoint/active%3d-c.yaml +0 -10
  1778. data/doc/ri/TracePoint/active-c.yaml +0 -10
  1779. data/doc/ri/TracePoint/back-i.yaml +0 -12
  1780. data/doc/ri/TracePoint/bind-i.yaml +0 -12
  1781. data/doc/ri/TracePoint/called-i.yaml +0 -13
  1782. data/doc/ri/TracePoint/callee-i.yaml +0 -13
  1783. data/doc/ri/TracePoint/cdesc-TracePoint.yaml +0 -82
  1784. data/doc/ri/TracePoint/event%3f-i.yaml +0 -12
  1785. data/doc/ri/TracePoint/event_map-i.yaml +0 -10
  1786. data/doc/ri/TracePoint/eventless%3f-i.yaml +0 -10
  1787. data/doc/ri/TracePoint/method_name-i.yaml +0 -12
  1788. data/doc/ri/TracePoint/new-c.yaml +0 -12
  1789. data/doc/ri/TracePoint/self-i.yaml +0 -12
  1790. data/doc/ri/TracePoint/trace-c.yaml +0 -12
  1791. data/doc/ri/TrueClass/cdesc-TrueClass.yaml +0 -15
  1792. data/doc/ri/Tuple/%3c%3c-i.yaml +0 -12
  1793. data/doc/ri/Tuple/%3c%3d%3e-i.yaml +0 -10
  1794. data/doc/ri/Tuple/%3d%7e-i.yaml +0 -12
  1795. data/doc/ri/Tuple/%5b%5d%3d-i.yaml +0 -10
  1796. data/doc/ri/Tuple/%5b%5d-c.yaml +0 -10
  1797. data/doc/ri/Tuple/%5b%5d-i.yaml +0 -10
  1798. data/doc/ri/Tuple/cast_from_array-c.yaml +0 -11
  1799. data/doc/ri/Tuple/cast_from_string-c.yaml +0 -20
  1800. data/doc/ri/Tuple/cdesc-Tuple.yaml +0 -113
  1801. data/doc/ri/Tuple/constraint_to_lambda-c.yaml +0 -12
  1802. data/doc/ri/Tuple/divider-i.yaml +0 -10
  1803. data/doc/ri/Tuple/each-i.yaml +0 -10
  1804. data/doc/ri/Tuple/each_index-i.yaml +0 -10
  1805. data/doc/ri/Tuple/empty%3f-i.yaml +0 -10
  1806. data/doc/ri/Tuple/eql%3f-i.yaml +0 -12
  1807. data/doc/ri/Tuple/first-i.yaml +0 -10
  1808. data/doc/ri/Tuple/hash-i.yaml +0 -12
  1809. data/doc/ri/Tuple/index-i.yaml +0 -10
  1810. data/doc/ri/Tuple/inspect-i.yaml +0 -10
  1811. data/doc/ri/Tuple/last-i.yaml +0 -10
  1812. data/doc/ri/Tuple/length-i.yaml +0 -10
  1813. data/doc/ri/Tuple/major-i.yaml +0 -12
  1814. data/doc/ri/Tuple/minor-i.yaml +0 -10
  1815. data/doc/ri/Tuple/multiton_id-c.yaml +0 -10
  1816. data/doc/ri/Tuple/new-c.yaml +0 -10
  1817. data/doc/ri/Tuple/parse_constraint-c.yaml +0 -10
  1818. data/doc/ri/Tuple/pop-i.yaml +0 -10
  1819. data/doc/ri/Tuple/pot-i.yaml +0 -13
  1820. data/doc/ri/Tuple/pull-i.yaml +0 -13
  1821. data/doc/ri/Tuple/push-i.yaml +0 -10
  1822. data/doc/ri/Tuple/rindex-i.yaml +0 -10
  1823. data/doc/ri/Tuple/shift-i.yaml +0 -12
  1824. data/doc/ri/Tuple/size-i.yaml +0 -10
  1825. data/doc/ri/Tuple/teeny-i.yaml +0 -10
  1826. data/doc/ri/Tuple/to_a-i.yaml +0 -10
  1827. data/doc/ri/Tuple/to_ary-i.yaml +0 -10
  1828. data/doc/ri/Tuple/to_s-i.yaml +0 -10
  1829. data/doc/ri/Tuple/to_t-i.yaml +0 -10
  1830. data/doc/ri/Tuple/to_tuple-i.yaml +0 -10
  1831. data/doc/ri/Tuple/unshift-i.yaml +0 -12
  1832. data/doc/ri/Tuple/values-i.yaml +0 -10
  1833. data/doc/ri/TypeCast/Class/cast_from-i.yaml +0 -14
  1834. data/doc/ri/TypeCast/Class/cdesc-Class.yaml +0 -18
  1835. data/doc/ri/TypeCast/Object/cast_to-i.yaml +0 -14
  1836. data/doc/ri/TypeCast/Object/cdesc-Object.yaml +0 -18
  1837. data/doc/ri/TypeCast/cdesc-TypeCast.yaml +0 -52
  1838. data/doc/ri/TypeCastException/cdesc-TypeCastException.yaml +0 -17
  1839. data/doc/ri/URI/Hash/cdesc-Hash.yaml +0 -16
  1840. data/doc/ri/URI/Hash/to_uri-i.yaml +0 -11
  1841. data/doc/ri/URI/Kernel/cdesc-Kernel.yaml +0 -18
  1842. data/doc/ri/URI/Kernel/unuri-i.yaml +0 -11
  1843. data/doc/ri/URI/Kernel/uri-i.yaml +0 -11
  1844. data/doc/ri/URI/cdesc-URI.yaml +0 -38
  1845. data/doc/ri/URI/cgi_escape-i.yaml +0 -12
  1846. data/doc/ri/URI/cgi_parse-i.yaml +0 -11
  1847. data/doc/ri/URI/cgi_unescape-i.yaml +0 -11
  1848. data/doc/ri/URI/chomp_query_string-i.yaml +0 -16
  1849. data/doc/ri/URI/decode-i.yaml +0 -12
  1850. data/doc/ri/URI/get_query_string-i.yaml +0 -16
  1851. data/doc/ri/URI/hash_to_query-i.yaml +0 -15
  1852. data/doc/ri/URI/hash_to_query_string-i.yaml +0 -12
  1853. data/doc/ri/URI/query_string_to_hash-i.yaml +0 -12
  1854. data/doc/ri/URI/query_to_hash-i.yaml +0 -17
  1855. data/doc/ri/URI/update_query_string-i.yaml +0 -18
  1856. data/doc/ri/URI/update_request_uri-i.yaml +0 -12
  1857. data/doc/ri/UnboundMethod/arguments-i.yaml +0 -18
  1858. data/doc/ri/UnboundMethod/cdesc-UnboundMethod.yaml +0 -18
  1859. data/doc/ri/UnboundMethod/name-i.yaml +0 -14
  1860. data/doc/ri/Uninheritable/cdesc-Uninheritable.yaml +0 -21
  1861. data/doc/ri/Uninheritable/inherited-i.yaml +0 -12
  1862. data/doc/ri/UploadUtils/cdesc-UploadUtils.yaml +0 -47
  1863. data/doc/ri/UploadUtils/files-i.yaml +0 -12
  1864. data/doc/ri/UploadUtils/ftp-i.yaml +0 -12
  1865. data/doc/ri/UploadUtils/rsync-i.yaml +0 -12
  1866. data/doc/ri/UploadUtils/sftp-i.yaml +0 -12
  1867. data/doc/ri/UploadUtils/stage_linkdir-i.yaml +0 -12
  1868. data/doc/ri/UploadUtils/stage_transfer-i.yaml +0 -20
  1869. data/doc/ri/UploadUtils/upload-i.yaml +0 -12
  1870. data/doc/ri/UploadUtils/upload_parameters-i.yaml +0 -12
  1871. data/doc/ri/VersionNumber/%3c%3d%3e-i.yaml +0 -12
  1872. data/doc/ri/VersionNumber/%3d%7e-i.yaml +0 -12
  1873. data/doc/ri/VersionNumber/%5b%5d-i.yaml +0 -10
  1874. data/doc/ri/VersionNumber/cdesc-VersionNumber.yaml +0 -45
  1875. data/doc/ri/VersionNumber/constraint_lambda-c.yaml +0 -12
  1876. data/doc/ri/VersionNumber/inspect-i.yaml +0 -10
  1877. data/doc/ri/VersionNumber/major-i.yaml +0 -12
  1878. data/doc/ri/VersionNumber/method_missing-i.yaml +0 -12
  1879. data/doc/ri/VersionNumber/minor-i.yaml +0 -12
  1880. data/doc/ri/VersionNumber/new-c.yaml +0 -10
  1881. data/doc/ri/VersionNumber/parse_constraint-c.yaml +0 -10
  1882. data/doc/ri/VersionNumber/teeny-i.yaml +0 -12
  1883. data/doc/ri/VersionNumber/to_s-i.yaml +0 -10
  1884. data/doc/ri/VersionNumber/to_str-i.yaml +0 -12
  1885. data/doc/ri/Weekdays/after-i.yaml +0 -12
  1886. data/doc/ri/Weekdays/ago-i.yaml +0 -13
  1887. data/doc/ri/Weekdays/before-i.yaml +0 -12
  1888. data/doc/ri/Weekdays/cdesc-Weekdays.yaml +0 -38
  1889. data/doc/ri/Weekdays/from_now-i.yaml +0 -12
  1890. data/doc/ri/Weekdays/new-c.yaml +0 -10
  1891. data/doc/ri/Weekdays/since-i.yaml +0 -13
  1892. data/doc/ri/Weekdays/step-i.yaml +0 -10
  1893. data/doc/ri/Weekdays/until-i.yaml +0 -12
  1894. data/doc/ri/XOXO/Parser/cdesc-Parser.yaml +0 -15
  1895. data/doc/ri/XOXO/cdesc-XOXO.yaml +0 -25
  1896. data/doc/ri/XOXO/dump-c.yaml +0 -35
  1897. data/doc/ri/XOXO/load-c.yaml +0 -12
  1898. data/doc/ri/XOXO/make_xoxo-c.yaml +0 -10
  1899. data/doc/ri/ZipUtils/DryRun/cdesc-DryRun.yaml +0 -32
  1900. data/doc/ri/ZipUtils/DryRun/compress-i.yaml +0 -10
  1901. data/doc/ri/ZipUtils/DryRun/tar_bzip2-i.yaml +0 -10
  1902. data/doc/ri/ZipUtils/DryRun/tar_gzip-i.yaml +0 -10
  1903. data/doc/ri/ZipUtils/DryRun/untar_bzip2-i.yaml +0 -10
  1904. data/doc/ri/ZipUtils/DryRun/untar_gzip-i.yaml +0 -10
  1905. data/doc/ri/ZipUtils/DryRun/unzip-i.yaml +0 -10
  1906. data/doc/ri/ZipUtils/DryRun/zip-i.yaml +0 -10
  1907. data/doc/ri/ZipUtils/NoWrite/cdesc-NoWrite.yaml +0 -32
  1908. data/doc/ri/ZipUtils/NoWrite/compress-i.yaml +0 -10
  1909. data/doc/ri/ZipUtils/NoWrite/tar_bzip2-i.yaml +0 -10
  1910. data/doc/ri/ZipUtils/NoWrite/tar_gzip-i.yaml +0 -10
  1911. data/doc/ri/ZipUtils/NoWrite/untar_bzip2-i.yaml +0 -10
  1912. data/doc/ri/ZipUtils/NoWrite/untar_gzip-i.yaml +0 -10
  1913. data/doc/ri/ZipUtils/NoWrite/unzip-i.yaml +0 -10
  1914. data/doc/ri/ZipUtils/NoWrite/zip-i.yaml +0 -10
  1915. data/doc/ri/ZipUtils/Verbose/cdesc-Verbose.yaml +0 -32
  1916. data/doc/ri/ZipUtils/Verbose/compress-i.yaml +0 -10
  1917. data/doc/ri/ZipUtils/Verbose/tar_bzip2-i.yaml +0 -10
  1918. data/doc/ri/ZipUtils/Verbose/tar_gzip-i.yaml +0 -10
  1919. data/doc/ri/ZipUtils/Verbose/untar_bzip2-i.yaml +0 -10
  1920. data/doc/ri/ZipUtils/Verbose/untar_gzip-i.yaml +0 -10
  1921. data/doc/ri/ZipUtils/Verbose/unzip-i.yaml +0 -10
  1922. data/doc/ri/ZipUtils/Verbose/zip-i.yaml +0 -10
  1923. data/doc/ri/ZipUtils/cdesc-ZipUtils.yaml +0 -50
  1924. data/doc/ri/ZipUtils/compress-i.yaml +0 -27
  1925. data/doc/ri/ZipUtils/tar_bzip-i.yaml +0 -12
  1926. data/doc/ri/ZipUtils/tar_bzip2-i.yaml +0 -15
  1927. data/doc/ri/ZipUtils/tar_gzip-i.yaml +0 -13
  1928. data/doc/ri/ZipUtils/tar_j-i.yaml +0 -12
  1929. data/doc/ri/ZipUtils/tar_z-i.yaml +0 -12
  1930. data/doc/ri/ZipUtils/tgz-i.yaml +0 -11
  1931. data/doc/ri/ZipUtils/untar_bzip-i.yaml +0 -12
  1932. data/doc/ri/ZipUtils/untar_bzip2-i.yaml +0 -15
  1933. data/doc/ri/ZipUtils/untar_gzip-i.yaml +0 -13
  1934. data/doc/ri/ZipUtils/untar_j-i.yaml +0 -12
  1935. data/doc/ri/ZipUtils/untar_z-i.yaml +0 -12
  1936. data/doc/ri/ZipUtils/unzip-i.yaml +0 -12
  1937. data/doc/ri/ZipUtils/zip-i.yaml +0 -12
  1938. data/doc/ri/created.rid +0 -1
  1939. data/lib/core/facets/kernel/suppress.rb +0 -18
  1940. data/lib/core/facets/string/to_time.rb +0 -15
  1941. data/lib/core/facets/time/to_date.rb +0 -26
  1942. data/test/core/string/test_to_time.rb +0 -15
  1943. data/test/core/time/test_to_date.rb +0 -12
@@ -58,8 +58,6 @@
58
58
  <td>In:</td>
59
59
  <td>
60
60
  <a href="../files/lib/core/facets/regexp/to_re_rb.html">lib/core/facets/regexp/to_re.rb</a>
61
- <a href="../files/lib/core/facets/regexp/arity_rb.html">lib/core/facets/regexp/arity.rb</a>
62
- <a href="../files/lib/core/facets/regexp/to_re_rb.html">lib/core/facets/regexp/to_re.rb</a>
63
61
  <a href="../files/lib/core/facets/regexp/arity_rb.html">lib/core/facets/regexp/arity.rb</a>
64
62
  </td>
65
63
  </tr>
@@ -85,12 +83,9 @@ Object
85
83
 
86
84
  <div class="sectiontitle">Methods</div>
87
85
  <ul>
88
- <li><a href="#M000053">arity</a></li>
89
- <li><a href="#M000050">arity</a></li>
90
- <li><a href="#M000049">to_re</a></li>
91
- <li><a href="#M000052">to_re</a></li>
92
- <li><a href="#M000051">to_regexp</a></li>
93
- <li><a href="#M000048">to_regexp</a></li>
86
+ <li><a href="#M000030">arity</a></li>
87
+ <li><a href="#M000029">to_re</a></li>
88
+ <li><a href="#M000028">to_regexp</a></li>
94
89
  </ul>
95
90
 
96
91
 
@@ -101,7 +96,7 @@ Object
101
96
  <div class="sectiontitle">Public Instance methods</div>
102
97
  <div class="method">
103
98
  <div class="title">
104
- <a name="M000053"></a><b>arity</b>()
99
+ <a name="M000030"></a><b>arity</b>()
105
100
  </div>
106
101
  <div class="description">
107
102
  <p>
@@ -120,8 +115,8 @@ comments.
120
115
  </pre>
121
116
  </div>
122
117
  <div class="sourcecode">
123
- <p class="source-link">[ <a href="javascript:toggleSource('M000053_source')" id="l_M000053_source">show source</a> ]</p>
124
- <div id="M000053_source" class="dyn-source">
118
+ <p class="source-link">[ <a href="javascript:toggleSource('M000030_source')" id="l_M000030_source">show source</a> ]</p>
119
+ <div id="M000030_source" class="dyn-source">
125
120
  <pre>
126
121
  <span class="ruby-comment cmt"># File lib/core/facets/regexp/arity.rb, line 13</span>
127
122
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">arity</span>
@@ -133,76 +128,14 @@ comments.
133
128
  </div>
134
129
  <div class="method">
135
130
  <div class="title">
136
- <a name="M000050"></a><b>arity</b>()
137
- </div>
138
- <div class="description">
139
- <p>
140
- Returns the number of backreferencing subexpressions.
141
- </p>
142
- <pre>
143
- /(a)(b)(c)/.arity #=&gt; 3
144
- /(a(b(c)))/.arity #=&gt; 3
145
- </pre>
146
- <p>
147
- Note that this is not perfect, especially with regards to \x and embedded
148
- comments.
149
- </p>
150
- <pre>
151
- CREDIT: Trans
152
- </pre>
153
- </div>
154
- <div class="sourcecode">
155
- <p class="source-link">[ <a href="javascript:toggleSource('M000050_source')" id="l_M000050_source">show source</a> ]</p>
156
- <div id="M000050_source" class="dyn-source">
157
- <pre>
158
- <span class="ruby-comment cmt"># File lib/core/facets/regexp/arity.rb, line 13</span>
159
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">arity</span>
160
- <span class="ruby-identifier">source</span>.<span class="ruby-identifier">scan</span>( <span class="ruby-regexp re">/(?!\\)[(](?!\?[#=:!&gt;-imx])/</span> ).<span class="ruby-identifier">length</span>
161
- <span class="ruby-keyword kw">end</span>
162
- </pre>
163
- </div>
164
- </div>
165
- </div>
166
- <div class="method">
167
- <div class="title">
168
- <a name="M000049"></a><b>to_re</b>(esc=false)
169
- </div>
170
- <div class="description">
171
- <p>
172
- Simply returns itself. Helpful when converting strings to regular
173
- expressions, where regexp might occur as well &#8212;in the same vien as
174
- using to_s on symbols. The parameter is actaully a dummy parameter to
175
- coincide with <a href="String.html#M000458">String#to_re</a>.
176
- </p>
177
- <pre>
178
- /abc/.to_re #=&gt; /abc/
179
- </pre>
180
- <p>
181
- CREDIT: Trans
182
- </p>
183
- </div>
184
- <div class="sourcecode">
185
- <p class="source-link">[ <a href="javascript:toggleSource('M000049_source')" id="l_M000049_source">show source</a> ]</p>
186
- <div id="M000049_source" class="dyn-source">
187
- <pre>
188
- <span class="ruby-comment cmt"># File lib/core/facets/regexp/to_re.rb, line 24</span>
189
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_re</span>(<span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">false</span>)
190
- <span class="ruby-keyword kw">self</span> <span class="ruby-comment cmt"># Of course, things really should know how to say &quot;I&quot; ;)</span>
191
- <span class="ruby-keyword kw">end</span>
192
- </pre>
193
- </div>
194
- </div>
195
- </div>
196
- <div class="method">
197
- <div class="title">
198
- <a name="M000052"></a><b>to_re</b>(esc=false)
131
+ <a name="M000029"></a><b>to_re</b>(esc=false)
199
132
  </div>
200
133
  <div class="description">
201
134
  <p>
202
135
  Simply returns itself. Helpful when converting strings to regular
203
136
  expressions, where regexp might occur as well &#8212;in the same vien as
204
137
  using to_s on symbols. The parameter is actaully a dummy parameter to
205
- coincide with <a href="String.html#M000458">String#to_re</a>.
138
+ coincide with <a href="String.html#M000246">String#to_re</a>.
206
139
  </p>
207
140
  <pre>
208
141
  /abc/.to_re #=&gt; /abc/
@@ -212,8 +145,8 @@ CREDIT: Trans
212
145
  </p>
213
146
  </div>
214
147
  <div class="sourcecode">
215
- <p class="source-link">[ <a href="javascript:toggleSource('M000052_source')" id="l_M000052_source">show source</a> ]</p>
216
- <div id="M000052_source" class="dyn-source">
148
+ <p class="source-link">[ <a href="javascript:toggleSource('M000029_source')" id="l_M000029_source">show source</a> ]</p>
149
+ <div id="M000029_source" class="dyn-source">
217
150
  <pre>
218
151
  <span class="ruby-comment cmt"># File lib/core/facets/regexp/to_re.rb, line 24</span>
219
152
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_re</span>(<span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">false</span>)
@@ -225,40 +158,11 @@ CREDIT: Trans
225
158
  </div>
226
159
  <div class="method">
227
160
  <div class="title">
228
- <a name="M000051"></a><b>to_regexp</b>()
229
- </div>
230
- <div class="description">
231
- <p>
232
- Like <a href="Regexp.html#M000049">to_re</a>, but following Ruby&#8216;s
233
- formal definitions, only a Regular expression type object will respond to
234
- this.
235
- </p>
236
- <p>
237
- Note that to be of much real use this should be defined in core Ruby.
238
- </p>
239
- <p>
240
- CREDIT: Florian Gross
241
- </p>
242
- </div>
243
- <div class="sourcecode">
244
- <p class="source-link">[ <a href="javascript:toggleSource('M000051_source')" id="l_M000051_source">show source</a> ]</p>
245
- <div id="M000051_source" class="dyn-source">
246
- <pre>
247
- <span class="ruby-comment cmt"># File lib/core/facets/regexp/to_re.rb, line 10</span>
248
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_regexp</span>
249
- <span class="ruby-keyword kw">self</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="M000048"></a><b>to_regexp</b>()
161
+ <a name="M000028"></a><b>to_regexp</b>()
258
162
  </div>
259
163
  <div class="description">
260
164
  <p>
261
- Like <a href="Regexp.html#M000049">to_re</a>, but following Ruby&#8216;s
165
+ Like <a href="Regexp.html#M000029">to_re</a>, but following Ruby&#8216;s
262
166
  formal definitions, only a Regular expression type object will respond to
263
167
  this.
264
168
  </p>
@@ -270,8 +174,8 @@ CREDIT: Florian Gross
270
174
  </p>
271
175
  </div>
272
176
  <div class="sourcecode">
273
- <p class="source-link">[ <a href="javascript:toggleSource('M000048_source')" id="l_M000048_source">show source</a> ]</p>
274
- <div id="M000048_source" class="dyn-source">
177
+ <p class="source-link">[ <a href="javascript:toggleSource('M000028_source')" id="l_M000028_source">show source</a> ]</p>
178
+ <div id="M000028_source" class="dyn-source">
275
179
  <pre>
276
180
  <span class="ruby-comment cmt"># File lib/core/facets/regexp/to_re.rb, line 10</span>
277
181
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_regexp</span>
@@ -72,9 +72,9 @@
72
72
  <div class="description"><h1><a href="Stackable.html">Stackable</a></h1>
73
73
  <p>
74
74
  <a href="Stackable.html">Stackable</a> mixin provides <a
75
- href="Stackable.html#M000589">pop</a>, <a
76
- href="Stackable.html#M000590">push</a>, <a
77
- href="Stackable.html#M000591">pull</a>, etc. It depends on slice, splice
75
+ href="Stackable.html#M000322">pop</a>, <a
76
+ href="Stackable.html#M000323">push</a>, <a
77
+ href="Stackable.html#M000324">pull</a>, etc. It depends on slice, splice
78
78
  and insert.
79
79
  </p>
80
80
  </div>
@@ -83,13 +83,13 @@ and insert.
83
83
 
84
84
  <div class="sectiontitle">Methods</div>
85
85
  <ul>
86
- <li><a href="#M000595">peek</a></li>
87
- <li><a href="#M000593">poke</a></li>
88
- <li><a href="#M000589">pop</a></li>
89
- <li><a href="#M000591">pull</a></li>
90
- <li><a href="#M000590">push</a></li>
91
- <li><a href="#M000592">shift</a></li>
92
- <li><a href="#M000594">unshift</a></li>
86
+ <li><a href="#M000328">peek</a></li>
87
+ <li><a href="#M000326">poke</a></li>
88
+ <li><a href="#M000322">pop</a></li>
89
+ <li><a href="#M000324">pull</a></li>
90
+ <li><a href="#M000323">push</a></li>
91
+ <li><a href="#M000325">shift</a></li>
92
+ <li><a href="#M000327">unshift</a></li>
93
93
  </ul>
94
94
 
95
95
 
@@ -100,7 +100,7 @@ and insert.
100
100
  <div class="sectiontitle">Public Instance methods</div>
101
101
  <div class="method">
102
102
  <div class="title">
103
- <a name="M000595"></a><b>peek</b>()
103
+ <a name="M000328"></a><b>peek</b>()
104
104
  </div>
105
105
  <div class="description">
106
106
  <p>
@@ -113,8 +113,8 @@ Peek at the top of the stack.
113
113
  </pre>
114
114
  </div>
115
115
  <div class="sourcecode">
116
- <p class="source-link">[ <a href="javascript:toggleSource('M000595_source')" id="l_M000595_source">show source</a> ]</p>
117
- <div id="M000595_source" class="dyn-source">
116
+ <p class="source-link">[ <a href="javascript:toggleSource('M000328_source')" id="l_M000328_source">show source</a> ]</p>
117
+ <div id="M000328_source" class="dyn-source">
118
118
  <pre>
119
119
  <span class="ruby-comment cmt"># File lib/core/facets/stackable.rb, line 81</span>
120
120
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">peek</span>
@@ -126,7 +126,7 @@ Peek at the top of the stack.
126
126
  </div>
127
127
  <div class="method">
128
128
  <div class="title">
129
- <a name="M000593"></a><b>poke</b>(x)
129
+ <a name="M000326"></a><b>poke</b>(x)
130
130
  </div>
131
131
  <div class="description">
132
132
  <p>
@@ -141,11 +141,11 @@ Poke item onto the stack.
141
141
  </div>
142
142
  <div class="aka">
143
143
  This method is also aliased as
144
- <a href="Stackable.html#M000594">unshift</a>
144
+ <a href="Stackable.html#M000327">unshift</a>
145
145
  </div>
146
146
  <div class="sourcecode">
147
- <p class="source-link">[ <a href="javascript:toggleSource('M000593_source')" id="l_M000593_source">show source</a> ]</p>
148
- <div id="M000593_source" class="dyn-source">
147
+ <p class="source-link">[ <a href="javascript:toggleSource('M000326_source')" id="l_M000326_source">show source</a> ]</p>
148
+ <div id="M000326_source" class="dyn-source">
149
149
  <pre>
150
150
  <span class="ruby-comment cmt"># File lib/core/facets/stackable.rb, line 69</span>
151
151
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">poke</span>(<span class="ruby-identifier">x</span>)
@@ -157,7 +157,7 @@ Poke item onto the stack.
157
157
  </div>
158
158
  <div class="method">
159
159
  <div class="title">
160
- <a name="M000589"></a><b>pop</b>()
160
+ <a name="M000322"></a><b>pop</b>()
161
161
  </div>
162
162
  <div class="description">
163
163
  <p>
@@ -170,8 +170,8 @@ Pop item off stack.
170
170
  </pre>
171
171
  </div>
172
172
  <div class="sourcecode">
173
- <p class="source-link">[ <a href="javascript:toggleSource('M000589_source')" id="l_M000589_source">show source</a> ]</p>
174
- <div id="M000589_source" class="dyn-source">
173
+ <p class="source-link">[ <a href="javascript:toggleSource('M000322_source')" id="l_M000322_source">show source</a> ]</p>
174
+ <div id="M000322_source" class="dyn-source">
175
175
  <pre>
176
176
  <span class="ruby-comment cmt"># File lib/core/facets/stackable.rb, line 37</span>
177
177
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pop</span>
@@ -183,7 +183,7 @@ Pop item off stack.
183
183
  </div>
184
184
  <div class="method">
185
185
  <div class="title">
186
- <a name="M000591"></a><b>pull</b>()
186
+ <a name="M000324"></a><b>pull</b>()
187
187
  </div>
188
188
  <div class="description">
189
189
  <p>
@@ -197,11 +197,11 @@ Pull item off the stack.
197
197
  </div>
198
198
  <div class="aka">
199
199
  This method is also aliased as
200
- <a href="Stackable.html#M000592">shift</a>
200
+ <a href="Stackable.html#M000325">shift</a>
201
201
  </div>
202
202
  <div class="sourcecode">
203
- <p class="source-link">[ <a href="javascript:toggleSource('M000591_source')" id="l_M000591_source">show source</a> ]</p>
204
- <div id="M000591_source" class="dyn-source">
203
+ <p class="source-link">[ <a href="javascript:toggleSource('M000324_source')" id="l_M000324_source">show source</a> ]</p>
204
+ <div id="M000324_source" class="dyn-source">
205
205
  <pre>
206
206
  <span class="ruby-comment cmt"># File lib/core/facets/stackable.rb, line 56</span>
207
207
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pull</span>
@@ -213,7 +213,7 @@ Pull item off the stack.
213
213
  </div>
214
214
  <div class="method">
215
215
  <div class="title">
216
- <a name="M000590"></a><b>push</b>(x)
216
+ <a name="M000323"></a><b>push</b>(x)
217
217
  </div>
218
218
  <div class="description">
219
219
  <p>
@@ -225,8 +225,8 @@ Push item onto the stack.
225
225
  </pre>
226
226
  </div>
227
227
  <div class="sourcecode">
228
- <p class="source-link">[ <a href="javascript:toggleSource('M000590_source')" id="l_M000590_source">show source</a> ]</p>
229
- <div id="M000590_source" class="dyn-source">
228
+ <p class="source-link">[ <a href="javascript:toggleSource('M000323_source')" id="l_M000323_source">show source</a> ]</p>
229
+ <div id="M000323_source" class="dyn-source">
230
230
  <pre>
231
231
  <span class="ruby-comment cmt"># File lib/core/facets/stackable.rb, line 46</span>
232
232
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span>(<span class="ruby-identifier">x</span>)
@@ -238,21 +238,21 @@ Push item onto the stack.
238
238
  </div>
239
239
  <div class="method">
240
240
  <div class="title">
241
- <a name="M000592"></a><b>shift</b>()
241
+ <a name="M000325"></a><b>shift</b>()
242
242
  </div>
243
243
  <div class="description">
244
244
  <p>
245
- Alias for <a href="Stackable.html#M000591">pull</a>
245
+ Alias for <a href="Stackable.html#M000324">pull</a>
246
246
  </p>
247
247
  </div>
248
248
  </div>
249
249
  <div class="method">
250
250
  <div class="title">
251
- <a name="M000594"></a><b>unshift</b>(x)
251
+ <a name="M000327"></a><b>unshift</b>(x)
252
252
  </div>
253
253
  <div class="description">
254
254
  <p>
255
- Alias for <a href="Stackable.html#M000593">poke</a>
255
+ Alias for <a href="Stackable.html#M000326">poke</a>
256
256
  </p>
257
257
  </div>
258
258
  </div>
@@ -57,46 +57,9 @@
57
57
  <tr valign="top">
58
58
  <td>In:</td>
59
59
  <td>
60
- <a href="../files/lib/core/facets/metaid_rb.html">lib/core/facets/metaid.rb</a>
61
60
  <a href="../files/lib/core/facets/boolean_rb.html">lib/core/facets/boolean.rb</a>
62
61
  <a href="../files/lib/core/facets/comparable/bound_rb.html">lib/core/facets/comparable/bound.rb</a>
63
62
  <a href="../files/lib/core/facets/comparable/cmp_rb.html">lib/core/facets/comparable/cmp.rb</a>
64
- <a href="../files/lib/core/facets/comparable/bound_rb.html">lib/core/facets/comparable/bound.rb</a>
65
- <a href="../files/lib/core/facets/comparable/cmp_rb.html">lib/core/facets/comparable/cmp.rb</a>
66
- <a href="../files/lib/core/facets/string/shatter_rb.html">lib/core/facets/string/shatter.rb</a>
67
- <a href="../files/lib/core/facets/string/to_re_rb.html">lib/core/facets/string/to_re.rb</a>
68
- <a href="../files/lib/core/facets/string/fold_rb.html">lib/core/facets/string/fold.rb</a>
69
- <a href="../files/lib/core/facets/string/start_with_rb.html">lib/core/facets/string/start_with.rb</a>
70
- <a href="../files/lib/core/facets/string/camelcase_rb.html">lib/core/facets/string/camelcase.rb</a>
71
- <a href="../files/lib/core/facets/string/lines_rb.html">lib/core/facets/string/lines.rb</a>
72
- <a href="../files/lib/core/facets/string/word_wrap_rb.html">lib/core/facets/string/word_wrap.rb</a>
73
- <a href="../files/lib/core/facets/string/align_rb.html">lib/core/facets/string/align.rb</a>
74
- <a href="../files/lib/core/facets/string/tab_rb.html">lib/core/facets/string/tab.rb</a>
75
- <a href="../files/lib/core/facets/string/methodize_rb.html">lib/core/facets/string/methodize.rb</a>
76
- <a href="../files/lib/core/facets/string/range_rb.html">lib/core/facets/string/range.rb</a>
77
- <a href="../files/lib/core/facets/string/snakecase_rb.html">lib/core/facets/string/snakecase.rb</a>
78
- <a href="../files/lib/core/facets/string/each_char_rb.html">lib/core/facets/string/each_char.rb</a>
79
- <a href="../files/lib/core/facets/string/divide_rb.html">lib/core/facets/string/divide.rb</a>
80
- <a href="../files/lib/core/facets/string/mscan_rb.html">lib/core/facets/string/mscan.rb</a>
81
- <a href="../files/lib/core/facets/string/capitalized_rb.html">lib/core/facets/string/capitalized.rb</a>
82
- <a href="../files/lib/core/facets/string/natcmp_rb.html">lib/core/facets/string/natcmp.rb</a>
83
- <a href="../files/lib/core/facets/string/bytes_rb.html">lib/core/facets/string/bytes.rb</a>
84
- <a href="../files/lib/core/facets/string/subtract_rb.html">lib/core/facets/string/subtract.rb</a>
85
- <a href="../files/lib/core/facets/string/pathize_rb.html">lib/core/facets/string/pathize.rb</a>
86
- <a href="../files/lib/core/facets/string/titlecase_rb.html">lib/core/facets/string/titlecase.rb</a>
87
- <a href="../files/lib/core/facets/string/words_rb.html">lib/core/facets/string/words.rb</a>
88
- <a href="../files/lib/core/facets/string/interpolate_rb.html">lib/core/facets/string/interpolate.rb</a>
89
- <a href="../files/lib/core/facets/string/cleave_rb.html">lib/core/facets/string/cleave.rb</a>
90
- <a href="../files/lib/core/facets/string/to_time_rb.html">lib/core/facets/string/to_time.rb</a>
91
- <a href="../files/lib/core/facets/string/line_wrap_rb.html">lib/core/facets/string/line_wrap.rb</a>
92
- <a href="../files/lib/core/facets/string/bracket_rb.html">lib/core/facets/string/bracket.rb</a>
93
- <a href="../files/lib/core/facets/string/chars_rb.html">lib/core/facets/string/chars.rb</a>
94
- <a href="../files/lib/core/facets/string/chomp_rb.html">lib/core/facets/string/chomp.rb</a>
95
- <a href="../files/lib/core/facets/string/splice_rb.html">lib/core/facets/string/splice.rb</a>
96
- <a href="../files/lib/core/facets/string/rewrite_rb.html">lib/core/facets/string/rewrite.rb</a>
97
- <a href="../files/lib/core/facets/string/nchar_rb.html">lib/core/facets/string/nchar.rb</a>
98
- <a href="../files/lib/core/facets/string/xor_rb.html">lib/core/facets/string/xor.rb</a>
99
- <a href="../files/lib/core/facets/string/each_word_rb.html">lib/core/facets/string/each_word.rb</a>
100
63
  <a href="../files/lib/core/facets/string/shatter_rb.html">lib/core/facets/string/shatter.rb</a>
101
64
  <a href="../files/lib/core/facets/string/to_re_rb.html">lib/core/facets/string/to_re.rb</a>
102
65
  <a href="../files/lib/core/facets/string/fold_rb.html">lib/core/facets/string/fold.rb</a>
@@ -107,6 +70,7 @@
107
70
  <a href="../files/lib/core/facets/string/align_rb.html">lib/core/facets/string/align.rb</a>
108
71
  <a href="../files/lib/core/facets/string/tab_rb.html">lib/core/facets/string/tab.rb</a>
109
72
  <a href="../files/lib/core/facets/string/methodize_rb.html">lib/core/facets/string/methodize.rb</a>
73
+ <a href="../files/lib/core/facets/string/op_sub_rb.html">lib/core/facets/string/op_sub.rb</a>
110
74
  <a href="../files/lib/core/facets/string/range_rb.html">lib/core/facets/string/range.rb</a>
111
75
  <a href="../files/lib/core/facets/string/snakecase_rb.html">lib/core/facets/string/snakecase.rb</a>
112
76
  <a href="../files/lib/core/facets/string/each_char_rb.html">lib/core/facets/string/each_char.rb</a>
@@ -114,14 +78,13 @@
114
78
  <a href="../files/lib/core/facets/string/mscan_rb.html">lib/core/facets/string/mscan.rb</a>
115
79
  <a href="../files/lib/core/facets/string/capitalized_rb.html">lib/core/facets/string/capitalized.rb</a>
116
80
  <a href="../files/lib/core/facets/string/natcmp_rb.html">lib/core/facets/string/natcmp.rb</a>
81
+ <a href="../files/lib/core/facets/string/variablize_rb.html">lib/core/facets/string/variablize.rb</a>
117
82
  <a href="../files/lib/core/facets/string/bytes_rb.html">lib/core/facets/string/bytes.rb</a>
118
- <a href="../files/lib/core/facets/string/subtract_rb.html">lib/core/facets/string/subtract.rb</a>
119
83
  <a href="../files/lib/core/facets/string/pathize_rb.html">lib/core/facets/string/pathize.rb</a>
120
84
  <a href="../files/lib/core/facets/string/titlecase_rb.html">lib/core/facets/string/titlecase.rb</a>
121
85
  <a href="../files/lib/core/facets/string/words_rb.html">lib/core/facets/string/words.rb</a>
122
86
  <a href="../files/lib/core/facets/string/interpolate_rb.html">lib/core/facets/string/interpolate.rb</a>
123
87
  <a href="../files/lib/core/facets/string/cleave_rb.html">lib/core/facets/string/cleave.rb</a>
124
- <a href="../files/lib/core/facets/string/to_time_rb.html">lib/core/facets/string/to_time.rb</a>
125
88
  <a href="../files/lib/core/facets/string/line_wrap_rb.html">lib/core/facets/string/line_wrap.rb</a>
126
89
  <a href="../files/lib/core/facets/string/bracket_rb.html">lib/core/facets/string/bracket.rb</a>
127
90
  <a href="../files/lib/core/facets/string/chars_rb.html">lib/core/facets/string/chars.rb</a>
@@ -156,127 +119,67 @@ Object
156
119
 
157
120
  <div class="sectiontitle">Methods</div>
158
121
  <ul>
159
- <li><a href="#M000549">-</a></li>
160
- <li><a href="#M000492">-</a></li>
161
- <li><a href="#M000569">^</a></li>
162
- <li><a href="#M000512">^</a></li>
163
- <li><a href="#M000524">align</a></li>
164
- <li><a href="#M000467">align</a></li>
165
- <li><a href="#M000527">align_center</a></li>
166
- <li><a href="#M000470">align_center</a></li>
167
- <li><a href="#M000526">align_left</a></li>
168
- <li><a href="#M000469">align_left</a></li>
169
- <li><a href="#M000525">align_right</a></li>
170
- <li><a href="#M000468">align_right</a></li>
171
- <li><a href="#M000571">blank?</a></li>
172
- <li><a href="#M000500">bracket</a></li>
173
- <li><a href="#M000557">bracket</a></li>
174
- <li><a href="#M000558">bracket!</a></li>
175
- <li><a href="#M000501">bracket!</a></li>
176
- <li><a href="#M000548">bytes</a></li>
177
- <li><a href="#M000491">bytes</a></li>
178
- <li><a href="#M000463">camelcase</a></li>
179
- <li><a href="#M000520">camelcase</a></li>
180
- <li><a href="#M000487">capitalized?</a></li>
181
- <li><a href="#M000544">capitalized?</a></li>
182
- <li><a href="#M000506">chars</a></li>
183
- <li><a href="#M000563">chars</a></li>
184
- <li><a href="#M000554">cleave</a></li>
185
- <li><a href="#M000497">cleave</a></li>
186
- <li><a href="#M000456">cmp</a></li>
187
- <li><a href="#M000454">cmp</a></li>
188
- <li><a href="#M000505">dequote</a></li>
189
- <li><a href="#M000562">dequote</a></li>
190
- <li><a href="#M000542">divide</a></li>
191
- <li><a href="#M000485">divide</a></li>
192
- <li><a href="#M000545">downcase?</a></li>
193
- <li><a href="#M000488">downcase?</a></li>
194
- <li><a href="#M000484">each_char</a></li>
195
- <li><a href="#M000541">each_char</a></li>
196
- <li><a href="#M000570">each_word</a></li>
197
- <li><a href="#M000513">each_word</a></li>
198
- <li><a href="#M000519">end_with?</a></li>
199
- <li><a href="#M000462">end_with?</a></li>
200
- <li><a href="#M000473">expand_tabs</a></li>
201
- <li><a href="#M000530">expand_tabs</a></li>
202
- <li><a href="#M000517">fold</a></li>
203
- <li><a href="#M000460">fold</a></li>
204
- <li><a href="#M000475">indent</a></li>
205
- <li><a href="#M000532">indent</a></li>
206
- <li><a href="#M000482">index_all</a></li>
207
- <li><a href="#M000539">index_all</a></li>
208
- <li><a href="#M000496">interpolate</a></li>
209
- <li><a href="#M000553">interpolate</a></li>
210
- <li><a href="#M000564">lchomp</a></li>
211
- <li><a href="#M000507">lchomp</a></li>
212
- <li><a href="#M000508">lchomp!</a></li>
213
- <li><a href="#M000565">lchomp!</a></li>
214
- <li><a href="#M000556">line_wrap</a></li>
215
- <li><a href="#M000499">line_wrap</a></li>
216
- <li><a href="#M000521">lines</a></li>
217
- <li><a href="#M000464">lines</a></li>
218
- <li><a href="#M000534">margin</a></li>
219
- <li><a href="#M000477">margin</a></li>
220
- <li><a href="#M000535">methodize</a></li>
221
- <li><a href="#M000478">methodize</a></li>
222
- <li><a href="#M000486">mscan</a></li>
223
- <li><a href="#M000543">mscan</a></li>
224
- <li><a href="#M000490">natcmp</a></li>
225
- <li><a href="#M000547">natcmp</a></li>
226
- <li><a href="#M000568">nchar</a></li>
227
- <li><a href="#M000511">nchar</a></li>
228
- <li><a href="#M000476">outdent</a></li>
229
- <li><a href="#M000533">outdent</a></li>
230
- <li><a href="#M000493">pathize</a></li>
231
- <li><a href="#M000550">pathize</a></li>
232
- <li><a href="#M000561">quote</a></li>
233
- <li><a href="#M000504">quote</a></li>
234
- <li><a href="#M000479">range</a></li>
235
- <li><a href="#M000536">range</a></li>
236
- <li><a href="#M000537">range_all</a></li>
237
- <li><a href="#M000480">range_all</a></li>
238
- <li><a href="#M000538">range_of_line</a></li>
239
- <li><a href="#M000481">range_of_line</a></li>
240
- <li><a href="#M000567">rewrite</a></li>
241
- <li><a href="#M000510">rewrite</a></li>
242
- <li><a href="#M000514">shatter</a></li>
243
- <li><a href="#M000457">shatter</a></li>
244
- <li><a href="#M000483">snakecase</a></li>
245
- <li><a href="#M000540">snakecase</a></li>
246
- <li><a href="#M000566">splice</a></li>
247
- <li><a href="#M000509">splice</a></li>
248
- <li><a href="#M000518">start_with?</a></li>
249
- <li><a href="#M000461">start_with?</a></li>
250
- <li><a href="#M000471">tab</a></li>
251
- <li><a href="#M000528">tab</a></li>
252
- <li><a href="#M000472">taballto</a></li>
253
- <li><a href="#M000529">taballto</a></li>
254
- <li><a href="#M000474">tabto</a></li>
255
- <li><a href="#M000531">tabto</a></li>
256
- <li><a href="#M000494">titlecase</a></li>
257
- <li><a href="#M000551">titlecase</a></li>
258
- <li><a href="#M000452">to_b</a></li>
259
- <li><a href="#M000458">to_re</a></li>
260
- <li><a href="#M000515">to_re</a></li>
261
- <li><a href="#M000459">to_rx</a></li>
262
- <li><a href="#M000516">to_rx</a></li>
263
- <li><a href="#M000453">to_s</a></li>
264
- <li><a href="#M000455">to_s</a></li>
265
- <li><a href="#M000555">to_time</a></li>
266
- <li><a href="#M000498">to_time</a></li>
267
- <li><a href="#M000559">unbracket</a></li>
268
- <li><a href="#M000502">unbracket</a></li>
269
- <li><a href="#M000560">unbracket!</a></li>
270
- <li><a href="#M000503">unbracket!</a></li>
271
- <li><a href="#M000489">upcase?</a></li>
272
- <li><a href="#M000546">upcase?</a></li>
273
- <li><a href="#M000451">variablize</a></li>
274
- <li><a href="#M000522">word_wrap</a></li>
275
- <li><a href="#M000465">word_wrap</a></li>
276
- <li><a href="#M000466">word_wrap!</a></li>
277
- <li><a href="#M000523">word_wrap!</a></li>
278
- <li><a href="#M000552">words</a></li>
279
- <li><a href="#M000495">words</a></li>
122
+ <li><a href="#M000267">-</a></li>
123
+ <li><a href="#M000300">^</a></li>
124
+ <li><a href="#M000255">align</a></li>
125
+ <li><a href="#M000258">align_center</a></li>
126
+ <li><a href="#M000257">align_left</a></li>
127
+ <li><a href="#M000256">align_right</a></li>
128
+ <li><a href="#M000302">blank?</a></li>
129
+ <li><a href="#M000288">bracket</a></li>
130
+ <li><a href="#M000289">bracket!</a></li>
131
+ <li><a href="#M000281">bytes</a></li>
132
+ <li><a href="#M000251">camelcase</a></li>
133
+ <li><a href="#M000276">capitalized?</a></li>
134
+ <li><a href="#M000294">chars</a></li>
135
+ <li><a href="#M000286">cleave</a></li>
136
+ <li><a href="#M000244">cmp</a></li>
137
+ <li><a href="#M000293">dequote</a></li>
138
+ <li><a href="#M000274">divide</a></li>
139
+ <li><a href="#M000277">downcase?</a></li>
140
+ <li><a href="#M000273">each_char</a></li>
141
+ <li><a href="#M000301">each_word</a></li>
142
+ <li><a href="#M000250">end_with?</a></li>
143
+ <li><a href="#M000261">expand_tabs</a></li>
144
+ <li><a href="#M000248">fold</a></li>
145
+ <li><a href="#M000263">indent</a></li>
146
+ <li><a href="#M000271">index_all</a></li>
147
+ <li><a href="#M000285">interpolate</a></li>
148
+ <li><a href="#M000295">lchomp</a></li>
149
+ <li><a href="#M000296">lchomp!</a></li>
150
+ <li><a href="#M000287">line_wrap</a></li>
151
+ <li><a href="#M000252">lines</a></li>
152
+ <li><a href="#M000265">margin</a></li>
153
+ <li><a href="#M000266">methodize</a></li>
154
+ <li><a href="#M000275">mscan</a></li>
155
+ <li><a href="#M000279">natcmp</a></li>
156
+ <li><a href="#M000299">nchar</a></li>
157
+ <li><a href="#M000264">outdent</a></li>
158
+ <li><a href="#M000282">pathize</a></li>
159
+ <li><a href="#M000292">quote</a></li>
160
+ <li><a href="#M000268">range</a></li>
161
+ <li><a href="#M000269">range_all</a></li>
162
+ <li><a href="#M000270">range_of_line</a></li>
163
+ <li><a href="#M000298">rewrite</a></li>
164
+ <li><a href="#M000245">shatter</a></li>
165
+ <li><a href="#M000272">snakecase</a></li>
166
+ <li><a href="#M000297">splice</a></li>
167
+ <li><a href="#M000249">start_with?</a></li>
168
+ <li><a href="#M000259">tab</a></li>
169
+ <li><a href="#M000260">taballto</a></li>
170
+ <li><a href="#M000262">tabto</a></li>
171
+ <li><a href="#M000283">titlecase</a></li>
172
+ <li><a href="#M000242">to_b</a></li>
173
+ <li><a href="#M000246">to_re</a></li>
174
+ <li><a href="#M000247">to_rx</a></li>
175
+ <li><a href="#M000243">to_s</a></li>
176
+ <li><a href="#M000290">unbracket</a></li>
177
+ <li><a href="#M000291">unbracket!</a></li>
178
+ <li><a href="#M000278">upcase?</a></li>
179
+ <li><a href="#M000280">variablize</a></li>
180
+ <li><a href="#M000253">word_wrap</a></li>
181
+ <li><a href="#M000254">word_wrap!</a></li>
182
+ <li><a href="#M000284">words</a></li>
280
183
  </ul>
281
184
 
282
185
 
@@ -289,50 +192,13 @@ Object
289
192
  <td>=</td>
290
193
  <td class="attr-value">{ '['=&gt;']', '('=&gt;')', '{'=&gt;'}', '&lt;'=&gt;'&gt;' }</td>
291
194
  </tr>
292
- <tr valign='top'>
293
- <td class="attr-name">BRA2KET</td>
294
- <td>=</td>
295
- <td class="attr-value">{ '['=&gt;']', '('=&gt;')', '{'=&gt;'}', '&lt;'=&gt;'&gt;' }</td>
296
- </tr>
297
195
  </table>
298
196
 
299
197
 
300
198
  <div class="sectiontitle">Public Class methods</div>
301
199
  <div class="method">
302
200
  <div class="title">
303
- <a name="M000496"></a><b>interpolate</b>(&amp;str)
304
- </div>
305
- <div class="description">
306
- <p>
307
- Interpolate. Provides a means of extenally using Ruby string interpolation
308
- mechinism.
309
- </p>
310
- <pre>
311
- try = &quot;hello&quot;
312
- str = &quot;\#{try}!!!&quot;
313
- String.interpolate{ str } #=&gt; &quot;hello!!!&quot;
314
-
315
- NOTE: The block neccessary in order to get
316
- then binding of the caller.
317
-
318
- CREDIT: Trans
319
- </pre>
320
- </div>
321
- <div class="sourcecode">
322
- <p class="source-link">[ <a href="javascript:toggleSource('M000496_source')" id="l_M000496_source">show source</a> ]</p>
323
- <div id="M000496_source" class="dyn-source">
324
- <pre>
325
- <span class="ruby-comment cmt"># File lib/core/facets/string/interpolate.rb, line 15</span>
326
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">interpolate</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">str</span>)
327
- <span class="ruby-identifier">eval</span> <span class="ruby-node">&quot;%{#{str.call}}&quot;</span>, <span class="ruby-identifier">str</span>.<span class="ruby-identifier">binding</span>
328
- <span class="ruby-keyword kw">end</span>
329
- </pre>
330
- </div>
331
- </div>
332
- </div>
333
- <div class="method">
334
- <div class="title">
335
- <a name="M000553"></a><b>interpolate</b>(&amp;str)
201
+ <a name="M000285"></a><b>interpolate</b>(&amp;str)
336
202
  </div>
337
203
  <div class="description">
338
204
  <p>
@@ -351,8 +217,8 @@ mechinism.
351
217
  </pre>
352
218
  </div>
353
219
  <div class="sourcecode">
354
- <p class="source-link">[ <a href="javascript:toggleSource('M000553_source')" id="l_M000553_source">show source</a> ]</p>
355
- <div id="M000553_source" class="dyn-source">
220
+ <p class="source-link">[ <a href="javascript:toggleSource('M000285_source')" id="l_M000285_source">show source</a> ]</p>
221
+ <div id="M000285_source" class="dyn-source">
356
222
  <pre>
357
223
  <span class="ruby-comment cmt"># File lib/core/facets/string/interpolate.rb, line 15</span>
358
224
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">interpolate</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">str</span>)
@@ -365,33 +231,7 @@ mechinism.
365
231
  <div class="sectiontitle">Public Instance methods</div>
366
232
  <div class="method">
367
233
  <div class="title">
368
- <a name="M000549"></a><b>-</b>(pattern)
369
- </div>
370
- <div class="description">
371
- <p>
372
- Removes occurances of a string or regexp.
373
- </p>
374
- <pre>
375
- &quot;HELLO HELLO&quot; - &quot;LL&quot; #=&gt; &quot;HEO HEO&quot;
376
-
377
- CREDIT: Benjamin David Oakes
378
- </pre>
379
- </div>
380
- <div class="sourcecode">
381
- <p class="source-link">[ <a href="javascript:toggleSource('M000549_source')" id="l_M000549_source">show source</a> ]</p>
382
- <div id="M000549_source" class="dyn-source">
383
- <pre>
384
- <span class="ruby-comment cmt"># File lib/core/facets/string/subtract.rb, line 9</span>
385
- <span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">pattern</span>)
386
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-identifier">pattern</span>, <span class="ruby-value str">''</span>)
387
- <span class="ruby-keyword kw">end</span>
388
- </pre>
389
- </div>
390
- </div>
391
- </div>
392
- <div class="method">
393
- <div class="title">
394
- <a name="M000492"></a><b>-</b>(pattern)
234
+ <a name="M000267"></a><b>-</b>(pattern)
395
235
  </div>
396
236
  <div class="description">
397
237
  <p>
@@ -404,10 +244,10 @@ Removes occurances of a string or regexp.
404
244
  </pre>
405
245
  </div>
406
246
  <div class="sourcecode">
407
- <p class="source-link">[ <a href="javascript:toggleSource('M000492_source')" id="l_M000492_source">show source</a> ]</p>
408
- <div id="M000492_source" class="dyn-source">
247
+ <p class="source-link">[ <a href="javascript:toggleSource('M000267_source')" id="l_M000267_source">show source</a> ]</p>
248
+ <div id="M000267_source" class="dyn-source">
409
249
  <pre>
410
- <span class="ruby-comment cmt"># File lib/core/facets/string/subtract.rb, line 9</span>
250
+ <span class="ruby-comment cmt"># File lib/core/facets/string/op_sub.rb, line 9</span>
411
251
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">pattern</span>)
412
252
  <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-identifier">pattern</span>, <span class="ruby-value str">''</span>)
413
253
  <span class="ruby-keyword kw">end</span>
@@ -417,41 +257,7 @@ Removes occurances of a string or regexp.
417
257
  </div>
418
258
  <div class="method">
419
259
  <div class="title">
420
- <a name="M000569"></a><b>^</b>(aString)
421
- </div>
422
- <div class="description">
423
- <p>
424
- XOR two string.
425
- </p>
426
- <p>
427
- TODO: This is used by crypt.rb, it needs to be documented.
428
- </p>
429
- </div>
430
- <div class="sourcecode">
431
- <p class="source-link">[ <a href="javascript:toggleSource('M000569_source')" id="l_M000569_source">show source</a> ]</p>
432
- <div id="M000569_source" class="dyn-source">
433
- <pre>
434
- <span class="ruby-comment cmt"># File lib/core/facets/string/xor.rb, line 7</span>
435
- <span class="ruby-keyword kw">def</span> <span class="ruby-operator">^</span>(<span class="ruby-identifier">aString</span>)
436
- <span class="ruby-identifier">a</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'C'</span><span class="ruby-operator">*</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span>))
437
- <span class="ruby-identifier">b</span> = <span class="ruby-identifier">aString</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'C'</span><span class="ruby-operator">*</span>(<span class="ruby-identifier">aString</span>.<span class="ruby-identifier">length</span>))
438
- <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">b</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">length</span>)
439
- (<span class="ruby-identifier">a</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">length</span>).<span class="ruby-identifier">times</span> { <span class="ruby-identifier">b</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value">0</span> }
440
- <span class="ruby-keyword kw">end</span>
441
- <span class="ruby-identifier">xor</span> = <span class="ruby-value str">&quot;&quot;</span>
442
- <span class="ruby-value">0</span>.<span class="ruby-identifier">upto</span>(<span class="ruby-identifier">a</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">pos</span><span class="ruby-operator">|</span>
443
- <span class="ruby-identifier">x</span> = <span class="ruby-identifier">a</span>[<span class="ruby-identifier">pos</span>] <span class="ruby-operator">^</span> <span class="ruby-identifier">b</span>[<span class="ruby-identifier">pos</span>]
444
- <span class="ruby-identifier">xor</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">chr</span>()
445
- }
446
- <span class="ruby-keyword kw">return</span>(<span class="ruby-identifier">xor</span>)
447
- <span class="ruby-keyword kw">end</span>
448
- </pre>
449
- </div>
450
- </div>
451
- </div>
452
- <div class="method">
453
- <div class="title">
454
- <a name="M000512"></a><b>^</b>(aString)
260
+ <a name="M000300"></a><b>^</b>(aString)
455
261
  </div>
456
262
  <div class="description">
457
263
  <p>
@@ -462,8 +268,8 @@ TODO: This is used by crypt.rb, it needs to be documented.
462
268
  </p>
463
269
  </div>
464
270
  <div class="sourcecode">
465
- <p class="source-link">[ <a href="javascript:toggleSource('M000512_source')" id="l_M000512_source">show source</a> ]</p>
466
- <div id="M000512_source" class="dyn-source">
271
+ <p class="source-link">[ <a href="javascript:toggleSource('M000300_source')" id="l_M000300_source">show source</a> ]</p>
272
+ <div id="M000300_source" class="dyn-source">
467
273
  <pre>
468
274
  <span class="ruby-comment cmt"># File lib/core/facets/string/xor.rb, line 7</span>
469
275
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">^</span>(<span class="ruby-identifier">aString</span>)
@@ -485,36 +291,11 @@ TODO: This is used by crypt.rb, it needs to be documented.
485
291
  </div>
486
292
  <div class="method">
487
293
  <div class="title">
488
- <a name="M000524"></a><b>align</b>(direction, n, sep=&quot;\n&quot;, c=' ')
489
- </div>
490
- <div class="sourcecode">
491
- <p class="source-link">[ <a href="javascript:toggleSource('M000524_source')" id="l_M000524_source">show source</a> ]</p>
492
- <div id="M000524_source" class="dyn-source">
493
- <pre>
494
- <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 3</span>
495
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">&quot;\n&quot;</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
496
- <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">direction</span>
497
- <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:right</span>
498
- <span class="ruby-identifier">align_right</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">&quot;\n&quot;</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
499
- <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:left</span>
500
- <span class="ruby-identifier">align_left</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">&quot;\n&quot;</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
501
- <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:center</span>
502
- <span class="ruby-identifier">align_center</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">&quot;\n&quot;</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
503
- <span class="ruby-keyword kw">else</span>
504
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>
505
- <span class="ruby-keyword kw">end</span>
506
- <span class="ruby-keyword kw">end</span>
507
- </pre>
508
- </div>
509
- </div>
510
- </div>
511
- <div class="method">
512
- <div class="title">
513
- <a name="M000467"></a><b>align</b>(direction, n, sep=&quot;\n&quot;, c=' ')
294
+ <a name="M000255"></a><b>align</b>(direction, n, sep=&quot;\n&quot;, c=' ')
514
295
  </div>
515
296
  <div class="sourcecode">
516
- <p class="source-link">[ <a href="javascript:toggleSource('M000467_source')" id="l_M000467_source">show source</a> ]</p>
517
- <div id="M000467_source" class="dyn-source">
297
+ <p class="source-link">[ <a href="javascript:toggleSource('M000255_source')" id="l_M000255_source">show source</a> ]</p>
298
+ <div id="M000255_source" class="dyn-source">
518
299
  <pre>
519
300
  <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 3</span>
520
301
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">&quot;\n&quot;</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
@@ -535,56 +316,7 @@ TODO: This is used by crypt.rb, it needs to be documented.
535
316
  </div>
536
317
  <div class="method">
537
318
  <div class="title">
538
- <a name="M000527"></a><b>align_center</b>(n, sep=&quot;\n&quot;, c=' ')
539
- </div>
540
- <div class="description">
541
- <p>
542
- Centers each line of a string.
543
- </p>
544
- <p>
545
- The defualt alignment seperation is a new line (&quot;/n&quot;) This can be
546
- changed as can be the padding string which defaults to a single space
547
- (&#8217; &#8217;).
548
- </p>
549
- <pre>
550
- s = &lt;&lt;-EOS
551
- This is a test
552
- and
553
- so on
554
- EOS
555
-
556
- puts s.align_center(14)
557
- </pre>
558
- <p>
559
- <em>produces</em>
560
- </p>
561
- <pre>
562
- This is a test
563
- and
564
- so on
565
-
566
- CREDIT: Trans
567
- </pre>
568
- </div>
569
- <div class="sourcecode">
570
- <p class="source-link">[ <a href="javascript:toggleSource('M000527_source')" id="l_M000527_source">show source</a> ]</p>
571
- <div id="M000527_source" class="dyn-source">
572
- <pre>
573
- <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 97</span>
574
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_center</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">&quot;\n&quot;</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
575
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">center</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sep</span><span class="ruby-operator">==</span><span class="ruby-keyword kw">nil</span>
576
- <span class="ruby-identifier">q</span> = <span class="ruby-identifier">split</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>).<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
577
- <span class="ruby-identifier">line</span>.<span class="ruby-identifier">center</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>)
578
- }
579
- <span class="ruby-identifier">q</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>)
580
- <span class="ruby-keyword kw">end</span>
581
- </pre>
582
- </div>
583
- </div>
584
- </div>
585
- <div class="method">
586
- <div class="title">
587
- <a name="M000470"></a><b>align_center</b>(n, sep=&quot;\n&quot;, c=' ')
319
+ <a name="M000258"></a><b>align_center</b>(n, sep=&quot;\n&quot;, c=' ')
588
320
  </div>
589
321
  <div class="description">
590
322
  <p>
@@ -616,8 +348,8 @@ changed as can be the padding string which defaults to a single space
616
348
  </pre>
617
349
  </div>
618
350
  <div class="sourcecode">
619
- <p class="source-link">[ <a href="javascript:toggleSource('M000470_source')" id="l_M000470_source">show source</a> ]</p>
620
- <div id="M000470_source" class="dyn-source">
351
+ <p class="source-link">[ <a href="javascript:toggleSource('M000258_source')" id="l_M000258_source">show source</a> ]</p>
352
+ <div id="M000258_source" class="dyn-source">
621
353
  <pre>
622
354
  <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 97</span>
623
355
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_center</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">&quot;\n&quot;</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
@@ -633,7 +365,7 @@ changed as can be the padding string which defaults to a single space
633
365
  </div>
634
366
  <div class="method">
635
367
  <div class="title">
636
- <a name="M000526"></a><b>align_left</b>(n, sep=&quot;\n&quot;, c=' ')
368
+ <a name="M000257"></a><b>align_left</b>(n, sep=&quot;\n&quot;, c=' ')
637
369
  </div>
638
370
  <div class="description">
639
371
  <p>
@@ -665,8 +397,8 @@ changes as can be the padding string which defaults to a single space
665
397
  </pre>
666
398
  </div>
667
399
  <div class="sourcecode">
668
- <p class="source-link">[ <a href="javascript:toggleSource('M000526_source')" id="l_M000526_source">show source</a> ]</p>
669
- <div id="M000526_source" class="dyn-source">
400
+ <p class="source-link">[ <a href="javascript:toggleSource('M000257_source')" id="l_M000257_source">show source</a> ]</p>
401
+ <div id="M000257_source" class="dyn-source">
670
402
  <pre>
671
403
  <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 67</span>
672
404
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_left</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">&quot;\n&quot;</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
@@ -682,16 +414,13 @@ changes as can be the padding string which defaults to a single space
682
414
  </div>
683
415
  <div class="method">
684
416
  <div class="title">
685
- <a name="M000469"></a><b>align_left</b>(n, sep=&quot;\n&quot;, c=' ')
417
+ <a name="M000256"></a><b>align_right</b>(n, sep=&quot;\n&quot;, c=' ')
686
418
  </div>
687
419
  <div class="description">
688
420
  <p>
689
- Align a string to the left.
690
- </p>
691
- <p>
692
- The defualt alignment seperation is a new line (&quot;/n&quot;) This can be
693
- changes as can be the padding string which defaults to a single space
694
- (&#8217; &#8217;).
421
+ Align a string to the right. The defualt alignment seperation is a new line
422
+ (&quot;/n&quot;) This can be changes as can be the padding string which
423
+ defaults to a single space (&#8217; &#8217;).
695
424
  </p>
696
425
  <pre>
697
426
  s = &lt;&lt;-EOS
@@ -700,28 +429,28 @@ changes as can be the padding string which defaults to a single space
700
429
  so on
701
430
  EOS
702
431
 
703
- puts s.align_left(2)
432
+ puts s.align_right(2)
704
433
  </pre>
705
434
  <p>
706
435
  <em>produces</em>
707
436
  </p>
708
437
  <pre>
709
438
  This is a test
710
- and
711
- so on
439
+ and
440
+ so on
712
441
 
713
442
  CREDIT: Trans
714
443
  </pre>
715
444
  </div>
716
445
  <div class="sourcecode">
717
- <p class="source-link">[ <a href="javascript:toggleSource('M000469_source')" id="l_M000469_source">show source</a> ]</p>
718
- <div id="M000469_source" class="dyn-source">
446
+ <p class="source-link">[ <a href="javascript:toggleSource('M000256_source')" id="l_M000256_source">show source</a> ]</p>
447
+ <div id="M000256_source" class="dyn-source">
719
448
  <pre>
720
- <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 67</span>
721
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_left</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">&quot;\n&quot;</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
722
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">ljust</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sep</span><span class="ruby-operator">==</span><span class="ruby-keyword kw">nil</span>
449
+ <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 37</span>
450
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_right</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">&quot;\n&quot;</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
451
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">rjust</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sep</span><span class="ruby-operator">==</span><span class="ruby-keyword kw">nil</span>
723
452
  <span class="ruby-identifier">q</span> = <span class="ruby-identifier">split</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>).<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
724
- <span class="ruby-identifier">line</span>.<span class="ruby-identifier">ljust</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>)
453
+ <span class="ruby-identifier">line</span>.<span class="ruby-identifier">rjust</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>)
725
454
  }
726
455
  <span class="ruby-identifier">q</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>)
727
456
  <span class="ruby-keyword kw">end</span>
@@ -731,45 +460,24 @@ changes as can be the padding string which defaults to a single space
731
460
  </div>
732
461
  <div class="method">
733
462
  <div class="title">
734
- <a name="M000525"></a><b>align_right</b>(n, sep=&quot;\n&quot;, c=' ')
463
+ <a name="M000302"></a><b>blank?</b>()
735
464
  </div>
736
465
  <div class="description">
737
466
  <p>
738
- Align a string to the right. The defualt alignment seperation is a new line
739
- (&quot;/n&quot;) This can be changes as can be the padding string which
740
- defaults to a single space (&#8217; &#8217;).
741
- </p>
742
- <pre>
743
- s = &lt;&lt;-EOS
744
- This is a test
745
- and
746
- so on
747
- EOS
748
-
749
- puts s.align_right(2)
750
- </pre>
751
- <p>
752
- <em>produces</em>
467
+ Is this string just whitespace?
753
468
  </p>
754
469
  <pre>
755
- This is a test
756
- and
757
- so on
758
-
759
- CREDIT: Trans
470
+ &quot;abc&quot;.blank? #=&gt; false
471
+ &quot; &quot;.blank? #=&gt; true
760
472
  </pre>
761
473
  </div>
762
474
  <div class="sourcecode">
763
- <p class="source-link">[ <a href="javascript:toggleSource('M000525_source')" id="l_M000525_source">show source</a> ]</p>
764
- <div id="M000525_source" class="dyn-source">
475
+ <p class="source-link">[ <a href="javascript:toggleSource('M000302_source')" id="l_M000302_source">show source</a> ]</p>
476
+ <div id="M000302_source" class="dyn-source">
765
477
  <pre>
766
- <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 37</span>
767
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_right</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">&quot;\n&quot;</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
768
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">rjust</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sep</span><span class="ruby-operator">==</span><span class="ruby-keyword kw">nil</span>
769
- <span class="ruby-identifier">q</span> = <span class="ruby-identifier">split</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>).<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
770
- <span class="ruby-identifier">line</span>.<span class="ruby-identifier">rjust</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>)
771
- }
772
- <span class="ruby-identifier">q</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>)
478
+ <span class="ruby-comment cmt"># File lib/core/facets/blank.rb, line 50</span>
479
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blank?</span>
480
+ <span class="ruby-keyword kw">self</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/\S/</span>
773
481
  <span class="ruby-keyword kw">end</span>
774
482
  </pre>
775
483
  </div>
@@ -777,115 +485,13 @@ defaults to a single space (&#8217; &#8217;).
777
485
  </div>
778
486
  <div class="method">
779
487
  <div class="title">
780
- <a name="M000468"></a><b>align_right</b>(n, sep=&quot;\n&quot;, c=' ')
488
+ <a name="M000288"></a><b>bracket</b>(bra, ket=nil)
781
489
  </div>
782
490
  <div class="description">
783
491
  <p>
784
- Align a string to the right. The defualt alignment seperation is a new line
785
- (&quot;/n&quot;) This can be changes as can be the padding string which
786
- defaults to a single space (&#8217; &#8217;).
787
- </p>
788
- <pre>
789
- s = &lt;&lt;-EOS
790
- This is a test
791
- and
792
- so on
793
- EOS
794
-
795
- puts s.align_right(2)
796
- </pre>
797
- <p>
798
- <em>produces</em>
799
- </p>
800
- <pre>
801
- This is a test
802
- and
803
- so on
804
-
805
- CREDIT: Trans
806
- </pre>
807
- </div>
808
- <div class="sourcecode">
809
- <p class="source-link">[ <a href="javascript:toggleSource('M000468_source')" id="l_M000468_source">show source</a> ]</p>
810
- <div id="M000468_source" class="dyn-source">
811
- <pre>
812
- <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 37</span>
813
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_right</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">&quot;\n&quot;</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
814
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">rjust</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sep</span><span class="ruby-operator">==</span><span class="ruby-keyword kw">nil</span>
815
- <span class="ruby-identifier">q</span> = <span class="ruby-identifier">split</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>).<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
816
- <span class="ruby-identifier">line</span>.<span class="ruby-identifier">rjust</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>)
817
- }
818
- <span class="ruby-identifier">q</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>)
819
- <span class="ruby-keyword kw">end</span>
820
- </pre>
821
- </div>
822
- </div>
823
- </div>
824
- <div class="method">
825
- <div class="title">
826
- <a name="M000571"></a><b>blank?</b>()
827
- </div>
828
- <div class="description">
829
- <p>
830
- Is this string just whitespace?
831
- </p>
832
- <pre>
833
- &quot;abc&quot;.blank? #=&gt; false
834
- &quot; &quot;.blank? #=&gt; true
835
- </pre>
836
- </div>
837
- <div class="sourcecode">
838
- <p class="source-link">[ <a href="javascript:toggleSource('M000571_source')" id="l_M000571_source">show source</a> ]</p>
839
- <div id="M000571_source" class="dyn-source">
840
- <pre>
841
- <span class="ruby-comment cmt"># File lib/core/facets/blank.rb, line 50</span>
842
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blank?</span>
843
- <span class="ruby-keyword kw">self</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/\S/</span>
844
- <span class="ruby-keyword kw">end</span>
845
- </pre>
846
- </div>
847
- </div>
848
- </div>
849
- <div class="method">
850
- <div class="title">
851
- <a name="M000500"></a><b>bracket</b>(bra, ket=nil)
852
- </div>
853
- <div class="description">
854
- <p>
855
- Return a new string embraced by given brakets. If only one <a
856
- href="String.html#M000500">bracket</a> char is given it will be placed on
857
- either side.
858
- </p>
859
- <pre>
860
- &quot;wrap me&quot;.bracket('{') #=&gt; &quot;{wrap me}&quot;
861
- &quot;wrap me&quot;.bracket('--','!') #=&gt; &quot;--wrap me!&quot;
862
-
863
- CREDIT: Trans
864
- </pre>
865
- </div>
866
- <div class="sourcecode">
867
- <p class="source-link">[ <a href="javascript:toggleSource('M000500_source')" id="l_M000500_source">show source</a> ]</p>
868
- <div id="M000500_source" class="dyn-source">
869
- <pre>
870
- <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 14</span>
871
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bracket</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
872
- <span class="ruby-comment cmt">#ket = String.bra2ket[$&amp;] if ! ket &amp;&amp; /^[\[({&lt;]$/ =~ bra</span>
873
- <span class="ruby-identifier">ket</span> = <span class="ruby-constant">BRA2KET</span>[<span class="ruby-identifier">bra</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">ket</span>
874
- <span class="ruby-node">&quot;#{bra}#{self}#{ket ? ket : bra}&quot;</span>
875
- <span class="ruby-keyword kw">end</span>
876
- </pre>
877
- </div>
878
- </div>
879
- </div>
880
- <div class="method">
881
- <div class="title">
882
- <a name="M000557"></a><b>bracket</b>(bra, ket=nil)
883
- </div>
884
- <div class="description">
885
- <p>
886
- Return a new string embraced by given brakets. If only one <a
887
- href="String.html#M000500">bracket</a> char is given it will be placed on
888
- either side.
492
+ Return a new string embraced by given brakets. If only one <a
493
+ href="String.html#M000288">bracket</a> char is given it will be placed on
494
+ either side.
889
495
  </p>
890
496
  <pre>
891
497
  &quot;wrap me&quot;.bracket('{') #=&gt; &quot;{wrap me}&quot;
@@ -895,8 +501,8 @@ either side.
895
501
  </pre>
896
502
  </div>
897
503
  <div class="sourcecode">
898
- <p class="source-link">[ <a href="javascript:toggleSource('M000557_source')" id="l_M000557_source">show source</a> ]</p>
899
- <div id="M000557_source" class="dyn-source">
504
+ <p class="source-link">[ <a href="javascript:toggleSource('M000288_source')" id="l_M000288_source">show source</a> ]</p>
505
+ <div id="M000288_source" class="dyn-source">
900
506
  <pre>
901
507
  <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 14</span>
902
508
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bracket</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
@@ -910,31 +516,7 @@ either side.
910
516
  </div>
911
517
  <div class="method">
912
518
  <div class="title">
913
- <a name="M000558"></a><b>bracket!</b>(bra, ket=nil)
914
- </div>
915
- <div class="description">
916
- <p>
917
- Inplace version of braket.
918
- </p>
919
- <pre>
920
- CREDIT: Trans
921
- </pre>
922
- </div>
923
- <div class="sourcecode">
924
- <p class="source-link">[ <a href="javascript:toggleSource('M000558_source')" id="l_M000558_source">show source</a> ]</p>
925
- <div id="M000558_source" class="dyn-source">
926
- <pre>
927
- <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 24</span>
928
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bracket!</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
929
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">replace</span>(<span class="ruby-identifier">bracket</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>))
930
- <span class="ruby-keyword kw">end</span>
931
- </pre>
932
- </div>
933
- </div>
934
- </div>
935
- <div class="method">
936
- <div class="title">
937
- <a name="M000501"></a><b>bracket!</b>(bra, ket=nil)
519
+ <a name="M000289"></a><b>bracket!</b>(bra, ket=nil)
938
520
  </div>
939
521
  <div class="description">
940
522
  <p>
@@ -945,8 +527,8 @@ Inplace version of braket.
945
527
  </pre>
946
528
  </div>
947
529
  <div class="sourcecode">
948
- <p class="source-link">[ <a href="javascript:toggleSource('M000501_source')" id="l_M000501_source">show source</a> ]</p>
949
- <div id="M000501_source" class="dyn-source">
530
+ <p class="source-link">[ <a href="javascript:toggleSource('M000289_source')" id="l_M000289_source">show source</a> ]</p>
531
+ <div id="M000289_source" class="dyn-source">
950
532
  <pre>
951
533
  <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 24</span>
952
534
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bracket!</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
@@ -958,37 +540,16 @@ Inplace version of braket.
958
540
  </div>
959
541
  <div class="method">
960
542
  <div class="title">
961
- <a name="M000548"></a><b>bytes</b>()
962
- </div>
963
- <div class="description">
964
- <p>
965
- Upacks string into <a href="String.html#M000491">bytes</a>.
966
- </p>
967
- </div>
968
- <div class="sourcecode">
969
- <p class="source-link">[ <a href="javascript:toggleSource('M000548_source')" id="l_M000548_source">show source</a> ]</p>
970
- <div id="M000548_source" class="dyn-source">
971
- <pre>
972
- <span class="ruby-comment cmt"># File lib/core/facets/string/bytes.rb, line 8</span>
973
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bytes</span>
974
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'C*'</span>)
975
- <span class="ruby-keyword kw">end</span>
976
- </pre>
977
- </div>
978
- </div>
979
- </div>
980
- <div class="method">
981
- <div class="title">
982
- <a name="M000491"></a><b>bytes</b>()
543
+ <a name="M000281"></a><b>bytes</b>()
983
544
  </div>
984
545
  <div class="description">
985
546
  <p>
986
- Upacks string into <a href="String.html#M000491">bytes</a>.
547
+ Upacks string into <a href="String.html#M000281">bytes</a>.
987
548
  </p>
988
549
  </div>
989
550
  <div class="sourcecode">
990
- <p class="source-link">[ <a href="javascript:toggleSource('M000491_source')" id="l_M000491_source">show source</a> ]</p>
991
- <div id="M000491_source" class="dyn-source">
551
+ <p class="source-link">[ <a href="javascript:toggleSource('M000281_source')" id="l_M000281_source">show source</a> ]</p>
552
+ <div id="M000281_source" class="dyn-source">
992
553
  <pre>
993
554
  <span class="ruby-comment cmt"># File lib/core/facets/string/bytes.rb, line 8</span>
994
555
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bytes</span>
@@ -1000,63 +561,19 @@ Upacks string into <a href="String.html#M000491">bytes</a>.
1000
561
  </div>
1001
562
  <div class="method">
1002
563
  <div class="title">
1003
- <a name="M000463"></a><b>camelcase</b>(upcase_first_letter=true)
1004
- </div>
1005
- <div class="description">
1006
- <p>
1007
- Converts a string to <a href="String.html#M000463">camelcase</a>.
1008
- </p>
1009
- <p>
1010
- By default <a href="String.html#M000463">camelcase</a> convert to
1011
- UpperCamelCase, If an argument is set to <tt>false</tt>, then <a
1012
- href="String.html#M000463">camelcase</a> will produce lowerCamelCase.
1013
- </p>
1014
- <p>
1015
- <tt><a href="String.html#M000463">camelcase</a></tt> also converts
1016
- &#8217;/&#8217; to &#8217;::&#8217; which is useful for converting paths to
1017
- namespaces.
1018
- </p>
1019
- <p>
1020
- Examples
1021
- </p>
1022
- <pre>
1023
- &quot;camel_case&quot;.camelcase #=&gt; &quot;CamelCase&quot;
1024
- &quot;camel/case&quot;.camelcase #=&gt; &quot;Camel::Case&quot;
1025
- &quot;camel_case&quot;.camelcase(false) #=&gt; &quot;camelCase&quot;
1026
- </pre>
1027
- </div>
1028
- <div class="sourcecode">
1029
- <p class="source-link">[ <a href="javascript:toggleSource('M000463_source')" id="l_M000463_source">show source</a> ]</p>
1030
- <div id="M000463_source" class="dyn-source">
1031
- <pre>
1032
- <span class="ruby-comment cmt"># File lib/core/facets/string/camelcase.rb, line 16</span>
1033
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">camelcase</span>(<span class="ruby-identifier">upcase_first_letter</span>=<span class="ruby-keyword kw">true</span>)
1034
- <span class="ruby-identifier">up</span> = <span class="ruby-identifier">upcase_first_letter</span>
1035
- <span class="ruby-identifier">str</span> = <span class="ruby-identifier">dup</span>
1036
- <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/\/(.?)/</span>){ <span class="ruby-node">&quot;::#{$1.upcase}&quot;</span> } <span class="ruby-comment cmt"># NOT SO SURE ABOUT THIS -T</span>
1037
- <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/(?:_+|-+)([a-z])/</span>){ <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">upcase</span> }
1038
- <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/(\A|\s)([a-z])/</span>){ <span class="ruby-identifier">$1</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">$2</span>.<span class="ruby-identifier">upcase</span> } <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">up</span>
1039
- <span class="ruby-identifier">str</span>
1040
- <span class="ruby-keyword kw">end</span>
1041
- </pre>
1042
- </div>
1043
- </div>
1044
- </div>
1045
- <div class="method">
1046
- <div class="title">
1047
- <a name="M000520"></a><b>camelcase</b>(upcase_first_letter=true)
564
+ <a name="M000251"></a><b>camelcase</b>(upcase_first_letter=true)
1048
565
  </div>
1049
566
  <div class="description">
1050
567
  <p>
1051
- Converts a string to <a href="String.html#M000463">camelcase</a>.
568
+ Converts a string to <a href="String.html#M000251">camelcase</a>.
1052
569
  </p>
1053
570
  <p>
1054
- By default <a href="String.html#M000463">camelcase</a> convert to
571
+ By default <a href="String.html#M000251">camelcase</a> convert to
1055
572
  UpperCamelCase, If an argument is set to <tt>false</tt>, then <a
1056
- href="String.html#M000463">camelcase</a> will produce lowerCamelCase.
573
+ href="String.html#M000251">camelcase</a> will produce lowerCamelCase.
1057
574
  </p>
1058
575
  <p>
1059
- <tt><a href="String.html#M000463">camelcase</a></tt> also converts
576
+ <tt><a href="String.html#M000251">camelcase</a></tt> also converts
1060
577
  &#8217;/&#8217; to &#8217;::&#8217; which is useful for converting paths to
1061
578
  namespaces.
1062
579
  </p>
@@ -1070,8 +587,8 @@ Examples
1070
587
  </pre>
1071
588
  </div>
1072
589
  <div class="sourcecode">
1073
- <p class="source-link">[ <a href="javascript:toggleSource('M000520_source')" id="l_M000520_source">show source</a> ]</p>
1074
- <div id="M000520_source" class="dyn-source">
590
+ <p class="source-link">[ <a href="javascript:toggleSource('M000251_source')" id="l_M000251_source">show source</a> ]</p>
591
+ <div id="M000251_source" class="dyn-source">
1075
592
  <pre>
1076
593
  <span class="ruby-comment cmt"># File lib/core/facets/string/camelcase.rb, line 16</span>
1077
594
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">camelcase</span>(<span class="ruby-identifier">upcase_first_letter</span>=<span class="ruby-keyword kw">true</span>)
@@ -1088,7 +605,7 @@ Examples
1088
605
  </div>
1089
606
  <div class="method">
1090
607
  <div class="title">
1091
- <a name="M000487"></a><b>capitalized?</b>()
608
+ <a name="M000276"></a><b>capitalized?</b>()
1092
609
  </div>
1093
610
  <div class="description">
1094
611
  <p>
@@ -1103,8 +620,8 @@ Return true if the string is capitalized, otherwise false.
1103
620
  </pre>
1104
621
  </div>
1105
622
  <div class="sourcecode">
1106
- <p class="source-link">[ <a href="javascript:toggleSource('M000487_source')" id="l_M000487_source">show source</a> ]</p>
1107
- <div id="M000487_source" class="dyn-source">
623
+ <p class="source-link">[ <a href="javascript:toggleSource('M000276_source')" id="l_M000276_source">show source</a> ]</p>
624
+ <div id="M000276_source" class="dyn-source">
1108
625
  <pre>
1109
626
  <span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 11</span>
1110
627
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">capitalized?</span>
@@ -1116,59 +633,7 @@ Return true if the string is capitalized, otherwise false.
1116
633
  </div>
1117
634
  <div class="method">
1118
635
  <div class="title">
1119
- <a name="M000544"></a><b>capitalized?</b>()
1120
- </div>
1121
- <div class="description">
1122
- <p>
1123
- Return true if the string is capitalized, otherwise false.
1124
- </p>
1125
- <pre>
1126
- &quot;THIS&quot;.capitalized? #=&gt; true
1127
- &quot;This&quot;.capitalized? #=&gt; true
1128
- &quot;this&quot;.capitalized? #=&gt; false
1129
-
1130
- CREDIT: Phil Tomson
1131
- </pre>
1132
- </div>
1133
- <div class="sourcecode">
1134
- <p class="source-link">[ <a href="javascript:toggleSource('M000544_source')" id="l_M000544_source">show source</a> ]</p>
1135
- <div id="M000544_source" class="dyn-source">
1136
- <pre>
1137
- <span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 11</span>
1138
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">capitalized?</span>
1139
- <span class="ruby-keyword kw">self</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^[A-Z]/</span>
1140
- <span class="ruby-keyword kw">end</span>
1141
- </pre>
1142
- </div>
1143
- </div>
1144
- </div>
1145
- <div class="method">
1146
- <div class="title">
1147
- <a name="M000506"></a><b>chars</b>()
1148
- </div>
1149
- <div class="description">
1150
- <p>
1151
- Returns an array of characters.
1152
- </p>
1153
- <pre>
1154
- &quot;abc&quot;.chars #=&gt; [&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]
1155
- </pre>
1156
- </div>
1157
- <div class="sourcecode">
1158
- <p class="source-link">[ <a href="javascript:toggleSource('M000506_source')" id="l_M000506_source">show source</a> ]</p>
1159
- <div id="M000506_source" class="dyn-source">
1160
- <pre>
1161
- <span class="ruby-comment cmt"># File lib/core/facets/string/chars.rb, line 9</span>
1162
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chars</span>
1163
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">//</span>)
1164
- <span class="ruby-keyword kw">end</span>
1165
- </pre>
1166
- </div>
1167
- </div>
1168
- </div>
1169
- <div class="method">
1170
- <div class="title">
1171
- <a name="M000563"></a><b>chars</b>()
636
+ <a name="M000294"></a><b>chars</b>()
1172
637
  </div>
1173
638
  <div class="description">
1174
639
  <p>
@@ -1179,68 +644,20 @@ Returns an array of characters.
1179
644
  </pre>
1180
645
  </div>
1181
646
  <div class="sourcecode">
1182
- <p class="source-link">[ <a href="javascript:toggleSource('M000563_source')" id="l_M000563_source">show source</a> ]</p>
1183
- <div id="M000563_source" class="dyn-source">
647
+ <p class="source-link">[ <a href="javascript:toggleSource('M000294_source')" id="l_M000294_source">show source</a> ]</p>
648
+ <div id="M000294_source" class="dyn-source">
1184
649
  <pre>
1185
650
  <span class="ruby-comment cmt"># File lib/core/facets/string/chars.rb, line 9</span>
1186
651
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chars</span>
1187
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">//</span>)
1188
- <span class="ruby-keyword kw">end</span>
1189
- </pre>
1190
- </div>
1191
- </div>
1192
- </div>
1193
- <div class="method">
1194
- <div class="title">
1195
- <a name="M000554"></a><b>cleave</b>(threshold=nil, len=nil)
1196
- </div>
1197
- <div class="description">
1198
- <p>
1199
- Cleave a string. Break a string in two parts at the nearest whitespace.
1200
- </p>
1201
- <pre>
1202
- CREDIT: Trans
1203
- </pre>
1204
- </div>
1205
- <div class="sourcecode">
1206
- <p class="source-link">[ <a href="javascript:toggleSource('M000554_source')" id="l_M000554_source">show source</a> ]</p>
1207
- <div id="M000554_source" class="dyn-source">
1208
- <pre>
1209
- <span class="ruby-comment cmt"># File lib/core/facets/string/cleave.rb, line 8</span>
1210
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cleave</span>(<span class="ruby-identifier">threshold</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">len</span>=<span class="ruby-keyword kw">nil</span>)
1211
- <span class="ruby-identifier">l</span> = (<span class="ruby-identifier">len</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">size</span> <span class="ruby-operator">/</span> <span class="ruby-value">2</span>)
1212
- <span class="ruby-identifier">t</span> = <span class="ruby-identifier">threshold</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">size</span>
1213
-
1214
- <span class="ruby-identifier">h1</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">l</span>]
1215
- <span class="ruby-identifier">h2</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">l</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
1216
-
1217
- <span class="ruby-identifier">i1</span> = <span class="ruby-identifier">h1</span>.<span class="ruby-identifier">rindex</span>(<span class="ruby-regexp re">/\s/</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
1218
- <span class="ruby-identifier">d1</span> = (<span class="ruby-identifier">i1</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">l</span>).<span class="ruby-identifier">abs</span>
1219
-
1220
- <span class="ruby-identifier">d2</span> = <span class="ruby-identifier">h2</span>.<span class="ruby-identifier">index</span>(<span class="ruby-regexp re">/\s/</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">l</span>
1221
- <span class="ruby-identifier">i2</span> = <span class="ruby-identifier">d2</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">l</span>
1222
-
1223
- <span class="ruby-identifier">d1</span> = (<span class="ruby-identifier">i1</span><span class="ruby-operator">-</span><span class="ruby-identifier">l</span>).<span class="ruby-identifier">abs</span>
1224
- <span class="ruby-identifier">d2</span> = (<span class="ruby-identifier">i2</span><span class="ruby-operator">-</span><span class="ruby-identifier">l</span>).<span class="ruby-identifier">abs</span>
1225
-
1226
- <span class="ruby-keyword kw">if</span> [<span class="ruby-identifier">d1</span>, <span class="ruby-identifier">d2</span>].<span class="ruby-identifier">min</span> <span class="ruby-operator">&gt;</span> <span class="ruby-identifier">t</span>
1227
- <span class="ruby-identifier">i</span> = <span class="ruby-identifier">t</span>
1228
- <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">d1</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">d2</span>
1229
- <span class="ruby-identifier">i</span> = <span class="ruby-identifier">i1</span>
1230
- <span class="ruby-keyword kw">else</span>
1231
- <span class="ruby-identifier">i</span> = <span class="ruby-identifier">i2</span>
652
+ <span class="ruby-identifier">split</span>(<span class="ruby-regexp re">//</span>)
1232
653
  <span class="ruby-keyword kw">end</span>
1233
-
1234
- <span class="ruby-comment cmt">#dup.insert(l, &quot;\n&quot;).gsub(/^\s+|\s+$/, '')</span>
1235
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-identifier">i</span>].<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">strip</span>, <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">i</span><span class="ruby-operator">+</span><span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>].<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">strip</span>
1236
- <span class="ruby-keyword kw">end</span>
1237
654
  </pre>
1238
655
  </div>
1239
656
  </div>
1240
657
  </div>
1241
658
  <div class="method">
1242
659
  <div class="title">
1243
- <a name="M000497"></a><b>cleave</b>(threshold=nil, len=nil)
660
+ <a name="M000286"></a><b>cleave</b>(threshold=nil, len=nil)
1244
661
  </div>
1245
662
  <div class="description">
1246
663
  <p>
@@ -1251,8 +668,8 @@ Cleave a string. Break a string in two parts at the nearest whitespace.
1251
668
  </pre>
1252
669
  </div>
1253
670
  <div class="sourcecode">
1254
- <p class="source-link">[ <a href="javascript:toggleSource('M000497_source')" id="l_M000497_source">show source</a> ]</p>
1255
- <div id="M000497_source" class="dyn-source">
671
+ <p class="source-link">[ <a href="javascript:toggleSource('M000286_source')" id="l_M000286_source">show source</a> ]</p>
672
+ <div id="M000286_source" class="dyn-source">
1256
673
  <pre>
1257
674
  <span class="ruby-comment cmt"># File lib/core/facets/string/cleave.rb, line 8</span>
1258
675
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cleave</span>(<span class="ruby-identifier">threshold</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">len</span>=<span class="ruby-keyword kw">nil</span>)
@@ -1288,7 +705,7 @@ Cleave a string. Break a string in two parts at the nearest whitespace.
1288
705
  </div>
1289
706
  <div class="method">
1290
707
  <div class="title">
1291
- <a name="M000456"></a><b>cmp</b>(other)
708
+ <a name="M000244"></a><b>cmp</b>(other)
1292
709
  </div>
1293
710
  <div class="description">
1294
711
  <p>
@@ -1305,8 +722,8 @@ compatible with succ.
1305
722
  </pre>
1306
723
  </div>
1307
724
  <div class="sourcecode">
1308
- <p class="source-link">[ <a href="javascript:toggleSource('M000456_source')" id="l_M000456_source">show source</a> ]</p>
1309
- <div id="M000456_source" class="dyn-source">
725
+ <p class="source-link">[ <a href="javascript:toggleSource('M000244_source')" id="l_M000244_source">show source</a> ]</p>
726
+ <div id="M000244_source" class="dyn-source">
1310
727
  <pre>
1311
728
  <span class="ruby-comment cmt"># File lib/core/facets/comparable/cmp.rb, line 31</span>
1312
729
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmp</span>(<span class="ruby-identifier">other</span>)
@@ -1320,81 +737,11 @@ compatible with succ.
1320
737
  </div>
1321
738
  <div class="method">
1322
739
  <div class="title">
1323
- <a name="M000454"></a><b>cmp</b>(other)
740
+ <a name="M000293"></a><b>dequote</b>()
1324
741
  </div>
1325
742
  <div class="description">
1326
743
  <p>
1327
- Compare method that takes length into account. Unlike #&lt;=&gt;, this is
1328
- compatible with succ.
1329
- </p>
1330
- <pre>
1331
- &quot;abc&quot;.cmp(&quot;abc&quot;) #=&gt; 0
1332
- &quot;abcd&quot;.cmp(&quot;abc&quot;) #=&gt; 1
1333
- &quot;abc&quot;.cmp(&quot;abcd&quot;) #=&gt; -1
1334
- &quot;xyz&quot;.cmp(&quot;abc&quot;) #=&gt; 1
1335
-
1336
- CREDIT Peter Vanbroekhoven
1337
- </pre>
1338
- </div>
1339
- <div class="sourcecode">
1340
- <p class="source-link">[ <a href="javascript:toggleSource('M000454_source')" id="l_M000454_source">show source</a> ]</p>
1341
- <div id="M000454_source" class="dyn-source">
1342
- <pre>
1343
- <span class="ruby-comment cmt"># File lib/core/facets/comparable/cmp.rb, line 31</span>
1344
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmp</span>(<span class="ruby-identifier">other</span>)
1345
- <span class="ruby-keyword kw">return</span> <span class="ruby-value">-1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">length</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">length</span>
1346
- <span class="ruby-keyword kw">return</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">length</span> <span class="ruby-operator">&gt;</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">length</span>
1347
- <span class="ruby-keyword kw">self</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">other</span> <span class="ruby-comment cmt"># alphabetic compare</span>
1348
- <span class="ruby-keyword kw">end</span>
1349
- </pre>
1350
- </div>
1351
- </div>
1352
- </div>
1353
- <div class="method">
1354
- <div class="title">
1355
- <a name="M000505"></a><b>dequote</b>()
1356
- </div>
1357
- <div class="description">
1358
- <p>
1359
- Remove quotes from string.
1360
- </p>
1361
- <pre>
1362
- &quot;'hi'&quot;.dequite #=&gt; &quot;hi&quot;
1363
-
1364
- CREDIT: Trans
1365
- </pre>
1366
- </div>
1367
- <div class="sourcecode">
1368
- <p class="source-link">[ <a href="javascript:toggleSource('M000505_source')" id="l_M000505_source">show source</a> ]</p>
1369
- <div id="M000505_source" class="dyn-source">
1370
- <pre>
1371
- <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 88</span>
1372
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dequote</span>
1373
- <span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
1374
-
1375
- <span class="ruby-keyword kw">case</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>]
1376
- <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;'&quot;</span>, <span class="ruby-value str">'&quot;'</span>, <span class="ruby-value str">'`'</span>
1377
- <span class="ruby-identifier">s</span>[<span class="ruby-value">0</span>] = <span class="ruby-value str">''</span>
1378
- <span class="ruby-keyword kw">end</span>
1379
-
1380
- <span class="ruby-keyword kw">case</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">-1</span>,<span class="ruby-value">1</span>]
1381
- <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;'&quot;</span>, <span class="ruby-value str">'&quot;'</span>, <span class="ruby-value str">'`'</span>
1382
- <span class="ruby-identifier">s</span>[<span class="ruby-value">-1</span>] = <span class="ruby-value str">''</span>
1383
- <span class="ruby-keyword kw">end</span>
1384
-
1385
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
1386
- <span class="ruby-keyword kw">end</span>
1387
- </pre>
1388
- </div>
1389
- </div>
1390
- </div>
1391
- <div class="method">
1392
- <div class="title">
1393
- <a name="M000562"></a><b>dequote</b>()
1394
- </div>
1395
- <div class="description">
1396
- <p>
1397
- Remove quotes from string.
744
+ Remove quotes from string.
1398
745
  </p>
1399
746
  <pre>
1400
747
  &quot;'hi'&quot;.dequite #=&gt; &quot;hi&quot;
@@ -1403,8 +750,8 @@ Remove quotes from string.
1403
750
  </pre>
1404
751
  </div>
1405
752
  <div class="sourcecode">
1406
- <p class="source-link">[ <a href="javascript:toggleSource('M000562_source')" id="l_M000562_source">show source</a> ]</p>
1407
- <div id="M000562_source" class="dyn-source">
753
+ <p class="source-link">[ <a href="javascript:toggleSource('M000293_source')" id="l_M000293_source">show source</a> ]</p>
754
+ <div id="M000293_source" class="dyn-source">
1408
755
  <pre>
1409
756
  <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 88</span>
1410
757
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dequote</span>
@@ -1428,42 +775,7 @@ Remove quotes from string.
1428
775
  </div>
1429
776
  <div class="method">
1430
777
  <div class="title">
1431
- <a name="M000542"></a><b>divide</b>( re )
1432
- </div>
1433
- <div class="description">
1434
- <p>
1435
- Breaks a string up into an array based on a regular expression. Similar to
1436
- scan, but includes the matches.
1437
- </p>
1438
- <pre>
1439
- s = &quot;&lt;p&gt;This&lt;b&gt;is&lt;/b&gt;a test.&lt;/p&gt;&quot;
1440
- s.divide( /\&lt;.*?\&gt;/ )
1441
- </pre>
1442
- <p>
1443
- <em>produces</em>
1444
- </p>
1445
- <pre>
1446
- [&quot;&lt;p&gt;This&quot;, &quot;&lt;b&gt;is&quot;, &quot;&lt;/b&gt;a test.&quot;, &quot;&lt;/p&gt;&quot;]
1447
-
1448
- CREDIT: Trans
1449
- </pre>
1450
- </div>
1451
- <div class="sourcecode">
1452
- <p class="source-link">[ <a href="javascript:toggleSource('M000542_source')" id="l_M000542_source">show source</a> ]</p>
1453
- <div id="M000542_source" class="dyn-source">
1454
- <pre>
1455
- <span class="ruby-comment cmt"># File lib/core/facets/string/divide.rb, line 15</span>
1456
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divide</span>( <span class="ruby-identifier">re</span> )
1457
- <span class="ruby-identifier">re2</span> = <span class="ruby-node">/#{re}.*?(?=#{re}|\Z)/</span>
1458
- <span class="ruby-identifier">scan</span>(<span class="ruby-identifier">re2</span>) <span class="ruby-comment cmt">#{re}(?=#{re})/)</span>
1459
- <span class="ruby-keyword kw">end</span>
1460
- </pre>
1461
- </div>
1462
- </div>
1463
- </div>
1464
- <div class="method">
1465
- <div class="title">
1466
- <a name="M000485"></a><b>divide</b>( re )
778
+ <a name="M000274"></a><b>divide</b>( re )
1467
779
  </div>
1468
780
  <div class="description">
1469
781
  <p>
@@ -1484,8 +796,8 @@ scan, but includes the matches.
1484
796
  </pre>
1485
797
  </div>
1486
798
  <div class="sourcecode">
1487
- <p class="source-link">[ <a href="javascript:toggleSource('M000485_source')" id="l_M000485_source">show source</a> ]</p>
1488
- <div id="M000485_source" class="dyn-source">
799
+ <p class="source-link">[ <a href="javascript:toggleSource('M000274_source')" id="l_M000274_source">show source</a> ]</p>
800
+ <div id="M000274_source" class="dyn-source">
1489
801
  <pre>
1490
802
  <span class="ruby-comment cmt"># File lib/core/facets/string/divide.rb, line 15</span>
1491
803
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divide</span>( <span class="ruby-identifier">re</span> )
@@ -1498,35 +810,7 @@ scan, but includes the matches.
1498
810
  </div>
1499
811
  <div class="method">
1500
812
  <div class="title">
1501
- <a name="M000545"></a><b>downcase?</b>()
1502
- </div>
1503
- <div class="description">
1504
- <p>
1505
- Return true if the string is lowercase (downcase), otherwise false.
1506
- </p>
1507
- <pre>
1508
- &quot;THIS&quot;.downcase? #=&gt; false
1509
- &quot;This&quot;.downcase? #=&gt; false
1510
- &quot;this&quot;.downcase? #=&gt; true
1511
-
1512
- CREDIT: Phil Tomson
1513
- </pre>
1514
- </div>
1515
- <div class="sourcecode">
1516
- <p class="source-link">[ <a href="javascript:toggleSource('M000545_source')" id="l_M000545_source">show source</a> ]</p>
1517
- <div id="M000545_source" class="dyn-source">
1518
- <pre>
1519
- <span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 23</span>
1520
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">downcase?</span>
1521
- <span class="ruby-identifier">downcase</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">self</span>
1522
- <span class="ruby-keyword kw">end</span>
1523
- </pre>
1524
- </div>
1525
- </div>
1526
- </div>
1527
- <div class="method">
1528
- <div class="title">
1529
- <a name="M000488"></a><b>downcase?</b>()
813
+ <a name="M000277"></a><b>downcase?</b>()
1530
814
  </div>
1531
815
  <div class="description">
1532
816
  <p>
@@ -1541,8 +825,8 @@ Return true if the string is lowercase (downcase), otherwise false.
1541
825
  </pre>
1542
826
  </div>
1543
827
  <div class="sourcecode">
1544
- <p class="source-link">[ <a href="javascript:toggleSource('M000488_source')" id="l_M000488_source">show source</a> ]</p>
1545
- <div id="M000488_source" class="dyn-source">
828
+ <p class="source-link">[ <a href="javascript:toggleSource('M000277_source')" id="l_M000277_source">show source</a> ]</p>
829
+ <div id="M000277_source" class="dyn-source">
1546
830
  <pre>
1547
831
  <span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 23</span>
1548
832
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">downcase?</span>
@@ -1554,59 +838,23 @@ Return true if the string is lowercase (downcase), otherwise false.
1554
838
  </div>
1555
839
  <div class="method">
1556
840
  <div class="title">
1557
- <a name="M000484"></a><b>each_char</b>( {|| ...}
1558
- </div>
1559
- <div class="description">
1560
- <p>
1561
- Iterates through each character. This is a little faster than using <a
1562
- href="String.html#M000506">chars</a> b/c it does not create the
1563
- intermediate array.
1564
- </p>
1565
- <pre>
1566
- a = ''
1567
- &quot;HELLO&quot;.each_character{ |c| a &lt;&lt; #{c.downcase} }
1568
- a #=&gt; 'hello'
1569
- </pre>
1570
- </div>
1571
- <div class="sourcecode">
1572
- <p class="source-link">[ <a href="javascript:toggleSource('M000484_source')" id="l_M000484_source">show source</a> ]</p>
1573
- <div id="M000484_source" class="dyn-source">
1574
- <pre>
1575
- <span class="ruby-comment cmt"># File lib/core/facets/string/each_char.rb, line 12</span>
1576
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_char</span> <span class="ruby-comment cmt"># :yield:</span>
1577
- <span class="ruby-identifier">size</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
1578
- <span class="ruby-keyword kw">yield</span>(<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">i</span>,<span class="ruby-value">1</span>])
1579
- <span class="ruby-keyword kw">end</span>
1580
- <span class="ruby-keyword kw">end</span>
1581
- </pre>
1582
- </div>
1583
- </div>
1584
- </div>
1585
- <div class="method">
1586
- <div class="title">
1587
- <a name="M000541"></a><b>each_char</b>( {|| ...}
841
+ <a name="M000273"></a><b>each_char</b>() {|scanner.scan(char || break)| ...}
1588
842
  </div>
1589
843
  <div class="description">
1590
844
  <p>
1591
- Iterates through each character. This is a little faster than using <a
1592
- href="String.html#M000506">chars</a> b/c it does not create the
1593
- intermediate array.
845
+ Yields a single-character string for each character in the string. When
846
+ $KCODE = &#8216;UTF8&#8217;, multi-byte characters are yielded
847
+ appropriately.
1594
848
  </p>
1595
- <pre>
1596
- a = ''
1597
- &quot;HELLO&quot;.each_character{ |c| a &lt;&lt; #{c.downcase} }
1598
- a #=&gt; 'hello'
1599
- </pre>
1600
849
  </div>
1601
850
  <div class="sourcecode">
1602
- <p class="source-link">[ <a href="javascript:toggleSource('M000541_source')" id="l_M000541_source">show source</a> ]</p>
1603
- <div id="M000541_source" class="dyn-source">
851
+ <p class="source-link">[ <a href="javascript:toggleSource('M000273_source')" id="l_M000273_source">show source</a> ]</p>
852
+ <div id="M000273_source" class="dyn-source">
1604
853
  <pre>
1605
- <span class="ruby-comment cmt"># File lib/core/facets/string/each_char.rb, line 12</span>
1606
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_char</span> <span class="ruby-comment cmt"># :yield:</span>
1607
- <span class="ruby-identifier">size</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
1608
- <span class="ruby-keyword kw">yield</span>(<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">i</span>,<span class="ruby-value">1</span>])
1609
- <span class="ruby-keyword kw">end</span>
854
+ <span class="ruby-comment cmt"># File lib/core/facets/string/each_char.rb, line 22</span>
855
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_char</span>
856
+ <span class="ruby-identifier">scanner</span>, <span class="ruby-identifier">char</span> = <span class="ruby-constant">StringScanner</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>), <span class="ruby-regexp re">/./</span><span class="ruby-identifier">mu</span>
857
+ <span class="ruby-identifier">loop</span> { <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">scanner</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-identifier">char</span>) <span class="ruby-operator">||</span> <span class="ruby-keyword kw">break</span>) }
1610
858
  <span class="ruby-keyword kw">end</span>
1611
859
  </pre>
1612
860
  </div>
@@ -1614,31 +862,7 @@ intermediate array.
1614
862
  </div>
1615
863
  <div class="method">
1616
864
  <div class="title">
1617
- <a name="M000570"></a><b>each_word</b>(&amp;block)
1618
- </div>
1619
- <div class="description">
1620
- <p>
1621
- Iterate through each word of a string.
1622
- </p>
1623
- <pre>
1624
- &quot;a string&quot;.each_word { |word, range| ... }
1625
- </pre>
1626
- </div>
1627
- <div class="sourcecode">
1628
- <p class="source-link">[ <a href="javascript:toggleSource('M000570_source')" id="l_M000570_source">show source</a> ]</p>
1629
- <div id="M000570_source" class="dyn-source">
1630
- <pre>
1631
- <span class="ruby-comment cmt"># File lib/core/facets/string/each_word.rb, line 9</span>
1632
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_word</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
1633
- <span class="ruby-identifier">words</span>.<span class="ruby-identifier">each</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
1634
- <span class="ruby-keyword kw">end</span>
1635
- </pre>
1636
- </div>
1637
- </div>
1638
- </div>
1639
- <div class="method">
1640
- <div class="title">
1641
- <a name="M000513"></a><b>each_word</b>(&amp;block)
865
+ <a name="M000301"></a><b>each_word</b>(&amp;block)
1642
866
  </div>
1643
867
  <div class="description">
1644
868
  <p>
@@ -1649,8 +873,8 @@ Iterate through each word of a string.
1649
873
  </pre>
1650
874
  </div>
1651
875
  <div class="sourcecode">
1652
- <p class="source-link">[ <a href="javascript:toggleSource('M000513_source')" id="l_M000513_source">show source</a> ]</p>
1653
- <div id="M000513_source" class="dyn-source">
876
+ <p class="source-link">[ <a href="javascript:toggleSource('M000301_source')" id="l_M000301_source">show source</a> ]</p>
877
+ <div id="M000301_source" class="dyn-source">
1654
878
  <pre>
1655
879
  <span class="ruby-comment cmt"># File lib/core/facets/string/each_word.rb, line 9</span>
1656
880
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_word</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -1662,35 +886,7 @@ Iterate through each word of a string.
1662
886
  </div>
1663
887
  <div class="method">
1664
888
  <div class="title">
1665
- <a name="M000519"></a><b>end_with?</b>(suffix)
1666
- </div>
1667
- <div class="description">
1668
- <p>
1669
- Does a string end with the given suffix?
1670
- </p>
1671
- <pre>
1672
- &quot;hello&quot;.ends_with?(&quot;lo&quot;) #=&gt; true
1673
- &quot;hello&quot;.ends_with?(&quot;to&quot;) #=&gt; false
1674
-
1675
- CREDIT: Lucas Carlson
1676
- CREDIT: Blaine Cook
1677
- </pre>
1678
- </div>
1679
- <div class="sourcecode">
1680
- <p class="source-link">[ <a href="javascript:toggleSource('M000519_source')" id="l_M000519_source">show source</a> ]</p>
1681
- <div id="M000519_source" class="dyn-source">
1682
- <pre>
1683
- <span class="ruby-comment cmt"># File lib/core/facets/string/start_with.rb, line 25</span>
1684
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">end_with?</span>(<span class="ruby-identifier">suffix</span>)
1685
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rindex</span>(<span class="ruby-identifier">suffix</span>) <span class="ruby-operator">==</span> <span class="ruby-identifier">size</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">suffix</span>.<span class="ruby-identifier">size</span>
1686
- <span class="ruby-keyword kw">end</span>
1687
- </pre>
1688
- </div>
1689
- </div>
1690
- </div>
1691
- <div class="method">
1692
- <div class="title">
1693
- <a name="M000462"></a><b>end_with?</b>(suffix)
889
+ <a name="M000250"></a><b>end_with?</b>(suffix)
1694
890
  </div>
1695
891
  <div class="description">
1696
892
  <p>
@@ -1705,8 +901,8 @@ Does a string end with the given suffix?
1705
901
  </pre>
1706
902
  </div>
1707
903
  <div class="sourcecode">
1708
- <p class="source-link">[ <a href="javascript:toggleSource('M000462_source')" id="l_M000462_source">show source</a> ]</p>
1709
- <div id="M000462_source" class="dyn-source">
904
+ <p class="source-link">[ <a href="javascript:toggleSource('M000250_source')" id="l_M000250_source">show source</a> ]</p>
905
+ <div id="M000250_source" class="dyn-source">
1710
906
  <pre>
1711
907
  <span class="ruby-comment cmt"># File lib/core/facets/string/start_with.rb, line 25</span>
1712
908
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">end_with?</span>(<span class="ruby-identifier">suffix</span>)
@@ -1718,49 +914,7 @@ Does a string end with the given suffix?
1718
914
  </div>
1719
915
  <div class="method">
1720
916
  <div class="title">
1721
- <a name="M000473"></a><b>expand_tabs</b>(n=8)
1722
- </div>
1723
- <div class="description">
1724
- <p>
1725
- Expands tabs to <tt>n</tt> spaces. Non-destructive. If <tt>n</tt> is 0,
1726
- then tabs are simply removed. Raises an exception if <tt>n</tt> is
1727
- negative.
1728
- </p>
1729
- <p>
1730
- Thanks to GGaramuno for a more efficient algorithm. Very nice.
1731
- </p>
1732
- <pre>
1733
- CREDIT: Gavin Sinclair
1734
- CREDIT: Noah Gibbs
1735
- CREDIT: GGaramuno
1736
- </pre>
1737
- </div>
1738
- <div class="sourcecode">
1739
- <p class="source-link">[ <a href="javascript:toggleSource('M000473_source')" id="l_M000473_source">show source</a> ]</p>
1740
- <div id="M000473_source" class="dyn-source">
1741
- <pre>
1742
- <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 26</span>
1743
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expand_tabs</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">8</span>)
1744
- <span class="ruby-identifier">n</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_int</span>
1745
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">&quot;n must be &gt;= 0&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">0</span>
1746
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\t/</span>, <span class="ruby-value str">&quot;&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
1747
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\t/</span>, <span class="ruby-value str">&quot; &quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
1748
- <span class="ruby-identifier">str</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
1749
- <span class="ruby-keyword kw">while</span>
1750
- <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/^([^\t\n]*)(\t+)/</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
1751
- <span class="ruby-identifier">val</span> = ( <span class="ruby-identifier">n</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">$2</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">-</span> (<span class="ruby-identifier">$1</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">n</span>) )
1752
- <span class="ruby-identifier">$1</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">val</span>)
1753
- }
1754
- <span class="ruby-keyword kw">end</span>
1755
- <span class="ruby-identifier">str</span>
1756
- <span class="ruby-keyword kw">end</span>
1757
- </pre>
1758
- </div>
1759
- </div>
1760
- </div>
1761
- <div class="method">
1762
- <div class="title">
1763
- <a name="M000530"></a><b>expand_tabs</b>(n=8)
917
+ <a name="M000261"></a><b>expand_tabs</b>(n=8)
1764
918
  </div>
1765
919
  <div class="description">
1766
920
  <p>
@@ -1778,8 +932,8 @@ Thanks to GGaramuno for a more efficient algorithm. Very nice.
1778
932
  </pre>
1779
933
  </div>
1780
934
  <div class="sourcecode">
1781
- <p class="source-link">[ <a href="javascript:toggleSource('M000530_source')" id="l_M000530_source">show source</a> ]</p>
1782
- <div id="M000530_source" class="dyn-source">
935
+ <p class="source-link">[ <a href="javascript:toggleSource('M000261_source')" id="l_M000261_source">show source</a> ]</p>
936
+ <div id="M000261_source" class="dyn-source">
1783
937
  <pre>
1784
938
  <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 26</span>
1785
939
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expand_tabs</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">8</span>)
@@ -1802,12 +956,12 @@ Thanks to GGaramuno for a more efficient algorithm. Very nice.
1802
956
  </div>
1803
957
  <div class="method">
1804
958
  <div class="title">
1805
- <a name="M000517"></a><b>fold</b>(ignore_indented=false)
959
+ <a name="M000248"></a><b>fold</b>(ignore_indented=false)
1806
960
  </div>
1807
961
  <div class="description">
1808
962
  <p>
1809
- Returns a new string with all new <a href="String.html#M000464">lines</a>
1810
- removed from adjacent <a href="String.html#M000464">lines</a> of text.
963
+ Returns a new string with all new <a href="String.html#M000252">lines</a>
964
+ removed from adjacent <a href="String.html#M000252">lines</a> of text.
1811
965
  </p>
1812
966
  <pre>
1813
967
  s = &quot;This is\na test.\n\nIt clumps\nlines of text.&quot;
@@ -1828,8 +982,8 @@ ends in a newline, it is replaced with a single space.
1828
982
  </pre>
1829
983
  </div>
1830
984
  <div class="sourcecode">
1831
- <p class="source-link">[ <a href="javascript:toggleSource('M000517_source')" id="l_M000517_source">show source</a> ]</p>
1832
- <div id="M000517_source" class="dyn-source">
985
+ <p class="source-link">[ <a href="javascript:toggleSource('M000248_source')" id="l_M000248_source">show source</a> ]</p>
986
+ <div id="M000248_source" class="dyn-source">
1833
987
  <pre>
1834
988
  <span class="ruby-comment cmt"># File lib/core/facets/string/fold.rb, line 19</span>
1835
989
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fold</span>(<span class="ruby-identifier">ignore_indented</span>=<span class="ruby-keyword kw">false</span>)
@@ -1856,164 +1010,43 @@ ends in a newline, it is replaced with a single space.
1856
1010
  </div>
1857
1011
  <div class="method">
1858
1012
  <div class="title">
1859
- <a name="M000460"></a><b>fold</b>(ignore_indented=false)
1013
+ <a name="M000263"></a><b>indent</b>(n)
1860
1014
  </div>
1861
1015
  <div class="description">
1862
1016
  <p>
1863
- Returns a new string with all new <a href="String.html#M000464">lines</a>
1864
- removed from adjacent <a href="String.html#M000464">lines</a> of text.
1017
+ Indent left or right by n spaces. (This used to be called <a
1018
+ href="String.html#M000259">tab</a> and aliased as <a
1019
+ href="String.html#M000263">indent</a>.)
1865
1020
  </p>
1866
1021
  <pre>
1867
- s = &quot;This is\na test.\n\nIt clumps\nlines of text.&quot;
1868
- s.fold
1022
+ CREDIT: Gavin Sinclair
1023
+ CREDIT: Trans
1869
1024
  </pre>
1870
- <p>
1871
- <em>produces</em>
1872
- </p>
1025
+ </div>
1026
+ <div class="sourcecode">
1027
+ <p class="source-link">[ <a href="javascript:toggleSource('M000263_source')" id="l_M000263_source">show source</a> ]</p>
1028
+ <div id="M000263_source" class="dyn-source">
1873
1029
  <pre>
1874
- &quot;This is a test.\n\nIt clumps lines of text. &quot;
1030
+ <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 60</span>
1031
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">n</span>)
1032
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">0</span>
1033
+ <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/^/</span>, <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">n</span>)
1034
+ <span class="ruby-keyword kw">else</span>
1035
+ <span class="ruby-identifier">gsub</span>(<span class="ruby-node">/^ {0,#{-n}}/</span>, <span class="ruby-value str">&quot;&quot;</span>)
1036
+ <span class="ruby-keyword kw">end</span>
1037
+ <span class="ruby-keyword kw">end</span>
1875
1038
  </pre>
1876
- <p>
1877
- One arguable flaw with this, that might need a fix: if the given string
1878
- ends in a newline, it is replaced with a single space.
1879
- </p>
1880
- <pre>
1881
- CREDIT: Trans
1882
- </pre>
1883
- </div>
1884
- <div class="sourcecode">
1885
- <p class="source-link">[ <a href="javascript:toggleSource('M000460_source')" id="l_M000460_source">show source</a> ]</p>
1886
- <div id="M000460_source" class="dyn-source">
1887
- <pre>
1888
- <span class="ruby-comment cmt"># File lib/core/facets/string/fold.rb, line 19</span>
1889
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fold</span>(<span class="ruby-identifier">ignore_indented</span>=<span class="ruby-keyword kw">false</span>)
1890
- <span class="ruby-identifier">ns</span> = <span class="ruby-value str">''</span>
1891
- <span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
1892
- <span class="ruby-identifier">br</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-regexp re">/(\n\s*\n|\Z)/</span><span class="ruby-identifier">m</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span>
1893
- <span class="ruby-identifier">b</span> = <span class="ruby-identifier">$~</span>.<span class="ruby-identifier">begin</span>(<span class="ruby-value">1</span>)
1894
- <span class="ruby-identifier">e</span> = <span class="ruby-identifier">$~</span>.<span class="ruby-identifier">end</span>(<span class="ruby-value">1</span>)
1895
- <span class="ruby-identifier">nl</span> = <span class="ruby-identifier">$&amp;</span>
1896
- <span class="ruby-identifier">tx</span> = <span class="ruby-identifier">slice</span>(<span class="ruby-identifier">i</span><span class="ruby-operator">...</span><span class="ruby-identifier">b</span>)
1897
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">ignore_indented</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">slice</span>(<span class="ruby-identifier">i</span><span class="ruby-operator">...</span><span class="ruby-identifier">b</span>) <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^[ ]+/</span>
1898
- <span class="ruby-identifier">ns</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">tx</span>
1899
- <span class="ruby-keyword kw">else</span>
1900
- <span class="ruby-identifier">ns</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">tx</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/[ ]*\n+/</span>,<span class="ruby-value str">' '</span>)
1901
- <span class="ruby-keyword kw">end</span>
1902
- <span class="ruby-identifier">ns</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">nl</span>
1903
- <span class="ruby-identifier">i</span> = <span class="ruby-identifier">e</span>
1904
- <span class="ruby-keyword kw">end</span>
1905
- <span class="ruby-identifier">ns</span>
1906
- <span class="ruby-keyword kw">end</span>
1907
- </pre>
1908
- </div>
1909
- </div>
1910
- </div>
1911
- <div class="method">
1912
- <div class="title">
1913
- <a name="M000475"></a><b>indent</b>(n)
1914
- </div>
1915
- <div class="description">
1916
- <p>
1917
- Indent left or right by n spaces. (This used to be called <a
1918
- href="String.html#M000471">tab</a> and aliased as <a
1919
- href="String.html#M000475">indent</a>.)
1920
- </p>
1921
- <pre>
1922
- CREDIT: Gavin Sinclair
1923
- CREDIT: Trans
1924
- </pre>
1925
- </div>
1926
- <div class="sourcecode">
1927
- <p class="source-link">[ <a href="javascript:toggleSource('M000475_source')" id="l_M000475_source">show source</a> ]</p>
1928
- <div id="M000475_source" class="dyn-source">
1929
- <pre>
1930
- <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 60</span>
1931
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">n</span>)
1932
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">0</span>
1933
- <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/^/</span>, <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">n</span>)
1934
- <span class="ruby-keyword kw">else</span>
1935
- <span class="ruby-identifier">gsub</span>(<span class="ruby-node">/^ {0,#{-n}}/</span>, <span class="ruby-value str">&quot;&quot;</span>)
1936
- <span class="ruby-keyword kw">end</span>
1937
- <span class="ruby-keyword kw">end</span>
1938
- </pre>
1939
- </div>
1940
- </div>
1941
- </div>
1942
- <div class="method">
1943
- <div class="title">
1944
- <a name="M000532"></a><b>indent</b>(n)
1945
- </div>
1946
- <div class="description">
1947
- <p>
1948
- Indent left or right by n spaces. (This used to be called <a
1949
- href="String.html#M000471">tab</a> and aliased as <a
1950
- href="String.html#M000475">indent</a>.)
1951
- </p>
1952
- <pre>
1953
- CREDIT: Gavin Sinclair
1954
- CREDIT: Trans
1955
- </pre>
1956
- </div>
1957
- <div class="sourcecode">
1958
- <p class="source-link">[ <a href="javascript:toggleSource('M000532_source')" id="l_M000532_source">show source</a> ]</p>
1959
- <div id="M000532_source" class="dyn-source">
1960
- <pre>
1961
- <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 60</span>
1962
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">n</span>)
1963
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">0</span>
1964
- <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/^/</span>, <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">n</span>)
1965
- <span class="ruby-keyword kw">else</span>
1966
- <span class="ruby-identifier">gsub</span>(<span class="ruby-node">/^ {0,#{-n}}/</span>, <span class="ruby-value str">&quot;&quot;</span>)
1967
- <span class="ruby-keyword kw">end</span>
1968
- <span class="ruby-keyword kw">end</span>
1969
- </pre>
1970
- </div>
1971
- </div>
1972
- </div>
1973
- <div class="method">
1974
- <div class="title">
1975
- <a name="M000482"></a><b>index_all</b>(s, reuse=false)
1976
- </div>
1977
- <div class="description">
1978
- <p>
1979
- Like index but returns an array of all index locations. The reuse flag
1980
- allows the trailing portion of a match to be reused for subsquent matches.
1981
- </p>
1982
- <pre>
1983
- &quot;abcabcabc&quot;.index_all('a') #=&gt; [0,3,6]
1984
-
1985
- &quot;bbb&quot;.index_all('bb', false) #=&gt; [0]
1986
- &quot;bbb&quot;.index_all('bb', true) #=&gt; [0,1]
1987
-
1988
- TODO: Culd probably be defined for Indexable in general too.
1989
- </pre>
1990
- </div>
1991
- <div class="sourcecode">
1992
- <p class="source-link">[ <a href="javascript:toggleSource('M000482_source')" id="l_M000482_source">show source</a> ]</p>
1993
- <div id="M000482_source" class="dyn-source">
1994
- <pre>
1995
- <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 66</span>
1996
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index_all</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">reuse</span>=<span class="ruby-keyword kw">false</span>)
1997
- <span class="ruby-identifier">s</span> = <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-identifier">s</span>)) <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">Regexp</span><span class="ruby-operator">===</span><span class="ruby-identifier">s</span>
1998
- <span class="ruby-identifier">ia</span> = []; <span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
1999
- <span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">i</span> = <span class="ruby-identifier">index</span>(<span class="ruby-identifier">s</span>,<span class="ruby-identifier">i</span>))
2000
- <span class="ruby-identifier">ia</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">i</span>
2001
- <span class="ruby-identifier">i</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">reuse</span> <span class="ruby-value">? </span><span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">$~</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">size</span>)
2002
- <span class="ruby-keyword kw">end</span>
2003
- <span class="ruby-identifier">ia</span>
2004
- <span class="ruby-keyword kw">end</span>
2005
- </pre>
2006
- </div>
2007
- </div>
2008
- </div>
2009
- <div class="method">
2010
- <div class="title">
2011
- <a name="M000539"></a><b>index_all</b>(s, reuse=false)
2012
- </div>
2013
- <div class="description">
2014
- <p>
2015
- Like index but returns an array of all index locations. The reuse flag
2016
- allows the trailing portion of a match to be reused for subsquent matches.
1039
+ </div>
1040
+ </div>
1041
+ </div>
1042
+ <div class="method">
1043
+ <div class="title">
1044
+ <a name="M000271"></a><b>index_all</b>(s, reuse=false)
1045
+ </div>
1046
+ <div class="description">
1047
+ <p>
1048
+ Like index but returns an array of all index locations. The reuse flag
1049
+ allows the trailing portion of a match to be reused for subsquent matches.
2017
1050
  </p>
2018
1051
  <pre>
2019
1052
  &quot;abcabcabc&quot;.index_all('a') #=&gt; [0,3,6]
@@ -2025,8 +1058,8 @@ allows the trailing portion of a match to be reused for subsquent matches.
2025
1058
  </pre>
2026
1059
  </div>
2027
1060
  <div class="sourcecode">
2028
- <p class="source-link">[ <a href="javascript:toggleSource('M000539_source')" id="l_M000539_source">show source</a> ]</p>
2029
- <div id="M000539_source" class="dyn-source">
1061
+ <p class="source-link">[ <a href="javascript:toggleSource('M000271_source')" id="l_M000271_source">show source</a> ]</p>
1062
+ <div id="M000271_source" class="dyn-source">
2030
1063
  <pre>
2031
1064
  <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 66</span>
2032
1065
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index_all</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">reuse</span>=<span class="ruby-keyword kw">false</span>)
@@ -2044,38 +1077,7 @@ allows the trailing portion of a match to be reused for subsquent matches.
2044
1077
  </div>
2045
1078
  <div class="method">
2046
1079
  <div class="title">
2047
- <a name="M000564"></a><b>lchomp</b>(match)
2048
- </div>
2049
- <div class="description">
2050
- <p>
2051
- Left chomp.
2052
- </p>
2053
- <pre>
2054
- &quot;help&quot;.lchomp(&quot;h&quot;) #=&gt; &quot;elp&quot;
2055
- &quot;help&quot;.lchomp(&quot;k&quot;) #=&gt; &quot;help&quot;
2056
-
2057
- CREDIT: Trans
2058
- </pre>
2059
- </div>
2060
- <div class="sourcecode">
2061
- <p class="source-link">[ <a href="javascript:toggleSource('M000564_source')" id="l_M000564_source">show source</a> ]</p>
2062
- <div id="M000564_source" class="dyn-source">
2063
- <pre>
2064
- <span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 10</span>
2065
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp</span>(<span class="ruby-identifier">match</span>)
2066
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">index</span>(<span class="ruby-identifier">match</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
2067
- <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">match</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
2068
- <span class="ruby-keyword kw">else</span>
2069
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
2070
- <span class="ruby-keyword kw">end</span>
2071
- <span class="ruby-keyword kw">end</span>
2072
- </pre>
2073
- </div>
2074
- </div>
2075
- </div>
2076
- <div class="method">
2077
- <div class="title">
2078
- <a name="M000507"></a><b>lchomp</b>(match)
1080
+ <a name="M000295"></a><b>lchomp</b>(match)
2079
1081
  </div>
2080
1082
  <div class="description">
2081
1083
  <p>
@@ -2089,8 +1091,8 @@ Left chomp.
2089
1091
  </pre>
2090
1092
  </div>
2091
1093
  <div class="sourcecode">
2092
- <p class="source-link">[ <a href="javascript:toggleSource('M000507_source')" id="l_M000507_source">show source</a> ]</p>
2093
- <div id="M000507_source" class="dyn-source">
1094
+ <p class="source-link">[ <a href="javascript:toggleSource('M000295_source')" id="l_M000295_source">show source</a> ]</p>
1095
+ <div id="M000295_source" class="dyn-source">
2094
1096
  <pre>
2095
1097
  <span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 10</span>
2096
1098
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp</span>(<span class="ruby-identifier">match</span>)
@@ -2106,37 +1108,7 @@ Left chomp.
2106
1108
  </div>
2107
1109
  <div class="method">
2108
1110
  <div class="title">
2109
- <a name="M000508"></a><b>lchomp!</b>(match)
2110
- </div>
2111
- <div class="description">
2112
- <p>
2113
- In-place left chomp.
2114
- </p>
2115
- <pre>
2116
- &quot;help&quot;.lchomp(&quot;h&quot;) #=&gt; &quot;elp&quot;
2117
- &quot;help&quot;.lchomp(&quot;k&quot;) #=&gt; &quot;help&quot;
2118
-
2119
- CREDIT: Trans
2120
- </pre>
2121
- </div>
2122
- <div class="sourcecode">
2123
- <p class="source-link">[ <a href="javascript:toggleSource('M000508_source')" id="l_M000508_source">show source</a> ]</p>
2124
- <div id="M000508_source" class="dyn-source">
2125
- <pre>
2126
- <span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 25</span>
2127
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp!</span>(<span class="ruby-identifier">match</span>)
2128
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">index</span>(<span class="ruby-identifier">match</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
2129
- <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">match</span>.<span class="ruby-identifier">size</span>] = <span class="ruby-value str">''</span>
2130
- <span class="ruby-keyword kw">self</span>
2131
- <span class="ruby-keyword kw">end</span>
2132
- <span class="ruby-keyword kw">end</span>
2133
- </pre>
2134
- </div>
2135
- </div>
2136
- </div>
2137
- <div class="method">
2138
- <div class="title">
2139
- <a name="M000565"></a><b>lchomp!</b>(match)
1111
+ <a name="M000296"></a><b>lchomp!</b>(match)
2140
1112
  </div>
2141
1113
  <div class="description">
2142
1114
  <p>
@@ -2150,8 +1122,8 @@ In-place left chomp.
2150
1122
  </pre>
2151
1123
  </div>
2152
1124
  <div class="sourcecode">
2153
- <p class="source-link">[ <a href="javascript:toggleSource('M000565_source')" id="l_M000565_source">show source</a> ]</p>
2154
- <div id="M000565_source" class="dyn-source">
1125
+ <p class="source-link">[ <a href="javascript:toggleSource('M000296_source')" id="l_M000296_source">show source</a> ]</p>
1126
+ <div id="M000296_source" class="dyn-source">
2155
1127
  <pre>
2156
1128
  <span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 25</span>
2157
1129
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp!</span>(<span class="ruby-identifier">match</span>)
@@ -2166,43 +1138,7 @@ In-place left chomp.
2166
1138
  </div>
2167
1139
  <div class="method">
2168
1140
  <div class="title">
2169
- <a name="M000556"></a><b>line_wrap</b>(width, tabs=4)
2170
- </div>
2171
- <div class="description">
2172
- <p>
2173
- Line wrap at width.
2174
- </p>
2175
- <pre>
2176
- puts &quot;1234567890&quot;.line_wrap(5)
2177
- </pre>
2178
- <p>
2179
- <em>produces</em>
2180
- </p>
2181
- <pre>
2182
- 12345
2183
- 67890
2184
-
2185
- CREDIT: Trans
2186
- </pre>
2187
- </div>
2188
- <div class="sourcecode">
2189
- <p class="source-link">[ <a href="javascript:toggleSource('M000556_source')" id="l_M000556_source">show source</a> ]</p>
2190
- <div id="M000556_source" class="dyn-source">
2191
- <pre>
2192
- <span class="ruby-comment cmt"># File lib/core/facets/string/line_wrap.rb, line 14</span>
2193
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">line_wrap</span>(<span class="ruby-identifier">width</span>, <span class="ruby-identifier">tabs</span>=<span class="ruby-value">4</span>)
2194
- <span class="ruby-identifier">s</span> = <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\t/</span>,<span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">tabs</span>) <span class="ruby-comment cmt"># tabs default to 4 spaces</span>
2195
- <span class="ruby-identifier">s</span> = <span class="ruby-identifier">s</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\n/</span>,<span class="ruby-value str">' '</span>)
2196
- <span class="ruby-identifier">r</span> = <span class="ruby-identifier">s</span>.<span class="ruby-identifier">scan</span>( <span class="ruby-node">/.{1,#{width}}/</span> )
2197
- <span class="ruby-identifier">r</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot;\n&quot;</span>) <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;\n&quot;</span>
2198
- <span class="ruby-keyword kw">end</span>
2199
- </pre>
2200
- </div>
2201
- </div>
2202
- </div>
2203
- <div class="method">
2204
- <div class="title">
2205
- <a name="M000499"></a><b>line_wrap</b>(width, tabs=4)
1141
+ <a name="M000287"></a><b>line_wrap</b>(width, tabs=4)
2206
1142
  </div>
2207
1143
  <div class="description">
2208
1144
  <p>
@@ -2222,8 +1158,8 @@ Line wrap at width.
2222
1158
  </pre>
2223
1159
  </div>
2224
1160
  <div class="sourcecode">
2225
- <p class="source-link">[ <a href="javascript:toggleSource('M000499_source')" id="l_M000499_source">show source</a> ]</p>
2226
- <div id="M000499_source" class="dyn-source">
1161
+ <p class="source-link">[ <a href="javascript:toggleSource('M000287_source')" id="l_M000287_source">show source</a> ]</p>
1162
+ <div id="M000287_source" class="dyn-source">
2227
1163
  <pre>
2228
1164
  <span class="ruby-comment cmt"># File lib/core/facets/string/line_wrap.rb, line 14</span>
2229
1165
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">line_wrap</span>(<span class="ruby-identifier">width</span>, <span class="ruby-identifier">tabs</span>=<span class="ruby-value">4</span>)
@@ -2238,31 +1174,7 @@ Line wrap at width.
2238
1174
  </div>
2239
1175
  <div class="method">
2240
1176
  <div class="title">
2241
- <a name="M000521"></a><b>lines</b>()
2242
- </div>
2243
- <div class="description">
2244
- <p>
2245
- Returns an array of characters.
2246
- </p>
2247
- <pre>
2248
- &quot;abc\n123&quot;.lines #=&gt; [&quot;abc&quot;,&quot;123&quot;]
2249
- </pre>
2250
- </div>
2251
- <div class="sourcecode">
2252
- <p class="source-link">[ <a href="javascript:toggleSource('M000521_source')" id="l_M000521_source">show source</a> ]</p>
2253
- <div id="M000521_source" class="dyn-source">
2254
- <pre>
2255
- <span class="ruby-comment cmt"># File lib/core/facets/string/lines.rb, line 9</span>
2256
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lines</span>
2257
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/\n/</span>)
2258
- <span class="ruby-keyword kw">end</span>
2259
- </pre>
2260
- </div>
2261
- </div>
2262
- </div>
2263
- <div class="method">
2264
- <div class="title">
2265
- <a name="M000464"></a><b>lines</b>()
1177
+ <a name="M000252"></a><b>lines</b>()
2266
1178
  </div>
2267
1179
  <div class="description">
2268
1180
  <p>
@@ -2273,8 +1185,8 @@ Returns an array of characters.
2273
1185
  </pre>
2274
1186
  </div>
2275
1187
  <div class="sourcecode">
2276
- <p class="source-link">[ <a href="javascript:toggleSource('M000464_source')" id="l_M000464_source">show source</a> ]</p>
2277
- <div id="M000464_source" class="dyn-source">
1188
+ <p class="source-link">[ <a href="javascript:toggleSource('M000252_source')" id="l_M000252_source">show source</a> ]</p>
1189
+ <div id="M000252_source" class="dyn-source">
2278
1190
  <pre>
2279
1191
  <span class="ruby-comment cmt"># File lib/core/facets/string/lines.rb, line 9</span>
2280
1192
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lines</span>
@@ -2286,11 +1198,11 @@ Returns an array of characters.
2286
1198
  </div>
2287
1199
  <div class="method">
2288
1200
  <div class="title">
2289
- <a name="M000534"></a><b>margin</b>(n=0)
1201
+ <a name="M000265"></a><b>margin</b>(n=0)
2290
1202
  </div>
2291
1203
  <div class="description">
2292
1204
  <p>
2293
- Provides a <a href="String.html#M000477">margin</a> controlled string.
1205
+ Provides a <a href="String.html#M000265">margin</a> controlled string.
2294
1206
  </p>
2295
1207
  <pre>
2296
1208
  x = %Q{
@@ -2305,8 +1217,8 @@ Provides a <a href="String.html#M000477">margin</a> controlled string.
2305
1217
  </pre>
2306
1218
  </div>
2307
1219
  <div class="sourcecode">
2308
- <p class="source-link">[ <a href="javascript:toggleSource('M000534_source')" id="l_M000534_source">show source</a> ]</p>
2309
- <div id="M000534_source" class="dyn-source">
1220
+ <p class="source-link">[ <a href="javascript:toggleSource('M000265_source')" id="l_M000265_source">show source</a> ]</p>
1221
+ <div id="M000265_source" class="dyn-source">
2310
1222
  <pre>
2311
1223
  <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 89</span>
2312
1224
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">margin</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">0</span>)
@@ -2327,40 +1239,23 @@ Provides a <a href="String.html#M000477">margin</a> controlled string.
2327
1239
  </div>
2328
1240
  <div class="method">
2329
1241
  <div class="title">
2330
- <a name="M000477"></a><b>margin</b>(n=0)
1242
+ <a name="M000266"></a><b>methodize</b>()
2331
1243
  </div>
2332
1244
  <div class="description">
2333
1245
  <p>
2334
- Provides a <a href="String.html#M000477">margin</a> controlled string.
1246
+ Translate a (class or module) name to a suitable method name.
2335
1247
  </p>
2336
1248
  <pre>
2337
- x = %Q{
2338
- | This
2339
- | is
2340
- | margin controlled!
2341
- }.margin
2342
-
2343
- NOTE: This may still need a bit of tweaking.
2344
-
2345
- CREDIT: Trans
1249
+ My::CoolClass.name.methodize =&gt; &quot;my__cool_class&quot;
2346
1250
  </pre>
2347
1251
  </div>
2348
1252
  <div class="sourcecode">
2349
- <p class="source-link">[ <a href="javascript:toggleSource('M000477_source')" id="l_M000477_source">show source</a> ]</p>
2350
- <div id="M000477_source" class="dyn-source">
1253
+ <p class="source-link">[ <a href="javascript:toggleSource('M000266_source')" id="l_M000266_source">show source</a> ]</p>
1254
+ <div id="M000266_source" class="dyn-source">
2351
1255
  <pre>
2352
- <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 89</span>
2353
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">margin</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">0</span>)
2354
- <span class="ruby-comment cmt">#d = /\A.*\n\s*(.)/.match( self )[1]</span>
2355
- <span class="ruby-comment cmt">#d = /\A\s*(.)/.match( self)[1] unless d</span>
2356
- <span class="ruby-identifier">d</span> = ((<span class="ruby-regexp re">/\A.*\n\s*(.)/</span>.<span class="ruby-identifier">match</span>(<span class="ruby-keyword kw">self</span>)) <span class="ruby-operator">||</span>
2357
- (<span class="ruby-regexp re">/\A\s*(.)/</span>.<span class="ruby-identifier">match</span>(<span class="ruby-keyword kw">self</span>)))[<span class="ruby-value">1</span>]
2358
- <span class="ruby-keyword kw">return</span> <span class="ruby-value str">''</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">d</span>
2359
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
2360
- <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\n\s*\Z/</span>,<span class="ruby-value str">''</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-node">/^\s*[#{d}]/</span>, <span class="ruby-value str">''</span>)
2361
- <span class="ruby-keyword kw">else</span>
2362
- <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\n\s*\Z/</span>,<span class="ruby-value str">''</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-node">/^\s*[#{d}]/</span>, <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">n</span>)
2363
- <span class="ruby-keyword kw">end</span>
1256
+ <span class="ruby-comment cmt"># File lib/core/facets/string/methodize.rb, line 7</span>
1257
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">methodize</span>
1258
+ <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([A-Z]+)([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([a-z])([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'::'</span>,<span class="ruby-value str">'__'</span>).<span class="ruby-identifier">downcase</span>
2364
1259
  <span class="ruby-keyword kw">end</span>
2365
1260
  </pre>
2366
1261
  </div>
@@ -2368,86 +1263,7 @@ Provides a <a href="String.html#M000477">margin</a> controlled string.
2368
1263
  </div>
2369
1264
  <div class="method">
2370
1265
  <div class="title">
2371
- <a name="M000535"></a><b>methodize</b>()
2372
- </div>
2373
- <div class="description">
2374
- <p>
2375
- Translate a (class or module) name to a suitable method name.
2376
- </p>
2377
- <pre>
2378
- My::CoolClass.name.methodize =&gt; &quot;my__cool_class&quot;
2379
- </pre>
2380
- </div>
2381
- <div class="sourcecode">
2382
- <p class="source-link">[ <a href="javascript:toggleSource('M000535_source')" id="l_M000535_source">show source</a> ]</p>
2383
- <div id="M000535_source" class="dyn-source">
2384
- <pre>
2385
- <span class="ruby-comment cmt"># File lib/core/facets/string/methodize.rb, line 7</span>
2386
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">methodize</span>
2387
- <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([A-Z]+)([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([a-z])([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'::'</span>,<span class="ruby-value str">'__'</span>).<span class="ruby-identifier">downcase</span>
2388
- <span class="ruby-keyword kw">end</span>
2389
- </pre>
2390
- </div>
2391
- </div>
2392
- </div>
2393
- <div class="method">
2394
- <div class="title">
2395
- <a name="M000478"></a><b>methodize</b>()
2396
- </div>
2397
- <div class="description">
2398
- <p>
2399
- Translate a (class or module) name to a suitable method name.
2400
- </p>
2401
- <pre>
2402
- My::CoolClass.name.methodize =&gt; &quot;my__cool_class&quot;
2403
- </pre>
2404
- </div>
2405
- <div class="sourcecode">
2406
- <p class="source-link">[ <a href="javascript:toggleSource('M000478_source')" id="l_M000478_source">show source</a> ]</p>
2407
- <div id="M000478_source" class="dyn-source">
2408
- <pre>
2409
- <span class="ruby-comment cmt"># File lib/core/facets/string/methodize.rb, line 7</span>
2410
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">methodize</span>
2411
- <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([A-Z]+)([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([a-z])([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'::'</span>,<span class="ruby-value str">'__'</span>).<span class="ruby-identifier">downcase</span>
2412
- <span class="ruby-keyword kw">end</span>
2413
- </pre>
2414
- </div>
2415
- </div>
2416
- </div>
2417
- <div class="method">
2418
- <div class="title">
2419
- <a name="M000486"></a><b>mscan</b>(re) {|| ...}
2420
- </div>
2421
- <div class="description">
2422
- <p>
2423
- Like scan but returns <a href="MatchData.html">MatchData</a> ($~) rather
2424
- then matched string ($&amp;).
2425
- </p>
2426
- <pre>
2427
- CREDIT: Trans
2428
- </pre>
2429
- </div>
2430
- <div class="sourcecode">
2431
- <p class="source-link">[ <a href="javascript:toggleSource('M000486_source')" id="l_M000486_source">show source</a> ]</p>
2432
- <div id="M000486_source" class="dyn-source">
2433
- <pre>
2434
- <span class="ruby-comment cmt"># File lib/core/facets/string/mscan.rb, line 8</span>
2435
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mscan</span>(<span class="ruby-identifier">re</span>) <span class="ruby-comment cmt">#:yield:</span>
2436
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
2437
- <span class="ruby-identifier">scan</span>(<span class="ruby-identifier">re</span>) { <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">$~</span>) }
2438
- <span class="ruby-keyword kw">else</span>
2439
- <span class="ruby-identifier">m</span> = []
2440
- <span class="ruby-identifier">scan</span>(<span class="ruby-identifier">re</span>) { <span class="ruby-identifier">m</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">$~</span> }
2441
- <span class="ruby-identifier">m</span>
2442
- <span class="ruby-keyword kw">end</span>
2443
- <span class="ruby-keyword kw">end</span>
2444
- </pre>
2445
- </div>
2446
- </div>
2447
- </div>
2448
- <div class="method">
2449
- <div class="title">
2450
- <a name="M000543"></a><b>mscan</b>(re) {|| ...}
1266
+ <a name="M000275"></a><b>mscan</b>(re) {|| ...}
2451
1267
  </div>
2452
1268
  <div class="description">
2453
1269
  <p>
@@ -2459,8 +1275,8 @@ then matched string ($&amp;).
2459
1275
  </pre>
2460
1276
  </div>
2461
1277
  <div class="sourcecode">
2462
- <p class="source-link">[ <a href="javascript:toggleSource('M000543_source')" id="l_M000543_source">show source</a> ]</p>
2463
- <div id="M000543_source" class="dyn-source">
1278
+ <p class="source-link">[ <a href="javascript:toggleSource('M000275_source')" id="l_M000275_source">show source</a> ]</p>
1279
+ <div id="M000275_source" class="dyn-source">
2464
1280
  <pre>
2465
1281
  <span class="ruby-comment cmt"># File lib/core/facets/string/mscan.rb, line 8</span>
2466
1282
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mscan</span>(<span class="ruby-identifier">re</span>) <span class="ruby-comment cmt">#:yield:</span>
@@ -2478,82 +1294,7 @@ then matched string ($&amp;).
2478
1294
  </div>
2479
1295
  <div class="method">
2480
1296
  <div class="title">
2481
- <a name="M000490"></a><b>natcmp</b>(str2, caseInsensitive=false)
2482
- </div>
2483
- <div class="description">
2484
- <p>
2485
- &#8216;Natural order&#8217; comparison of strings, e.g.
2486
- </p>
2487
- <pre>
2488
- &quot;my_prog_v1.1.0&quot; &lt; &quot;my_prog_v1.2.0&quot; &lt; &quot;my_prog_v1.10.0&quot;
2489
- </pre>
2490
- <p>
2491
- which does not follow alphabetically. A secondary parameter, if set to
2492
- <em>true</em>, makes the comparison case insensitive.
2493
- </p>
2494
- <pre>
2495
- &quot;Hello.10&quot;.natcmp(&quot;Hello.1&quot;) #=&gt; -1
2496
-
2497
- TODO: Invert case flag?
2498
-
2499
- CREDIT: Alan Davies
2500
- CREDIT: Martin Pool
2501
- </pre>
2502
- </div>
2503
- <div class="sourcecode">
2504
- <p class="source-link">[ <a href="javascript:toggleSource('M000490_source')" id="l_M000490_source">show source</a> ]</p>
2505
- <div id="M000490_source" class="dyn-source">
2506
- <pre>
2507
- <span class="ruby-comment cmt"># File lib/core/facets/string/natcmp.rb, line 47</span>
2508
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">natcmp</span>(<span class="ruby-identifier">str2</span>, <span class="ruby-identifier">caseInsensitive</span>=<span class="ruby-keyword kw">false</span>)
2509
- <span class="ruby-identifier">str1</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
2510
- <span class="ruby-identifier">str2</span> = <span class="ruby-identifier">str2</span>.<span class="ruby-identifier">dup</span>
2511
- <span class="ruby-identifier">compareExpression</span> = <span class="ruby-regexp re">/^(\D*)(\d*)(.*)$/</span>
2512
-
2513
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">caseInsensitive</span>
2514
- <span class="ruby-identifier">str1</span>.<span class="ruby-identifier">downcase!</span>
2515
- <span class="ruby-identifier">str2</span>.<span class="ruby-identifier">downcase!</span>
2516
- <span class="ruby-keyword kw">end</span>
2517
-
2518
- <span class="ruby-comment cmt"># remove all whitespace</span>
2519
- <span class="ruby-identifier">str1</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/\s*/</span>, <span class="ruby-value str">''</span>)
2520
- <span class="ruby-identifier">str2</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/\s*/</span>, <span class="ruby-value str">''</span>)
2521
-
2522
- <span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">str1</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>) <span class="ruby-keyword kw">or</span> (<span class="ruby-identifier">str2</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>) <span class="ruby-keyword kw">do</span>
2523
- <span class="ruby-comment cmt"># Extract non-digits, digits and rest of string</span>
2524
- <span class="ruby-identifier">str1</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">compareExpression</span>
2525
- <span class="ruby-identifier">chars1</span>, <span class="ruby-identifier">num1</span>, <span class="ruby-identifier">str1</span> = <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">dup</span>, <span class="ruby-identifier">$2</span>.<span class="ruby-identifier">dup</span>, <span class="ruby-identifier">$3</span>.<span class="ruby-identifier">dup</span>
2526
- <span class="ruby-identifier">str2</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">compareExpression</span>
2527
- <span class="ruby-identifier">chars2</span>, <span class="ruby-identifier">num2</span>, <span class="ruby-identifier">str2</span> = <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">dup</span>, <span class="ruby-identifier">$2</span>.<span class="ruby-identifier">dup</span>, <span class="ruby-identifier">$3</span>.<span class="ruby-identifier">dup</span>
2528
- <span class="ruby-comment cmt"># Compare the non-digits</span>
2529
- <span class="ruby-keyword kw">case</span> (<span class="ruby-identifier">chars1</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">chars2</span>)
2530
- <span class="ruby-keyword kw">when</span> <span class="ruby-value">0</span> <span class="ruby-comment cmt"># Non-digits are the same, compare the digits...</span>
2531
- <span class="ruby-comment cmt"># If either number begins with a zero, then compare alphabetically,</span>
2532
- <span class="ruby-comment cmt"># otherwise compare numerically</span>
2533
- <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">num1</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">!=</span> <span class="ruby-value">48</span>) <span class="ruby-keyword kw">and</span> (<span class="ruby-identifier">num2</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">!=</span> <span class="ruby-value">48</span>)
2534
- <span class="ruby-identifier">num1</span>, <span class="ruby-identifier">num2</span> = <span class="ruby-identifier">num1</span>.<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">num2</span>.<span class="ruby-identifier">to_i</span>
2535
- <span class="ruby-keyword kw">end</span>
2536
- <span class="ruby-keyword kw">case</span> (<span class="ruby-identifier">num1</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">num2</span>)
2537
- <span class="ruby-keyword kw">when</span> <span class="ruby-value">-1</span> <span class="ruby-keyword kw">then</span> <span class="ruby-keyword kw">return</span> <span class="ruby-value">-1</span>
2538
- <span class="ruby-keyword kw">when</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">then</span> <span class="ruby-keyword kw">return</span> <span class="ruby-value">1</span>
2539
- <span class="ruby-keyword kw">end</span>
2540
- <span class="ruby-keyword kw">when</span> <span class="ruby-value">-1</span> <span class="ruby-keyword kw">then</span> <span class="ruby-keyword kw">return</span> <span class="ruby-value">-1</span>
2541
- <span class="ruby-keyword kw">when</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">then</span> <span class="ruby-keyword kw">return</span> <span class="ruby-value">1</span>
2542
- <span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt"># case</span>
2543
- <span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt"># while</span>
2544
-
2545
- <span class="ruby-comment cmt"># strings are naturally equal.</span>
2546
- <span class="ruby-keyword kw">return</span> <span class="ruby-value">0</span>
2547
- <span class="ruby-keyword kw">end</span>
2548
-
2549
- <span class="ruby-keyword kw">end</span>
2550
- </pre>
2551
- </div>
2552
- </div>
2553
- </div>
2554
- <div class="method">
2555
- <div class="title">
2556
- <a name="M000547"></a><b>natcmp</b>(str2, caseInsensitive=false)
1297
+ <a name="M000279"></a><b>natcmp</b>(str2, caseInsensitive=false)
2557
1298
  </div>
2558
1299
  <div class="description">
2559
1300
  <p>
@@ -2576,8 +1317,8 @@ which does not follow alphabetically. A secondary parameter, if set to
2576
1317
  </pre>
2577
1318
  </div>
2578
1319
  <div class="sourcecode">
2579
- <p class="source-link">[ <a href="javascript:toggleSource('M000547_source')" id="l_M000547_source">show source</a> ]</p>
2580
- <div id="M000547_source" class="dyn-source">
1320
+ <p class="source-link">[ <a href="javascript:toggleSource('M000279_source')" id="l_M000279_source">show source</a> ]</p>
1321
+ <div id="M000279_source" class="dyn-source">
2581
1322
  <pre>
2582
1323
  <span class="ruby-comment cmt"># File lib/core/facets/string/natcmp.rb, line 47</span>
2583
1324
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">natcmp</span>(<span class="ruby-identifier">str2</span>, <span class="ruby-identifier">caseInsensitive</span>=<span class="ruby-keyword kw">false</span>)
@@ -2628,48 +1369,7 @@ which does not follow alphabetically. A secondary parameter, if set to
2628
1369
  </div>
2629
1370
  <div class="method">
2630
1371
  <div class="title">
2631
- <a name="M000568"></a><b>nchar</b>(n, replacement=nil)
2632
- </div>
2633
- <div class="description">
2634
- <p>
2635
- Returns <em>n</em> characters of the string. If <em>n</em> is positive the
2636
- characters are from the beginning of the string. If <em>n</em> is negative
2637
- from the end of the string.
2638
- </p>
2639
- <p>
2640
- Alternatively a replacement string can be given, which will replace the
2641
- <em>n</em> characters.
2642
- </p>
2643
- <pre>
2644
- str = &quot;this is text&quot;
2645
- str.nchar(4) #=&gt; &quot;this&quot;
2646
- str.nchar(4, 'that') #=&gt; &quot;that&quot;
2647
- str #=&gt; &quot;that is text&quot;
2648
-
2649
- CREDIT: ?
2650
- </pre>
2651
- </div>
2652
- <div class="sourcecode">
2653
- <p class="source-link">[ <a href="javascript:toggleSource('M000568_source')" id="l_M000568_source">show source</a> ]</p>
2654
- <div id="M000568_source" class="dyn-source">
2655
- <pre>
2656
- <span class="ruby-comment cmt"># File lib/core/facets/string/nchar.rb, line 17</span>
2657
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nchar</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">replacement</span>=<span class="ruby-keyword kw">nil</span>)
2658
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">replacement</span>
2659
- <span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
2660
- <span class="ruby-identifier">n</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> (<span class="ruby-identifier">s</span>[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">n</span>] = <span class="ruby-identifier">replacement</span>) <span class="ruby-operator">:</span> (<span class="ruby-identifier">s</span>[<span class="ruby-identifier">n</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>] = <span class="ruby-identifier">replacement</span>)
2661
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
2662
- <span class="ruby-keyword kw">else</span>
2663
- <span class="ruby-identifier">n</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">n</span>] <span class="ruby-operator">:</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">n</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
2664
- <span class="ruby-keyword kw">end</span>
2665
- <span class="ruby-keyword kw">end</span>
2666
- </pre>
2667
- </div>
2668
- </div>
2669
- </div>
2670
- <div class="method">
2671
- <div class="title">
2672
- <a name="M000511"></a><b>nchar</b>(n, replacement=nil)
1372
+ <a name="M000299"></a><b>nchar</b>(n, replacement=nil)
2673
1373
  </div>
2674
1374
  <div class="description">
2675
1375
  <p>
@@ -2691,8 +1391,8 @@ Alternatively a replacement string can be given, which will replace the
2691
1391
  </pre>
2692
1392
  </div>
2693
1393
  <div class="sourcecode">
2694
- <p class="source-link">[ <a href="javascript:toggleSource('M000511_source')" id="l_M000511_source">show source</a> ]</p>
2695
- <div id="M000511_source" class="dyn-source">
1394
+ <p class="source-link">[ <a href="javascript:toggleSource('M000299_source')" id="l_M000299_source">show source</a> ]</p>
1395
+ <div id="M000299_source" class="dyn-source">
2696
1396
  <pre>
2697
1397
  <span class="ruby-comment cmt"># File lib/core/facets/string/nchar.rb, line 17</span>
2698
1398
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nchar</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">replacement</span>=<span class="ruby-keyword kw">nil</span>)
@@ -2710,31 +1410,7 @@ Alternatively a replacement string can be given, which will replace the
2710
1410
  </div>
2711
1411
  <div class="method">
2712
1412
  <div class="title">
2713
- <a name="M000476"></a><b>outdent</b>(n)
2714
- </div>
2715
- <div class="description">
2716
- <p>
2717
- Outdent just indents a negative number of spaces.
2718
- </p>
2719
- <pre>
2720
- CREDIT: Noah Gibbs
2721
- </pre>
2722
- </div>
2723
- <div class="sourcecode">
2724
- <p class="source-link">[ <a href="javascript:toggleSource('M000476_source')" id="l_M000476_source">show source</a> ]</p>
2725
- <div id="M000476_source" class="dyn-source">
2726
- <pre>
2727
- <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 72</span>
2728
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">outdent</span>(<span class="ruby-identifier">n</span>)
2729
- <span class="ruby-identifier">indent</span>(<span class="ruby-operator">-</span><span class="ruby-identifier">n</span>)
2730
- <span class="ruby-keyword kw">end</span>
2731
- </pre>
2732
- </div>
2733
- </div>
2734
- </div>
2735
- <div class="method">
2736
- <div class="title">
2737
- <a name="M000533"></a><b>outdent</b>(n)
1413
+ <a name="M000264"></a><b>outdent</b>(n)
2738
1414
  </div>
2739
1415
  <div class="description">
2740
1416
  <p>
@@ -2745,8 +1421,8 @@ Outdent just indents a negative number of spaces.
2745
1421
  </pre>
2746
1422
  </div>
2747
1423
  <div class="sourcecode">
2748
- <p class="source-link">[ <a href="javascript:toggleSource('M000533_source')" id="l_M000533_source">show source</a> ]</p>
2749
- <div id="M000533_source" class="dyn-source">
1424
+ <p class="source-link">[ <a href="javascript:toggleSource('M000264_source')" id="l_M000264_source">show source</a> ]</p>
1425
+ <div id="M000264_source" class="dyn-source">
2750
1426
  <pre>
2751
1427
  <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 72</span>
2752
1428
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">outdent</span>(<span class="ruby-identifier">n</span>)
@@ -2758,31 +1434,7 @@ Outdent just indents a negative number of spaces.
2758
1434
  </div>
2759
1435
  <div class="method">
2760
1436
  <div class="title">
2761
- <a name="M000493"></a><b>pathize</b>()
2762
- </div>
2763
- <div class="description">
2764
- <p>
2765
- Converts a (class or module) name to a unix path.
2766
- </p>
2767
- <pre>
2768
- My::CoolClass.name.pathize #=&gt; &quot;/my/cool_class&quot;
2769
- </pre>
2770
- </div>
2771
- <div class="sourcecode">
2772
- <p class="source-link">[ <a href="javascript:toggleSource('M000493_source')" id="l_M000493_source">show source</a> ]</p>
2773
- <div id="M000493_source" class="dyn-source">
2774
- <pre>
2775
- <span class="ruby-comment cmt"># File lib/core/facets/string/pathize.rb, line 7</span>
2776
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pathize</span>
2777
- <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([A-Z]+)([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([a-z])([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'::'</span>,<span class="ruby-value str">'/'</span>).<span class="ruby-identifier">downcase</span>
2778
- <span class="ruby-keyword kw">end</span>
2779
- </pre>
2780
- </div>
2781
- </div>
2782
- </div>
2783
- <div class="method">
2784
- <div class="title">
2785
- <a name="M000550"></a><b>pathize</b>()
1437
+ <a name="M000282"></a><b>pathize</b>()
2786
1438
  </div>
2787
1439
  <div class="description">
2788
1440
  <p>
@@ -2793,8 +1445,8 @@ Converts a (class or module) name to a unix path.
2793
1445
  </pre>
2794
1446
  </div>
2795
1447
  <div class="sourcecode">
2796
- <p class="source-link">[ <a href="javascript:toggleSource('M000550_source')" id="l_M000550_source">show source</a> ]</p>
2797
- <div id="M000550_source" class="dyn-source">
1448
+ <p class="source-link">[ <a href="javascript:toggleSource('M000282_source')" id="l_M000282_source">show source</a> ]</p>
1449
+ <div id="M000282_source" class="dyn-source">
2798
1450
  <pre>
2799
1451
  <span class="ruby-comment cmt"># File lib/core/facets/string/pathize.rb, line 7</span>
2800
1452
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pathize</span>
@@ -2806,7 +1458,7 @@ Converts a (class or module) name to a unix path.
2806
1458
  </div>
2807
1459
  <div class="method">
2808
1460
  <div class="title">
2809
- <a name="M000561"></a><b>quote</b>(type=:s)
1461
+ <a name="M000292"></a><b>quote</b>(type=:s)
2810
1462
  </div>
2811
1463
  <div class="description">
2812
1464
  <p>
@@ -2821,8 +1473,8 @@ then assumes single quotes.
2821
1473
  </pre>
2822
1474
  </div>
2823
1475
  <div class="sourcecode">
2824
- <p class="source-link">[ <a href="javascript:toggleSource('M000561_source')" id="l_M000561_source">show source</a> ]</p>
2825
- <div id="M000561_source" class="dyn-source">
1476
+ <p class="source-link">[ <a href="javascript:toggleSource('M000292_source')" id="l_M000292_source">show source</a> ]</p>
1477
+ <div id="M000292_source" class="dyn-source">
2826
1478
  <pre>
2827
1479
  <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 69</span>
2828
1480
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">quote</span>(<span class="ruby-identifier">type</span>=<span class="ruby-identifier">:s</span>)
@@ -2843,36 +1495,28 @@ then assumes single quotes.
2843
1495
  </div>
2844
1496
  <div class="method">
2845
1497
  <div class="title">
2846
- <a name="M000504"></a><b>quote</b>(type=:s)
1498
+ <a name="M000268"></a><b>range</b>(s, offset=0)
2847
1499
  </div>
2848
1500
  <div class="description">
2849
1501
  <p>
2850
- Return a new string embraced by given quotes. If no quotes are specified,
2851
- then assumes single quotes.
1502
+ Like index but returns a <a href="Range.html">Range</a>.
2852
1503
  </p>
2853
1504
  <pre>
2854
- &quot;quote me&quot;.quote #=&gt; &quot;'quote me'&quot;
2855
- &quot;quote me&quot;.quote(2) #=&gt; &quot;\&quot;quote me\&quot;&quot;
1505
+ &quot;This is a test!&quot;.range('test') #=&gt; 10..13
2856
1506
 
2857
1507
  CREDIT: Trans
2858
1508
  </pre>
2859
1509
  </div>
2860
1510
  <div class="sourcecode">
2861
- <p class="source-link">[ <a href="javascript:toggleSource('M000504_source')" id="l_M000504_source">show source</a> ]</p>
2862
- <div id="M000504_source" class="dyn-source">
1511
+ <p class="source-link">[ <a href="javascript:toggleSource('M000268_source')" id="l_M000268_source">show source</a> ]</p>
1512
+ <div id="M000268_source" class="dyn-source">
2863
1513
  <pre>
2864
- <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 69</span>
2865
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">quote</span>(<span class="ruby-identifier">type</span>=<span class="ruby-identifier">:s</span>)
2866
- <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">downcase</span>
2867
- <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'s'</span>, <span class="ruby-value str">'single'</span>
2868
- <span class="ruby-identifier">bracket</span>(<span class="ruby-value str">&quot;'&quot;</span>)
2869
- <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'d'</span>, <span class="ruby-value str">'double'</span>
2870
- <span class="ruby-identifier">bracket</span>(<span class="ruby-value str">'&quot;'</span>)
2871
- <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'b'</span>, <span class="ruby-value str">'back'</span>
2872
- <span class="ruby-identifier">bracket</span>(<span class="ruby-value str">'`'</span>)
2873
- <span class="ruby-keyword kw">else</span>
2874
- <span class="ruby-identifier">bracket</span>(<span class="ruby-value str">&quot;'&quot;</span>)
1514
+ <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 9</span>
1515
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">offset</span>=<span class="ruby-value">0</span>)
1516
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">index</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">offset</span>)
1517
+ <span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">$~</span>.<span class="ruby-identifier">begin</span>(<span class="ruby-value">0</span>))<span class="ruby-operator">..</span>(<span class="ruby-identifier">$~</span>.<span class="ruby-identifier">end</span>(<span class="ruby-value">0</span>)<span class="ruby-operator">-</span><span class="ruby-value">1</span>)
2875
1518
  <span class="ruby-keyword kw">end</span>
1519
+ <span class="ruby-keyword kw">nil</span>
2876
1520
  <span class="ruby-keyword kw">end</span>
2877
1521
  </pre>
2878
1522
  </div>
@@ -2880,121 +1524,24 @@ then assumes single quotes.
2880
1524
  </div>
2881
1525
  <div class="method">
2882
1526
  <div class="title">
2883
- <a name="M000479"></a><b>range</b>(s, offset=0)
1527
+ <a name="M000269"></a><b>range_all</b>(s, reuse=false)
2884
1528
  </div>
2885
1529
  <div class="description">
2886
1530
  <p>
2887
- Like index but returns a <a href="Range.html">Range</a>.
1531
+ Like <a href="String.html#M000271">index_all</a> but returns an array of
1532
+ Ranges.
2888
1533
  </p>
2889
1534
  <pre>
2890
- &quot;This is a test!&quot;.range('test') #=&gt; 10..13
1535
+ &quot;abc123abc123&quot;.range_all('abc') #=&gt; [0..2, 6..8]
1536
+
1537
+ TODO: Add offset, perhaps ?
2891
1538
 
2892
1539
  CREDIT: Trans
2893
1540
  </pre>
2894
1541
  </div>
2895
1542
  <div class="sourcecode">
2896
- <p class="source-link">[ <a href="javascript:toggleSource('M000479_source')" id="l_M000479_source">show source</a> ]</p>
2897
- <div id="M000479_source" class="dyn-source">
2898
- <pre>
2899
- <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 9</span>
2900
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">offset</span>=<span class="ruby-value">0</span>)
2901
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">index</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">offset</span>)
2902
- <span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">$~</span>.<span class="ruby-identifier">begin</span>(<span class="ruby-value">0</span>))<span class="ruby-operator">..</span>(<span class="ruby-identifier">$~</span>.<span class="ruby-identifier">end</span>(<span class="ruby-value">0</span>)<span class="ruby-operator">-</span><span class="ruby-value">1</span>)
2903
- <span class="ruby-keyword kw">end</span>
2904
- <span class="ruby-keyword kw">nil</span>
2905
- <span class="ruby-keyword kw">end</span>
2906
- </pre>
2907
- </div>
2908
- </div>
2909
- </div>
2910
- <div class="method">
2911
- <div class="title">
2912
- <a name="M000536"></a><b>range</b>(s, offset=0)
2913
- </div>
2914
- <div class="description">
2915
- <p>
2916
- Like index but returns a <a href="Range.html">Range</a>.
2917
- </p>
2918
- <pre>
2919
- &quot;This is a test!&quot;.range('test') #=&gt; 10..13
2920
-
2921
- CREDIT: Trans
2922
- </pre>
2923
- </div>
2924
- <div class="sourcecode">
2925
- <p class="source-link">[ <a href="javascript:toggleSource('M000536_source')" id="l_M000536_source">show source</a> ]</p>
2926
- <div id="M000536_source" class="dyn-source">
2927
- <pre>
2928
- <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 9</span>
2929
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">offset</span>=<span class="ruby-value">0</span>)
2930
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">index</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">offset</span>)
2931
- <span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">$~</span>.<span class="ruby-identifier">begin</span>(<span class="ruby-value">0</span>))<span class="ruby-operator">..</span>(<span class="ruby-identifier">$~</span>.<span class="ruby-identifier">end</span>(<span class="ruby-value">0</span>)<span class="ruby-operator">-</span><span class="ruby-value">1</span>)
2932
- <span class="ruby-keyword kw">end</span>
2933
- <span class="ruby-keyword kw">nil</span>
2934
- <span class="ruby-keyword kw">end</span>
2935
- </pre>
2936
- </div>
2937
- </div>
2938
- </div>
2939
- <div class="method">
2940
- <div class="title">
2941
- <a name="M000537"></a><b>range_all</b>(s, reuse=false)
2942
- </div>
2943
- <div class="description">
2944
- <p>
2945
- Like <a href="String.html#M000482">index_all</a> but returns an array of
2946
- Ranges.
2947
- </p>
2948
- <pre>
2949
- &quot;abc123abc123&quot;.range_all('abc') #=&gt; [0..2, 6..8]
2950
-
2951
- TODO: Add offset, perhaps ?
2952
-
2953
- CREDIT: Trans
2954
- </pre>
2955
- </div>
2956
- <div class="sourcecode">
2957
- <p class="source-link">[ <a href="javascript:toggleSource('M000537_source')" id="l_M000537_source">show source</a> ]</p>
2958
- <div id="M000537_source" class="dyn-source">
2959
- <pre>
2960
- <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 24</span>
2961
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range_all</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">reuse</span>=<span class="ruby-keyword kw">false</span>)
2962
- <span class="ruby-identifier">r</span> = []; <span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
2963
- <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">&lt;</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span>
2964
- <span class="ruby-identifier">rng</span> = <span class="ruby-identifier">range</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">i</span>)
2965
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">rng</span>
2966
- <span class="ruby-identifier">r</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">rng</span>
2967
- <span class="ruby-identifier">i</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">reuse</span> <span class="ruby-value">? </span><span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">rng</span>.<span class="ruby-identifier">end</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>
2968
- <span class="ruby-keyword kw">else</span>
2969
- <span class="ruby-keyword kw">break</span>
2970
- <span class="ruby-keyword kw">end</span>
2971
- <span class="ruby-keyword kw">end</span>
2972
- <span class="ruby-identifier">r</span>.<span class="ruby-identifier">uniq</span>
2973
- <span class="ruby-keyword kw">end</span>
2974
- </pre>
2975
- </div>
2976
- </div>
2977
- </div>
2978
- <div class="method">
2979
- <div class="title">
2980
- <a name="M000480"></a><b>range_all</b>(s, reuse=false)
2981
- </div>
2982
- <div class="description">
2983
- <p>
2984
- Like <a href="String.html#M000482">index_all</a> but returns an array of
2985
- Ranges.
2986
- </p>
2987
- <pre>
2988
- &quot;abc123abc123&quot;.range_all('abc') #=&gt; [0..2, 6..8]
2989
-
2990
- TODO: Add offset, perhaps ?
2991
-
2992
- CREDIT: Trans
2993
- </pre>
2994
- </div>
2995
- <div class="sourcecode">
2996
- <p class="source-link">[ <a href="javascript:toggleSource('M000480_source')" id="l_M000480_source">show source</a> ]</p>
2997
- <div id="M000480_source" class="dyn-source">
1543
+ <p class="source-link">[ <a href="javascript:toggleSource('M000269_source')" id="l_M000269_source">show source</a> ]</p>
1544
+ <div id="M000269_source" class="dyn-source">
2998
1545
  <pre>
2999
1546
  <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 24</span>
3000
1547
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range_all</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">reuse</span>=<span class="ruby-keyword kw">false</span>)
@@ -3016,39 +1563,7 @@ Ranges.
3016
1563
  </div>
3017
1564
  <div class="method">
3018
1565
  <div class="title">
3019
- <a name="M000538"></a><b>range_of_line</b>()
3020
- </div>
3021
- <div class="description">
3022
- <p>
3023
- Returns an array of ranges mapping the characters per line.
3024
- </p>
3025
- <pre>
3026
- &quot;this\nis\na\ntest&quot;.range_of_line
3027
- #=&gt; [0..4, 5..7, 8..9, 10..13]
3028
-
3029
- CREDIT: Trans
3030
- </pre>
3031
- </div>
3032
- <div class="sourcecode">
3033
- <p class="source-link">[ <a href="javascript:toggleSource('M000538_source')" id="l_M000538_source">show source</a> ]</p>
3034
- <div id="M000538_source" class="dyn-source">
3035
- <pre>
3036
- <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 46</span>
3037
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range_of_line</span>
3038
- <span class="ruby-identifier">offset</span>=<span class="ruby-value">0</span>; <span class="ruby-identifier">charmap</span> = []
3039
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
3040
- <span class="ruby-identifier">charmap</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">offset</span><span class="ruby-operator">..</span>(<span class="ruby-identifier">offset</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>))
3041
- <span class="ruby-identifier">offset</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">length</span>
3042
- <span class="ruby-keyword kw">end</span>
3043
- <span class="ruby-identifier">charmap</span>
3044
- <span class="ruby-keyword kw">end</span>
3045
- </pre>
3046
- </div>
3047
- </div>
3048
- </div>
3049
- <div class="method">
3050
- <div class="title">
3051
- <a name="M000481"></a><b>range_of_line</b>()
1566
+ <a name="M000270"></a><b>range_of_line</b>()
3052
1567
  </div>
3053
1568
  <div class="description">
3054
1569
  <p>
@@ -3062,8 +1577,8 @@ Returns an array of ranges mapping the characters per line.
3062
1577
  </pre>
3063
1578
  </div>
3064
1579
  <div class="sourcecode">
3065
- <p class="source-link">[ <a href="javascript:toggleSource('M000481_source')" id="l_M000481_source">show source</a> ]</p>
3066
- <div id="M000481_source" class="dyn-source">
1580
+ <p class="source-link">[ <a href="javascript:toggleSource('M000270_source')" id="l_M000270_source">show source</a> ]</p>
1581
+ <div id="M000270_source" class="dyn-source">
3067
1582
  <pre>
3068
1583
  <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 46</span>
3069
1584
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range_of_line</span>
@@ -3080,49 +1595,7 @@ Returns an array of ranges mapping the characters per line.
3080
1595
  </div>
3081
1596
  <div class="method">
3082
1597
  <div class="title">
3083
- <a name="M000567"></a><b>rewrite</b>(rules)
3084
- </div>
3085
- <div class="description">
3086
- <p>
3087
- Apply a set of rules (regular expression matches) to the string.
3088
- </p>
3089
- <h3>Requirements:</h3>
3090
- <p>
3091
- The rules must be applied in order! So we cannot use a hash because the
3092
- ordering is not guaranteed! we use an array instead.
3093
- </p>
3094
- <h3>Input:</h3>
3095
- <p>
3096
- The array containing rule-pairs (match, write).
3097
- </p>
3098
- <h3>Output:</h3>
3099
- <p>
3100
- The rewritten string.
3101
- </p>
3102
- <pre>
3103
- CREDIT: George Moschovitis
3104
- </pre>
3105
- </div>
3106
- <div class="sourcecode">
3107
- <p class="source-link">[ <a href="javascript:toggleSource('M000567_source')" id="l_M000567_source">show source</a> ]</p>
3108
- <div id="M000567_source" class="dyn-source">
3109
- <pre>
3110
- <span class="ruby-comment cmt"># File lib/core/facets/string/rewrite.rb, line 18</span>
3111
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rewrite</span>(<span class="ruby-identifier">rules</span>)
3112
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'The rules parameter is nil'</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">rules</span>
3113
- <span class="ruby-identifier">rewritten_string</span> = <span class="ruby-identifier">dup</span>
3114
- <span class="ruby-identifier">rules</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">match</span>,<span class="ruby-identifier">write</span><span class="ruby-operator">|</span>
3115
- <span class="ruby-identifier">rewritten_string</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-identifier">match</span>,<span class="ruby-identifier">write</span>)
3116
- <span class="ruby-keyword kw">end</span>
3117
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">rewritten_string</span>
3118
- <span class="ruby-keyword kw">end</span>
3119
- </pre>
3120
- </div>
3121
- </div>
3122
- </div>
3123
- <div class="method">
3124
- <div class="title">
3125
- <a name="M000510"></a><b>rewrite</b>(rules)
1598
+ <a name="M000298"></a><b>rewrite</b>(rules)
3126
1599
  </div>
3127
1600
  <div class="description">
3128
1601
  <p>
@@ -3146,8 +1619,8 @@ The rewritten string.
3146
1619
  </pre>
3147
1620
  </div>
3148
1621
  <div class="sourcecode">
3149
- <p class="source-link">[ <a href="javascript:toggleSource('M000510_source')" id="l_M000510_source">show source</a> ]</p>
3150
- <div id="M000510_source" class="dyn-source">
1622
+ <p class="source-link">[ <a href="javascript:toggleSource('M000298_source')" id="l_M000298_source">show source</a> ]</p>
1623
+ <div id="M000298_source" class="dyn-source">
3151
1624
  <pre>
3152
1625
  <span class="ruby-comment cmt"># File lib/core/facets/string/rewrite.rb, line 18</span>
3153
1626
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rewrite</span>(<span class="ruby-identifier">rules</span>)
@@ -3164,44 +1637,7 @@ The rewritten string.
3164
1637
  </div>
3165
1638
  <div class="method">
3166
1639
  <div class="title">
3167
- <a name="M000514"></a><b>shatter</b>( re )
3168
- </div>
3169
- <div class="description">
3170
- <p>
3171
- Breaks a string up into an array based on a regular expression. Similar to
3172
- scan, but includes the matches.
3173
- </p>
3174
- <pre>
3175
- s = &quot;&lt;p&gt;This&lt;b&gt;is&lt;/b&gt;a test.&lt;/p&gt;&quot;
3176
- s.shatter( /\&lt;.*?\&gt;/ )
3177
- </pre>
3178
- <p>
3179
- <em>produces</em>
3180
- </p>
3181
- <pre>
3182
- [&quot;&lt;p&gt;&quot;, &quot;This&quot;, &quot;&lt;b&gt;&quot;, &quot;is&quot;, &quot;&lt;/b&gt;&quot;, &quot;a test.&quot;, &quot;&lt;/p&gt;&quot;]
3183
-
3184
- CREDIT: Trans
3185
- </pre>
3186
- </div>
3187
- <div class="sourcecode">
3188
- <p class="source-link">[ <a href="javascript:toggleSource('M000514_source')" id="l_M000514_source">show source</a> ]</p>
3189
- <div id="M000514_source" class="dyn-source">
3190
- <pre>
3191
- <span class="ruby-comment cmt"># File lib/core/facets/string/shatter.rb, line 15</span>
3192
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shatter</span>( <span class="ruby-identifier">re</span> )
3193
- <span class="ruby-identifier">r</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">gsub</span>( <span class="ruby-identifier">re</span> ){ <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-value str">&quot;\1&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;\1&quot;</span> }
3194
- <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">r</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;\1&quot;</span> ; <span class="ruby-identifier">r</span>[<span class="ruby-value">0</span>] = <span class="ruby-value str">''</span> ; <span class="ruby-keyword kw">end</span>
3195
- <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">r</span>[<span class="ruby-value">-1</span>,<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;\1&quot;</span> ; <span class="ruby-identifier">r</span>[<span class="ruby-value">-1</span>] = <span class="ruby-value str">''</span> ; <span class="ruby-keyword kw">end</span>
3196
- <span class="ruby-identifier">r</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">&quot;\1&quot;</span>)
3197
- <span class="ruby-keyword kw">end</span>
3198
- </pre>
3199
- </div>
3200
- </div>
3201
- </div>
3202
- <div class="method">
3203
- <div class="title">
3204
- <a name="M000457"></a><b>shatter</b>( re )
1640
+ <a name="M000245"></a><b>shatter</b>( re )
3205
1641
  </div>
3206
1642
  <div class="description">
3207
1643
  <p>
@@ -3222,8 +1658,8 @@ scan, but includes the matches.
3222
1658
  </pre>
3223
1659
  </div>
3224
1660
  <div class="sourcecode">
3225
- <p class="source-link">[ <a href="javascript:toggleSource('M000457_source')" id="l_M000457_source">show source</a> ]</p>
3226
- <div id="M000457_source" class="dyn-source">
1661
+ <p class="source-link">[ <a href="javascript:toggleSource('M000245_source')" id="l_M000245_source">show source</a> ]</p>
1662
+ <div id="M000245_source" class="dyn-source">
3227
1663
  <pre>
3228
1664
  <span class="ruby-comment cmt"># File lib/core/facets/string/shatter.rb, line 15</span>
3229
1665
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shatter</span>( <span class="ruby-identifier">re</span> )
@@ -3238,49 +1674,12 @@ scan, but includes the matches.
3238
1674
  </div>
3239
1675
  <div class="method">
3240
1676
  <div class="title">
3241
- <a name="M000483"></a><b>snakecase</b>()
3242
- </div>
3243
- <div class="description">
3244
- <p>
3245
- The reverse of <tt><a href="String.html#M000463">camelcase</a></tt>. Makes
3246
- an underscored of a <a href="String.html#M000463">camelcase</a> string.
3247
- </p>
3248
- <p>
3249
- Changes &#8217;::&#8217; to &#8217;/&#8217; to convert namespaces to paths.
3250
- </p>
3251
- <p>
3252
- Examples
3253
- </p>
3254
- <pre>
3255
- &quot;SnakeCase&quot;.snakecase #=&gt; &quot;snake_case&quot;
3256
- &quot;Snake-Case&quot;.snakecase #=&gt; &quot;snake_case&quot;
3257
- &quot;SnakeCase::Errors&quot;.underscore #=&gt; &quot;snake_case/errors&quot;
3258
- </pre>
3259
- </div>
3260
- <div class="sourcecode">
3261
- <p class="source-link">[ <a href="javascript:toggleSource('M000483_source')" id="l_M000483_source">show source</a> ]</p>
3262
- <div id="M000483_source" class="dyn-source">
3263
- <pre>
3264
- <span class="ruby-comment cmt"># File lib/core/facets/string/snakecase.rb, line 12</span>
3265
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">snakecase</span>
3266
- <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/::/</span>, <span class="ruby-value str">'/'</span>). <span class="ruby-comment cmt"># NOT SO SURE ABOUT THIS -T</span>
3267
- <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([A-Z]+)([A-Z][a-z])/</span>,<span class="ruby-value str">'\1_\2'</span>).
3268
- <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([a-z\d])([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).
3269
- <span class="ruby-identifier">tr</span>(<span class="ruby-value str">&quot;-&quot;</span>, <span class="ruby-value str">&quot;_&quot;</span>).
3270
- <span class="ruby-identifier">downcase</span>
3271
- <span class="ruby-keyword kw">end</span>
3272
- </pre>
3273
- </div>
3274
- </div>
3275
- </div>
3276
- <div class="method">
3277
- <div class="title">
3278
- <a name="M000540"></a><b>snakecase</b>()
1677
+ <a name="M000272"></a><b>snakecase</b>()
3279
1678
  </div>
3280
1679
  <div class="description">
3281
1680
  <p>
3282
- The reverse of <tt><a href="String.html#M000463">camelcase</a></tt>. Makes
3283
- an underscored of a <a href="String.html#M000463">camelcase</a> string.
1681
+ The reverse of <tt><a href="String.html#M000251">camelcase</a></tt>. Makes
1682
+ an underscored of a <a href="String.html#M000251">camelcase</a> string.
3284
1683
  </p>
3285
1684
  <p>
3286
1685
  Changes &#8217;::&#8217; to &#8217;/&#8217; to convert namespaces to paths.
@@ -3295,8 +1694,8 @@ Examples
3295
1694
  </pre>
3296
1695
  </div>
3297
1696
  <div class="sourcecode">
3298
- <p class="source-link">[ <a href="javascript:toggleSource('M000540_source')" id="l_M000540_source">show source</a> ]</p>
3299
- <div id="M000540_source" class="dyn-source">
1697
+ <p class="source-link">[ <a href="javascript:toggleSource('M000272_source')" id="l_M000272_source">show source</a> ]</p>
1698
+ <div id="M000272_source" class="dyn-source">
3300
1699
  <pre>
3301
1700
  <span class="ruby-comment cmt"># File lib/core/facets/string/snakecase.rb, line 12</span>
3302
1701
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">snakecase</span>
@@ -3312,40 +1711,7 @@ Examples
3312
1711
  </div>
3313
1712
  <div class="method">
3314
1713
  <div class="title">
3315
- <a name="M000566"></a><b>splice</b>(*args)
3316
- </div>
3317
- <div class="description">
3318
- <p>
3319
- Like slice, but writes rather than reads. Like store, but acts like slice!
3320
- when given only one argument.
3321
- </p>
3322
- <pre>
3323
- a = &quot;HELLO&quot;
3324
- a.splice(1) #=&gt; &quot;E&quot;
3325
- a #=&gt; &quot;HLLO&quot;
3326
-
3327
- CREDIT: Trans
3328
- </pre>
3329
- </div>
3330
- <div class="sourcecode">
3331
- <p class="source-link">[ <a href="javascript:toggleSource('M000566_source')" id="l_M000566_source">show source</a> ]</p>
3332
- <div id="M000566_source" class="dyn-source">
3333
- <pre>
3334
- <span class="ruby-comment cmt"># File lib/core/facets/string/splice.rb, line 13</span>
3335
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">splice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
3336
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
3337
- <span class="ruby-identifier">slice!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
3338
- <span class="ruby-keyword kw">else</span>
3339
- <span class="ruby-identifier">store</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
3340
- <span class="ruby-keyword kw">end</span>
3341
- <span class="ruby-keyword kw">end</span>
3342
- </pre>
3343
- </div>
3344
- </div>
3345
- </div>
3346
- <div class="method">
3347
- <div class="title">
3348
- <a name="M000509"></a><b>splice</b>(*args)
1714
+ <a name="M000297"></a><b>splice</b>(*args)
3349
1715
  </div>
3350
1716
  <div class="description">
3351
1717
  <p>
@@ -3361,8 +1727,8 @@ when given only one argument.
3361
1727
  </pre>
3362
1728
  </div>
3363
1729
  <div class="sourcecode">
3364
- <p class="source-link">[ <a href="javascript:toggleSource('M000509_source')" id="l_M000509_source">show source</a> ]</p>
3365
- <div id="M000509_source" class="dyn-source">
1730
+ <p class="source-link">[ <a href="javascript:toggleSource('M000297_source')" id="l_M000297_source">show source</a> ]</p>
1731
+ <div id="M000297_source" class="dyn-source">
3366
1732
  <pre>
3367
1733
  <span class="ruby-comment cmt"># File lib/core/facets/string/splice.rb, line 13</span>
3368
1734
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">splice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
@@ -3378,7 +1744,7 @@ when given only one argument.
3378
1744
  </div>
3379
1745
  <div class="method">
3380
1746
  <div class="title">
3381
- <a name="M000518"></a><b>start_with?</b>(prefix)
1747
+ <a name="M000249"></a><b>start_with?</b>(prefix)
3382
1748
  </div>
3383
1749
  <div class="description">
3384
1750
  <p>
@@ -3393,8 +1759,8 @@ Does a string start with the given prefix.
3393
1759
  </pre>
3394
1760
  </div>
3395
1761
  <div class="sourcecode">
3396
- <p class="source-link">[ <a href="javascript:toggleSource('M000518_source')" id="l_M000518_source">show source</a> ]</p>
3397
- <div id="M000518_source" class="dyn-source">
1762
+ <p class="source-link">[ <a href="javascript:toggleSource('M000249_source')" id="l_M000249_source">show source</a> ]</p>
1763
+ <div id="M000249_source" class="dyn-source">
3398
1764
  <pre>
3399
1765
  <span class="ruby-comment cmt"># File lib/core/facets/string/start_with.rb, line 13</span>
3400
1766
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_with?</span>(<span class="ruby-identifier">prefix</span>)
@@ -3406,35 +1772,7 @@ Does a string start with the given prefix.
3406
1772
  </div>
3407
1773
  <div class="method">
3408
1774
  <div class="title">
3409
- <a name="M000461"></a><b>start_with?</b>(prefix)
3410
- </div>
3411
- <div class="description">
3412
- <p>
3413
- Does a string start with the given prefix.
3414
- </p>
3415
- <pre>
3416
- &quot;hello&quot;.starts_with?(&quot;he&quot;) #=&gt; true
3417
- &quot;hello&quot;.starts_with?(&quot;to&quot;) #=&gt; false
3418
-
3419
- CREDIT: Lucas Carlson
3420
- CREDIT: Blaine Cook
3421
- </pre>
3422
- </div>
3423
- <div class="sourcecode">
3424
- <p class="source-link">[ <a href="javascript:toggleSource('M000461_source')" id="l_M000461_source">show source</a> ]</p>
3425
- <div id="M000461_source" class="dyn-source">
3426
- <pre>
3427
- <span class="ruby-comment cmt"># File lib/core/facets/string/start_with.rb, line 13</span>
3428
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_with?</span>(<span class="ruby-identifier">prefix</span>)
3429
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">index</span>(<span class="ruby-identifier">prefix</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
3430
- <span class="ruby-keyword kw">end</span>
3431
- </pre>
3432
- </div>
3433
- </div>
3434
- </div>
3435
- <div class="method">
3436
- <div class="title">
3437
- <a name="M000471"></a><b>tab</b>(n)
1775
+ <a name="M000259"></a><b>tab</b>(n)
3438
1776
  </div>
3439
1777
  <div class="description">
3440
1778
  <p>
@@ -3446,266 +1784,15 @@ Aligns each line n spaces.
3446
1784
  </div>
3447
1785
  <div class="aka">
3448
1786
  This method is also aliased as
3449
- <a href="String.html#M000472">taballto</a>
3450
- <a href="String.html#M000529">taballto</a>
3451
- </div>
3452
- <div class="sourcecode">
3453
- <p class="source-link">[ <a href="javascript:toggleSource('M000471_source')" id="l_M000471_source">show source</a> ]</p>
3454
- <div id="M000471_source" class="dyn-source">
3455
- <pre>
3456
- <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 10</span>
3457
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tab</span>(<span class="ruby-identifier">n</span>)
3458
- <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/^ */</span>, <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">n</span>)
3459
- <span class="ruby-keyword kw">end</span>
3460
- </pre>
3461
- </div>
3462
- </div>
1787
+ <a href="String.html#M000260">taballto</a>
3463
1788
  </div>
3464
- <div class="method">
3465
- <div class="title">
3466
- <a name="M000528"></a><b>tab</b>(n)
3467
- </div>
3468
- <div class="description">
3469
- <p>
3470
- Aligns each line n spaces.
3471
- </p>
3472
- <pre>
3473
- CREDIT: Gavin Sinclair
3474
- </pre>
3475
- </div>
3476
1789
  <div class="sourcecode">
3477
- <p class="source-link">[ <a href="javascript:toggleSource('M000528_source')" id="l_M000528_source">show source</a> ]</p>
3478
- <div id="M000528_source" class="dyn-source">
1790
+ <p class="source-link">[ <a href="javascript:toggleSource('M000259_source')" id="l_M000259_source">show source</a> ]</p>
1791
+ <div id="M000259_source" class="dyn-source">
3479
1792
  <pre>
3480
1793
  <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 10</span>
3481
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tab</span>(<span class="ruby-identifier">n</span>)
3482
- <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/^ */</span>, <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">n</span>)
3483
- <span class="ruby-keyword kw">end</span>
3484
- </pre>
3485
- </div>
3486
- </div>
3487
- </div>
3488
- <div class="method">
3489
- <div class="title">
3490
- <a name="M000472"></a><b>taballto</b>(n)
3491
- </div>
3492
- <div class="description">
3493
- <p>
3494
- Alias for <a href="String.html#M000471">tab</a>
3495
- </p>
3496
- </div>
3497
- </div>
3498
- <div class="method">
3499
- <div class="title">
3500
- <a name="M000529"></a><b>taballto</b>(n)
3501
- </div>
3502
- <div class="description">
3503
- <p>
3504
- Alias for <a href="String.html#M000471">tab</a>
3505
- </p>
3506
- </div>
3507
- </div>
3508
- <div class="method">
3509
- <div class="title">
3510
- <a name="M000474"></a><b>tabto</b>(n)
3511
- </div>
3512
- <div class="description">
3513
- <p>
3514
- Preserves relative tabbing. The first non-empty line ends up with n spaces
3515
- before nonspace.
3516
- </p>
3517
- <pre>
3518
- CREDIT: Gavin Sinclair
3519
- </pre>
3520
- </div>
3521
- <div class="sourcecode">
3522
- <p class="source-link">[ <a href="javascript:toggleSource('M000474_source')" id="l_M000474_source">show source</a> ]</p>
3523
- <div id="M000474_source" class="dyn-source">
3524
- <pre>
3525
- <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 46</span>
3526
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tabto</span>(<span class="ruby-identifier">n</span>)
3527
- <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^( *)\S/</span>
3528
- <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">n</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">length</span>)
3529
- <span class="ruby-keyword kw">else</span>
3530
- <span class="ruby-keyword kw">self</span>
3531
- <span class="ruby-keyword kw">end</span>
3532
- <span class="ruby-keyword kw">end</span>
3533
- </pre>
3534
- </div>
3535
- </div>
3536
- </div>
3537
- <div class="method">
3538
- <div class="title">
3539
- <a name="M000531"></a><b>tabto</b>(n)
3540
- </div>
3541
- <div class="description">
3542
- <p>
3543
- Preserves relative tabbing. The first non-empty line ends up with n spaces
3544
- before nonspace.
3545
- </p>
3546
- <pre>
3547
- CREDIT: Gavin Sinclair
3548
- </pre>
3549
- </div>
3550
- <div class="sourcecode">
3551
- <p class="source-link">[ <a href="javascript:toggleSource('M000531_source')" id="l_M000531_source">show source</a> ]</p>
3552
- <div id="M000531_source" class="dyn-source">
3553
- <pre>
3554
- <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 46</span>
3555
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tabto</span>(<span class="ruby-identifier">n</span>)
3556
- <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^( *)\S/</span>
3557
- <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">n</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">length</span>)
3558
- <span class="ruby-keyword kw">else</span>
3559
- <span class="ruby-keyword kw">self</span>
3560
- <span class="ruby-keyword kw">end</span>
3561
- <span class="ruby-keyword kw">end</span>
3562
- </pre>
3563
- </div>
3564
- </div>
3565
- </div>
3566
- <div class="method">
3567
- <div class="title">
3568
- <a name="M000494"></a><b>titlecase</b>()
3569
- </div>
3570
- <div class="description">
3571
- <p>
3572
- Title case.
3573
- </p>
3574
- <pre>
3575
- &quot;this is a string&quot;.titlecase
3576
- =&gt; &quot;This Is A String&quot;
3577
-
3578
- CREDIT: Eliazar Parra
3579
- </pre>
3580
- </div>
3581
- <div class="sourcecode">
3582
- <p class="source-link">[ <a href="javascript:toggleSource('M000494_source')" id="l_M000494_source">show source</a> ]</p>
3583
- <div id="M000494_source" class="dyn-source">
3584
- <pre>
3585
- <span class="ruby-comment cmt"># File lib/core/facets/string/titlecase.rb, line 10</span>
3586
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">titlecase</span>
3587
- <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\b\w/</span>){<span class="ruby-identifier">$&amp;</span>.<span class="ruby-identifier">upcase</span>}
3588
- <span class="ruby-keyword kw">end</span>
3589
- </pre>
3590
- </div>
3591
- </div>
3592
- </div>
3593
- <div class="method">
3594
- <div class="title">
3595
- <a name="M000551"></a><b>titlecase</b>()
3596
- </div>
3597
- <div class="description">
3598
- <p>
3599
- Title case.
3600
- </p>
3601
- <pre>
3602
- &quot;this is a string&quot;.titlecase
3603
- =&gt; &quot;This Is A String&quot;
3604
-
3605
- CREDIT: Eliazar Parra
3606
- </pre>
3607
- </div>
3608
- <div class="sourcecode">
3609
- <p class="source-link">[ <a href="javascript:toggleSource('M000551_source')" id="l_M000551_source">show source</a> ]</p>
3610
- <div id="M000551_source" class="dyn-source">
3611
- <pre>
3612
- <span class="ruby-comment cmt"># File lib/core/facets/string/titlecase.rb, line 10</span>
3613
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">titlecase</span>
3614
- <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\b\w/</span>){<span class="ruby-identifier">$&amp;</span>.<span class="ruby-identifier">upcase</span>}
3615
- <span class="ruby-keyword kw">end</span>
3616
- </pre>
3617
- </div>
3618
- </div>
3619
- </div>
3620
- <div class="method">
3621
- <div class="title">
3622
- <a name="M000452"></a><b>to_b</b>()
3623
- </div>
3624
- <div class="description">
3625
- <p>
3626
- Interpret common affirmative string meanings as true, otherwise false.
3627
- Balnk sapce and case are ignored. The following strings that will return
3628
- true:
3629
- </p>
3630
- <pre>
3631
- &lt;tt&gt;true&lt;/tt&gt;,&lt;tt&gt;yes&lt;/tt&gt;,&lt;tt&gt;on&lt;/tt&gt;,&lt;tt&gt;t&lt;/tt&gt;,&lt;tt&gt;1&lt;/tt&gt;,&lt;tt&gt;y&lt;/tt&gt;,&lt;tt&gt;==&lt;/tt&gt;
3632
- </pre>
3633
- <p>
3634
- Examples:
3635
- </p>
3636
- <pre>
3637
- &quot;true&quot;.to_b #=&gt; true
3638
- &quot;yes&quot;.to_b #=&gt; true
3639
- &quot;no&quot;.to_b #=&gt; false
3640
- &quot;123&quot;.to_b #=&gt; false
3641
- </pre>
3642
- </div>
3643
- <div class="sourcecode">
3644
- <p class="source-link">[ <a href="javascript:toggleSource('M000452_source')" id="l_M000452_source">show source</a> ]</p>
3645
- <div id="M000452_source" class="dyn-source">
3646
- <pre>
3647
- <span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 43</span>
3648
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_b</span>
3649
- <span class="ruby-keyword kw">case</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">strip</span>
3650
- <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'true'</span>, <span class="ruby-value str">'yes'</span>, <span class="ruby-value str">'on'</span>, <span class="ruby-value str">'t'</span>, <span class="ruby-value str">'1'</span>, <span class="ruby-value str">'y'</span>, <span class="ruby-value str">'=='</span>
3651
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
3652
- <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'nil'</span>, <span class="ruby-value str">'null'</span>
3653
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
3654
- <span class="ruby-keyword kw">else</span>
3655
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
3656
- <span class="ruby-keyword kw">end</span>
3657
- <span class="ruby-keyword kw">end</span>
3658
- </pre>
3659
- </div>
3660
- </div>
3661
- </div>
3662
- <div class="method">
3663
- <div class="title">
3664
- <a name="M000458"></a><b>to_re</b>(esc=false)
3665
- </div>
3666
- <div class="description">
3667
- <p>
3668
- Turns a string into a regular expression.
3669
- </p>
3670
- <pre>
3671
- &quot;a?&quot;.to_re #=&gt; /a?/
3672
-
3673
- CREDIT: Trans
3674
- </pre>
3675
- </div>
3676
- <div class="sourcecode">
3677
- <p class="source-link">[ <a href="javascript:toggleSource('M000458_source')" id="l_M000458_source">show source</a> ]</p>
3678
- <div id="M000458_source" class="dyn-source">
3679
- <pre>
3680
- <span class="ruby-comment cmt"># File lib/core/facets/string/to_re.rb, line 9</span>
3681
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_re</span>(<span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">false</span>)
3682
- <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>((<span class="ruby-identifier">esc</span> <span class="ruby-value">? </span><span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword kw">self</span>))
3683
- <span class="ruby-keyword kw">end</span>
3684
- </pre>
3685
- </div>
3686
- </div>
3687
- </div>
3688
- <div class="method">
3689
- <div class="title">
3690
- <a name="M000515"></a><b>to_re</b>(esc=false)
3691
- </div>
3692
- <div class="description">
3693
- <p>
3694
- Turns a string into a regular expression.
3695
- </p>
3696
- <pre>
3697
- &quot;a?&quot;.to_re #=&gt; /a?/
3698
-
3699
- CREDIT: Trans
3700
- </pre>
3701
- </div>
3702
- <div class="sourcecode">
3703
- <p class="source-link">[ <a href="javascript:toggleSource('M000515_source')" id="l_M000515_source">show source</a> ]</p>
3704
- <div id="M000515_source" class="dyn-source">
3705
- <pre>
3706
- <span class="ruby-comment cmt"># File lib/core/facets/string/to_re.rb, line 9</span>
3707
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_re</span>(<span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">false</span>)
3708
- <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>((<span class="ruby-identifier">esc</span> <span class="ruby-value">? </span><span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword kw">self</span>))
1794
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tab</span>(<span class="ruby-identifier">n</span>)
1795
+ <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/^ */</span>, <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">n</span>)
3709
1796
  <span class="ruby-keyword kw">end</span>
3710
1797
  </pre>
3711
1798
  </div>
@@ -3713,26 +1800,38 @@ Turns a string into a regular expression.
3713
1800
  </div>
3714
1801
  <div class="method">
3715
1802
  <div class="title">
3716
- <a name="M000459"></a><b>to_rx</b>(esc=true)
1803
+ <a name="M000260"></a><b>taballto</b>(n)
3717
1804
  </div>
3718
1805
  <div class="description">
3719
1806
  <p>
3720
- Turns a string into a regular expression. By default it will escape all
3721
- characters. Use <tt>false</tt> argument to turn off escaping.
1807
+ Alias for <a href="String.html#M000259">tab</a>
1808
+ </p>
1809
+ </div>
1810
+ </div>
1811
+ <div class="method">
1812
+ <div class="title">
1813
+ <a name="M000262"></a><b>tabto</b>(n)
1814
+ </div>
1815
+ <div class="description">
1816
+ <p>
1817
+ Preserves relative tabbing. The first non-empty line ends up with n spaces
1818
+ before nonspace.
3722
1819
  </p>
3723
1820
  <pre>
3724
- &quot;[&quot;.to_rx #=&gt; /\[/
3725
-
3726
- CREDIT: Trans
1821
+ CREDIT: Gavin Sinclair
3727
1822
  </pre>
3728
1823
  </div>
3729
1824
  <div class="sourcecode">
3730
- <p class="source-link">[ <a href="javascript:toggleSource('M000459_source')" id="l_M000459_source">show source</a> ]</p>
3731
- <div id="M000459_source" class="dyn-source">
1825
+ <p class="source-link">[ <a href="javascript:toggleSource('M000262_source')" id="l_M000262_source">show source</a> ]</p>
1826
+ <div id="M000262_source" class="dyn-source">
3732
1827
  <pre>
3733
- <span class="ruby-comment cmt"># File lib/core/facets/string/to_re.rb, line 21</span>
3734
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_rx</span>(<span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">true</span>)
3735
- <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>((<span class="ruby-identifier">esc</span> <span class="ruby-value">? </span><span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword kw">self</span>))
1828
+ <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 46</span>
1829
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tabto</span>(<span class="ruby-identifier">n</span>)
1830
+ <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^( *)\S/</span>
1831
+ <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">n</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">length</span>)
1832
+ <span class="ruby-keyword kw">else</span>
1833
+ <span class="ruby-keyword kw">self</span>
1834
+ <span class="ruby-keyword kw">end</span>
3736
1835
  <span class="ruby-keyword kw">end</span>
3737
1836
  </pre>
3738
1837
  </div>
@@ -3740,26 +1839,26 @@ characters. Use <tt>false</tt> argument to turn off escaping.
3740
1839
  </div>
3741
1840
  <div class="method">
3742
1841
  <div class="title">
3743
- <a name="M000516"></a><b>to_rx</b>(esc=true)
1842
+ <a name="M000283"></a><b>titlecase</b>()
3744
1843
  </div>
3745
1844
  <div class="description">
3746
1845
  <p>
3747
- Turns a string into a regular expression. By default it will escape all
3748
- characters. Use <tt>false</tt> argument to turn off escaping.
1846
+ Title case.
3749
1847
  </p>
3750
1848
  <pre>
3751
- &quot;[&quot;.to_rx #=&gt; /\[/
1849
+ &quot;this is a string&quot;.titlecase
1850
+ =&gt; &quot;This Is A String&quot;
3752
1851
 
3753
- CREDIT: Trans
1852
+ CREDIT: Eliazar Parra
3754
1853
  </pre>
3755
1854
  </div>
3756
1855
  <div class="sourcecode">
3757
- <p class="source-link">[ <a href="javascript:toggleSource('M000516_source')" id="l_M000516_source">show source</a> ]</p>
3758
- <div id="M000516_source" class="dyn-source">
1856
+ <p class="source-link">[ <a href="javascript:toggleSource('M000283_source')" id="l_M000283_source">show source</a> ]</p>
1857
+ <div id="M000283_source" class="dyn-source">
3759
1858
  <pre>
3760
- <span class="ruby-comment cmt"># File lib/core/facets/string/to_re.rb, line 21</span>
3761
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_rx</span>(<span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">true</span>)
3762
- <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>((<span class="ruby-identifier">esc</span> <span class="ruby-value">? </span><span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword kw">self</span>))
1859
+ <span class="ruby-comment cmt"># File lib/core/facets/string/titlecase.rb, line 10</span>
1860
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">titlecase</span>
1861
+ <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\b\w/</span>){<span class="ruby-identifier">$&amp;</span>.<span class="ruby-identifier">upcase</span>}
3763
1862
  <span class="ruby-keyword kw">end</span>
3764
1863
  </pre>
3765
1864
  </div>
@@ -3767,31 +1866,41 @@ characters. Use <tt>false</tt> argument to turn off escaping.
3767
1866
  </div>
3768
1867
  <div class="method">
3769
1868
  <div class="title">
3770
- <a name="M000453"></a><b>to_s</b>()
1869
+ <a name="M000242"></a><b>to_b</b>()
3771
1870
  </div>
3772
- <div class="sourcecode">
3773
- <p class="source-link">[ <a href="javascript:toggleSource('M000453_source')" id="l_M000453_source">show source</a> ]</p>
3774
- <div id="M000453_source" class="dyn-source">
1871
+ <div class="description">
1872
+ <p>
1873
+ Interpret common affirmative string meanings as true, otherwise false.
1874
+ Balnk sapce and case are ignored. The following strings that will return
1875
+ true:
1876
+ </p>
3775
1877
  <pre>
3776
- <span class="ruby-comment cmt"># File lib/core/facets/comparable/bound.rb, line 2</span>
3777
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
3778
- <span class="ruby-keyword kw">self</span>
3779
- <span class="ruby-keyword kw">end</span>
1878
+ &lt;tt&gt;true&lt;/tt&gt;,&lt;tt&gt;yes&lt;/tt&gt;,&lt;tt&gt;on&lt;/tt&gt;,&lt;tt&gt;t&lt;/tt&gt;,&lt;tt&gt;1&lt;/tt&gt;,&lt;tt&gt;y&lt;/tt&gt;,&lt;tt&gt;==&lt;/tt&gt;
1879
+ </pre>
1880
+ <p>
1881
+ Examples:
1882
+ </p>
1883
+ <pre>
1884
+ &quot;true&quot;.to_b #=&gt; true
1885
+ &quot;yes&quot;.to_b #=&gt; true
1886
+ &quot;no&quot;.to_b #=&gt; false
1887
+ &quot;123&quot;.to_b #=&gt; false
3780
1888
  </pre>
3781
- </div>
3782
- </div>
3783
- </div>
3784
- <div class="method">
3785
- <div class="title">
3786
- <a name="M000455"></a><b>to_s</b>()
3787
1889
  </div>
3788
1890
  <div class="sourcecode">
3789
- <p class="source-link">[ <a href="javascript:toggleSource('M000455_source')" id="l_M000455_source">show source</a> ]</p>
3790
- <div id="M000455_source" class="dyn-source">
1891
+ <p class="source-link">[ <a href="javascript:toggleSource('M000242_source')" id="l_M000242_source">show source</a> ]</p>
1892
+ <div id="M000242_source" class="dyn-source">
3791
1893
  <pre>
3792
- <span class="ruby-comment cmt"># File lib/core/facets/comparable/bound.rb, line 2</span>
3793
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
3794
- <span class="ruby-keyword kw">self</span>
1894
+ <span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 43</span>
1895
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_b</span>
1896
+ <span class="ruby-keyword kw">case</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">strip</span>
1897
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'true'</span>, <span class="ruby-value str">'yes'</span>, <span class="ruby-value str">'on'</span>, <span class="ruby-value str">'t'</span>, <span class="ruby-value str">'1'</span>, <span class="ruby-value str">'y'</span>, <span class="ruby-value str">'=='</span>
1898
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
1899
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'nil'</span>, <span class="ruby-value str">'null'</span>
1900
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
1901
+ <span class="ruby-keyword kw">else</span>
1902
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
1903
+ <span class="ruby-keyword kw">end</span>
3795
1904
  <span class="ruby-keyword kw">end</span>
3796
1905
  </pre>
3797
1906
  </div>
@@ -3799,27 +1908,25 @@ characters. Use <tt>false</tt> argument to turn off escaping.
3799
1908
  </div>
3800
1909
  <div class="method">
3801
1910
  <div class="title">
3802
- <a name="M000555"></a><b>to_time</b>()
1911
+ <a name="M000246"></a><b>to_re</b>(esc=false)
3803
1912
  </div>
3804
1913
  <div class="description">
3805
1914
  <p>
3806
- Parse string to time.
1915
+ Turns a string into a regular expression.
3807
1916
  </p>
3808
1917
  <pre>
1918
+ &quot;a?&quot;.to_re #=&gt; /a?/
1919
+
3809
1920
  CREDIT: Trans
3810
1921
  </pre>
3811
- <p>
3812
- TODO: This requires the external time.rb lib. Should we do this?
3813
- </p>
3814
1922
  </div>
3815
1923
  <div class="sourcecode">
3816
- <p class="source-link">[ <a href="javascript:toggleSource('M000555_source')" id="l_M000555_source">show source</a> ]</p>
3817
- <div id="M000555_source" class="dyn-source">
1924
+ <p class="source-link">[ <a href="javascript:toggleSource('M000246_source')" id="l_M000246_source">show source</a> ]</p>
1925
+ <div id="M000246_source" class="dyn-source">
3818
1926
  <pre>
3819
- <span class="ruby-comment cmt"># File lib/core/facets/string/to_time.rb, line 9</span>
3820
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_time</span>
3821
- <span class="ruby-identifier">require</span> <span class="ruby-value str">'time'</span>
3822
- <span class="ruby-constant">Time</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-keyword kw">self</span>)
1927
+ <span class="ruby-comment cmt"># File lib/core/facets/string/to_re.rb, line 9</span>
1928
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_re</span>(<span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">false</span>)
1929
+ <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>((<span class="ruby-identifier">esc</span> <span class="ruby-value">? </span><span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword kw">self</span>))
3823
1930
  <span class="ruby-keyword kw">end</span>
3824
1931
  </pre>
3825
1932
  </div>
@@ -3827,27 +1934,26 @@ TODO: This requires the external time.rb lib. Should we do this?
3827
1934
  </div>
3828
1935
  <div class="method">
3829
1936
  <div class="title">
3830
- <a name="M000498"></a><b>to_time</b>()
1937
+ <a name="M000247"></a><b>to_rx</b>(esc=true)
3831
1938
  </div>
3832
1939
  <div class="description">
3833
1940
  <p>
3834
- Parse string to time.
1941
+ Turns a string into a regular expression. By default it will escape all
1942
+ characters. Use <tt>false</tt> argument to turn off escaping.
3835
1943
  </p>
3836
1944
  <pre>
1945
+ &quot;[&quot;.to_rx #=&gt; /\[/
1946
+
3837
1947
  CREDIT: Trans
3838
1948
  </pre>
3839
- <p>
3840
- TODO: This requires the external time.rb lib. Should we do this?
3841
- </p>
3842
1949
  </div>
3843
1950
  <div class="sourcecode">
3844
- <p class="source-link">[ <a href="javascript:toggleSource('M000498_source')" id="l_M000498_source">show source</a> ]</p>
3845
- <div id="M000498_source" class="dyn-source">
1951
+ <p class="source-link">[ <a href="javascript:toggleSource('M000247_source')" id="l_M000247_source">show source</a> ]</p>
1952
+ <div id="M000247_source" class="dyn-source">
3846
1953
  <pre>
3847
- <span class="ruby-comment cmt"># File lib/core/facets/string/to_time.rb, line 9</span>
3848
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_time</span>
3849
- <span class="ruby-identifier">require</span> <span class="ruby-value str">'time'</span>
3850
- <span class="ruby-constant">Time</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-keyword kw">self</span>)
1954
+ <span class="ruby-comment cmt"># File lib/core/facets/string/to_re.rb, line 21</span>
1955
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_rx</span>(<span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">true</span>)
1956
+ <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>((<span class="ruby-identifier">esc</span> <span class="ruby-value">? </span><span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword kw">self</span>))
3851
1957
  <span class="ruby-keyword kw">end</span>
3852
1958
  </pre>
3853
1959
  </div>
@@ -3855,40 +1961,15 @@ TODO: This requires the external time.rb lib. Should we do this?
3855
1961
  </div>
3856
1962
  <div class="method">
3857
1963
  <div class="title">
3858
- <a name="M000559"></a><b>unbracket</b>(bra=nil, ket=nil)
3859
- </div>
3860
- <div class="description">
3861
- <p>
3862
- Return a new string embraced by given brakets. If only one <a
3863
- href="String.html#M000500">bracket</a> char is given it will be placed on
3864
- either side.
3865
- </p>
3866
- <pre>
3867
- &quot;{unwrap me}&quot;.debracket('{') #=&gt; &quot;unwrap me&quot;
3868
- &quot;--unwrap me!&quot;.debracket('--','!') #=&gt; &quot;unwrap me!&quot;
3869
-
3870
- CREDIT: Trans
3871
- </pre>
1964
+ <a name="M000243"></a><b>to_s</b>()
3872
1965
  </div>
3873
1966
  <div class="sourcecode">
3874
- <p class="source-link">[ <a href="javascript:toggleSource('M000559_source')" id="l_M000559_source">show source</a> ]</p>
3875
- <div id="M000559_source" class="dyn-source">
1967
+ <p class="source-link">[ <a href="javascript:toggleSource('M000243_source')" id="l_M000243_source">show source</a> ]</p>
1968
+ <div id="M000243_source" class="dyn-source">
3876
1969
  <pre>
3877
- <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 37</span>
3878
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unbracket</span>(<span class="ruby-identifier">bra</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
3879
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">bra</span>
3880
- <span class="ruby-identifier">ket</span> = <span class="ruby-constant">BRA2KET</span>[<span class="ruby-identifier">bra</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">ket</span>
3881
- <span class="ruby-identifier">ket</span> = <span class="ruby-identifier">ket</span> <span class="ruby-value">? </span><span class="ruby-identifier">ket</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">bra</span>
3882
- <span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
3883
- <span class="ruby-identifier">s</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-node">%r[^#{Regexp.escape(bra)}]</span>, <span class="ruby-value str">''</span>)
3884
- <span class="ruby-identifier">s</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-node">%r[#{Regexp.escape(ket)}$]</span>, <span class="ruby-value str">''</span>)
3885
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
3886
- <span class="ruby-keyword kw">else</span>
3887
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">m</span> = <span class="ruby-constant">BRA2KET</span>[ <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>] ]
3888
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">slice</span>(<span class="ruby-value">1</span><span class="ruby-operator">...</span><span class="ruby-value">-1</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">-1</span>,<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-identifier">m</span>
3889
- <span class="ruby-keyword kw">end</span>
3890
- <span class="ruby-keyword kw">end</span>
3891
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span> <span class="ruby-comment cmt"># if nothing else</span>
1970
+ <span class="ruby-comment cmt"># File lib/core/facets/comparable/bound.rb, line 2</span>
1971
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
1972
+ <span class="ruby-keyword kw">self</span>
3892
1973
  <span class="ruby-keyword kw">end</span>
3893
1974
  </pre>
3894
1975
  </div>
@@ -3896,12 +1977,12 @@ either side.
3896
1977
  </div>
3897
1978
  <div class="method">
3898
1979
  <div class="title">
3899
- <a name="M000502"></a><b>unbracket</b>(bra=nil, ket=nil)
1980
+ <a name="M000290"></a><b>unbracket</b>(bra=nil, ket=nil)
3900
1981
  </div>
3901
1982
  <div class="description">
3902
1983
  <p>
3903
1984
  Return a new string embraced by given brakets. If only one <a
3904
- href="String.html#M000500">bracket</a> char is given it will be placed on
1985
+ href="String.html#M000288">bracket</a> char is given it will be placed on
3905
1986
  either side.
3906
1987
  </p>
3907
1988
  <pre>
@@ -3912,8 +1993,8 @@ either side.
3912
1993
  </pre>
3913
1994
  </div>
3914
1995
  <div class="sourcecode">
3915
- <p class="source-link">[ <a href="javascript:toggleSource('M000502_source')" id="l_M000502_source">show source</a> ]</p>
3916
- <div id="M000502_source" class="dyn-source">
1996
+ <p class="source-link">[ <a href="javascript:toggleSource('M000290_source')" id="l_M000290_source">show source</a> ]</p>
1997
+ <div id="M000290_source" class="dyn-source">
3917
1998
  <pre>
3918
1999
  <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 37</span>
3919
2000
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unbracket</span>(<span class="ruby-identifier">bra</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
@@ -3937,7 +2018,7 @@ either side.
3937
2018
  </div>
3938
2019
  <div class="method">
3939
2020
  <div class="title">
3940
- <a name="M000560"></a><b>unbracket!</b>(bra=nil, ket=nil)
2021
+ <a name="M000291"></a><b>unbracket!</b>(bra=nil, ket=nil)
3941
2022
  </div>
3942
2023
  <div class="description">
3943
2024
  <p>
@@ -3948,8 +2029,8 @@ Inplace version of debraket.
3948
2029
  </pre>
3949
2030
  </div>
3950
2031
  <div class="sourcecode">
3951
- <p class="source-link">[ <a href="javascript:toggleSource('M000560_source')" id="l_M000560_source">show source</a> ]</p>
3952
- <div id="M000560_source" class="dyn-source">
2032
+ <p class="source-link">[ <a href="javascript:toggleSource('M000291_source')" id="l_M000291_source">show source</a> ]</p>
2033
+ <div id="M000291_source" class="dyn-source">
3953
2034
  <pre>
3954
2035
  <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 57</span>
3955
2036
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unbracket!</span>(<span class="ruby-identifier">bra</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
@@ -3961,59 +2042,7 @@ Inplace version of debraket.
3961
2042
  </div>
3962
2043
  <div class="method">
3963
2044
  <div class="title">
3964
- <a name="M000503"></a><b>unbracket!</b>(bra=nil, ket=nil)
3965
- </div>
3966
- <div class="description">
3967
- <p>
3968
- Inplace version of debraket.
3969
- </p>
3970
- <pre>
3971
- CREDIT: Trans
3972
- </pre>
3973
- </div>
3974
- <div class="sourcecode">
3975
- <p class="source-link">[ <a href="javascript:toggleSource('M000503_source')" id="l_M000503_source">show source</a> ]</p>
3976
- <div id="M000503_source" class="dyn-source">
3977
- <pre>
3978
- <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 57</span>
3979
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unbracket!</span>(<span class="ruby-identifier">bra</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
3980
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">replace</span>( <span class="ruby-identifier">unbracket</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>) )
3981
- <span class="ruby-keyword kw">end</span>
3982
- </pre>
3983
- </div>
3984
- </div>
3985
- </div>
3986
- <div class="method">
3987
- <div class="title">
3988
- <a name="M000489"></a><b>upcase?</b>()
3989
- </div>
3990
- <div class="description">
3991
- <p>
3992
- Is the string upcase/uppercase?
3993
- </p>
3994
- <pre>
3995
- &quot;THIS&quot;.upcase? #=&gt; true
3996
- &quot;This&quot;.upcase? #=&gt; false
3997
- &quot;this&quot;.upcase? #=&gt; false
3998
-
3999
- CREDIT: Phil Tomson
4000
- </pre>
4001
- </div>
4002
- <div class="sourcecode">
4003
- <p class="source-link">[ <a href="javascript:toggleSource('M000489_source')" id="l_M000489_source">show source</a> ]</p>
4004
- <div id="M000489_source" class="dyn-source">
4005
- <pre>
4006
- <span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 38</span>
4007
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">upcase?</span>
4008
- <span class="ruby-identifier">upcase</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">self</span>
4009
- <span class="ruby-keyword kw">end</span>
4010
- </pre>
4011
- </div>
4012
- </div>
4013
- </div>
4014
- <div class="method">
4015
- <div class="title">
4016
- <a name="M000546"></a><b>upcase?</b>()
2045
+ <a name="M000278"></a><b>upcase?</b>()
4017
2046
  </div>
4018
2047
  <div class="description">
4019
2048
  <p>
@@ -4028,8 +2057,8 @@ Is the string upcase/uppercase?
4028
2057
  </pre>
4029
2058
  </div>
4030
2059
  <div class="sourcecode">
4031
- <p class="source-link">[ <a href="javascript:toggleSource('M000546_source')" id="l_M000546_source">show source</a> ]</p>
4032
- <div id="M000546_source" class="dyn-source">
2060
+ <p class="source-link">[ <a href="javascript:toggleSource('M000278_source')" id="l_M000278_source">show source</a> ]</p>
2061
+ <div id="M000278_source" class="dyn-source">
4033
2062
  <pre>
4034
2063
  <span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 38</span>
4035
2064
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">upcase?</span>
@@ -4041,61 +2070,21 @@ Is the string upcase/uppercase?
4041
2070
  </div>
4042
2071
  <div class="method">
4043
2072
  <div class="title">
4044
- <a name="M000451"></a><b>variablize</b>()
2073
+ <a name="M000280"></a><b>variablize</b>()
4045
2074
  </div>
4046
2075
  <div class="description">
4047
2076
  <p>
4048
- Append an &quot;@&quot; to the beginning of a string to make a instance
2077
+ Prepend an &quot;@&quot; to the beginning of a string to make a instance
4049
2078
  variable name. This also replaces non-valid characters with underscores.
4050
2079
  </p>
4051
2080
  </div>
4052
2081
  <div class="sourcecode">
4053
- <p class="source-link">[ <a href="javascript:toggleSource('M000451_source')" id="l_M000451_source">show source</a> ]</p>
4054
- <div id="M000451_source" class="dyn-source">
2082
+ <p class="source-link">[ <a href="javascript:toggleSource('M000280_source')" id="l_M000280_source">show source</a> ]</p>
2083
+ <div id="M000280_source" class="dyn-source">
4055
2084
  <pre>
4056
- <span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 128</span>
2085
+ <span class="ruby-comment cmt"># File lib/core/facets/string/variablize.rb, line 7</span>
4057
2086
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">variablize</span>
4058
- <span class="ruby-node">&quot;@#{self}&quot;</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\W/</span>, <span class="ruby-value str">'_'</span>).<span class="ruby-identifier">to_sym</span>
4059
- <span class="ruby-keyword kw">end</span>
4060
- </pre>
4061
- </div>
4062
- </div>
4063
- </div>
4064
- <div class="method">
4065
- <div class="title">
4066
- <a name="M000522"></a><b>word_wrap</b>( col_width=80 )
4067
- </div>
4068
- <div class="description">
4069
- <p>
4070
- Word wrap a string not exceeding max width.
4071
- </p>
4072
- <pre>
4073
- puts &quot;this is a test&quot;.word_wrap(4)
4074
- </pre>
4075
- <p>
4076
- <em>produces</em>
4077
- </p>
4078
- <pre>
4079
- this
4080
- is a
4081
- test
4082
- </pre>
4083
- <p>
4084
- This is basic implementation of word wrap, but smart enough to suffice for
4085
- most use cases.
4086
- </p>
4087
- <pre>
4088
- CREDIT: Gavin Kistner
4089
- CREDIT: Dayne Broderson
4090
- </pre>
4091
- </div>
4092
- <div class="sourcecode">
4093
- <p class="source-link">[ <a href="javascript:toggleSource('M000522_source')" id="l_M000522_source">show source</a> ]</p>
4094
- <div id="M000522_source" class="dyn-source">
4095
- <pre>
4096
- <span class="ruby-comment cmt"># File lib/core/facets/string/word_wrap.rb, line 19</span>
4097
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">word_wrap</span>( <span class="ruby-identifier">col_width</span>=<span class="ruby-value">80</span> )
4098
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">word_wrap!</span>( <span class="ruby-identifier">col_width</span> )
2087
+ <span class="ruby-node">&quot;@#{self}&quot;</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\W/</span>, <span class="ruby-value str">'_'</span>).<span class="ruby-identifier">to_s</span>
4099
2088
  <span class="ruby-keyword kw">end</span>
4100
2089
  </pre>
4101
2090
  </div>
@@ -4103,7 +2092,7 @@ most use cases.
4103
2092
  </div>
4104
2093
  <div class="method">
4105
2094
  <div class="title">
4106
- <a name="M000465"></a><b>word_wrap</b>( col_width=80 )
2095
+ <a name="M000253"></a><b>word_wrap</b>( col_width=80 )
4107
2096
  </div>
4108
2097
  <div class="description">
4109
2098
  <p>
@@ -4130,8 +2119,8 @@ most use cases.
4130
2119
  </pre>
4131
2120
  </div>
4132
2121
  <div class="sourcecode">
4133
- <p class="source-link">[ <a href="javascript:toggleSource('M000465_source')" id="l_M000465_source">show source</a> ]</p>
4134
- <div id="M000465_source" class="dyn-source">
2122
+ <p class="source-link">[ <a href="javascript:toggleSource('M000253_source')" id="l_M000253_source">show source</a> ]</p>
2123
+ <div id="M000253_source" class="dyn-source">
4135
2124
  <pre>
4136
2125
  <span class="ruby-comment cmt"># File lib/core/facets/string/word_wrap.rb, line 19</span>
4137
2126
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">word_wrap</span>( <span class="ruby-identifier">col_width</span>=<span class="ruby-value">80</span> )
@@ -4143,39 +2132,11 @@ most use cases.
4143
2132
  </div>
4144
2133
  <div class="method">
4145
2134
  <div class="title">
4146
- <a name="M000466"></a><b>word_wrap!</b>( col_width=80 )
4147
- </div>
4148
- <div class="description">
4149
- <p>
4150
- As with <a href="String.html#M000465">word_wrap</a>, but modifies the
4151
- string in place.
4152
- </p>
4153
- <pre>
4154
- CREDIT: Gavin Kistner
4155
- CREDIT: Dayne Broderson
4156
- </pre>
4157
- </div>
4158
- <div class="sourcecode">
4159
- <p class="source-link">[ <a href="javascript:toggleSource('M000466_source')" id="l_M000466_source">show source</a> ]</p>
4160
- <div id="M000466_source" class="dyn-source">
4161
- <pre>
4162
- <span class="ruby-comment cmt"># File lib/core/facets/string/word_wrap.rb, line 28</span>
4163
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">word_wrap!</span>( <span class="ruby-identifier">col_width</span>=<span class="ruby-value">80</span> )
4164
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">gsub!</span>( <span class="ruby-node">/(\S{#{col_width}})(?=\S)/</span>, <span class="ruby-value str">'\1 '</span> )
4165
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">gsub!</span>( <span class="ruby-node">/(.{1,#{col_width}})(?:\s+|$)/</span>, <span class="ruby-value str">&quot;\\1\n&quot;</span> )
4166
- <span class="ruby-keyword kw">self</span>
4167
- <span class="ruby-keyword kw">end</span>
4168
- </pre>
4169
- </div>
4170
- </div>
4171
- </div>
4172
- <div class="method">
4173
- <div class="title">
4174
- <a name="M000523"></a><b>word_wrap!</b>( col_width=80 )
2135
+ <a name="M000254"></a><b>word_wrap!</b>( col_width=80 )
4175
2136
  </div>
4176
2137
  <div class="description">
4177
2138
  <p>
4178
- As with <a href="String.html#M000465">word_wrap</a>, but modifies the
2139
+ As with <a href="String.html#M000253">word_wrap</a>, but modifies the
4179
2140
  string in place.
4180
2141
  </p>
4181
2142
  <pre>
@@ -4184,8 +2145,8 @@ string in place.
4184
2145
  </pre>
4185
2146
  </div>
4186
2147
  <div class="sourcecode">
4187
- <p class="source-link">[ <a href="javascript:toggleSource('M000523_source')" id="l_M000523_source">show source</a> ]</p>
4188
- <div id="M000523_source" class="dyn-source">
2148
+ <p class="source-link">[ <a href="javascript:toggleSource('M000254_source')" id="l_M000254_source">show source</a> ]</p>
2149
+ <div id="M000254_source" class="dyn-source">
4189
2150
  <pre>
4190
2151
  <span class="ruby-comment cmt"># File lib/core/facets/string/word_wrap.rb, line 28</span>
4191
2152
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">word_wrap!</span>( <span class="ruby-identifier">col_width</span>=<span class="ruby-value">80</span> )
@@ -4199,31 +2160,7 @@ string in place.
4199
2160
  </div>
4200
2161
  <div class="method">
4201
2162
  <div class="title">
4202
- <a name="M000552"></a><b>words</b>()
4203
- </div>
4204
- <div class="description">
4205
- <p>
4206
- Returns an array of characters.
4207
- </p>
4208
- <pre>
4209
- &quot;abc 123&quot;.words #=&gt; [&quot;abc&quot;,&quot;123&quot;]
4210
- </pre>
4211
- </div>
4212
- <div class="sourcecode">
4213
- <p class="source-link">[ <a href="javascript:toggleSource('M000552_source')" id="l_M000552_source">show source</a> ]</p>
4214
- <div id="M000552_source" class="dyn-source">
4215
- <pre>
4216
- <span class="ruby-comment cmt"># File lib/core/facets/string/words.rb, line 7</span>
4217
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">words</span>
4218
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/\s+/</span>)
4219
- <span class="ruby-keyword kw">end</span>
4220
- </pre>
4221
- </div>
4222
- </div>
4223
- </div>
4224
- <div class="method">
4225
- <div class="title">
4226
- <a name="M000495"></a><b>words</b>()
2163
+ <a name="M000284"></a><b>words</b>()
4227
2164
  </div>
4228
2165
  <div class="description">
4229
2166
  <p>
@@ -4234,8 +2171,8 @@ Returns an array of characters.
4234
2171
  </pre>
4235
2172
  </div>
4236
2173
  <div class="sourcecode">
4237
- <p class="source-link">[ <a href="javascript:toggleSource('M000495_source')" id="l_M000495_source">show source</a> ]</p>
4238
- <div id="M000495_source" class="dyn-source">
2174
+ <p class="source-link">[ <a href="javascript:toggleSource('M000284_source')" id="l_M000284_source">show source</a> ]</p>
2175
+ <div id="M000284_source" class="dyn-source">
4239
2176
  <pre>
4240
2177
  <span class="ruby-comment cmt"># File lib/core/facets/string/words.rb, line 7</span>
4241
2178
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">words</span>