facets 2.4.1 → 2.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3413) hide show
  1. data/AUTHORS +16 -5
  2. data/CHANGES +9 -1
  3. data/MANIFEST +3093 -1289
  4. data/METADATA +28 -0
  5. data/NEWS +52 -0
  6. data/README +7 -65
  7. data/README.core +102 -0
  8. data/README.lore +51 -0
  9. data/README.more +43 -0
  10. data/doc/{history.rdoc → notes/history.rdoc} +0 -0
  11. data/doc/{notes.rdoc → notes/notes.rdoc} +0 -0
  12. data/doc/rdoc/core/classes/Array.html +1704 -0
  13. data/doc/rdoc/core/classes/Binding.html +718 -0
  14. data/doc/rdoc/core/classes/Class.html +518 -0
  15. data/doc/rdoc/core/classes/Comparable.html +430 -0
  16. data/doc/rdoc/core/classes/Dir.html +697 -0
  17. data/doc/rdoc/core/classes/Enumerable.html +2126 -0
  18. data/doc/rdoc/core/classes/Exception.html +234 -0
  19. data/doc/rdoc/core/classes/FalseClass.html +133 -0
  20. data/doc/rdoc/core/classes/File.html +929 -0
  21. data/doc/rdoc/core/classes/FileTest.html +147 -0
  22. data/doc/rdoc/core/classes/Float.html +297 -0
  23. data/doc/rdoc/core/classes/Friend.html +178 -0
  24. data/doc/rdoc/core/classes/Functor.html +173 -0
  25. data/doc/rdoc/core/classes/Hash.html +3864 -0
  26. data/doc/rdoc/core/classes/InstanceVariables.html +515 -0
  27. data/doc/rdoc/core/classes/Integer.html +852 -0
  28. data/doc/rdoc/core/classes/Kernel.html +3952 -0
  29. data/doc/rdoc/core/classes/Lazy.html +96 -0
  30. data/doc/rdoc/core/classes/Lazy/Future.html +100 -0
  31. data/doc/rdoc/core/classes/Lazy/Promise.html +114 -0
  32. data/doc/rdoc/core/classes/Lazy/PromiseSafe.html +99 -0
  33. data/doc/rdoc/core/classes/MatchData.html +309 -0
  34. data/doc/rdoc/core/classes/MissingArgument.html +98 -0
  35. data/doc/rdoc/core/classes/Module.html +2219 -0
  36. data/doc/rdoc/core/classes/Module/CloneExtensions.html +287 -0
  37. data/doc/rdoc/core/classes/NilClass.html +274 -0
  38. data/doc/rdoc/core/classes/Numeric.html +362 -0
  39. data/doc/rdoc/core/classes/Object.html +115 -0
  40. data/doc/rdoc/core/classes/Proc.html +595 -0
  41. data/doc/rdoc/core/classes/Range.html +622 -0
  42. data/doc/rdoc/core/classes/Regexp.html +289 -0
  43. data/doc/rdoc/core/classes/String.html +3913 -0
  44. data/doc/rdoc/core/classes/String/Words.html +571 -0
  45. data/doc/rdoc/core/classes/Symbol.html +584 -0
  46. data/doc/rdoc/core/classes/Time.html +824 -0
  47. data/doc/rdoc/core/classes/TrueClass.html +133 -0
  48. data/doc/rdoc/core/classes/UnboundMethod.html +295 -0
  49. data/doc/rdoc/core/created.rid +1 -0
  50. data/doc/rdoc/core/files/README.html +300 -0
  51. data/doc/rdoc/core/files/README_core.html +229 -0
  52. data/doc/rdoc/core/files/lib/core/facets/array/combination_rb.html +96 -0
  53. data/doc/rdoc/core/files/lib/core/facets/array/conjoin_rb.html +92 -0
  54. data/doc/rdoc/core/files/lib/core/facets/array/delete_rb.html +92 -0
  55. data/doc/rdoc/core/files/lib/core/facets/array/indexable_rb.html +97 -0
  56. data/doc/rdoc/core/files/lib/core/facets/array/merge_rb.html +92 -0
  57. data/doc/rdoc/core/files/lib/core/facets/array/not_empty_rb.html +92 -0
  58. data/doc/rdoc/core/files/lib/core/facets/array/only_rb.html +92 -0
  59. data/doc/rdoc/core/files/lib/core/facets/array/pad_rb.html +92 -0
  60. data/doc/rdoc/core/files/lib/core/facets/array/permutation_rb.html +92 -0
  61. data/doc/rdoc/core/files/lib/core/facets/array/product_rb.html +92 -0
  62. data/doc/rdoc/core/files/lib/core/facets/array/recursively_rb.html +92 -0
  63. data/doc/rdoc/core/files/lib/core/facets/array/rotate_rb.html +92 -0
  64. data/doc/rdoc/core/files/lib/core/facets/array/select_rb.html +92 -0
  65. data/doc/rdoc/core/files/lib/core/facets/array/splice_rb.html +92 -0
  66. data/doc/rdoc/core/files/lib/core/facets/array/stackable_rb.html +97 -0
  67. data/doc/rdoc/core/files/lib/core/facets/array/traverse_rb.html +92 -0
  68. data/doc/rdoc/core/files/lib/core/facets/array_rb.html +125 -0
  69. data/doc/rdoc/core/files/lib/core/facets/binding/caller_rb.html +97 -0
  70. data/doc/rdoc/core/files/lib/core/facets/binding/defined_rb.html +96 -0
  71. data/doc/rdoc/core/files/lib/core/facets/binding/eval_rb.html +92 -0
  72. data/doc/rdoc/core/files/lib/core/facets/binding/local_variables_rb.html +96 -0
  73. data/doc/rdoc/core/files/lib/core/facets/binding/opvars_rb.html +96 -0
  74. data/doc/rdoc/core/files/lib/core/facets/binding/self_rb.html +96 -0
  75. data/doc/rdoc/core/files/lib/core/facets/binding_rb.html +100 -0
  76. data/doc/rdoc/core/files/lib/core/facets/bitmask_rb.html +92 -0
  77. data/doc/rdoc/core/files/lib/core/facets/blank_rb.html +97 -0
  78. data/doc/rdoc/core/files/lib/core/facets/boolean_rb.html +126 -0
  79. data/doc/rdoc/core/files/lib/core/facets/callstack_rb.html +92 -0
  80. data/doc/rdoc/core/files/lib/core/facets/class/descendents_rb.html +92 -0
  81. data/doc/rdoc/core/files/lib/core/facets/class/prepend_rb.html +92 -0
  82. data/doc/rdoc/core/files/lib/core/facets/class/subclasses_rb.html +96 -0
  83. data/doc/rdoc/core/files/lib/core/facets/class/to_methodname_rb.html +92 -0
  84. data/doc/rdoc/core/files/lib/core/facets/class/to_pathname_rb.html +92 -0
  85. data/doc/rdoc/core/files/lib/core/facets/class/to_proc_rb.html +92 -0
  86. data/doc/rdoc/core/files/lib/core/facets/class_rb.html +97 -0
  87. data/doc/rdoc/core/files/lib/core/facets/comparable/bound_rb.html +92 -0
  88. data/doc/rdoc/core/files/lib/core/facets/comparable/cmp_rb.html +92 -0
  89. data/doc/rdoc/core/files/lib/core/facets/comparable/comparable_rb.html +109 -0
  90. data/doc/rdoc/core/files/lib/core/facets/comparable_rb.html +98 -0
  91. data/doc/rdoc/core/files/lib/core/facets/dir/ascend_rb.html +92 -0
  92. data/doc/rdoc/core/files/lib/core/facets/dir/descend_rb.html +96 -0
  93. data/doc/rdoc/core/files/lib/core/facets/dir/multiglob_rb.html +92 -0
  94. data/doc/rdoc/core/files/lib/core/facets/dir/parent_rb.html +92 -0
  95. data/doc/rdoc/core/files/lib/core/facets/dir/recurse_rb.html +92 -0
  96. data/doc/rdoc/core/files/lib/core/facets/dir_rb.html +102 -0
  97. data/doc/rdoc/core/files/lib/core/facets/enumerable/accumulate_rb.html +96 -0
  98. data/doc/rdoc/core/files/lib/core/facets/enumerable/cluster_by_rb.html +96 -0
  99. data/doc/rdoc/core/files/lib/core/facets/enumerable/collect_rb.html +92 -0
  100. data/doc/rdoc/core/files/lib/core/facets/enumerable/count_rb.html +92 -0
  101. data/doc/rdoc/core/files/lib/core/facets/enumerable/divide_rb.html +92 -0
  102. data/doc/rdoc/core/files/lib/core/facets/enumerable/duplicates_rb.html +92 -0
  103. data/doc/rdoc/core/files/lib/core/facets/enumerable/each_by_rb.html +96 -0
  104. data/doc/rdoc/core/files/lib/core/facets/enumerable/group_by_rb.html +92 -0
  105. data/doc/rdoc/core/files/lib/core/facets/enumerable/inject_rb.html +92 -0
  106. data/doc/rdoc/core/files/lib/core/facets/enumerable/map_send_rb.html +92 -0
  107. data/doc/rdoc/core/files/lib/core/facets/enumerable/mash_rb.html +92 -0
  108. data/doc/rdoc/core/files/lib/core/facets/enumerable/mode_rb.html +92 -0
  109. data/doc/rdoc/core/files/lib/core/facets/enumerable/modulate_rb.html +92 -0
  110. data/doc/rdoc/core/files/lib/core/facets/enumerable/none_rb.html +92 -0
  111. data/doc/rdoc/core/files/lib/core/facets/enumerable/occur_rb.html +92 -0
  112. data/doc/rdoc/core/files/lib/core/facets/enumerable/one_rb.html +92 -0
  113. data/doc/rdoc/core/files/lib/core/facets/enumerable/probability_rb.html +92 -0
  114. data/doc/rdoc/core/files/lib/core/facets/enumerable/split_rb.html +92 -0
  115. data/doc/rdoc/core/files/lib/core/facets/enumerable/sum_rb.html +92 -0
  116. data/doc/rdoc/core/files/lib/core/facets/enumerable/uniq_by_rb.html +92 -0
  117. data/doc/rdoc/core/files/lib/core/facets/enumerable_rb.html +114 -0
  118. data/doc/rdoc/core/files/lib/core/facets/exception/detail_rb.html +92 -0
  119. data/doc/rdoc/core/files/lib/core/facets/exception/suppress_rb.html +92 -0
  120. data/doc/rdoc/core/files/lib/core/facets/exception_rb.html +97 -0
  121. data/doc/rdoc/core/files/lib/core/facets/file/null_rb.html +92 -0
  122. data/doc/rdoc/core/files/lib/core/facets/file/read_rb.html +92 -0
  123. data/doc/rdoc/core/files/lib/core/facets/file/rewrite_rb.html +92 -0
  124. data/doc/rdoc/core/files/lib/core/facets/file/rootname_rb.html +92 -0
  125. data/doc/rdoc/core/files/lib/core/facets/file/write_rb.html +92 -0
  126. data/doc/rdoc/core/files/lib/core/facets/file_rb.html +99 -0
  127. data/doc/rdoc/core/files/lib/core/facets/filetest/root_rb.html +92 -0
  128. data/doc/rdoc/core/files/lib/core/facets/filetest_rb.html +96 -0
  129. data/doc/rdoc/core/files/lib/core/facets/float/round_rb.html +96 -0
  130. data/doc/rdoc/core/files/lib/core/facets/float_rb.html +96 -0
  131. data/doc/rdoc/core/files/lib/core/facets/functor_rb.html +151 -0
  132. data/doc/rdoc/core/files/lib/core/facets/hash/alias_rb.html +92 -0
  133. data/doc/rdoc/core/files/lib/core/facets/hash/argumentize_rb.html +92 -0
  134. data/doc/rdoc/core/files/lib/core/facets/hash/at_rb.html +92 -0
  135. data/doc/rdoc/core/files/lib/core/facets/hash/autonew_rb.html +92 -0
  136. data/doc/rdoc/core/files/lib/core/facets/hash/collate_rb.html +92 -0
  137. data/doc/rdoc/core/files/lib/core/facets/hash/delete_rb.html +92 -0
  138. data/doc/rdoc/core/files/lib/core/facets/hash/diff_rb.html +92 -0
  139. data/doc/rdoc/core/files/lib/core/facets/hash/except_rb.html +92 -0
  140. data/doc/rdoc/core/files/lib/core/facets/hash/insert_rb.html +92 -0
  141. data/doc/rdoc/core/files/lib/core/facets/hash/inverse_rb.html +92 -0
  142. data/doc/rdoc/core/files/lib/core/facets/hash/join_rb.html +92 -0
  143. data/doc/rdoc/core/files/lib/core/facets/hash/keys_rb.html +92 -0
  144. data/doc/rdoc/core/files/lib/core/facets/hash/mash_rb.html +96 -0
  145. data/doc/rdoc/core/files/lib/core/facets/hash/merge_rb.html +92 -0
  146. data/doc/rdoc/core/files/lib/core/facets/hash/op_rb.html +92 -0
  147. data/doc/rdoc/core/files/lib/core/facets/hash/recursive_merge_rb.html +92 -0
  148. data/doc/rdoc/core/files/lib/core/facets/hash/recursively_rb.html +92 -0
  149. data/doc/rdoc/core/files/lib/core/facets/hash/rekey_rb.html +96 -0
  150. data/doc/rdoc/core/files/lib/core/facets/hash/select_rb.html +92 -0
  151. data/doc/rdoc/core/files/lib/core/facets/hash/slice_rb.html +96 -0
  152. data/doc/rdoc/core/files/lib/core/facets/hash/stringify_keys_rb.html +96 -0
  153. data/doc/rdoc/core/files/lib/core/facets/hash/swap_rb.html +92 -0
  154. data/doc/rdoc/core/files/lib/core/facets/hash/symbolize_keys_rb.html +96 -0
  155. data/doc/rdoc/core/files/lib/core/facets/hash/to_h_rb.html +96 -0
  156. data/doc/rdoc/core/files/lib/core/facets/hash/to_proc_rb.html +92 -0
  157. data/doc/rdoc/core/files/lib/core/facets/hash/to_struct_rb.html +92 -0
  158. data/doc/rdoc/core/files/lib/core/facets/hash/traverse_rb.html +92 -0
  159. data/doc/rdoc/core/files/lib/core/facets/hash/update_rb.html +92 -0
  160. data/doc/rdoc/core/files/lib/core/facets/hash/weave_rb.html +92 -0
  161. data/doc/rdoc/core/files/lib/core/facets/hash/zipnew_rb.html +96 -0
  162. data/doc/rdoc/core/files/lib/core/facets/hash_rb.html +117 -0
  163. data/doc/rdoc/core/files/lib/core/facets/integer/even_rb.html +96 -0
  164. data/doc/rdoc/core/files/lib/core/facets/integer/factorial_rb.html +92 -0
  165. data/doc/rdoc/core/files/lib/core/facets/integer/multiple_rb.html +92 -0
  166. data/doc/rdoc/core/files/lib/core/facets/integer/odd_rb.html +92 -0
  167. data/doc/rdoc/core/files/lib/core/facets/integer/of_rb.html +92 -0
  168. data/doc/rdoc/core/files/lib/core/facets/integer/ordinal_rb.html +92 -0
  169. data/doc/rdoc/core/files/lib/core/facets/integer_rb.html +101 -0
  170. data/doc/rdoc/core/files/lib/core/facets/kernel/__callee___rb.html +96 -0
  171. data/doc/rdoc/core/files/lib/core/facets/kernel/__class___rb.html +92 -0
  172. data/doc/rdoc/core/files/lib/core/facets/kernel/__dir___rb.html +92 -0
  173. data/doc/rdoc/core/files/lib/core/facets/kernel/__get___rb.html +92 -0
  174. data/doc/rdoc/core/files/lib/core/facets/kernel/__method___rb.html +92 -0
  175. data/doc/rdoc/core/files/lib/core/facets/kernel/__set___rb.html +96 -0
  176. data/doc/rdoc/core/files/lib/core/facets/kernel/as_rb.html +96 -0
  177. data/doc/rdoc/core/files/lib/core/facets/kernel/ask_rb.html +92 -0
  178. data/doc/rdoc/core/files/lib/core/facets/kernel/attr_singleton_rb.html +92 -0
  179. data/doc/rdoc/core/files/lib/core/facets/kernel/complete_rb.html +92 -0
  180. data/doc/rdoc/core/files/lib/core/facets/kernel/constant_rb.html +92 -0
  181. data/doc/rdoc/core/files/lib/core/facets/kernel/d_rb.html +92 -0
  182. data/doc/rdoc/core/files/lib/core/facets/kernel/deep_copy_rb.html +92 -0
  183. data/doc/rdoc/core/files/lib/core/facets/kernel/demo_rb.html +92 -0
  184. data/doc/rdoc/core/files/lib/core/facets/kernel/ergo_rb.html +96 -0
  185. data/doc/rdoc/core/files/lib/core/facets/kernel/here_rb.html +92 -0
  186. data/doc/rdoc/core/files/lib/core/facets/kernel/in_rb.html +92 -0
  187. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_assign_rb.html +92 -0
  188. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_class_rb.html +92 -0
  189. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_exec_rb.html +96 -0
  190. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_rb.html +96 -0
  191. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_send_rb.html +92 -0
  192. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_variables_rb.html +92 -0
  193. data/doc/rdoc/core/files/lib/core/facets/kernel/load_rb.html +92 -0
  194. data/doc/rdoc/core/files/lib/core/facets/kernel/maybe_rb.html +92 -0
  195. data/doc/rdoc/core/files/lib/core/facets/kernel/not_nil_rb.html +92 -0
  196. data/doc/rdoc/core/files/lib/core/facets/kernel/object_class_rb.html +92 -0
  197. data/doc/rdoc/core/files/lib/core/facets/kernel/object_hexid_rb.html +92 -0
  198. data/doc/rdoc/core/files/lib/core/facets/kernel/object_send_rb.html +92 -0
  199. data/doc/rdoc/core/files/lib/core/facets/kernel/p_rb.html +92 -0
  200. data/doc/rdoc/core/files/lib/core/facets/kernel/populate_rb.html +92 -0
  201. data/doc/rdoc/core/files/lib/core/facets/kernel/resc_rb.html +92 -0
  202. data/doc/rdoc/core/files/lib/core/facets/kernel/respond_rb.html +92 -0
  203. data/doc/rdoc/core/files/lib/core/facets/kernel/returning_rb.html +92 -0
  204. data/doc/rdoc/core/files/lib/core/facets/kernel/silence_rb.html +92 -0
  205. data/doc/rdoc/core/files/lib/core/facets/kernel/singleton_class_rb.html +92 -0
  206. data/doc/rdoc/core/files/lib/core/facets/kernel/suppress_rb.html +92 -0
  207. data/doc/rdoc/core/files/lib/core/facets/kernel/tap_rb.html +92 -0
  208. data/doc/rdoc/core/files/lib/core/facets/kernel/try_rb.html +92 -0
  209. data/doc/rdoc/core/files/lib/core/facets/kernel/val_rb.html +92 -0
  210. data/doc/rdoc/core/files/lib/core/facets/kernel/with_rb.html +92 -0
  211. data/doc/rdoc/core/files/lib/core/facets/kernel_rb.html +124 -0
  212. data/doc/rdoc/core/files/lib/core/facets/lazy_rb.html +120 -0
  213. data/doc/rdoc/core/files/lib/core/facets/matchdata/match_rb.html +92 -0
  214. data/doc/rdoc/core/files/lib/core/facets/matchdata/matchset_rb.html +92 -0
  215. data/doc/rdoc/core/files/lib/core/facets/matchdata_rb.html +97 -0
  216. data/doc/rdoc/core/files/lib/core/facets/metaid_rb.html +92 -0
  217. data/doc/rdoc/core/files/lib/core/facets/module/abstract_rb.html +92 -0
  218. data/doc/rdoc/core/files/lib/core/facets/module/alias_rb.html +92 -0
  219. data/doc/rdoc/core/files/lib/core/facets/module/ancestor_rb.html +92 -0
  220. data/doc/rdoc/core/files/lib/core/facets/module/basename_rb.html +92 -0
  221. data/doc/rdoc/core/files/lib/core/facets/module/can_rb.html +92 -0
  222. data/doc/rdoc/core/files/lib/core/facets/module/class_rb.html +92 -0
  223. data/doc/rdoc/core/files/lib/core/facets/module/clone_rb.html +92 -0
  224. data/doc/rdoc/core/files/lib/core/facets/module/conflict_rb.html +92 -0
  225. data/doc/rdoc/core/files/lib/core/facets/module/include_function_module_rb.html +92 -0
  226. data/doc/rdoc/core/files/lib/core/facets/module/instance_methods_rb.html +92 -0
  227. data/doc/rdoc/core/files/lib/core/facets/module/is_rb.html +92 -0
  228. data/doc/rdoc/core/files/lib/core/facets/module/modspace_rb.html +92 -0
  229. data/doc/rdoc/core/files/lib/core/facets/module/module_load_rb.html +92 -0
  230. data/doc/rdoc/core/files/lib/core/facets/module/nesting_rb.html +92 -0
  231. data/doc/rdoc/core/files/lib/core/facets/module/op_rb.html +92 -0
  232. data/doc/rdoc/core/files/lib/core/facets/module/pathize_rb.html +92 -0
  233. data/doc/rdoc/core/files/lib/core/facets/module/prepend_rb.html +92 -0
  234. data/doc/rdoc/core/files/lib/core/facets/module/revise_rb.html +92 -0
  235. data/doc/rdoc/core/files/lib/core/facets/module/spacename_rb.html +92 -0
  236. data/doc/rdoc/core/files/lib/core/facets/module_rb.html +115 -0
  237. data/doc/rdoc/core/files/lib/core/facets/nilclass/to_f_rb.html +92 -0
  238. data/doc/rdoc/core/files/lib/core/facets/nilclass_rb.html +96 -0
  239. data/doc/rdoc/core/files/lib/core/facets/numeric/approx_rb.html +92 -0
  240. data/doc/rdoc/core/files/lib/core/facets/numeric/distance_rb.html +92 -0
  241. data/doc/rdoc/core/files/lib/core/facets/numeric/round_rb.html +92 -0
  242. data/doc/rdoc/core/files/lib/core/facets/numeric_rb.html +97 -0
  243. data/doc/rdoc/core/files/lib/core/facets/proc/bind_rb.html +92 -0
  244. data/doc/rdoc/core/files/lib/core/facets/proc/compose_rb.html +92 -0
  245. data/doc/rdoc/core/files/lib/core/facets/proc/curry_rb.html +92 -0
  246. data/doc/rdoc/core/files/lib/core/facets/proc/partial_rb.html +125 -0
  247. data/doc/rdoc/core/files/lib/core/facets/proc/to_method_rb.html +96 -0
  248. data/doc/rdoc/core/files/lib/core/facets/proc/update_rb.html +92 -0
  249. data/doc/rdoc/core/files/lib/core/facets/proc_rb.html +102 -0
  250. data/doc/rdoc/core/files/lib/core/facets/range/combine_rb.html +92 -0
  251. data/doc/rdoc/core/files/lib/core/facets/range/overlap_rb.html +92 -0
  252. data/doc/rdoc/core/files/lib/core/facets/range/to_r_rb.html +92 -0
  253. data/doc/rdoc/core/files/lib/core/facets/range/umbrella_rb.html +96 -0
  254. data/doc/rdoc/core/files/lib/core/facets/range/within_rb.html +92 -0
  255. data/doc/rdoc/core/files/lib/core/facets/range_rb.html +100 -0
  256. data/doc/rdoc/core/files/lib/core/facets/regexp/arity_rb.html +92 -0
  257. data/doc/rdoc/core/files/lib/core/facets/regexp/to_re_rb.html +92 -0
  258. data/doc/rdoc/core/files/lib/core/facets/regexp_rb.html +97 -0
  259. data/doc/rdoc/core/files/lib/core/facets/string/align_rb.html +92 -0
  260. data/doc/rdoc/core/files/lib/core/facets/string/bracket_rb.html +92 -0
  261. data/doc/rdoc/core/files/lib/core/facets/string/bytes_rb.html +92 -0
  262. data/doc/rdoc/core/files/lib/core/facets/string/camelcase_rb.html +92 -0
  263. data/doc/rdoc/core/files/lib/core/facets/string/capitalized_rb.html +92 -0
  264. data/doc/rdoc/core/files/lib/core/facets/string/chars_rb.html +92 -0
  265. data/doc/rdoc/core/files/lib/core/facets/string/chomp_rb.html +92 -0
  266. data/doc/rdoc/core/files/lib/core/facets/string/cleave_rb.html +92 -0
  267. data/doc/rdoc/core/files/lib/core/facets/string/divide_rb.html +92 -0
  268. data/doc/rdoc/core/files/lib/core/facets/string/each_char_rb.html +92 -0
  269. data/doc/rdoc/core/files/lib/core/facets/string/end_with_rb.html +96 -0
  270. data/doc/rdoc/core/files/lib/core/facets/string/fold_rb.html +92 -0
  271. data/doc/rdoc/core/files/lib/core/facets/string/interpolate_rb.html +92 -0
  272. data/doc/rdoc/core/files/lib/core/facets/string/line_wrap_rb.html +92 -0
  273. data/doc/rdoc/core/files/lib/core/facets/string/lines_rb.html +92 -0
  274. data/doc/rdoc/core/files/lib/core/facets/string/mscan_rb.html +92 -0
  275. data/doc/rdoc/core/files/lib/core/facets/string/natcmp_rb.html +92 -0
  276. data/doc/rdoc/core/files/lib/core/facets/string/nchar_rb.html +92 -0
  277. data/doc/rdoc/core/files/lib/core/facets/string/range_rb.html +92 -0
  278. data/doc/rdoc/core/files/lib/core/facets/string/rewrite_rb.html +92 -0
  279. data/doc/rdoc/core/files/lib/core/facets/string/shatter_rb.html +92 -0
  280. data/doc/rdoc/core/files/lib/core/facets/string/snakecase_rb.html +92 -0
  281. data/doc/rdoc/core/files/lib/core/facets/string/splice_rb.html +92 -0
  282. data/doc/rdoc/core/files/lib/core/facets/string/start_with_rb.html +92 -0
  283. data/doc/rdoc/core/files/lib/core/facets/string/subtract_rb.html +92 -0
  284. data/doc/rdoc/core/files/lib/core/facets/string/tab_rb.html +92 -0
  285. data/doc/rdoc/core/files/lib/core/facets/string/titlecase_rb.html +92 -0
  286. data/doc/rdoc/core/files/lib/core/facets/string/to_re_rb.html +92 -0
  287. data/doc/rdoc/core/files/lib/core/facets/string/to_time_rb.html +96 -0
  288. data/doc/rdoc/core/files/lib/core/facets/string/words_rb.html +96 -0
  289. data/doc/rdoc/core/files/lib/core/facets/string/xor_rb.html +92 -0
  290. data/doc/rdoc/core/files/lib/core/facets/string_rb.html +124 -0
  291. data/doc/rdoc/core/files/lib/core/facets/symbol/chomp_rb.html +92 -0
  292. data/doc/rdoc/core/files/lib/core/facets/symbol/generate_rb.html +92 -0
  293. data/doc/rdoc/core/files/lib/core/facets/symbol/not_rb.html +92 -0
  294. data/doc/rdoc/core/files/lib/core/facets/symbol/succ_rb.html +92 -0
  295. data/doc/rdoc/core/files/lib/core/facets/symbol/to_proc_rb.html +92 -0
  296. data/doc/rdoc/core/files/lib/core/facets/symbol_rb.html +99 -0
  297. data/doc/rdoc/core/files/lib/core/facets/time/ago_rb.html +96 -0
  298. data/doc/rdoc/core/files/lib/core/facets/time/change_rb.html +92 -0
  299. data/doc/rdoc/core/files/lib/core/facets/time/elapse_rb.html +92 -0
  300. data/doc/rdoc/core/files/lib/core/facets/time/hence_rb.html +96 -0
  301. data/doc/rdoc/core/files/lib/core/facets/time/round_rb.html +96 -0
  302. data/doc/rdoc/core/files/lib/core/facets/time/set_rb.html +96 -0
  303. data/doc/rdoc/core/files/lib/core/facets/time/stamp_rb.html +92 -0
  304. data/doc/rdoc/core/files/lib/core/facets/time/to_date_rb.html +92 -0
  305. data/doc/rdoc/core/files/lib/core/facets/time/to_time_rb.html +92 -0
  306. data/doc/rdoc/core/files/lib/core/facets/time/trunc_rb.html +92 -0
  307. data/doc/rdoc/core/files/lib/core/facets/time_rb.html +106 -0
  308. data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +92 -0
  309. data/doc/rdoc/core/files/lib/core/facets/unboundmethod/arguments_rb.html +92 -0
  310. data/doc/rdoc/core/files/lib/core/facets/unboundmethod/name_rb.html +92 -0
  311. data/doc/rdoc/core/files/lib/core/facets/unboundmethod_rb.html +97 -0
  312. data/doc/rdoc/core/fr_class_index.html +83 -0
  313. data/doc/rdoc/core/fr_file_index.html +536 -0
  314. data/doc/rdoc/core/fr_method_index.html +838 -0
  315. data/doc/rdoc/core/index.html +26 -0
  316. data/doc/{html/api → rdoc}/core/rdoc-style.css +0 -0
  317. data/doc/rdoc/lore/classes/Array.html +178 -0
  318. data/doc/rdoc/lore/classes/BasicObject.html +259 -0
  319. data/doc/rdoc/lore/classes/CGI.html +187 -0
  320. data/doc/rdoc/lore/classes/Config.html +137 -0
  321. data/doc/rdoc/lore/classes/Continuation.html +115 -0
  322. data/doc/rdoc/lore/classes/Date.html +254 -0
  323. data/doc/rdoc/lore/classes/File.html +130 -0
  324. data/doc/rdoc/lore/classes/FileUtils.html +780 -0
  325. data/doc/rdoc/lore/classes/GetoptLong.html +120 -0
  326. data/doc/rdoc/lore/classes/GetoptLong/DSL.html +210 -0
  327. data/doc/rdoc/lore/classes/Logger.html +231 -0
  328. data/doc/rdoc/lore/classes/Logger/Ansicolor.html +279 -0
  329. data/doc/rdoc/lore/classes/Logger/LogDevice.html +123 -0
  330. data/doc/rdoc/lore/classes/NilClass.html +121 -0
  331. data/doc/rdoc/lore/classes/OpenStruct.html +413 -0
  332. data/doc/rdoc/lore/classes/Pathname.html +269 -0
  333. data/doc/rdoc/lore/classes/Set.html +119 -0
  334. data/doc/rdoc/lore/classes/Shellwords.html +113 -0
  335. data/doc/rdoc/lore/classes/String.html +121 -0
  336. data/doc/rdoc/lore/classes/URI.html +456 -0
  337. data/doc/rdoc/lore/classes/URI/Hash.html +107 -0
  338. data/doc/rdoc/lore/classes/URI/Kernel.html +124 -0
  339. data/doc/rdoc/lore/created.rid +1 -0
  340. data/doc/rdoc/lore/files/README.html +299 -0
  341. data/doc/rdoc/lore/files/README_lore.html +155 -0
  342. data/doc/rdoc/lore/files/lib/lore/facets/basicobject_rb.html +190 -0
  343. data/doc/rdoc/lore/files/lib/lore/facets/cgi_rb.html +111 -0
  344. data/doc/rdoc/lore/files/lib/lore/facets/continuation_rb.html +147 -0
  345. data/doc/rdoc/lore/files/lib/lore/facets/date_rb.html +122 -0
  346. data/doc/rdoc/lore/files/lib/lore/facets/fileutils/head_rb.html +96 -0
  347. data/doc/rdoc/lore/files/lib/lore/facets/fileutils/safe_ln_rb.html +96 -0
  348. data/doc/rdoc/lore/files/lib/lore/facets/fileutils/slice_rb.html +96 -0
  349. data/doc/rdoc/lore/files/lib/lore/facets/fileutils/tail_rb.html +96 -0
  350. data/doc/rdoc/lore/files/lib/lore/facets/fileutils/wc_rb.html +96 -0
  351. data/doc/rdoc/lore/files/lib/lore/facets/fileutils/whereis_rb.html +96 -0
  352. data/doc/rdoc/lore/files/lib/lore/facets/fileutils/which_rb.html +96 -0
  353. data/doc/rdoc/lore/files/lib/lore/facets/fileutils_rb.html +131 -0
  354. data/doc/rdoc/lore/files/lib/lore/facets/getoptlong_rb.html +135 -0
  355. data/doc/rdoc/lore/files/lib/lore/facets/logger_rb.html +142 -0
  356. data/doc/rdoc/lore/files/lib/lore/facets/ostruct_rb.html +135 -0
  357. data/doc/rdoc/lore/files/lib/lore/facets/pathname_rb.html +159 -0
  358. data/doc/rdoc/lore/files/lib/lore/facets/rbconfig_rb.html +124 -0
  359. data/doc/rdoc/lore/files/lib/lore/facets/set_rb.html +96 -0
  360. data/doc/rdoc/lore/files/lib/lore/facets/shellwords_rb.html +124 -0
  361. data/doc/rdoc/lore/files/lib/lore/facets/uri_rb.html +125 -0
  362. data/doc/rdoc/lore/files/lib/lore/facets/yaml_rb.html +145 -0
  363. data/doc/rdoc/lore/fr_class_index.html +68 -0
  364. data/doc/rdoc/lore/fr_file_index.html +76 -0
  365. data/doc/rdoc/lore/fr_method_index.html +140 -0
  366. data/doc/rdoc/lore/index.html +26 -0
  367. data/doc/{html/api/more → rdoc/lore}/rdoc-style.css +0 -0
  368. data/doc/rdoc/more/classes/ANSICode.html +495 -0
  369. data/doc/rdoc/more/classes/Advisable.html +271 -0
  370. data/doc/rdoc/more/classes/Advisable/Method.html +225 -0
  371. data/doc/rdoc/more/classes/Archive.html +89 -0
  372. data/doc/rdoc/more/classes/Archive/Tar.html +89 -0
  373. data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +471 -0
  374. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +357 -0
  375. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +218 -0
  376. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +285 -0
  377. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +380 -0
  378. data/doc/rdoc/more/classes/Association.html +307 -0
  379. data/doc/rdoc/more/classes/Association/Kernel.html +134 -0
  380. data/doc/rdoc/more/classes/Autoarray.html +168 -0
  381. data/doc/rdoc/more/classes/BBCode.html +534 -0
  382. data/doc/rdoc/more/classes/BaseX.html +196 -0
  383. data/doc/rdoc/more/classes/BiCrypt.html +543 -0
  384. data/doc/rdoc/more/classes/BigDuration.html +325 -0
  385. data/doc/rdoc/more/classes/BinReadable.html +487 -0
  386. data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +225 -0
  387. data/doc/rdoc/more/classes/Buildable.html +154 -0
  388. data/doc/rdoc/more/classes/BuildingBlock.html +362 -0
  389. data/doc/rdoc/more/classes/CLI/Arguments.html +490 -0
  390. data/doc/rdoc/more/classes/CLI/Command.html +317 -0
  391. data/doc/rdoc/more/classes/CLI/Command/UniversalOptions.html +91 -0
  392. data/doc/rdoc/more/classes/CLI/NoCommandError.html +113 -0
  393. data/doc/rdoc/more/classes/CLI/NoOptionError.html +120 -0
  394. data/doc/rdoc/more/classes/CacheDecorator.html +224 -0
  395. data/doc/rdoc/more/classes/Capsule.html +410 -0
  396. data/doc/rdoc/more/classes/Capsule/MissingFile.html +96 -0
  397. data/doc/rdoc/more/classes/Chain.html +208 -0
  398. data/doc/rdoc/more/classes/Cloneable.html +131 -0
  399. data/doc/rdoc/more/classes/ConsoleUtils.html +240 -0
  400. data/doc/rdoc/more/classes/Coroutine.html +286 -0
  401. data/doc/rdoc/more/classes/Crypt.html +277 -0
  402. data/doc/rdoc/more/classes/CssFilter.html +473 -0
  403. data/doc/rdoc/more/classes/CssTree.html +151 -0
  404. data/doc/rdoc/more/classes/Dictionary.html +1250 -0
  405. data/doc/rdoc/more/classes/DictionaryMatcher.html +339 -0
  406. data/doc/rdoc/more/classes/DictionaryMatcher/MatchData.html +117 -0
  407. data/doc/rdoc/more/classes/Downloader.html +514 -0
  408. data/doc/rdoc/more/classes/Duration.html +769 -0
  409. data/doc/rdoc/more/classes/Enumerable.html +340 -0
  410. data/doc/rdoc/more/classes/Enumerable/Elementor.html +172 -0
  411. data/doc/rdoc/more/classes/Enumerable/Enumerator.html +118 -0
  412. data/doc/rdoc/more/classes/EnumerablePass.html +216 -0
  413. data/doc/rdoc/more/classes/Equatable.html +190 -0
  414. data/doc/rdoc/more/classes/EventHook.html +176 -0
  415. data/doc/rdoc/more/classes/Expirable.html +197 -0
  416. data/doc/rdoc/more/classes/FileList.html +957 -0
  417. data/doc/rdoc/more/classes/FileShell.html +745 -0
  418. data/doc/rdoc/more/classes/Fileable.html +180 -0
  419. data/doc/rdoc/more/classes/Fileable/DSL.html +305 -0
  420. data/doc/rdoc/more/classes/Hash.html +173 -0
  421. data/doc/rdoc/more/classes/Hash2Xml.html +107 -0
  422. data/doc/rdoc/more/classes/HtmlFilter.html +331 -0
  423. data/doc/rdoc/more/classes/IORedirect.html +222 -0
  424. data/doc/rdoc/more/classes/Indexable.html +606 -0
  425. data/doc/rdoc/more/classes/InfinityClass.html +450 -0
  426. data/doc/rdoc/more/classes/InfinityClass/Numeric.html +197 -0
  427. data/doc/rdoc/more/classes/Ini.html +449 -0
  428. data/doc/rdoc/more/classes/Instantiable.html +142 -0
  429. data/doc/rdoc/more/classes/Instantise.html +162 -0
  430. data/doc/rdoc/more/classes/Interval.html +879 -0
  431. data/doc/rdoc/more/classes/It.html +187 -0
  432. data/doc/rdoc/more/classes/Kernel.html +641 -0
  433. data/doc/rdoc/more/classes/LRUCache.html +323 -0
  434. data/doc/rdoc/more/classes/LRUCache/Item.html +114 -0
  435. data/doc/rdoc/more/classes/LRUCache/Sentinel.html +100 -0
  436. data/doc/rdoc/more/classes/LinkedList.html +434 -0
  437. data/doc/rdoc/more/classes/LinkedList/Node.html +151 -0
  438. data/doc/rdoc/more/classes/Module.html +1405 -0
  439. data/doc/rdoc/more/classes/Multiton.html +207 -0
  440. data/doc/rdoc/more/classes/Multiton/Inclusive.html +93 -0
  441. data/doc/rdoc/more/classes/Multiton/MetaMethods.html +223 -0
  442. data/doc/rdoc/more/classes/NackClass.html +98 -0
  443. data/doc/{html/api → rdoc}/more/classes/Net.html +0 -0
  444. data/doc/rdoc/more/classes/Net/SMTP.html +203 -0
  445. data/doc/rdoc/more/classes/NullClass.html +204 -0
  446. data/doc/rdoc/more/classes/ObjectReflection.html +174 -0
  447. data/doc/rdoc/more/classes/OpEsc.html +138 -0
  448. data/doc/rdoc/more/classes/OpenCascade.html +144 -0
  449. data/doc/rdoc/more/classes/OpenCollection.html +140 -0
  450. data/doc/rdoc/more/classes/OpenHash.html +159 -0
  451. data/doc/rdoc/more/classes/OpenObject.html +610 -0
  452. data/doc/rdoc/more/classes/PQueue.html +609 -0
  453. data/doc/rdoc/more/classes/Paramix.html +203 -0
  454. data/doc/rdoc/more/classes/Paramix/Delegator.html +217 -0
  455. data/doc/rdoc/more/classes/PathList.html +161 -0
  456. data/doc/rdoc/more/classes/PathList/Finder.html +137 -0
  457. data/doc/rdoc/more/classes/Platform.html +446 -0
  458. data/doc/rdoc/more/classes/Pool.html +206 -0
  459. data/doc/rdoc/more/classes/Proc.html +138 -0
  460. data/doc/rdoc/more/classes/ProgressBar.html +358 -0
  461. data/doc/rdoc/more/classes/Prototype.html +245 -0
  462. data/doc/rdoc/more/classes/RWDelegator.html +196 -0
  463. data/doc/rdoc/more/classes/Random.html +164 -0
  464. data/doc/rdoc/more/classes/Random/Array.html +341 -0
  465. data/doc/rdoc/more/classes/Random/Hash.html +380 -0
  466. data/doc/rdoc/more/classes/Random/Object.html +121 -0
  467. data/doc/rdoc/more/classes/Random/String.html +301 -0
  468. data/doc/rdoc/more/classes/Random/String/Self.html +155 -0
  469. data/doc/rdoc/more/classes/Recorder.html +205 -0
  470. data/doc/rdoc/more/classes/RecursiveDependency.html +92 -0
  471. data/doc/rdoc/more/classes/Reference.html +198 -0
  472. data/doc/rdoc/more/classes/Registerable.html +159 -0
  473. data/doc/rdoc/more/classes/Semaphore.html +262 -0
  474. data/doc/rdoc/more/classes/Settings.html +290 -0
  475. data/doc/rdoc/more/classes/Settings/Setting.html +225 -0
  476. data/doc/rdoc/more/classes/Settings/SettingCollection.html +146 -0
  477. data/doc/rdoc/more/classes/SimpleStringIO.html +137 -0
  478. data/doc/rdoc/more/classes/Snapshot.html +196 -0
  479. data/doc/rdoc/more/classes/Snapshot/ValueHolder.html +165 -0
  480. data/doc/rdoc/more/classes/Stackable.html +264 -0
  481. data/doc/rdoc/more/classes/String/Style.html +804 -0
  482. data/doc/rdoc/more/classes/Struct.html +132 -0
  483. data/doc/rdoc/more/classes/SyncArray.html +129 -0
  484. data/doc/rdoc/more/classes/SyncHash.html +160 -0
  485. data/doc/rdoc/more/classes/SyncHash/Delegator.html +213 -0
  486. data/doc/rdoc/more/classes/SyncHash/Inheritor.html +213 -0
  487. data/doc/rdoc/more/classes/System.html +1119 -0
  488. data/doc/rdoc/more/classes/Timer.html +466 -0
  489. data/doc/rdoc/more/classes/Timer/Dummy.html +141 -0
  490. data/doc/rdoc/more/classes/TracePoint.html +455 -0
  491. data/doc/rdoc/more/classes/Tuple.html +902 -0
  492. data/doc/rdoc/more/classes/TypeCast.html +158 -0
  493. data/doc/rdoc/more/classes/TypeCast/Class.html +129 -0
  494. data/doc/rdoc/more/classes/TypeCast/Object.html +119 -0
  495. data/doc/rdoc/more/classes/TypeCastException.html +96 -0
  496. data/doc/rdoc/more/classes/Uninheritable.html +122 -0
  497. data/doc/rdoc/more/classes/UploadUtils.html +499 -0
  498. data/doc/rdoc/more/classes/VersionNumber.html +384 -0
  499. data/doc/rdoc/more/classes/Weekdays.html +220 -0
  500. data/doc/rdoc/more/classes/XOXO.html +191 -0
  501. data/doc/rdoc/more/classes/ZipUtils.html +437 -0
  502. data/doc/rdoc/more/classes/ZipUtils/DryRun.html +225 -0
  503. data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +225 -0
  504. data/doc/rdoc/more/classes/ZipUtils/Verbose.html +225 -0
  505. data/doc/rdoc/more/created.rid +1 -0
  506. data/doc/rdoc/more/files/README.html +299 -0
  507. data/doc/rdoc/more/files/README_more.html +141 -0
  508. data/doc/rdoc/more/files/lib/more/facets/1stclassmethod_rb.html +181 -0
  509. data/doc/rdoc/more/files/lib/more/facets/advisable_rb.html +124 -0
  510. data/doc/rdoc/more/files/lib/more/facets/annotations_rb.html +180 -0
  511. data/doc/rdoc/more/files/lib/more/facets/ansicode_rb.html +200 -0
  512. data/doc/rdoc/more/files/lib/more/facets/arguments_rb.html +142 -0
  513. data/doc/rdoc/more/files/lib/more/facets/association_rb.html +158 -0
  514. data/doc/rdoc/more/files/lib/more/facets/attr_rb.html +92 -0
  515. data/doc/rdoc/more/files/lib/more/facets/autoarray_rb.html +125 -0
  516. data/doc/rdoc/more/files/lib/more/facets/autoreload_rb.html +134 -0
  517. data/doc/rdoc/more/files/lib/more/facets/basex_rb.html +92 -0
  518. data/doc/rdoc/more/files/lib/more/facets/bbcode_rb.html +138 -0
  519. data/doc/rdoc/more/files/lib/more/facets/bicrypt_rb.html +124 -0
  520. data/doc/rdoc/more/files/lib/more/facets/binreadable_rb.html +141 -0
  521. data/doc/rdoc/more/files/lib/more/facets/buildable_rb.html +230 -0
  522. data/doc/rdoc/more/files/lib/more/facets/bytes_rb.html +169 -0
  523. data/doc/rdoc/more/files/lib/more/facets/cachedecorator_rb.html +178 -0
  524. data/doc/rdoc/more/files/lib/more/facets/capsule_rb.html +143 -0
  525. data/doc/rdoc/more/files/lib/more/facets/cattr_rb.html +125 -0
  526. data/doc/rdoc/more/files/lib/more/facets/chain_rb.html +114 -0
  527. data/doc/rdoc/more/files/lib/more/facets/class_extension_rb.html +155 -0
  528. data/doc/rdoc/more/files/lib/more/facets/classmethods_rb.html +213 -0
  529. data/doc/rdoc/more/files/lib/more/facets/cloneable_rb.html +134 -0
  530. data/doc/rdoc/more/files/lib/more/facets/command_rb.html +170 -0
  531. data/doc/rdoc/more/files/lib/more/facets/consoleutils_rb.html +109 -0
  532. data/doc/rdoc/more/files/lib/more/facets/coroutine_rb.html +163 -0
  533. data/doc/rdoc/more/files/lib/more/facets/crypt_rb.html +141 -0
  534. data/doc/rdoc/more/files/lib/more/facets/cssfilter_rb.html +121 -0
  535. data/doc/rdoc/more/files/lib/more/facets/daemonize_rb.html +118 -0
  536. data/doc/rdoc/more/files/lib/more/facets/dependency_rb.html +158 -0
  537. data/doc/rdoc/more/files/lib/more/facets/dictionary_rb.html +201 -0
  538. data/doc/rdoc/more/files/lib/more/facets/dictionarymatcher_rb.html +92 -0
  539. data/doc/rdoc/more/files/lib/more/facets/downloader_rb.html +137 -0
  540. data/doc/rdoc/more/files/lib/more/facets/duplicable_rb.html +100 -0
  541. data/doc/rdoc/more/files/lib/more/facets/duration_rb.html +132 -0
  542. data/doc/rdoc/more/files/lib/more/facets/elementor_rb.html +148 -0
  543. data/doc/rdoc/more/files/lib/more/facets/elementwise_rb.html +96 -0
  544. data/doc/rdoc/more/files/lib/more/facets/enumerablepass_rb.html +153 -0
  545. data/doc/rdoc/more/files/lib/more/facets/equatable_rb.html +146 -0
  546. data/doc/rdoc/more/files/lib/more/facets/eventhook_rb.html +141 -0
  547. data/doc/rdoc/more/files/lib/more/facets/expirable_rb.html +116 -0
  548. data/doc/rdoc/more/files/lib/more/facets/fileable_rb.html +138 -0
  549. data/doc/rdoc/more/files/lib/more/facets/filelist_rb.html +165 -0
  550. data/doc/rdoc/more/files/lib/more/facets/fileshell_rb.html +124 -0
  551. data/doc/rdoc/more/files/lib/more/facets/heap_rb.html +132 -0
  552. data/doc/rdoc/more/files/lib/more/facets/htmlfilter_rb.html +153 -0
  553. data/doc/rdoc/more/files/lib/more/facets/indexable_rb.html +113 -0
  554. data/doc/rdoc/more/files/lib/more/facets/infinity_rb.html +153 -0
  555. data/doc/rdoc/more/files/lib/more/facets/inheritor_rb.html +149 -0
  556. data/doc/rdoc/more/files/lib/more/facets/ini_rb.html +105 -0
  557. data/doc/rdoc/more/files/lib/more/facets/instantiable_rb.html +119 -0
  558. data/doc/rdoc/more/files/lib/more/facets/instantise_rb.html +145 -0
  559. data/doc/rdoc/more/files/lib/more/facets/interval_rb.html +163 -0
  560. data/doc/rdoc/more/files/lib/more/facets/ioredirect_rb.html +133 -0
  561. data/doc/rdoc/more/files/lib/more/facets/iteration_rb.html +94 -0
  562. data/doc/rdoc/more/files/lib/more/facets/kernel/meta_rb.html +96 -0
  563. data/doc/rdoc/more/files/lib/more/facets/linkedlist_rb.html +159 -0
  564. data/doc/rdoc/more/files/lib/more/facets/lrucache_rb.html +129 -0
  565. data/doc/rdoc/more/files/lib/more/facets/main_rb.html +126 -0
  566. data/doc/rdoc/more/files/lib/more/facets/memoize_rb.html +163 -0
  567. data/doc/rdoc/more/files/lib/more/facets/methodspace_rb.html +138 -0
  568. data/doc/rdoc/more/files/lib/more/facets/minitar_rb.html +203 -0
  569. data/doc/rdoc/more/files/lib/more/facets/multipliers_rb.html +148 -0
  570. data/doc/rdoc/more/files/lib/more/facets/multiton_rb.html +187 -0
  571. data/doc/rdoc/more/files/lib/more/facets/nackclass_rb.html +120 -0
  572. data/doc/rdoc/more/files/lib/more/facets/net/smtp_tls_rb.html +143 -0
  573. data/doc/rdoc/more/files/lib/more/facets/nilstatus_rb.html +92 -0
  574. data/doc/rdoc/more/files/lib/more/facets/nullclass_rb.html +122 -0
  575. data/doc/rdoc/more/files/lib/more/facets/opencascade_rb.html +156 -0
  576. data/doc/rdoc/more/files/lib/more/facets/opencollection_rb.html +123 -0
  577. data/doc/rdoc/more/files/lib/more/facets/openhash_rb.html +107 -0
  578. data/doc/rdoc/more/files/lib/more/facets/openobject_rb.html +169 -0
  579. data/doc/rdoc/more/files/lib/more/facets/opesc_rb.html +94 -0
  580. data/doc/rdoc/more/files/lib/more/facets/orderedhash_rb.html +143 -0
  581. data/doc/rdoc/more/files/lib/more/facets/overload_rb.html +119 -0
  582. data/doc/rdoc/more/files/lib/more/facets/paramix_rb.html +135 -0
  583. data/doc/rdoc/more/files/lib/more/facets/pathlist_rb.html +133 -0
  584. data/doc/rdoc/more/files/lib/more/facets/platform_rb.html +103 -0
  585. data/doc/rdoc/more/files/lib/more/facets/pool_rb.html +131 -0
  586. data/doc/rdoc/more/files/lib/more/facets/pqueue_rb.html +128 -0
  587. data/doc/rdoc/more/files/lib/more/facets/progressbar_rb.html +126 -0
  588. data/doc/rdoc/more/files/lib/more/facets/prototype_rb.html +102 -0
  589. data/doc/rdoc/more/files/lib/more/facets/random_rb.html +149 -0
  590. data/doc/rdoc/more/files/lib/more/facets/rbsystem_rb.html +144 -0
  591. data/doc/rdoc/more/files/lib/more/facets/recorder_rb.html +154 -0
  592. data/doc/rdoc/more/files/lib/more/facets/reference_rb.html +130 -0
  593. data/doc/rdoc/more/files/lib/more/facets/reflection_rb.html +135 -0
  594. data/doc/rdoc/more/files/lib/more/facets/registerable_rb.html +98 -0
  595. data/doc/rdoc/more/files/lib/more/facets/rwdelegator_rb.html +122 -0
  596. data/doc/rdoc/more/files/lib/more/facets/semaphore_rb.html +120 -0
  597. data/doc/rdoc/more/files/lib/more/facets/settings_rb.html +141 -0
  598. data/doc/rdoc/more/files/lib/more/facets/snapshot_rb.html +177 -0
  599. data/doc/rdoc/more/files/lib/more/facets/stackable_rb.html +121 -0
  600. data/doc/rdoc/more/files/lib/more/facets/style_rb.html +96 -0
  601. data/doc/rdoc/more/files/lib/more/facets/succ_rb.html +92 -0
  602. data/doc/rdoc/more/files/lib/more/facets/syncarray_rb.html +125 -0
  603. data/doc/rdoc/more/files/lib/more/facets/synchash_rb.html +138 -0
  604. data/doc/rdoc/more/files/lib/more/facets/thread_rb.html +132 -0
  605. data/doc/rdoc/more/files/lib/more/facets/timer_rb.html +174 -0
  606. data/doc/rdoc/more/files/lib/more/facets/times_rb.html +163 -0
  607. data/doc/rdoc/more/files/lib/more/facets/tracepoint_rb.html +167 -0
  608. data/doc/rdoc/more/files/lib/more/facets/tuple_rb.html +160 -0
  609. data/doc/rdoc/more/files/lib/more/facets/typecast_rb.html +214 -0
  610. data/doc/rdoc/more/files/lib/more/facets/uninheritable_rb.html +129 -0
  611. data/doc/rdoc/more/files/lib/more/facets/uploadutils_rb.html +176 -0
  612. data/doc/rdoc/more/files/lib/more/facets/version_rb.html +133 -0
  613. data/doc/rdoc/more/files/lib/more/facets/xmlhash_rb.html +97 -0
  614. data/doc/rdoc/more/files/lib/more/facets/xoxo_rb.html +136 -0
  615. data/doc/rdoc/more/files/lib/more/facets/ziputils_rb.html +133 -0
  616. data/doc/rdoc/more/fr_class_index.html +183 -0
  617. data/doc/rdoc/more/fr_file_index.html +158 -0
  618. data/doc/rdoc/more/fr_method_index.html +1057 -0
  619. data/doc/rdoc/more/index.html +26 -0
  620. data/doc/rdoc/more/rdoc-style.css +175 -0
  621. data/doc/ri/ANSICode/cdesc-ANSICode.yaml +60 -0
  622. data/doc/ri/ANSICode/clear_line-i.yaml +13 -0
  623. data/doc/ri/ANSICode/clear_screen-i.yaml +13 -0
  624. data/doc/ri/ANSICode/clr-i.yaml +12 -0
  625. data/doc/ri/ANSICode/cls-i.yaml +12 -0
  626. data/doc/ri/ANSICode/colors-i.yaml +10 -0
  627. data/doc/ri/ANSICode/define_ansicolor_method-c.yaml +12 -0
  628. data/doc/ri/ANSICode/display-i.yaml +12 -0
  629. data/doc/ri/ANSICode/down-i.yaml +12 -0
  630. data/doc/ri/ANSICode/left-i.yaml +12 -0
  631. data/doc/ri/ANSICode/move-i.yaml +12 -0
  632. data/doc/ri/ANSICode/restore-i.yaml +12 -0
  633. data/doc/ri/ANSICode/right-i.yaml +12 -0
  634. data/doc/ri/ANSICode/save-i.yaml +12 -0
  635. data/doc/ri/ANSICode/uncolored-i.yaml +10 -0
  636. data/doc/ri/ANSICode/up-i.yaml +12 -0
  637. data/doc/ri/Advisable/Method/advice_after%3d-i.yaml +10 -0
  638. data/doc/ri/Advisable/Method/advice_around%3d-i.yaml +10 -0
  639. data/doc/ri/Advisable/Method/advice_before%3d-i.yaml +10 -0
  640. data/doc/ri/Advisable/Method/advised%3f-i.yaml +10 -0
  641. data/doc/ri/Advisable/Method/call_with_advice-i.yaml +12 -0
  642. data/doc/ri/Advisable/Method/cdesc-Method.yaml +43 -0
  643. data/doc/ri/Advisable/Method/lambda_target-i.yaml +12 -0
  644. data/doc/ri/Advisable/advice_after-i.yaml +10 -0
  645. data/doc/ri/Advisable/advice_around-i.yaml +10 -0
  646. data/doc/ri/Advisable/advice_before-i.yaml +10 -0
  647. data/doc/ri/Advisable/advise-i.yaml +12 -0
  648. data/doc/ri/Advisable/after-i.yaml +10 -0
  649. data/doc/ri/Advisable/around-i.yaml +10 -0
  650. data/doc/ri/Advisable/before-i.yaml +10 -0
  651. data/doc/ri/Advisable/cdesc-Advisable.yaml +35 -0
  652. data/doc/ri/Advisable/method_added-i.yaml +16 -0
  653. data/doc/ri/Archive/Tar/Minitar/BlockRequired/cdesc-BlockRequired.yaml +17 -0
  654. data/doc/ri/Archive/Tar/Minitar/ClosedStream/cdesc-ClosedStream.yaml +17 -0
  655. data/doc/ri/Archive/Tar/Minitar/FileNameTooLong/cdesc-FileNameTooLong.yaml +17 -0
  656. data/doc/ri/Archive/Tar/Minitar/Input/cdesc-Input.yaml +30 -0
  657. data/doc/ri/Archive/Tar/Minitar/Input/close-i.yaml +12 -0
  658. data/doc/ri/Archive/Tar/Minitar/Input/each-i.yaml +12 -0
  659. data/doc/ri/Archive/Tar/Minitar/Input/extract_entry-i.yaml +43 -0
  660. data/doc/ri/Archive/Tar/Minitar/Input/fsync_dir-i.yaml +10 -0
  661. data/doc/ri/Archive/Tar/Minitar/Input/new-c.yaml +12 -0
  662. data/doc/ri/Archive/Tar/Minitar/Input/open-c.yaml +12 -0
  663. data/doc/ri/Archive/Tar/Minitar/Input/tar-i.yaml +12 -0
  664. data/doc/ri/Archive/Tar/Minitar/NonSeekableStream/cdesc-NonSeekableStream.yaml +17 -0
  665. data/doc/ri/Archive/Tar/Minitar/Output/cdesc-Output.yaml +23 -0
  666. data/doc/ri/Archive/Tar/Minitar/Output/close-i.yaml +12 -0
  667. data/doc/ri/Archive/Tar/Minitar/Output/new-c.yaml +12 -0
  668. data/doc/ri/Archive/Tar/Minitar/Output/open-c.yaml +12 -0
  669. data/doc/ri/Archive/Tar/Minitar/Output/tar-i.yaml +12 -0
  670. data/doc/ri/Archive/Tar/Minitar/Reader/EntryStream/cdesc-EntryStream.yaml +17 -0
  671. data/doc/ri/Archive/Tar/Minitar/Reader/InvalidEntryStream/cdesc-InvalidEntryStream.yaml +17 -0
  672. data/doc/ri/Archive/Tar/Minitar/Reader/cdesc-Reader.yaml +27 -0
  673. data/doc/ri/Archive/Tar/Minitar/Reader/close-i.yaml +10 -0
  674. data/doc/ri/Archive/Tar/Minitar/Reader/each-i.yaml +12 -0
  675. data/doc/ri/Archive/Tar/Minitar/Reader/each_entry-i.yaml +12 -0
  676. data/doc/ri/Archive/Tar/Minitar/Reader/new-c.yaml +12 -0
  677. data/doc/ri/Archive/Tar/Minitar/Reader/open-c.yaml +12 -0
  678. data/doc/ri/Archive/Tar/Minitar/Reader/rewind-i.yaml +12 -0
  679. data/doc/ri/Archive/Tar/Minitar/UnexpectedEOF/cdesc-UnexpectedEOF.yaml +17 -0
  680. data/doc/ri/Archive/Tar/Minitar/Writer/BoundedStream/FileOverflow/cdesc-FileOverflow.yaml +17 -0
  681. data/doc/ri/Archive/Tar/Minitar/Writer/BoundedStream/cdesc-BoundedStream.yaml +17 -0
  682. data/doc/ri/Archive/Tar/Minitar/Writer/RestrictedStream/cdesc-RestrictedStream.yaml +17 -0
  683. data/doc/ri/Archive/Tar/Minitar/Writer/add_file-i.yaml +34 -0
  684. data/doc/ri/Archive/Tar/Minitar/Writer/add_file_simple-i.yaml +33 -0
  685. data/doc/ri/Archive/Tar/Minitar/Writer/cdesc-Writer.yaml +31 -0
  686. data/doc/ri/Archive/Tar/Minitar/Writer/close-i.yaml +12 -0
  687. data/doc/ri/Archive/Tar/Minitar/Writer/flush-i.yaml +12 -0
  688. data/doc/ri/Archive/Tar/Minitar/Writer/mkdir-i.yaml +12 -0
  689. data/doc/ri/Archive/Tar/Minitar/Writer/new-c.yaml +12 -0
  690. data/doc/ri/Archive/Tar/Minitar/Writer/open-c.yaml +12 -0
  691. data/doc/ri/Archive/Tar/Minitar/Writer/split_name-i.yaml +10 -0
  692. data/doc/ri/Archive/Tar/Minitar/cdesc-Minitar.yaml +68 -0
  693. data/doc/ri/Archive/Tar/Minitar/dir%3f-c.yaml +12 -0
  694. data/doc/ri/Archive/Tar/Minitar/open-c.yaml +12 -0
  695. data/doc/ri/Archive/Tar/Minitar/pack-c.yaml +14 -0
  696. data/doc/ri/Archive/Tar/Minitar/pack_file-c.yaml +75 -0
  697. data/doc/ri/Archive/Tar/Minitar/unpack-c.yaml +12 -0
  698. data/doc/ri/Archive/Tar/PosixHeader/cdesc-PosixHeader.yaml +53 -0
  699. data/doc/ri/Archive/Tar/cdesc-Tar.yaml +15 -0
  700. data/doc/ri/Archive/cdesc-Archive.yaml +16 -0
  701. data/doc/ri/Array/cdesc-Array.yaml +17 -0
  702. data/doc/ri/As/cdesc-As.yaml +19 -0
  703. data/doc/ri/Association/%3c%3d%3e-i.yaml +10 -0
  704. data/doc/ri/Association/%5b%5d-c.yaml +10 -0
  705. data/doc/ri/Association/Kernel/%3e%3e-i.yaml +12 -0
  706. data/doc/ri/Association/Kernel/associations-i.yaml +10 -0
  707. data/doc/ri/Association/Kernel/cdesc-Kernel.yaml +20 -0
  708. data/doc/ri/Association/cdesc-Association.yaml +67 -0
  709. data/doc/ri/Association/inspect-i.yaml +10 -0
  710. data/doc/ri/Association/invert%21-i.yaml +10 -0
  711. data/doc/ri/Association/new-c.yaml +10 -0
  712. data/doc/ri/Association/to_ary-i.yaml +10 -0
  713. data/doc/ri/Association/to_s-i.yaml +10 -0
  714. data/doc/ri/Autoarray/%5b%5d%3d-i.yaml +10 -0
  715. data/doc/ri/Autoarray/%5b%5d-i.yaml +10 -0
  716. data/doc/ri/Autoarray/cdesc-Autoarray.yaml +26 -0
  717. data/doc/ri/Autoarray/new-c.yaml +10 -0
  718. data/doc/ri/BBCode/ansi-c.yaml +12 -0
  719. data/doc/ri/BBCode/ansi_to_bbcode-c.yaml +12 -0
  720. data/doc/ri/BBCode/ansi_to_html-c.yaml +12 -0
  721. data/doc/ri/BBCode/bbcode_to_ansi-c.yaml +12 -0
  722. data/doc/ri/BBCode/bbcode_to_html-c.yaml +12 -0
  723. data/doc/ri/BBCode/cdesc-BBCode.yaml +59 -0
  724. data/doc/ri/BBCode/html_to_ansi-c.yaml +12 -0
  725. data/doc/ri/BBCode/html_to_bbcode-c.yaml +12 -0
  726. data/doc/ri/BBCode/strip_bbcode-c.yaml +12 -0
  727. data/doc/ri/BaseX/cdesc-BaseX.yaml +27 -0
  728. data/doc/ri/BaseX/convert_base-i.yaml +10 -0
  729. data/doc/ri/BaseX/decode-i.yaml +10 -0
  730. data/doc/ri/BaseX/encode-i.yaml +10 -0
  731. data/doc/ri/BaseX/new-c.yaml +10 -0
  732. data/doc/ri/BasicObject/__self__-i.yaml +12 -0
  733. data/doc/ri/BasicObject/cdesc-BasicObject.yaml +53 -0
  734. data/doc/ri/BasicObject/hide-c.yaml +12 -0
  735. data/doc/ri/BasicObject/object_self-i.yaml +13 -0
  736. data/doc/ri/BiCrypt/block_size-i.yaml +10 -0
  737. data/doc/ri/BiCrypt/carefully_open_file-i.yaml +10 -0
  738. data/doc/ri/BiCrypt/cdesc-BiCrypt.yaml +53 -0
  739. data/doc/ri/BiCrypt/decrypt_block-i.yaml +10 -0
  740. data/doc/ri/BiCrypt/decrypt_file-i.yaml +10 -0
  741. data/doc/ri/BiCrypt/decrypt_pair-i.yaml +10 -0
  742. data/doc/ri/BiCrypt/decrypt_stream-i.yaml +10 -0
  743. data/doc/ri/BiCrypt/decrypt_string-i.yaml +10 -0
  744. data/doc/ri/BiCrypt/encrypt_block-i.yaml +10 -0
  745. data/doc/ri/BiCrypt/encrypt_file-i.yaml +10 -0
  746. data/doc/ri/BiCrypt/encrypt_pair-i.yaml +10 -0
  747. data/doc/ri/BiCrypt/encrypt_stream-i.yaml +10 -0
  748. data/doc/ri/BiCrypt/encrypt_string-i.yaml +10 -0
  749. data/doc/ri/BiCrypt/f-i.yaml +10 -0
  750. data/doc/ri/BiCrypt/generate_initialization_vector-i.yaml +12 -0
  751. data/doc/ri/BiCrypt/new-c.yaml +10 -0
  752. data/doc/ri/BiCrypt/precalculate_S_table-i.yaml +10 -0
  753. data/doc/ri/BigDuration/cdesc-BigDuration.yaml +41 -0
  754. data/doc/ri/BigDuration/each-i.yaml +12 -0
  755. data/doc/ri/BigDuration/months%3d-i.yaml +12 -0
  756. data/doc/ri/BigDuration/new-c.yaml +12 -0
  757. data/doc/ri/BigDuration/seconds-i.yaml +12 -0
  758. data/doc/ri/BigDuration/strftime-i.yaml +16 -0
  759. data/doc/ri/BigDuration/years%3d-i.yaml +12 -0
  760. data/doc/ri/BinReadable/ByteOrder/big%3f-i.yaml +12 -0
  761. data/doc/ri/BinReadable/ByteOrder/big_endian%3f-i.yaml +13 -0
  762. data/doc/ri/BinReadable/ByteOrder/byte_order-i.yaml +13 -0
  763. data/doc/ri/BinReadable/ByteOrder/byteorder-i.yaml +12 -0
  764. data/doc/ri/BinReadable/ByteOrder/cdesc-ByteOrder.yaml +39 -0
  765. data/doc/ri/BinReadable/ByteOrder/little%3f-i.yaml +12 -0
  766. data/doc/ri/BinReadable/ByteOrder/little_endian%3f-i.yaml +11 -0
  767. data/doc/ri/BinReadable/ByteOrder/network%3f-i.yaml +12 -0
  768. data/doc/ri/BinReadable/byte_order%3d-i.yaml +11 -0
  769. data/doc/ri/BinReadable/byte_order-i.yaml +13 -0
  770. data/doc/ri/BinReadable/byteorder%3d-i.yaml +12 -0
  771. data/doc/ri/BinReadable/byteorder-i.yaml +12 -0
  772. data/doc/ri/BinReadable/cdesc-BinReadable.yaml +65 -0
  773. data/doc/ri/BinReadable/read_cstring-i.yaml +10 -0
  774. data/doc/ri/BinReadable/read_int16_big-i.yaml +10 -0
  775. data/doc/ri/BinReadable/read_int16_little-i.yaml +10 -0
  776. data/doc/ri/BinReadable/read_int16_native-i.yaml +13 -0
  777. data/doc/ri/BinReadable/read_int32_big-i.yaml +10 -0
  778. data/doc/ri/BinReadable/read_int32_little-i.yaml +10 -0
  779. data/doc/ri/BinReadable/read_int32_native-i.yaml +13 -0
  780. data/doc/ri/BinReadable/read_int8-i.yaml +10 -0
  781. data/doc/ri/BinReadable/read_uint8-i.yaml +12 -0
  782. data/doc/ri/BinReadable/read_word16_big-i.yaml +10 -0
  783. data/doc/ri/BinReadable/read_word16_little-i.yaml +10 -0
  784. data/doc/ri/BinReadable/read_word16_native-i.yaml +13 -0
  785. data/doc/ri/BinReadable/read_word32_big-i.yaml +10 -0
  786. data/doc/ri/BinReadable/read_word32_little-i.yaml +10 -0
  787. data/doc/ri/BinReadable/read_word32_native-i.yaml +13 -0
  788. data/doc/ri/BinReadable/read_word8-i.yaml +13 -0
  789. data/doc/ri/BinReadable/readn-i.yaml +12 -0
  790. data/doc/ri/BinReadable/ru-i.yaml +12 -0
  791. data/doc/ri/BinReadable/ru_swap-i.yaml +12 -0
  792. data/doc/ri/Binding/%5b%5d%3d-i.yaml +14 -0
  793. data/doc/ri/Binding/%5b%5d-i.yaml +14 -0
  794. data/doc/ri/Binding/__DIR__-i.yaml +12 -0
  795. data/doc/ri/Binding/__FILE__-i.yaml +12 -0
  796. data/doc/ri/Binding/__LINE__-i.yaml +12 -0
  797. data/doc/ri/Binding/__callee__-i.yaml +14 -0
  798. data/doc/ri/Binding/__method__-i.yaml +14 -0
  799. data/doc/ri/Binding/caller-i.yaml +12 -0
  800. data/doc/ri/Binding/callstack-i.yaml +12 -0
  801. data/doc/ri/Binding/cdesc-Binding.yaml +40 -0
  802. data/doc/ri/Binding/defined%3f-i.yaml +12 -0
  803. data/doc/ri/Binding/eval-i.yaml +12 -0
  804. data/doc/ri/Binding/local_variables-i.yaml +14 -0
  805. data/doc/ri/Binding/self-i.yaml +12 -0
  806. data/doc/ri/Buildable/cdesc-Buildable.yaml +29 -0
  807. data/doc/ri/Buildable/included-c.yaml +10 -0
  808. data/doc/ri/BuildingBlock/%3c%3c-i.yaml +12 -0
  809. data/doc/ri/BuildingBlock/build%21-i.yaml +11 -0
  810. data/doc/ri/BuildingBlock/cdesc-BuildingBlock.yaml +57 -0
  811. data/doc/ri/BuildingBlock/inspect-i.yaml +12 -0
  812. data/doc/ri/BuildingBlock/method_missing-i.yaml +11 -0
  813. data/doc/ri/BuildingBlock/new-c.yaml +11 -0
  814. data/doc/ri/BuildingBlock/to_buffer-i.yaml +12 -0
  815. data/doc/ri/BuildingBlock/to_s-i.yaml +12 -0
  816. data/doc/ri/BuildingBlock/to_str-i.yaml +10 -0
  817. data/doc/ri/CGI/cdesc-CGI.yaml +25 -0
  818. data/doc/ri/CGI/esc-i.yaml +12 -0
  819. data/doc/ri/CGI/escformat-i.yaml +12 -0
  820. data/doc/ri/CGI/marshal_from_cgi-i.yaml +12 -0
  821. data/doc/ri/CGI/marshal_to_cgi-i.yaml +12 -0
  822. data/doc/ri/CLI/Arguments/arguments-i.yaml +12 -0
  823. data/doc/ri/CLI/Arguments/assoc_options-i.yaml +14 -0
  824. data/doc/ri/CLI/Arguments/cdesc-Arguments.yaml +77 -0
  825. data/doc/ri/CLI/Arguments/flags-i.yaml +12 -0
  826. data/doc/ri/CLI/Arguments/format_options-i.yaml +12 -0
  827. data/doc/ri/CLI/Arguments/multi_flag-i.yaml +12 -0
  828. data/doc/ri/CLI/Arguments/new-c.yaml +12 -0
  829. data/doc/ri/CLI/Arguments/operands-i.yaml +13 -0
  830. data/doc/ri/CLI/Arguments/options-i.yaml +12 -0
  831. data/doc/ri/CLI/Arguments/parameters-c.yaml +10 -0
  832. data/doc/ri/CLI/Arguments/parameters-i.yaml +12 -0
  833. data/doc/ri/CLI/Arguments/parameters_without_duplicates-i.yaml +12 -0
  834. data/doc/ri/CLI/Arguments/parse-i.yaml +14 -0
  835. data/doc/ri/CLI/Arguments/parse_arity-i.yaml +12 -0
  836. data/doc/ri/CLI/Arguments/parse_line-i.yaml +12 -0
  837. data/doc/ri/CLI/Arguments/parse_preoptions-i.yaml +12 -0
  838. data/doc/ri/CLI/Arguments/preflags-i.yaml +12 -0
  839. data/doc/ri/CLI/Arguments/preoptions-i.yaml +14 -0
  840. data/doc/ri/CLI/Arguments/subcommand-i.yaml +12 -0
  841. data/doc/ri/CLI/Arguments/subcommand_with_arguments-i.yaml +14 -0
  842. data/doc/ri/CLI/Arguments/subcommand_with_parameters-i.yaml +13 -0
  843. data/doc/ri/CLI/Arguments/subcommand_with_preoptions-i.yaml +11 -0
  844. data/doc/ri/CLI/Command/UniversalOptions/cdesc-UniversalOptions.yaml +17 -0
  845. data/doc/ri/CLI/Command/call-i.yaml +12 -0
  846. data/doc/ri/CLI/Command/cdesc-Command.yaml +50 -0
  847. data/doc/ri/CLI/Command/command_missing-i.yaml +11 -0
  848. data/doc/ri/CLI/Command/commands-i.yaml +11 -0
  849. data/doc/ri/CLI/Command/default-i.yaml +12 -0
  850. data/doc/ri/CLI/Command/initialize_arguments-i.yaml +11 -0
  851. data/doc/ri/CLI/Command/initialize_options-i.yaml +11 -0
  852. data/doc/ri/CLI/Command/new-c.yaml +11 -0
  853. data/doc/ri/CLI/Command/option_arity-c.yaml +11 -0
  854. data/doc/ri/CLI/Command/option_missing-i.yaml +11 -0
  855. data/doc/ri/CLI/Command/start-c.yaml +11 -0
  856. data/doc/ri/CLI/Command/subcommand-c.yaml +12 -0
  857. data/doc/ri/CLI/NoCommandError/cdesc-NoCommandError.yaml +16 -0
  858. data/doc/ri/CLI/NoCommandError/new-c.yaml +10 -0
  859. data/doc/ri/CLI/NoOptionError/cdesc-NoOptionError.yaml +18 -0
  860. data/doc/ri/CLI/NoOptionError/new-c.yaml +10 -0
  861. data/doc/ri/CLI/cdesc-CLI.yaml +15 -0
  862. data/doc/ri/CacheDecorator/cache-c.yaml +10 -0
  863. data/doc/ri/CacheDecorator/cdesc-CacheDecorator.yaml +45 -0
  864. data/doc/ri/CacheDecorator/method_missing-i.yaml +10 -0
  865. data/doc/ri/CacheDecorator/new-c.yaml +10 -0
  866. data/doc/ri/CacheDecorator/self-i.yaml +10 -0
  867. data/doc/ri/CacheDecorator/uncache-c.yaml +10 -0
  868. data/doc/ri/Capsule/MissingFile/cdesc-MissingFile.yaml +17 -0
  869. data/doc/ri/Capsule/cdesc-Capsule.yaml +55 -0
  870. data/doc/ri/Capsule/include-i.yaml +11 -0
  871. data/doc/ri/Capsule/include_script-i.yaml +10 -0
  872. data/doc/ri/Capsule/load-c.yaml +12 -0
  873. data/doc/ri/Capsule/load-i.yaml +16 -0
  874. data/doc/ri/Capsule/load_in_module-i.yaml +12 -0
  875. data/doc/ri/Capsule/load_path_lookup-i.yaml +12 -0
  876. data/doc/ri/Capsule/new-c.yaml +12 -0
  877. data/doc/ri/Capsule/require-i.yaml +14 -0
  878. data/doc/ri/Chain/%7e-i.yaml +10 -0
  879. data/doc/ri/Chain/cdesc-Chain.yaml +36 -0
  880. data/doc/ri/Chain/end-i.yaml +16 -0
  881. data/doc/ri/Chain/method_missing-i.yaml +10 -0
  882. data/doc/ri/Chain/new-c.yaml +10 -0
  883. data/doc/ri/Class/cdesc-Class.yaml +17 -0
  884. data/doc/ri/Cloneable/cdesc-Cloneable.yaml +21 -0
  885. data/doc/ri/Cloneable/initialize_copy-i.yaml +10 -0
  886. data/doc/ri/Comparable/at_least-i.yaml +14 -0
  887. data/doc/ri/Comparable/at_most-i.yaml +14 -0
  888. data/doc/ri/Comparable/bound-i.yaml +15 -0
  889. data/doc/ri/Comparable/cap-i.yaml +14 -0
  890. data/doc/ri/Comparable/cdesc-Comparable.yaml +26 -0
  891. data/doc/ri/Comparable/clip-i.yaml +12 -0
  892. data/doc/ri/Comparable/cmp-i.yaml +18 -0
  893. data/doc/ri/Config/cdesc-Config.yaml +18 -0
  894. data/doc/ri/Config/datadir-c.yaml +16 -0
  895. data/doc/ri/Config/inspect-c.yaml +10 -0
  896. data/doc/ri/Console/cdesc-Console.yaml +17 -0
  897. data/doc/ri/ConsoleUtils/ask-i.yaml +12 -0
  898. data/doc/ri/ConsoleUtils/cdesc-ConsoleUtils.yaml +27 -0
  899. data/doc/ri/ConsoleUtils/password-i.yaml +12 -0
  900. data/doc/ri/ConsoleUtils/print_justified-i.yaml +14 -0
  901. data/doc/ri/ConsoleUtils/screen_width-i.yaml +14 -0
  902. data/doc/ri/Continuation/cdesc-Continuation.yaml +16 -0
  903. data/doc/ri/Continuation/create-c.yaml +10 -0
  904. data/doc/ri/Coroutine/%5b%5d%3d-i.yaml +10 -0
  905. data/doc/ri/Coroutine/%5b%5d-i.yaml +10 -0
  906. data/doc/ri/Coroutine/cdesc-Coroutine.yaml +42 -0
  907. data/doc/ri/Coroutine/continue-i.yaml +10 -0
  908. data/doc/ri/Coroutine/new-c.yaml +10 -0
  909. data/doc/ri/Coroutine/resume-i.yaml +10 -0
  910. data/doc/ri/Coroutine/run-i.yaml +10 -0
  911. data/doc/ri/Coroutine/stop-i.yaml +10 -0
  912. data/doc/ri/Crypt/cdesc-Crypt.yaml +28 -0
  913. data/doc/ri/Crypt/check-c.yaml +12 -0
  914. data/doc/ri/Crypt/crypt-c.yaml +20 -0
  915. data/doc/ri/Crypt/generate_salt-c.yaml +12 -0
  916. data/doc/ri/CssFilter/accept_host-i.yaml +11 -0
  917. data/doc/ri/CssFilter/cdesc-CssFilter.yaml +98 -0
  918. data/doc/ri/CssFilter/clean_properties-i.yaml +14 -0
  919. data/doc/ri/CssFilter/clean_value-i.yaml +11 -0
  920. data/doc/ri/CssFilter/filter-i.yaml +11 -0
  921. data/doc/ri/CssFilter/new-c.yaml +11 -0
  922. data/doc/ri/CssFilter/parse-i.yaml +14 -0
  923. data/doc/ri/CssFilter/remove_blanklines-i.yaml +11 -0
  924. data/doc/ri/CssFilter/remove_comments-i.yaml +11 -0
  925. data/doc/ri/CssFilter/remove_nullvalues-i.yaml +11 -0
  926. data/doc/ri/CssFilter/remove_urls-i.yaml +12 -0
  927. data/doc/ri/CssFilter/remove_whitespace-i.yaml +11 -0
  928. data/doc/ri/CssTree/cdesc-CssTree.yaml +19 -0
  929. data/doc/ri/CssTree/new-c.yaml +10 -0
  930. data/doc/ri/CssTree/to_css-i.yaml +12 -0
  931. data/doc/ri/Date/cdesc-Date.yaml +28 -0
  932. data/doc/ri/Date/days_in_month-i.yaml +14 -0
  933. data/doc/ri/Date/days_of_month-i.yaml +10 -0
  934. data/doc/ri/Date/month_name-i.yaml +14 -0
  935. data/doc/ri/Date/stamp-i.yaml +13 -0
  936. data/doc/ri/Date/to_date-i.yaml +12 -0
  937. data/doc/ri/Date/to_s-i.yaml +12 -0
  938. data/doc/ri/Date/to_time-i.yaml +12 -0
  939. data/doc/ri/Dictionary/%3c%3c-i.yaml +10 -0
  940. data/doc/ri/Dictionary/%3d%3d-i.yaml +16 -0
  941. data/doc/ri/Dictionary/%5b%5d%3d-i.yaml +18 -0
  942. data/doc/ri/Dictionary/%5b%5d-c.yaml +10 -0
  943. data/doc/ri/Dictionary/%5b%5d-i.yaml +10 -0
  944. data/doc/ri/Dictionary/alpha-c.yaml +18 -0
  945. data/doc/ri/Dictionary/auto-c.yaml +14 -0
  946. data/doc/ri/Dictionary/cdesc-Dictionary.yaml +150 -0
  947. data/doc/ri/Dictionary/clear-i.yaml +10 -0
  948. data/doc/ri/Dictionary/delete-i.yaml +10 -0
  949. data/doc/ri/Dictionary/delete_if-i.yaml +10 -0
  950. data/doc/ri/Dictionary/dup-i.yaml +10 -0
  951. data/doc/ri/Dictionary/each-i.yaml +11 -0
  952. data/doc/ri/Dictionary/each_key-i.yaml +10 -0
  953. data/doc/ri/Dictionary/each_pair-i.yaml +12 -0
  954. data/doc/ri/Dictionary/each_value-i.yaml +10 -0
  955. data/doc/ri/Dictionary/empty%3f-i.yaml +10 -0
  956. data/doc/ri/Dictionary/fetch-i.yaml +10 -0
  957. data/doc/ri/Dictionary/first-i.yaml +11 -0
  958. data/doc/ri/Dictionary/has_key%3f-i.yaml +10 -0
  959. data/doc/ri/Dictionary/insert-i.yaml +10 -0
  960. data/doc/ri/Dictionary/inspect-i.yaml +10 -0
  961. data/doc/ri/Dictionary/invert-i.yaml +10 -0
  962. data/doc/ri/Dictionary/key%3f-i.yaml +10 -0
  963. data/doc/ri/Dictionary/keys-i.yaml +10 -0
  964. data/doc/ri/Dictionary/last-i.yaml +11 -0
  965. data/doc/ri/Dictionary/length-i.yaml +11 -0
  966. data/doc/ri/Dictionary/merge%21-i.yaml +12 -0
  967. data/doc/ri/Dictionary/merge-i.yaml +10 -0
  968. data/doc/ri/Dictionary/new-c.yaml +12 -0
  969. data/doc/ri/Dictionary/new_by-c.yaml +12 -0
  970. data/doc/ri/Dictionary/order-i.yaml +10 -0
  971. data/doc/ri/Dictionary/order_by-i.yaml +12 -0
  972. data/doc/ri/Dictionary/order_by_key-i.yaml +20 -0
  973. data/doc/ri/Dictionary/order_by_value-i.yaml +18 -0
  974. data/doc/ri/Dictionary/pop-i.yaml +10 -0
  975. data/doc/ri/Dictionary/push-i.yaml +10 -0
  976. data/doc/ri/Dictionary/reject%21-i.yaml +10 -0
  977. data/doc/ri/Dictionary/reject-i.yaml +10 -0
  978. data/doc/ri/Dictionary/reorder-i.yaml +11 -0
  979. data/doc/ri/Dictionary/replace-i.yaml +10 -0
  980. data/doc/ri/Dictionary/reverse%21-i.yaml +10 -0
  981. data/doc/ri/Dictionary/reverse-i.yaml +10 -0
  982. data/doc/ri/Dictionary/select-i.yaml +10 -0
  983. data/doc/ri/Dictionary/shift-i.yaml +10 -0
  984. data/doc/ri/Dictionary/size-i.yaml +12 -0
  985. data/doc/ri/Dictionary/store-i.yaml +10 -0
  986. data/doc/ri/Dictionary/to_a-i.yaml +10 -0
  987. data/doc/ri/Dictionary/to_h-i.yaml +10 -0
  988. data/doc/ri/Dictionary/to_hash-i.yaml +10 -0
  989. data/doc/ri/Dictionary/to_s-i.yaml +10 -0
  990. data/doc/ri/Dictionary/unshift-i.yaml +10 -0
  991. data/doc/ri/Dictionary/update-i.yaml +11 -0
  992. data/doc/ri/Dictionary/values-i.yaml +10 -0
  993. data/doc/ri/DictionaryMatcher/%3c%3c-i.yaml +12 -0
  994. data/doc/ri/DictionaryMatcher/%3d%3d%3d-i.yaml +12 -0
  995. data/doc/ri/DictionaryMatcher/%3d%7e-i.yaml +13 -0
  996. data/doc/ri/DictionaryMatcher/MatchData/cdesc-MatchData.yaml +18 -0
  997. data/doc/ri/DictionaryMatcher/MatchData/inspect-i.yaml +10 -0
  998. data/doc/ri/DictionaryMatcher/add-i.yaml +13 -0
  999. data/doc/ri/DictionaryMatcher/cdesc-DictionaryMatcher.yaml +38 -0
  1000. data/doc/ri/DictionaryMatcher/compute_failure_function-i.yaml +10 -0
  1001. data/doc/ri/DictionaryMatcher/include%3f-i.yaml +12 -0
  1002. data/doc/ri/DictionaryMatcher/inspect-i.yaml +10 -0
  1003. data/doc/ri/DictionaryMatcher/internal_match-i.yaml +10 -0
  1004. data/doc/ri/DictionaryMatcher/match-i.yaml +12 -0
  1005. data/doc/ri/DictionaryMatcher/new-c.yaml +12 -0
  1006. data/doc/ri/DictionaryMatcher/scan-i.yaml +12 -0
  1007. data/doc/ri/Dir/ascend-c.yaml +18 -0
  1008. data/doc/ri/Dir/cdesc-Dir.yaml +28 -0
  1009. data/doc/ri/Dir/descend-c.yaml +18 -0
  1010. data/doc/ri/Dir/ls_r-c.yaml +12 -0
  1011. data/doc/ri/Dir/multiglob-c.yaml +30 -0
  1012. data/doc/ri/Dir/multiglob_r-c.yaml +22 -0
  1013. data/doc/ri/Dir/parent%3f-c.yaml +14 -0
  1014. data/doc/ri/Dir/recurse-c.yaml +14 -0
  1015. data/doc/ri/Downloader/Checksum/cdesc-Checksum.yaml +17 -0
  1016. data/doc/ri/Downloader/Mirror/cdesc-Mirror.yaml +15 -0
  1017. data/doc/ri/Downloader/add_mirror-i.yaml +10 -0
  1018. data/doc/ri/Downloader/add_mirrors-i.yaml +10 -0
  1019. data/doc/ri/Downloader/cdesc-Downloader.yaml +49 -0
  1020. data/doc/ri/Downloader/compute_checksum-i.yaml +12 -0
  1021. data/doc/ri/Downloader/download-i.yaml +14 -0
  1022. data/doc/ri/Downloader/extract-i.yaml +12 -0
  1023. data/doc/ri/Downloader/fetch-i.yaml +12 -0
  1024. data/doc/ri/Downloader/interface%3d-i.yaml +10 -0
  1025. data/doc/ri/Downloader/interface-i.yaml +12 -0
  1026. data/doc/ri/Downloader/mirrors-i.yaml +10 -0
  1027. data/doc/ri/Downloader/monitored_download-i.yaml +12 -0
  1028. data/doc/ri/Downloader/new-c.yaml +10 -0
  1029. data/doc/ri/Downloader/prioritize_urls-i.yaml +12 -0
  1030. data/doc/ri/Duration/%2a-i.yaml +16 -0
  1031. data/doc/ri/Duration/%2b-i.yaml +16 -0
  1032. data/doc/ri/Duration/%2d-i.yaml +16 -0
  1033. data/doc/ri/Duration/%2f-i.yaml +16 -0
  1034. data/doc/ri/Duration/%3c%3d%3e-i.yaml +16 -0
  1035. data/doc/ri/Duration/cdesc-Duration.yaml +93 -0
  1036. data/doc/ri/Duration/days%3d-i.yaml +16 -0
  1037. data/doc/ri/Duration/each-i.yaml +20 -0
  1038. data/doc/ri/Duration/hours%3d-i.yaml +16 -0
  1039. data/doc/ri/Duration/inspect-i.yaml +16 -0
  1040. data/doc/ri/Duration/minutes%3d-i.yaml +16 -0
  1041. data/doc/ri/Duration/new-c.yaml +16 -0
  1042. data/doc/ri/Duration/seconds%3d-i.yaml +16 -0
  1043. data/doc/ri/Duration/seconds-i.yaml +16 -0
  1044. data/doc/ri/Duration/strftime-i.yaml +20 -0
  1045. data/doc/ri/Duration/to_s-i.yaml +16 -0
  1046. data/doc/ri/Duration/weeks%3d-i.yaml +16 -0
  1047. data/doc/ri/Enumerable/Elementor/cdesc-Elementor.yaml +26 -0
  1048. data/doc/ri/Enumerable/Elementor/instance_delegate-i.yaml +10 -0
  1049. data/doc/ri/Enumerable/Elementor/instance_operator-i.yaml +10 -0
  1050. data/doc/ri/Enumerable/Elementor/method_missing-i.yaml +10 -0
  1051. data/doc/ri/Enumerable/Elementor/new-c.yaml +10 -0
  1052. data/doc/ri/Enumerable/Enumerator/cdesc-Enumerator.yaml +16 -0
  1053. data/doc/ri/Enumerable/Enumerator/to_elem-i.yaml +12 -0
  1054. data/doc/ri/Enumerable/accumulate-i.yaml +18 -0
  1055. data/doc/ri/Enumerable/cdesc-Enumerable.yaml +94 -0
  1056. data/doc/ri/Enumerable/cluster_by-i.yaml +18 -0
  1057. data/doc/ri/Enumerable/collect_with_index-i.yaml +15 -0
  1058. data/doc/ri/Enumerable/commonality-i.yaml +14 -0
  1059. data/doc/ri/Enumerable/compact_collect-i.yaml +12 -0
  1060. data/doc/ri/Enumerable/compact_map-i.yaml +23 -0
  1061. data/doc/ri/Enumerable/count-i.yaml +18 -0
  1062. data/doc/ri/Enumerable/divide-i.yaml +14 -0
  1063. data/doc/ri/Enumerable/duplicates-i.yaml +12 -0
  1064. data/doc/ri/Enumerable/each_by-i.yaml +18 -0
  1065. data/doc/ri/Enumerable/elements%21-i.yaml +12 -0
  1066. data/doc/ri/Enumerable/elements-i.yaml +12 -0
  1067. data/doc/ri/Enumerable/elementwise-i.yaml +15 -0
  1068. data/doc/ri/Enumerable/entropy-i.yaml +14 -0
  1069. data/doc/ri/Enumerable/every%21-i.yaml +13 -0
  1070. data/doc/ri/Enumerable/every-i.yaml +15 -0
  1071. data/doc/ri/Enumerable/ewise-i.yaml +12 -0
  1072. data/doc/ri/Enumerable/frequency-i.yaml +14 -0
  1073. data/doc/ri/Enumerable/graph-i.yaml +12 -0
  1074. data/doc/ri/Enumerable/group_by-i.yaml +14 -0
  1075. data/doc/ri/Enumerable/ideal_entropy-i.yaml +14 -0
  1076. data/doc/ri/Enumerable/inject%21-i.yaml +20 -0
  1077. data/doc/ri/Enumerable/map_send-i.yaml +14 -0
  1078. data/doc/ri/Enumerable/map_with_index-i.yaml +12 -0
  1079. data/doc/ri/Enumerable/mash-i.yaml +19 -0
  1080. data/doc/ri/Enumerable/mode-i.yaml +14 -0
  1081. data/doc/ri/Enumerable/modulate-i.yaml +18 -0
  1082. data/doc/ri/Enumerable/none%3f-i.yaml +16 -0
  1083. data/doc/ri/Enumerable/nonuniq-i.yaml +15 -0
  1084. data/doc/ri/Enumerable/occur-i.yaml +14 -0
  1085. data/doc/ri/Enumerable/one%3f-i.yaml +16 -0
  1086. data/doc/ri/Enumerable/per-i.yaml +10 -0
  1087. data/doc/ri/Enumerable/probability-i.yaml +14 -0
  1088. data/doc/ri/Enumerable/split-i.yaml +16 -0
  1089. data/doc/ri/Enumerable/sum-i.yaml +14 -0
  1090. data/doc/ri/Enumerable/threaded_map-i.yaml +14 -0
  1091. data/doc/ri/Enumerable/threaded_map_send-i.yaml +14 -0
  1092. data/doc/ri/Enumerable/to_elem-i.yaml +12 -0
  1093. data/doc/ri/Enumerable/to_h-i.yaml +14 -0
  1094. data/doc/ri/Enumerable/uniq_by-i.yaml +18 -0
  1095. data/doc/ri/EnumerablePass/cdesc-EnumerablePass.yaml +28 -0
  1096. data/doc/ri/EnumerablePass/detect-i.yaml +12 -0
  1097. data/doc/ri/EnumerablePass/find-i.yaml +15 -0
  1098. data/doc/ri/EnumerablePass/wrap_enumerable_method-c.yaml +10 -0
  1099. data/doc/ri/Equatable/%3d%3d-i.yaml +10 -0
  1100. data/doc/ri/Equatable/cdesc-Equatable.yaml +34 -0
  1101. data/doc/ri/Equatable/eql%3f-i.yaml +10 -0
  1102. data/doc/ri/Equatable/hash-i.yaml +10 -0
  1103. data/doc/ri/Equatable/identify-c.yaml +10 -0
  1104. data/doc/ri/EventHook/call-i.yaml +10 -0
  1105. data/doc/ri/EventHook/cdesc-EventHook.yaml +31 -0
  1106. data/doc/ri/EventHook/new-c.yaml +10 -0
  1107. data/doc/ri/Exception/cdesc-Exception.yaml +17 -0
  1108. data/doc/ri/Exception/detail-i.yaml +18 -0
  1109. data/doc/ri/Exception/suppress-c.yaml +14 -0
  1110. data/doc/ri/Expirable/cdesc-Expirable.yaml +30 -0
  1111. data/doc/ri/Expirable/expired%3f-i.yaml +12 -0
  1112. data/doc/ri/Expirable/expires_after-i.yaml +12 -0
  1113. data/doc/ri/Expirable/expires_spread-i.yaml +12 -0
  1114. data/doc/ri/Expirable/touch%21-i.yaml +12 -0
  1115. data/doc/ri/FalseClass/cdesc-FalseClass.yaml +15 -0
  1116. data/doc/ri/File/append-c.yaml +14 -0
  1117. data/doc/ri/File/cdesc-File.yaml +38 -0
  1118. data/doc/ri/File/create-c.yaml +14 -0
  1119. data/doc/ri/File/null-c.yaml +14 -0
  1120. data/doc/ri/File/read_binary-c.yaml +14 -0
  1121. data/doc/ri/File/read_list-c.yaml +14 -0
  1122. data/doc/ri/File/rewrite%21-c.yaml +14 -0
  1123. data/doc/ri/File/rewrite-c.yaml +24 -0
  1124. data/doc/ri/File/rootname-c.yaml +14 -0
  1125. data/doc/ri/File/sanitize-c.yaml +14 -0
  1126. data/doc/ri/File/write-c.yaml +16 -0
  1127. data/doc/ri/File/writelines-c.yaml +18 -0
  1128. data/doc/ri/File/yaml%3f-c.yaml +14 -0
  1129. data/doc/ri/FileList/%2a-i.yaml +12 -0
  1130. data/doc/ri/FileList/%3d%3d-i.yaml +12 -0
  1131. data/doc/ri/FileList/%5b%5d-c.yaml +14 -0
  1132. data/doc/ri/FileList/add-i.yaml +12 -0
  1133. data/doc/ri/FileList/add_matching-i.yaml +12 -0
  1134. data/doc/ri/FileList/calculate_exclude_regexp-i.yaml +10 -0
  1135. data/doc/ri/FileList/cdesc-FileList.yaml +111 -0
  1136. data/doc/ri/FileList/clear_exclude-i.yaml +12 -0
  1137. data/doc/ri/FileList/clear_ignore_patterns-c.yaml +12 -0
  1138. data/doc/ri/FileList/clone-i.yaml +13 -0
  1139. data/doc/ri/FileList/dup-i.yaml +12 -0
  1140. data/doc/ri/FileList/egrep-i.yaml +12 -0
  1141. data/doc/ri/FileList/exclude%3f-i.yaml +12 -0
  1142. data/doc/ri/FileList/exclude-i.yaml +26 -0
  1143. data/doc/ri/FileList/ext-i.yaml +18 -0
  1144. data/doc/ri/FileList/gsub%21-i.yaml +12 -0
  1145. data/doc/ri/FileList/gsub-i.yaml +16 -0
  1146. data/doc/ri/FileList/import-i.yaml +10 -0
  1147. data/doc/ri/FileList/include-i.yaml +17 -0
  1148. data/doc/ri/FileList/new-c.yaml +16 -0
  1149. data/doc/ri/FileList/resolve-i.yaml +12 -0
  1150. data/doc/ri/FileList/resolve_add-i.yaml +10 -0
  1151. data/doc/ri/FileList/resolve_exclude-i.yaml +10 -0
  1152. data/doc/ri/FileList/select_default_ignore_patterns-c.yaml +35 -0
  1153. data/doc/ri/FileList/sub%21-i.yaml +12 -0
  1154. data/doc/ri/FileList/sub-i.yaml +16 -0
  1155. data/doc/ri/FileList/to_a-i.yaml +12 -0
  1156. data/doc/ri/FileList/to_ary-i.yaml +12 -0
  1157. data/doc/ri/FileList/to_s-i.yaml +12 -0
  1158. data/doc/ri/FileShell/%5b%5d-i.yaml +12 -0
  1159. data/doc/ri/FileShell/cd-i.yaml +15 -0
  1160. data/doc/ri/FileShell/cdesc-FileShell.yaml +83 -0
  1161. data/doc/ri/FileShell/chdir-i.yaml +12 -0
  1162. data/doc/ri/FileShell/chmod-i.yaml +12 -0
  1163. data/doc/ri/FileShell/chmod_R-i.yaml +12 -0
  1164. data/doc/ri/FileShell/chown-i.yaml +12 -0
  1165. data/doc/ri/FileShell/chown_R-i.yaml +12 -0
  1166. data/doc/ri/FileShell/cp-i.yaml +12 -0
  1167. data/doc/ri/FileShell/cp_r-i.yaml +12 -0
  1168. data/doc/ri/FileShell/dryrun%3f-i.yaml +10 -0
  1169. data/doc/ri/FileShell/fu-i.yaml +11 -0
  1170. data/doc/ri/FileShell/install-i.yaml +12 -0
  1171. data/doc/ri/FileShell/ln-i.yaml +12 -0
  1172. data/doc/ri/FileShell/ln_s-i.yaml +12 -0
  1173. data/doc/ri/FileShell/ln_sf-i.yaml +12 -0
  1174. data/doc/ri/FileShell/ls-i.yaml +12 -0
  1175. data/doc/ri/FileShell/mkdir-i.yaml +12 -0
  1176. data/doc/ri/FileShell/mkdir_p-i.yaml +12 -0
  1177. data/doc/ri/FileShell/move-i.yaml +12 -0
  1178. data/doc/ri/FileShell/mv-i.yaml +13 -0
  1179. data/doc/ri/FileShell/new-c.yaml +10 -0
  1180. data/doc/ri/FileShell/pwd-i.yaml +12 -0
  1181. data/doc/ri/FileShell/quiet%3f-i.yaml +10 -0
  1182. data/doc/ri/FileShell/rm-i.yaml +12 -0
  1183. data/doc/ri/FileShell/rm_r-i.yaml +12 -0
  1184. data/doc/ri/FileShell/rm_rf-i.yaml +12 -0
  1185. data/doc/ri/FileShell/rmdir-i.yaml +12 -0
  1186. data/doc/ri/FileShell/root%3f-i.yaml +12 -0
  1187. data/doc/ri/FileShell/touch-i.yaml +12 -0
  1188. data/doc/ri/FileShell/verbose%3f-i.yaml +10 -0
  1189. data/doc/ri/FileTest/cdesc-FileTest.yaml +16 -0
  1190. data/doc/ri/FileTest/root%3f-i.yaml +14 -0
  1191. data/doc/ri/FileUtils/cdesc-FileUtils.yaml +39 -0
  1192. data/doc/ri/FileUtils/head-i.yaml +14 -0
  1193. data/doc/ri/FileUtils/safe_ln-i.yaml +14 -0
  1194. data/doc/ri/FileUtils/slice-i.yaml +16 -0
  1195. data/doc/ri/FileUtils/tail-i.yaml +16 -0
  1196. data/doc/ri/FileUtils/wc-i.yaml +18 -0
  1197. data/doc/ri/FileUtils/whereis-i.yaml +10 -0
  1198. data/doc/ri/FileUtils/which-i.yaml +16 -0
  1199. data/doc/ri/Fileable/DSL/cdesc-DSL.yaml +31 -0
  1200. data/doc/ri/Fileable/DSL/file-i.yaml +12 -0
  1201. data/doc/ri/Fileable/DSL/filename-i.yaml +12 -0
  1202. data/doc/ri/Fileable/DSL/included-i.yaml +12 -0
  1203. data/doc/ri/Fileable/DSL/load-i.yaml +12 -0
  1204. data/doc/ri/Fileable/DSL/load_cache-i.yaml +12 -0
  1205. data/doc/ri/Fileable/DSL/locate-i.yaml +12 -0
  1206. data/doc/ri/Fileable/DSL/lookup-i.yaml +12 -0
  1207. data/doc/ri/Fileable/DSL/open-i.yaml +12 -0
  1208. data/doc/ri/Fileable/cdesc-Fileable.yaml +30 -0
  1209. data/doc/ri/Fileable/included-c.yaml +12 -0
  1210. data/doc/ri/Fileable/new-c.yaml +12 -0
  1211. data/doc/ri/Fileable/read-i.yaml +12 -0
  1212. data/doc/ri/Float/cdesc-Float.yaml +17 -0
  1213. data/doc/ri/Friend/cdesc-Friend.yaml +27 -0
  1214. data/doc/ri/Friend/new-c.yaml +10 -0
  1215. data/doc/ri/Functor/cdesc-Functor.yaml +23 -0
  1216. data/doc/ri/Functor/method_missing-i.yaml +12 -0
  1217. data/doc/ri/Functor/new-c.yaml +10 -0
  1218. data/doc/ri/Functor/to_proc-i.yaml +10 -0
  1219. data/doc/ri/GetoptLong/DSL/cdesc-DSL.yaml +30 -0
  1220. data/doc/ri/GetoptLong/DSL/flag-i.yaml +10 -0
  1221. data/doc/ri/GetoptLong/DSL/new-c.yaml +10 -0
  1222. data/doc/ri/GetoptLong/DSL/optional-i.yaml +11 -0
  1223. data/doc/ri/GetoptLong/DSL/opts-i.yaml +12 -0
  1224. data/doc/ri/GetoptLong/DSL/reqs-i.yaml +12 -0
  1225. data/doc/ri/GetoptLong/DSL/required-i.yaml +11 -0
  1226. data/doc/ri/GetoptLong/cdesc-GetoptLong.yaml +16 -0
  1227. data/doc/ri/GetoptLong/new-c.yaml +10 -0
  1228. data/doc/ri/Hash/cdesc-Hash.yaml +15 -0
  1229. data/doc/ri/Hash2Xml/cdesc-Hash2Xml.yaml +21 -0
  1230. data/doc/ri/Hash2Xml/convert-i.yaml +10 -0
  1231. data/doc/ri/Hash2Xml/convert_body-i.yaml +11 -0
  1232. data/doc/ri/Hash2Xml/convert_tag-i.yaml +11 -0
  1233. data/doc/ri/HtmlFilter/balance_html-i.yaml +11 -0
  1234. data/doc/ri/HtmlFilter/cdesc-HtmlFilter.yaml +149 -0
  1235. data/doc/ri/HtmlFilter/check_entity-i.yaml +11 -0
  1236. data/doc/ri/HtmlFilter/check_tags-i.yaml +11 -0
  1237. data/doc/ri/HtmlFilter/decode_dec_entity-i.yaml +11 -0
  1238. data/doc/ri/HtmlFilter/decode_entities-i.yaml +12 -0
  1239. data/doc/ri/HtmlFilter/decode_hex_entity-i.yaml +11 -0
  1240. data/doc/ri/HtmlFilter/decode_num_entity-i.yaml +11 -0
  1241. data/doc/ri/HtmlFilter/escape_comments-i.yaml +11 -0
  1242. data/doc/ri/HtmlFilter/escape_special_chars-i.yaml +12 -0
  1243. data/doc/ri/HtmlFilter/filter-i.yaml +12 -0
  1244. data/doc/ri/HtmlFilter/fix_case-i.yaml +11 -0
  1245. data/doc/ri/HtmlFilter/fix_case_inner-i.yaml +11 -0
  1246. data/doc/ri/HtmlFilter/is_valid_entity-i.yaml +11 -0
  1247. data/doc/ri/HtmlFilter/new-c.yaml +12 -0
  1248. data/doc/ri/HtmlFilter/process_param_protocol-i.yaml +11 -0
  1249. data/doc/ri/HtmlFilter/process_remove_blanks-i.yaml +11 -0
  1250. data/doc/ri/HtmlFilter/process_tag-i.yaml +11 -0
  1251. data/doc/ri/HtmlFilter/strip_single-i.yaml +11 -0
  1252. data/doc/ri/HtmlFilter/validate_entities-i.yaml +11 -0
  1253. data/doc/ri/IORedirect/cdesc-IORedirect.yaml +28 -0
  1254. data/doc/ri/IORedirect/new-c.yaml +12 -0
  1255. data/doc/ri/IORedirect/redirect-c.yaml +12 -0
  1256. data/doc/ri/IORedirect/start-i.yaml +12 -0
  1257. data/doc/ri/IORedirect/stop-i.yaml +12 -0
  1258. data/doc/ri/Indexable/body-i.yaml +14 -0
  1259. data/doc/ri/Indexable/cdesc-Indexable.yaml +55 -0
  1260. data/doc/ri/Indexable/ends-i.yaml +16 -0
  1261. data/doc/ri/Indexable/first%21-i.yaml +14 -0
  1262. data/doc/ri/Indexable/first%3d-i.yaml +14 -0
  1263. data/doc/ri/Indexable/first-i.yaml +14 -0
  1264. data/doc/ri/Indexable/foot-i.yaml +14 -0
  1265. data/doc/ri/Indexable/head-i.yaml +14 -0
  1266. data/doc/ri/Indexable/index_of-i.yaml +16 -0
  1267. data/doc/ri/Indexable/last%21-i.yaml +14 -0
  1268. data/doc/ri/Indexable/last%3d-i.yaml +14 -0
  1269. data/doc/ri/Indexable/last-i.yaml +14 -0
  1270. data/doc/ri/Indexable/mid-i.yaml +16 -0
  1271. data/doc/ri/Indexable/middle-i.yaml +16 -0
  1272. data/doc/ri/Indexable/pos-i.yaml +14 -0
  1273. data/doc/ri/Indexable/range-i.yaml +14 -0
  1274. data/doc/ri/Indexable/tail-i.yaml +14 -0
  1275. data/doc/ri/Indexable/thru-i.yaml +14 -0
  1276. data/doc/ri/InfinityClass/%2b%40-i.yaml +12 -0
  1277. data/doc/ri/InfinityClass/%2d%40-i.yaml +12 -0
  1278. data/doc/ri/InfinityClass/%3c%3d%3e-i.yaml +12 -0
  1279. data/doc/ri/InfinityClass/%3d%3d-i.yaml +12 -0
  1280. data/doc/ri/InfinityClass/Numeric/cdesc-Numeric.yaml +27 -0
  1281. data/doc/ri/InfinityClass/Numeric/finite%3f-i.yaml +10 -0
  1282. data/doc/ri/InfinityClass/Numeric/inf%3f-i.yaml +12 -0
  1283. data/doc/ri/InfinityClass/Numeric/infinite%3f-i.yaml +11 -0
  1284. data/doc/ri/InfinityClass/Numeric/nan%3f-i.yaml +10 -0
  1285. data/doc/ri/InfinityClass/Numeric/neginf%3f-i.yaml +10 -0
  1286. data/doc/ri/InfinityClass/Numeric/posinf%3f-i.yaml +10 -0
  1287. data/doc/ri/InfinityClass/cdesc-InfinityClass.yaml +75 -0
  1288. data/doc/ri/InfinityClass/coerce-i.yaml +12 -0
  1289. data/doc/ri/InfinityClass/new-c.yaml +10 -0
  1290. data/doc/ri/InfinityClass/times-i.yaml +12 -0
  1291. data/doc/ri/InfinityClass/to_f-i.yaml +12 -0
  1292. data/doc/ri/InfinityClass/to_s-i.yaml +11 -0
  1293. data/doc/ri/Ini/%5b%5d%3d-i.yaml +12 -0
  1294. data/doc/ri/Ini/%5b%5d-i.yaml +12 -0
  1295. data/doc/ri/Ini/cdesc-Ini.yaml +51 -0
  1296. data/doc/ri/Ini/new-c.yaml +16 -0
  1297. data/doc/ri/Ini/read_comment_from_file-c.yaml +16 -0
  1298. data/doc/ri/Ini/read_from_file-c.yaml +16 -0
  1299. data/doc/ri/Ini/restore-i.yaml +12 -0
  1300. data/doc/ri/Ini/to_s-c.yaml +16 -0
  1301. data/doc/ri/Ini/update-i.yaml +12 -0
  1302. data/doc/ri/Ini/write_to_file-c.yaml +16 -0
  1303. data/doc/ri/InstanceVariables/%3c%3c-i.yaml +10 -0
  1304. data/doc/ri/InstanceVariables/%5b%5d%3d-i.yaml +10 -0
  1305. data/doc/ri/InstanceVariables/%5b%5d-i.yaml +10 -0
  1306. data/doc/ri/InstanceVariables/atize-i.yaml +10 -0
  1307. data/doc/ri/InstanceVariables/cdesc-InstanceVariables.yaml +38 -0
  1308. data/doc/ri/InstanceVariables/each-i.yaml +10 -0
  1309. data/doc/ri/InstanceVariables/instance_delegate-i.yaml +10 -0
  1310. data/doc/ri/InstanceVariables/keys-i.yaml +10 -0
  1311. data/doc/ri/InstanceVariables/names-i.yaml +10 -0
  1312. data/doc/ri/InstanceVariables/new-c.yaml +10 -0
  1313. data/doc/ri/InstanceVariables/to_hash-i.yaml +10 -0
  1314. data/doc/ri/InstanceVariables/update-i.yaml +10 -0
  1315. data/doc/ri/InstanceVariables/values-i.yaml +10 -0
  1316. data/doc/ri/Instantiable/append_features-c.yaml +10 -0
  1317. data/doc/ri/Instantiable/cdesc-Instantiable.yaml +24 -0
  1318. data/doc/ri/Instantiable/new-i.yaml +12 -0
  1319. data/doc/ri/Instantise/append_features-c.yaml +10 -0
  1320. data/doc/ri/Instantise/cdesc-Instantise.yaml +29 -0
  1321. data/doc/ri/Instantise/singleton_method_added-i.yaml +10 -0
  1322. data/doc/ri/Integer/cdesc-Integer.yaml +15 -0
  1323. data/doc/ri/Interval/%2b%40-i.yaml +12 -0
  1324. data/doc/ri/Interval/%2d%40-i.yaml +10 -0
  1325. data/doc/ri/Interval/%3d%3d%3d-i.yaml +12 -0
  1326. data/doc/ri/Interval/%5b%5d-c.yaml +10 -0
  1327. data/doc/ri/Interval/%7e-i.yaml +10 -0
  1328. data/doc/ri/Interval/begin-i.yaml +12 -0
  1329. data/doc/ri/Interval/cdesc-Interval.yaml +97 -0
  1330. data/doc/ri/Interval/closed-i.yaml +12 -0
  1331. data/doc/ri/Interval/degenerate%3f-i.yaml +12 -0
  1332. data/doc/ri/Interval/direction-i.yaml +14 -0
  1333. data/doc/ri/Interval/distance-i.yaml +15 -0
  1334. data/doc/ri/Interval/each-i.yaml +15 -0
  1335. data/doc/ri/Interval/end-i.yaml +12 -0
  1336. data/doc/ri/Interval/eql%3f-i.yaml +12 -0
  1337. data/doc/ri/Interval/exclude_begin%3f-i.yaml +12 -0
  1338. data/doc/ri/Interval/exclude_end%3f-i.yaml +12 -0
  1339. data/doc/ri/Interval/exclude_first%3f-i.yaml +12 -0
  1340. data/doc/ri/Interval/exclude_last%3f-i.yaml +11 -0
  1341. data/doc/ri/Interval/first-i.yaml +13 -0
  1342. data/doc/ri/Interval/first_closed-i.yaml +12 -0
  1343. data/doc/ri/Interval/first_opened-i.yaml +10 -0
  1344. data/doc/ri/Interval/half_closed-i.yaml +12 -0
  1345. data/doc/ri/Interval/include%3f-i.yaml +15 -0
  1346. data/doc/ri/Interval/last-i.yaml +11 -0
  1347. data/doc/ri/Interval/last_closed-i.yaml +10 -0
  1348. data/doc/ri/Interval/last_opened-i.yaml +10 -0
  1349. data/doc/ri/Interval/length-i.yaml +12 -0
  1350. data/doc/ri/Interval/max-i.yaml +12 -0
  1351. data/doc/ri/Interval/member%3f-i.yaml +12 -0
  1352. data/doc/ri/Interval/min-i.yaml +12 -0
  1353. data/doc/ri/Interval/new-c.yaml +10 -0
  1354. data/doc/ri/Interval/null%3f-i.yaml +12 -0
  1355. data/doc/ri/Interval/opened-i.yaml +12 -0
  1356. data/doc/ri/Interval/reversed-i.yaml +14 -0
  1357. data/doc/ri/Interval/sentinels-i.yaml +14 -0
  1358. data/doc/ri/Interval/size-i.yaml +12 -0
  1359. data/doc/ri/Interval/step-i.yaml +12 -0
  1360. data/doc/ri/It/cdesc-It.yaml +39 -0
  1361. data/doc/ri/It/first%3f-i.yaml +10 -0
  1362. data/doc/ri/It/last%3f-i.yaml +10 -0
  1363. data/doc/ri/It/new-c.yaml +10 -0
  1364. data/doc/ri/It/next_iteration-i.yaml +10 -0
  1365. data/doc/ri/Kernel/cdesc-Kernel.yaml +16 -0
  1366. data/doc/ri/LRUCache/%5b%5d%3d-i.yaml +12 -0
  1367. data/doc/ri/LRUCache/%5b%5d-i.yaml +12 -0
  1368. data/doc/ri/LRUCache/Item/cdesc-Item.yaml +28 -0
  1369. data/doc/ri/LRUCache/Sentinel/cdesc-Sentinel.yaml +18 -0
  1370. data/doc/ri/LRUCache/cdesc-LRUCache.yaml +65 -0
  1371. data/doc/ri/LRUCache/clear-i.yaml +12 -0
  1372. data/doc/ri/LRUCache/delete-i.yaml +12 -0
  1373. data/doc/ri/LRUCache/first-i.yaml +12 -0
  1374. data/doc/ri/LRUCache/last-i.yaml +13 -0
  1375. data/doc/ri/LRUCache/lru-i.yaml +12 -0
  1376. data/doc/ri/LRUCache/lru_append-i.yaml +12 -0
  1377. data/doc/ri/LRUCache/lru_clear-i.yaml +12 -0
  1378. data/doc/ri/LRUCache/lru_delete-i.yaml +12 -0
  1379. data/doc/ri/LRUCache/lru_insert-i.yaml +12 -0
  1380. data/doc/ri/LRUCache/lru_join-i.yaml +12 -0
  1381. data/doc/ri/LRUCache/lru_touch-i.yaml +12 -0
  1382. data/doc/ri/LRUCache/new-c.yaml +10 -0
  1383. data/doc/ri/Lazy/DivergenceError/cdesc-DivergenceError.yaml +17 -0
  1384. data/doc/ri/Lazy/Future/cdesc-Future.yaml +20 -0
  1385. data/doc/ri/Lazy/LazyException/cdesc-LazyException.yaml +19 -0
  1386. data/doc/ri/Lazy/Promise/cdesc-Promise.yaml +25 -0
  1387. data/doc/ri/Lazy/PromiseSafe/cdesc-PromiseSafe.yaml +20 -0
  1388. data/doc/ri/Lazy/cdesc-Lazy.yaml +20 -0
  1389. data/doc/ri/LinkedList/%5b%5d%3d-i.yaml +10 -0
  1390. data/doc/ri/LinkedList/%5b%5d-i.yaml +10 -0
  1391. data/doc/ri/LinkedList/Node/cdesc-Node.yaml +33 -0
  1392. data/doc/ri/LinkedList/Node/new-c.yaml +10 -0
  1393. data/doc/ri/LinkedList/cdesc-LinkedList.yaml +57 -0
  1394. data/doc/ri/LinkedList/delete-i.yaml +10 -0
  1395. data/doc/ri/LinkedList/each-i.yaml +10 -0
  1396. data/doc/ri/LinkedList/empty%3f-i.yaml +10 -0
  1397. data/doc/ri/LinkedList/first-i.yaml +10 -0
  1398. data/doc/ri/LinkedList/last-i.yaml +10 -0
  1399. data/doc/ri/LinkedList/length-i.yaml +10 -0
  1400. data/doc/ri/LinkedList/new-c.yaml +10 -0
  1401. data/doc/ri/LinkedList/node_delete-i.yaml +10 -0
  1402. data/doc/ri/LinkedList/node_join-i.yaml +10 -0
  1403. data/doc/ri/LinkedList/node_purge-i.yaml +10 -0
  1404. data/doc/ri/LinkedList/pop-i.yaml +10 -0
  1405. data/doc/ri/LinkedList/push-i.yaml +10 -0
  1406. data/doc/ri/LinkedList/queue-i.yaml +10 -0
  1407. data/doc/ri/LinkedList/shift-i.yaml +10 -0
  1408. data/doc/ri/LinkedList/to_a-i.yaml +10 -0
  1409. data/doc/ri/LinkedList/unshift-i.yaml +10 -0
  1410. data/doc/ri/Logger/Ansicolor/cdesc-Ansicolor.yaml +36 -0
  1411. data/doc/ri/Logger/Ansicolor/debug-i.yaml +10 -0
  1412. data/doc/ri/Logger/Ansicolor/debug_with_color-i.yaml +10 -0
  1413. data/doc/ri/Logger/Ansicolor/error-i.yaml +10 -0
  1414. data/doc/ri/Logger/Ansicolor/error_with_color-i.yaml +10 -0
  1415. data/doc/ri/Logger/Ansicolor/fatal-i.yaml +10 -0
  1416. data/doc/ri/Logger/Ansicolor/fatal_with_color-i.yaml +10 -0
  1417. data/doc/ri/Logger/Ansicolor/info-i.yaml +10 -0
  1418. data/doc/ri/Logger/Ansicolor/info_with_color-i.yaml +10 -0
  1419. data/doc/ri/Logger/Ansicolor/warn-i.yaml +10 -0
  1420. data/doc/ri/Logger/Ansicolor/warn_with_color-i.yaml +10 -0
  1421. data/doc/ri/Logger/LogDevice/ansicolor%3f-i.yaml +10 -0
  1422. data/doc/ri/Logger/LogDevice/cdesc-LogDevice.yaml +19 -0
  1423. data/doc/ri/Logger/ansicolor%3d-i.yaml +10 -0
  1424. data/doc/ri/Logger/cdesc-Logger.yaml +44 -0
  1425. data/doc/ri/Logger/format_procedure-i.yaml +10 -0
  1426. data/doc/ri/Logger/setup_format-i.yaml +21 -0
  1427. data/doc/ri/MatchData/cdesc-MatchData.yaml +20 -0
  1428. data/doc/ri/MatchData/match-i.yaml +14 -0
  1429. data/doc/ri/MatchData/matchset-i.yaml +14 -0
  1430. data/doc/ri/MatchData/matchtree-i.yaml +14 -0
  1431. data/doc/ri/Method/cdesc-Method.yaml +15 -0
  1432. data/doc/ri/MissingArgument/cdesc-MissingArgument.yaml +17 -0
  1433. data/doc/ri/Module/%2a-i.yaml +14 -0
  1434. data/doc/ri/Module/%2b-i.yaml +22 -0
  1435. data/doc/ri/Module/%2d-i.yaml +14 -0
  1436. data/doc/ri/Module/CloneExtensions/cdesc-CloneExtensions.yaml +20 -0
  1437. data/doc/ri/Module/CloneExtensions/clone_removing-i.yaml +14 -0
  1438. data/doc/ri/Module/CloneExtensions/clone_renaming-i.yaml +14 -0
  1439. data/doc/ri/Module/CloneExtensions/clone_using-i.yaml +14 -0
  1440. data/doc/ri/Module/Comparable-i.yaml +18 -0
  1441. data/doc/ri/Module/Equatable-i.yaml +18 -0
  1442. data/doc/ri/Module/abstract-i.yaml +14 -0
  1443. data/doc/ri/Module/alias_accessor%21-i.yaml +17 -0
  1444. data/doc/ri/Module/alias_accessor-i.yaml +14 -0
  1445. data/doc/ri/Module/alias_method_chain-i.yaml +32 -0
  1446. data/doc/ri/Module/alias_module_function-i.yaml +14 -0
  1447. data/doc/ri/Module/alias_reader%21-i.yaml +17 -0
  1448. data/doc/ri/Module/alias_reader%3f-i.yaml +12 -0
  1449. data/doc/ri/Module/alias_reader-i.yaml +12 -0
  1450. data/doc/ri/Module/alias_setter-i.yaml +14 -0
  1451. data/doc/ri/Module/alias_switcher-i.yaml +12 -0
  1452. data/doc/ri/Module/alias_tester-i.yaml +12 -0
  1453. data/doc/ri/Module/alias_toggler-i.yaml +12 -0
  1454. data/doc/ri/Module/alias_validator-i.yaml +12 -0
  1455. data/doc/ri/Module/alias_writer%21-i.yaml +14 -0
  1456. data/doc/ri/Module/alias_writer-i.yaml +12 -0
  1457. data/doc/ri/Module/all_instance_methods-i.yaml +18 -0
  1458. data/doc/ri/Module/ancestor%3f-i.yaml +14 -0
  1459. data/doc/ri/Module/ann%21-i.yaml +12 -0
  1460. data/doc/ri/Module/ann-i.yaml +12 -0
  1461. data/doc/ri/Module/annotations-i.yaml +10 -0
  1462. data/doc/ri/Module/append_features-c.yaml +10 -0
  1463. data/doc/ri/Module/append_features-i.yaml +10 -0
  1464. data/doc/ri/Module/append_features_without_class_extension-i.yaml +12 -0
  1465. data/doc/ri/Module/attr-i.yaml +10 -0
  1466. data/doc/ri/Module/attr_accessor%21-i.yaml +21 -0
  1467. data/doc/ri/Module/attr_reader%21-i.yaml +21 -0
  1468. data/doc/ri/Module/attr_reader%3f-i.yaml +12 -0
  1469. data/doc/ri/Module/attr_setter-i.yaml +18 -0
  1470. data/doc/ri/Module/attr_switcher-i.yaml +12 -0
  1471. data/doc/ri/Module/attr_tester-i.yaml +12 -0
  1472. data/doc/ri/Module/attr_toggler-i.yaml +12 -0
  1473. data/doc/ri/Module/attr_validator-i.yaml +14 -0
  1474. data/doc/ri/Module/attr_writer%21-i.yaml +18 -0
  1475. data/doc/ri/Module/basename-i.yaml +18 -0
  1476. data/doc/ri/Module/cdesc-Module.yaml +191 -0
  1477. data/doc/ri/Module/class_def-i.yaml +14 -0
  1478. data/doc/ri/Module/class_extension-i.yaml +17 -0
  1479. data/doc/ri/Module/class_inherit-i.yaml +12 -0
  1480. data/doc/ri/Module/class_load-i.yaml +12 -0
  1481. data/doc/ri/Module/class_methods-i.yaml +11 -0
  1482. data/doc/ri/Module/class_require-i.yaml +12 -0
  1483. data/doc/ri/Module/classified_attributes-i.yaml +14 -0
  1484. data/doc/ri/Module/conflict%3f-i.yaml +14 -0
  1485. data/doc/ri/Module/define_dependency-i.yaml +11 -0
  1486. data/doc/ri/Module/depend-i.yaml +11 -0
  1487. data/doc/ri/Module/dependencies-i.yaml +12 -0
  1488. data/doc/ri/Module/heritage-i.yaml +10 -0
  1489. data/doc/ri/Module/include_as-i.yaml +14 -0
  1490. data/doc/ri/Module/include_function_module-i.yaml +14 -0
  1491. data/doc/ri/Module/instance_method%21-i.yaml +16 -0
  1492. data/doc/ri/Module/instance_method_defined%3f-i.yaml +14 -0
  1493. data/doc/ri/Module/integrate-i.yaml +20 -0
  1494. data/doc/ri/Module/is%3f-i.yaml +14 -0
  1495. data/doc/ri/Module/is-i.yaml +12 -0
  1496. data/doc/ri/Module/memoize-i.yaml +14 -0
  1497. data/doc/ri/Module/method_overloads-i.yaml +10 -0
  1498. data/doc/ri/Module/method_space-i.yaml +14 -0
  1499. data/doc/ri/Module/mixin_parameters-i.yaml +17 -0
  1500. data/doc/ri/Module/mixin_params-i.yaml +12 -0
  1501. data/doc/ri/Module/modspace-i.yaml +18 -0
  1502. data/doc/ri/Module/module_load-i.yaml +15 -0
  1503. data/doc/ri/Module/module_method_defined%3f-i.yaml +12 -0
  1504. data/doc/ri/Module/module_require-i.yaml +15 -0
  1505. data/doc/ri/Module/nesting-i.yaml +14 -0
  1506. data/doc/ri/Module/overload-i.yaml +14 -0
  1507. data/doc/ri/Module/pathize-i.yaml +16 -0
  1508. data/doc/ri/Module/prepend-i.yaml +14 -0
  1509. data/doc/ri/Module/private_conflict%3f-i.yaml +12 -0
  1510. data/doc/ri/Module/protected_conflict%3f-i.yaml +12 -0
  1511. data/doc/ri/Module/public_conflict%3f-i.yaml +12 -0
  1512. data/doc/ri/Module/redef-i.yaml +12 -0
  1513. data/doc/ri/Module/redefine_method-i.yaml +17 -0
  1514. data/doc/ri/Module/redirect-i.yaml +12 -0
  1515. data/doc/ri/Module/redirect_method-i.yaml +19 -0
  1516. data/doc/ri/Module/rename-i.yaml +12 -0
  1517. data/doc/ri/Module/rename_method-i.yaml +15 -0
  1518. data/doc/ri/Module/revisal-i.yaml +12 -0
  1519. data/doc/ri/Module/revise-i.yaml +15 -0
  1520. data/doc/ri/Module/setting-i.yaml +21 -0
  1521. data/doc/ri/Module/singleton_method_defined%3f-i.yaml +15 -0
  1522. data/doc/ri/Module/spacename-i.yaml +20 -0
  1523. data/doc/ri/Module/wrap-i.yaml +12 -0
  1524. data/doc/ri/Module/wrap_method-i.yaml +19 -0
  1525. data/doc/ri/Multiton/Inclusive/cdesc-Inclusive.yaml +18 -0
  1526. data/doc/ri/Multiton/Inclusive/included-i.yaml +10 -0
  1527. data/doc/ri/Multiton/InstanceMutex/cdesc-InstanceMutex.yaml +17 -0
  1528. data/doc/ri/Multiton/MetaMethods/_load-i.yaml +10 -0
  1529. data/doc/ri/Multiton/MetaMethods/cdesc-MetaMethods.yaml +34 -0
  1530. data/doc/ri/Multiton/MetaMethods/initialized%3f-i.yaml +10 -0
  1531. data/doc/ri/Multiton/MetaMethods/instance-i.yaml +11 -0
  1532. data/doc/ri/Multiton/MetaMethods/multiton_id-i.yaml +12 -0
  1533. data/doc/ri/Multiton/MetaMethods/multiton_instance-i.yaml +10 -0
  1534. data/doc/ri/Multiton/MetaMethods/multiton_mutex-i.yaml +10 -0
  1535. data/doc/ri/Multiton/MetaMethods/new-i.yaml +12 -0
  1536. data/doc/ri/Multiton/MetaMethods/reinitialize-i.yaml +10 -0
  1537. data/doc/ri/Multiton/MetaMethods/singleton_method_added-i.yaml +10 -0
  1538. data/doc/ri/Multiton/_dump-i.yaml +12 -0
  1539. data/doc/ri/Multiton/cdesc-Multiton.yaml +40 -0
  1540. data/doc/ri/Multiton/clone-i.yaml +12 -0
  1541. data/doc/ri/Multiton/dup-i.yaml +10 -0
  1542. data/doc/ri/NackClass/cdesc-NackClass.yaml +20 -0
  1543. data/doc/ri/Net/SMTP/cdesc-SMTP.yaml +25 -0
  1544. data/doc/ri/Net/SMTP/do_helo-i.yaml +10 -0
  1545. data/doc/ri/Net/SMTP/do_tls_start-i.yaml +10 -0
  1546. data/doc/ri/Net/SMTP/quit-i.yaml +10 -0
  1547. data/doc/ri/Net/SMTP/start-c.yaml +10 -0
  1548. data/doc/ri/Net/SMTP/start-i.yaml +10 -0
  1549. data/doc/ri/Net/SMTP/starttls-i.yaml +10 -0
  1550. data/doc/ri/Net/cdesc-Net.yaml +15 -0
  1551. data/doc/ri/NilClass/cdesc-NilClass.yaml +17 -0
  1552. data/doc/ri/NullClass/%5b%5d-i.yaml +10 -0
  1553. data/doc/ri/NullClass/cdesc-NullClass.yaml +32 -0
  1554. data/doc/ri/NullClass/inspect-i.yaml +10 -0
  1555. data/doc/ri/NullClass/method_missing-i.yaml +10 -0
  1556. data/doc/ri/NullClass/new-c.yaml +10 -0
  1557. data/doc/ri/NullClass/nil%3f-i.yaml +10 -0
  1558. data/doc/ri/NullClass/null%3f-i.yaml +10 -0
  1559. data/doc/ri/Numeric/cdesc-Numeric.yaml +26 -0
  1560. data/doc/ri/Object/cdesc-Object.yaml +15 -0
  1561. data/doc/ri/ObjectReflection/_bind_method-i.yaml +10 -0
  1562. data/doc/ri/ObjectReflection/cdesc-ObjectReflection.yaml +28 -0
  1563. data/doc/ri/ObjectReflection/id-i.yaml +11 -0
  1564. data/doc/ri/ObjectReflection/method_missing-i.yaml +16 -0
  1565. data/doc/ri/ObjectReflection/new-c.yaml +11 -0
  1566. data/doc/ri/OpEsc/cdesc-OpEsc.yaml +30 -0
  1567. data/doc/ri/OpEsc/escape-c.yaml +14 -0
  1568. data/doc/ri/OpenCascade/cdesc-OpenCascade.yaml +25 -0
  1569. data/doc/ri/OpenCascade/method_missing-i.yaml +10 -0
  1570. data/doc/ri/OpenCollection/cdesc-OpenCollection.yaml +22 -0
  1571. data/doc/ri/OpenCollection/method_missing-i.yaml +10 -0
  1572. data/doc/ri/OpenCollection/new-c.yaml +10 -0
  1573. data/doc/ri/OpenHash/cdesc-OpenHash.yaml +22 -0
  1574. data/doc/ri/OpenHash/method_missing-i.yaml +12 -0
  1575. data/doc/ri/OpenHash/new-c.yaml +12 -0
  1576. data/doc/ri/OpenObject/%3d%3d-i.yaml +12 -0
  1577. data/doc/ri/OpenObject/%5b%5d%3d-i.yaml +10 -0
  1578. data/doc/ri/OpenObject/%5b%5d-c.yaml +10 -0
  1579. data/doc/ri/OpenObject/%5b%5d-i.yaml +10 -0
  1580. data/doc/ri/OpenObject/as_hash%21-i.yaml +12 -0
  1581. data/doc/ri/OpenObject/cdesc-OpenObject.yaml +77 -0
  1582. data/doc/ri/OpenObject/default%21-i.yaml +12 -0
  1583. data/doc/ri/OpenObject/define_slot-i.yaml +10 -0
  1584. data/doc/ri/OpenObject/delete-i.yaml +11 -0
  1585. data/doc/ri/OpenObject/each-i.yaml +12 -0
  1586. data/doc/ri/OpenObject/fetch-i.yaml +10 -0
  1587. data/doc/ri/OpenObject/initialize_copy-i.yaml +10 -0
  1588. data/doc/ri/OpenObject/inspect-i.yaml +12 -0
  1589. data/doc/ri/OpenObject/merge-i.yaml +12 -0
  1590. data/doc/ri/OpenObject/method_missing-i.yaml +10 -0
  1591. data/doc/ri/OpenObject/new-c.yaml +14 -0
  1592. data/doc/ri/OpenObject/protect_slot-i.yaml +10 -0
  1593. data/doc/ri/OpenObject/store-i.yaml +10 -0
  1594. data/doc/ri/OpenObject/to_a-i.yaml +12 -0
  1595. data/doc/ri/OpenObject/to_h-i.yaml +10 -0
  1596. data/doc/ri/OpenObject/to_hash-i.yaml +10 -0
  1597. data/doc/ri/OpenObject/to_openobject-i.yaml +10 -0
  1598. data/doc/ri/OpenObject/to_proc-i.yaml +10 -0
  1599. data/doc/ri/OpenObject/update-i.yaml +12 -0
  1600. data/doc/ri/OpenStruct/%5b%5d%3d-i.yaml +14 -0
  1601. data/doc/ri/OpenStruct/%5b%5d-i.yaml +14 -0
  1602. data/doc/ri/OpenStruct/__merge__-i.yaml +14 -0
  1603. data/doc/ri/OpenStruct/__update__-i.yaml +14 -0
  1604. data/doc/ri/OpenStruct/cdesc-OpenStruct.yaml +35 -0
  1605. data/doc/ri/OpenStruct/each-i.yaml +11 -0
  1606. data/doc/ri/OpenStruct/instance_delegate-i.yaml +19 -0
  1607. data/doc/ri/OpenStruct/new-c.yaml +18 -0
  1608. data/doc/ri/OpenStruct/ostruct_delegate-i.yaml +12 -0
  1609. data/doc/ri/OpenStruct/ostruct_merge-i.yaml +14 -0
  1610. data/doc/ri/OpenStruct/ostruct_update-i.yaml +14 -0
  1611. data/doc/ri/OpenStruct/to_h-i.yaml +11 -0
  1612. data/doc/ri/PQueue/%3c%3c-i.yaml +12 -0
  1613. data/doc/ri/PQueue/%3d%3d-i.yaml +12 -0
  1614. data/doc/ri/PQueue/cdesc-PQueue.yaml +77 -0
  1615. data/doc/ri/PQueue/clear-i.yaml +12 -0
  1616. data/doc/ri/PQueue/downheap-i.yaml +14 -0
  1617. data/doc/ri/PQueue/each_pop-i.yaml +12 -0
  1618. data/doc/ri/PQueue/empty%3f-i.yaml +12 -0
  1619. data/doc/ri/PQueue/heapify-i.yaml +12 -0
  1620. data/doc/ri/PQueue/include%3f-i.yaml +12 -0
  1621. data/doc/ri/PQueue/initialize_copy-i.yaml +10 -0
  1622. data/doc/ri/PQueue/inspect-i.yaml +12 -0
  1623. data/doc/ri/PQueue/merge-i.yaml +12 -0
  1624. data/doc/ri/PQueue/new-c.yaml +18 -0
  1625. data/doc/ri/PQueue/pop-i.yaml +18 -0
  1626. data/doc/ri/PQueue/pop_array-i.yaml +12 -0
  1627. data/doc/ri/PQueue/push-i.yaml +15 -0
  1628. data/doc/ri/PQueue/push_all-i.yaml +15 -0
  1629. data/doc/ri/PQueue/replace-i.yaml +14 -0
  1630. data/doc/ri/PQueue/replace_top-i.yaml +14 -0
  1631. data/doc/ri/PQueue/sort-i.yaml +12 -0
  1632. data/doc/ri/PQueue/to_a-i.yaml +13 -0
  1633. data/doc/ri/PQueue/top-i.yaml +12 -0
  1634. data/doc/ri/PQueue/upheap-i.yaml +14 -0
  1635. data/doc/ri/Paramix/Delegator/%5b%5d-i.yaml +10 -0
  1636. data/doc/ri/Paramix/Delegator/append_features-i.yaml +11 -0
  1637. data/doc/ri/Paramix/Delegator/cdesc-Delegator.yaml +33 -0
  1638. data/doc/ri/Paramix/Delegator/extend_object-i.yaml +11 -0
  1639. data/doc/ri/Paramix/Delegator/new-c.yaml +11 -0
  1640. data/doc/ri/Paramix/append_features-c.yaml +10 -0
  1641. data/doc/ri/Paramix/cdesc-Paramix.yaml +41 -0
  1642. data/doc/ri/Paramix/new-c.yaml +12 -0
  1643. data/doc/ri/PathList/Finder/cdesc-Finder.yaml +21 -0
  1644. data/doc/ri/PathList/Finder/find-i.yaml +11 -0
  1645. data/doc/ri/PathList/Finder/include%3f-i.yaml +12 -0
  1646. data/doc/ri/PathList/cdesc-PathList.yaml +28 -0
  1647. data/doc/ri/PathList/new-c.yaml +10 -0
  1648. data/doc/ri/PathList/to_s-i.yaml +10 -0
  1649. data/doc/ri/Pathname/%2f-c.yaml +14 -0
  1650. data/doc/ri/Pathname/%5b%5d-c.yaml +14 -0
  1651. data/doc/ri/Pathname/cdesc-Pathname.yaml +27 -0
  1652. data/doc/ri/Pathname/home-c.yaml +14 -0
  1653. data/doc/ri/Pathname/null-c.yaml +12 -0
  1654. data/doc/ri/Pathname/root-c.yaml +12 -0
  1655. data/doc/ri/Pathname/rootname-i.yaml +11 -0
  1656. data/doc/ri/Pathname/work-c.yaml +12 -0
  1657. data/doc/ri/Platform/%3d%3d%3d-i.yaml +10 -0
  1658. data/doc/ri/Platform/%3d%3d-i.yaml +10 -0
  1659. data/doc/ri/Platform/%3d%7e-i.yaml +10 -0
  1660. data/doc/ri/Platform/cdesc-Platform.yaml +65 -0
  1661. data/doc/ri/Platform/const_missing-c.yaml +10 -0
  1662. data/doc/ri/Platform/inspect-i.yaml +10 -0
  1663. data/doc/ri/Platform/local-c.yaml +10 -0
  1664. data/doc/ri/Platform/match-c.yaml +10 -0
  1665. data/doc/ri/Platform/new-c.yaml +10 -0
  1666. data/doc/ri/Platform/supported-c.yaml +12 -0
  1667. data/doc/ri/Platform/to_a-i.yaml +10 -0
  1668. data/doc/ri/Platform/to_s-i.yaml +10 -0
  1669. data/doc/ri/Pool/cdesc-Pool.yaml +27 -0
  1670. data/doc/ri/Pool/new-c.yaml +10 -0
  1671. data/doc/ri/Pool/obtain-i.yaml +12 -0
  1672. data/doc/ri/Pool/pop-i.yaml +12 -0
  1673. data/doc/ri/Pool/push-i.yaml +12 -0
  1674. data/doc/ri/Proc/%2a-i.yaml +14 -0
  1675. data/doc/ri/Proc/bind-i.yaml +16 -0
  1676. data/doc/ri/Proc/cdesc-Proc.yaml +28 -0
  1677. data/doc/ri/Proc/compose-i.yaml +14 -0
  1678. data/doc/ri/Proc/curry-i.yaml +14 -0
  1679. data/doc/ri/Proc/partial-i.yaml +20 -0
  1680. data/doc/ri/Proc/to_method-i.yaml +14 -0
  1681. data/doc/ri/Proc/to_openobject-i.yaml +16 -0
  1682. data/doc/ri/ProgressBar/bar-i.yaml +10 -0
  1683. data/doc/ri/ProgressBar/bar_mark%3d-i.yaml +10 -0
  1684. data/doc/ri/ProgressBar/bytes-i.yaml +10 -0
  1685. data/doc/ri/ProgressBar/cdesc-ProgressBar.yaml +76 -0
  1686. data/doc/ri/ProgressBar/convert_bytes-i.yaml +10 -0
  1687. data/doc/ri/ProgressBar/elapsed-i.yaml +10 -0
  1688. data/doc/ri/ProgressBar/eol-i.yaml +10 -0
  1689. data/doc/ri/ProgressBar/eta-i.yaml +12 -0
  1690. data/doc/ri/ProgressBar/file_transfer_mode-i.yaml +10 -0
  1691. data/doc/ri/ProgressBar/finish-i.yaml +10 -0
  1692. data/doc/ri/ProgressBar/flush-i.yaml +10 -0
  1693. data/doc/ri/ProgressBar/format%3d-i.yaml +10 -0
  1694. data/doc/ri/ProgressBar/format_arguments%3d-i.yaml +10 -0
  1695. data/doc/ri/ProgressBar/format_time-i.yaml +10 -0
  1696. data/doc/ri/ProgressBar/get_width-i.yaml +10 -0
  1697. data/doc/ri/ProgressBar/halt-i.yaml +10 -0
  1698. data/doc/ri/ProgressBar/inc-i.yaml +10 -0
  1699. data/doc/ri/ProgressBar/inspect-i.yaml +10 -0
  1700. data/doc/ri/ProgressBar/new-c.yaml +10 -0
  1701. data/doc/ri/ProgressBar/percentage-i.yaml +10 -0
  1702. data/doc/ri/ProgressBar/set-i.yaml +10 -0
  1703. data/doc/ri/ProgressBar/show-i.yaml +10 -0
  1704. data/doc/ri/ProgressBar/show_progress-i.yaml +10 -0
  1705. data/doc/ri/ProgressBar/stat-i.yaml +10 -0
  1706. data/doc/ri/ProgressBar/stat_for_file_transfer-i.yaml +10 -0
  1707. data/doc/ri/ProgressBar/title%3d-i.yaml +10 -0
  1708. data/doc/ri/ProgressBar/title-i.yaml +10 -0
  1709. data/doc/ri/ProgressBar/total_overflow%3d-i.yaml +10 -0
  1710. data/doc/ri/ProgressBar/transfer_rate-i.yaml +10 -0
  1711. data/doc/ri/Prototype/cdesc-Prototype.yaml +30 -0
  1712. data/doc/ri/Prototype/fn-i.yaml +10 -0
  1713. data/doc/ri/Prototype/meta-i.yaml +10 -0
  1714. data/doc/ri/Prototype/method_missing-i.yaml +10 -0
  1715. data/doc/ri/Prototype/new-c.yaml +12 -0
  1716. data/doc/ri/Prototype/new-i.yaml +10 -0
  1717. data/doc/ri/Prototype/trait-i.yaml +10 -0
  1718. data/doc/ri/Prototype/traits-i.yaml +10 -0
  1719. data/doc/ri/RWDelegator/%3d%3d-i.yaml +10 -0
  1720. data/doc/ri/RWDelegator/cdesc-RWDelegator.yaml +28 -0
  1721. data/doc/ri/RWDelegator/inspect-i.yaml +10 -0
  1722. data/doc/ri/RWDelegator/method_missing-i.yaml +10 -0
  1723. data/doc/ri/RWDelegator/new-c.yaml +10 -0
  1724. data/doc/ri/Random/Array/at_rand%21-i.yaml +14 -0
  1725. data/doc/ri/Random/Array/at_rand-i.yaml +14 -0
  1726. data/doc/ri/Random/Array/cdesc-Array.yaml +31 -0
  1727. data/doc/ri/Random/Array/pick%21-i.yaml +12 -0
  1728. data/doc/ri/Random/Array/pick-i.yaml +12 -0
  1729. data/doc/ri/Random/Array/rand_index-i.yaml +12 -0
  1730. data/doc/ri/Random/Array/rand_subset-i.yaml +18 -0
  1731. data/doc/ri/Random/Array/shuffle%21-i.yaml +16 -0
  1732. data/doc/ri/Random/Array/shuffle-i.yaml +14 -0
  1733. data/doc/ri/Random/Hash/at_rand%21-i.yaml +12 -0
  1734. data/doc/ri/Random/Hash/at_rand-i.yaml +12 -0
  1735. data/doc/ri/Random/Hash/cdesc-Hash.yaml +41 -0
  1736. data/doc/ri/Random/Hash/pick-i.yaml +12 -0
  1737. data/doc/ri/Random/Hash/pick_key-i.yaml +12 -0
  1738. data/doc/ri/Random/Hash/pick_pair-i.yaml +12 -0
  1739. data/doc/ri/Random/Hash/rand_key%21-i.yaml +15 -0
  1740. data/doc/ri/Random/Hash/rand_key-i.yaml +14 -0
  1741. data/doc/ri/Random/Hash/rand_pair%21-i.yaml +15 -0
  1742. data/doc/ri/Random/Hash/rand_pair-i.yaml +14 -0
  1743. data/doc/ri/Random/Hash/rand_value%21-i.yaml +17 -0
  1744. data/doc/ri/Random/Hash/rand_value-i.yaml +15 -0
  1745. data/doc/ri/Random/Hash/shuffle%21-i.yaml +14 -0
  1746. data/doc/ri/Random/Hash/shuffle-i.yaml +14 -0
  1747. data/doc/ri/Random/Object/cdesc-Object.yaml +16 -0
  1748. data/doc/ri/Random/Object/maybe-i.yaml +14 -0
  1749. data/doc/ri/Random/String/Self/cdesc-Self.yaml +20 -0
  1750. data/doc/ri/Random/String/Self/rand_letter-i.yaml +14 -0
  1751. data/doc/ri/Random/String/Self/random-i.yaml +12 -0
  1752. data/doc/ri/Random/String/at_rand%21-i.yaml +14 -0
  1753. data/doc/ri/Random/String/at_rand-i.yaml +14 -0
  1754. data/doc/ri/Random/String/cdesc-String.yaml +30 -0
  1755. data/doc/ri/Random/String/included-c.yaml +10 -0
  1756. data/doc/ri/Random/String/rand_byte%21-i.yaml +14 -0
  1757. data/doc/ri/Random/String/rand_byte-i.yaml +14 -0
  1758. data/doc/ri/Random/String/rand_index-i.yaml +14 -0
  1759. data/doc/ri/Random/String/shuffle%21-i.yaml +12 -0
  1760. data/doc/ri/Random/String/shuffle-i.yaml +14 -0
  1761. data/doc/ri/Random/append_features-c.yaml +11 -0
  1762. data/doc/ri/Random/cdesc-Random.yaml +31 -0
  1763. data/doc/ri/Random/number-c.yaml +11 -0
  1764. data/doc/ri/Range/cdesc-Range.yaml +27 -0
  1765. data/doc/ri/Range/combine-c.yaml +14 -0
  1766. data/doc/ri/Range/combine-i.yaml +14 -0
  1767. data/doc/ri/Range/overlap%3f-i.yaml +14 -0
  1768. data/doc/ri/Range/to_r-i.yaml +14 -0
  1769. data/doc/ri/Range/to_range-i.yaml +16 -0
  1770. data/doc/ri/Range/umbrella-i.yaml +20 -0
  1771. data/doc/ri/Range/within%3f-i.yaml +14 -0
  1772. data/doc/ri/Recorder/__call__-i.yaml +10 -0
  1773. data/doc/ri/Recorder/cdesc-Recorder.yaml +34 -0
  1774. data/doc/ri/Recorder/inspect-i.yaml +10 -0
  1775. data/doc/ri/Recorder/method_missing-i.yaml +10 -0
  1776. data/doc/ri/Recorder/new-c.yaml +11 -0
  1777. data/doc/ri/RecursiveDependency/cdesc-RecursiveDependency.yaml +15 -0
  1778. data/doc/ri/Reference/__value__-i.yaml +11 -0
  1779. data/doc/ri/Reference/become-i.yaml +10 -0
  1780. data/doc/ri/Reference/cdesc-Reference.yaml +30 -0
  1781. data/doc/ri/Reference/instance_delegate-i.yaml +12 -0
  1782. data/doc/ri/Reference/method_missing-i.yaml +10 -0
  1783. data/doc/ri/Reference/new-c.yaml +10 -0
  1784. data/doc/ri/Regexp/arity-i.yaml +18 -0
  1785. data/doc/ri/Regexp/cdesc-Regexp.yaml +20 -0
  1786. data/doc/ri/Regexp/to_re-i.yaml +16 -0
  1787. data/doc/ri/Regexp/to_regexp-i.yaml +16 -0
  1788. data/doc/ri/Registerable/cdesc-Registerable.yaml +23 -0
  1789. data/doc/ri/Registerable/register-i.yaml +12 -0
  1790. data/doc/ri/Registerable/registry-i.yaml +12 -0
  1791. data/doc/ri/Registerable/registry_invalid%3f-i.yaml +11 -0
  1792. data/doc/ri/Semaphore/cdesc-Semaphore.yaml +36 -0
  1793. data/doc/ri/Semaphore/down-i.yaml +12 -0
  1794. data/doc/ri/Semaphore/exclusive-i.yaml +11 -0
  1795. data/doc/ri/Semaphore/new-c.yaml +10 -0
  1796. data/doc/ri/Semaphore/p-i.yaml +12 -0
  1797. data/doc/ri/Semaphore/signal-i.yaml +13 -0
  1798. data/doc/ri/Semaphore/synchronize-i.yaml +12 -0
  1799. data/doc/ri/Semaphore/up-i.yaml +12 -0
  1800. data/doc/ri/Semaphore/v-i.yaml +12 -0
  1801. data/doc/ri/Semaphore/wait-i.yaml +13 -0
  1802. data/doc/ri/Set/cdesc-Set.yaml +16 -0
  1803. data/doc/ri/Set/power_set-i.yaml +10 -0
  1804. data/doc/ri/Settings/Setting/cdesc-Setting.yaml +42 -0
  1805. data/doc/ri/Settings/Setting/new-c.yaml +10 -0
  1806. data/doc/ri/Settings/Setting/to_s-i.yaml +12 -0
  1807. data/doc/ri/Settings/Setting/update-i.yaml +12 -0
  1808. data/doc/ri/Settings/SettingCollection/cdesc-SettingCollection.yaml +23 -0
  1809. data/doc/ri/Settings/SettingCollection/method_missing-i.yaml +12 -0
  1810. data/doc/ri/Settings/add_setting-c.yaml +17 -0
  1811. data/doc/ri/Settings/cdesc-Settings.yaml +33 -0
  1812. data/doc/ri/Settings/load-c.yaml +12 -0
  1813. data/doc/ri/Settings/method_missing-c.yaml +10 -0
  1814. data/doc/ri/Settings/parse-c.yaml +12 -0
  1815. data/doc/ri/Settings/settings-c.yaml +12 -0
  1816. data/doc/ri/Settings/setup-c.yaml +15 -0
  1817. data/doc/ri/Shellwords/cdesc-Shellwords.yaml +16 -0
  1818. data/doc/ri/Shellwords/escape-i.yaml +12 -0
  1819. data/doc/ri/SimpleStringIO/cdesc-SimpleStringIO.yaml +20 -0
  1820. data/doc/ri/SimpleStringIO/new-c.yaml +10 -0
  1821. data/doc/ri/SimpleStringIO/write-i.yaml +10 -0
  1822. data/doc/ri/Snapshot/ValueHolder/cdesc-ValueHolder.yaml +24 -0
  1823. data/doc/ri/Snapshot/ValueHolder/new-c.yaml +10 -0
  1824. data/doc/ri/Snapshot/ValueHolder/restore_snapshot-i.yaml +10 -0
  1825. data/doc/ri/Snapshot/ValueHolder/take_snapshot-i.yaml +10 -0
  1826. data/doc/ri/Snapshot/add-i.yaml +10 -0
  1827. data/doc/ri/Snapshot/cdesc-Snapshot.yaml +36 -0
  1828. data/doc/ri/Snapshot/new-c.yaml +10 -0
  1829. data/doc/ri/Snapshot/restore-i.yaml +10 -0
  1830. data/doc/ri/Stackable/cdesc-Stackable.yaml +33 -0
  1831. data/doc/ri/Stackable/peek-i.yaml +14 -0
  1832. data/doc/ri/Stackable/poke-i.yaml +15 -0
  1833. data/doc/ri/Stackable/pop-i.yaml +14 -0
  1834. data/doc/ri/Stackable/pull-i.yaml +15 -0
  1835. data/doc/ri/Stackable/push-i.yaml +14 -0
  1836. data/doc/ri/Stackable/shift-i.yaml +12 -0
  1837. data/doc/ri/Stackable/unshift-i.yaml +12 -0
  1838. data/doc/ri/String/Style/camelize-c.yaml +18 -0
  1839. data/doc/ri/String/Style/capitalize-c.yaml +12 -0
  1840. data/doc/ri/String/Style/cdesc-Style.yaml +69 -0
  1841. data/doc/ri/String/Style/classify-c.yaml +20 -0
  1842. data/doc/ri/String/Style/dasherize-c.yaml +16 -0
  1843. data/doc/ri/String/Style/demodulize-c.yaml +16 -0
  1844. data/doc/ri/String/Style/downcase-c.yaml +12 -0
  1845. data/doc/ri/String/Style/foreign_key-c.yaml +16 -0
  1846. data/doc/ri/String/Style/humanize-c.yaml +16 -0
  1847. data/doc/ri/String/Style/lowercamel-c.yaml +10 -0
  1848. data/doc/ri/String/Style/lowercase-c.yaml +12 -0
  1849. data/doc/ri/String/Style/methodize-c.yaml +18 -0
  1850. data/doc/ri/String/Style/modulize-c.yaml +18 -0
  1851. data/doc/ri/String/Style/ordinalize-c.yaml +16 -0
  1852. data/doc/ri/String/Style/pathize-c.yaml +22 -0
  1853. data/doc/ri/String/Style/snakecase-c.yaml +18 -0
  1854. data/doc/ri/String/Style/tableize-c.yaml +16 -0
  1855. data/doc/ri/String/Style/titlecase-c.yaml +14 -0
  1856. data/doc/ri/String/Style/titleize-c.yaml +18 -0
  1857. data/doc/ri/String/Style/underscore-c.yaml +18 -0
  1858. data/doc/ri/String/Style/upcase-c.yaml +12 -0
  1859. data/doc/ri/String/Style/uppercamel-c.yaml +10 -0
  1860. data/doc/ri/String/Style/uppercase-c.yaml +12 -0
  1861. data/doc/ri/String/Words/brief-i.yaml +14 -0
  1862. data/doc/ri/String/Words/cdesc-Words.yaml +28 -0
  1863. data/doc/ri/String/Words/each_word-i.yaml +14 -0
  1864. data/doc/ri/String/Words/word_filter%21-i.yaml +14 -0
  1865. data/doc/ri/String/Words/word_filter-i.yaml +14 -0
  1866. data/doc/ri/String/Words/word_wrap%21-i.yaml +14 -0
  1867. data/doc/ri/String/Words/word_wrap-i.yaml +18 -0
  1868. data/doc/ri/String/Words/words-i.yaml +14 -0
  1869. data/doc/ri/String/cdesc-String.yaml +17 -0
  1870. data/doc/ri/Struct/cdesc-Struct.yaml +18 -0
  1871. data/doc/ri/Struct/restore_snapshot-i.yaml +10 -0
  1872. data/doc/ri/Struct/take_snapshot-i.yaml +10 -0
  1873. data/doc/ri/Symbol/cdesc-Symbol.yaml +15 -0
  1874. data/doc/ri/SyncArray/cdesc-SyncArray.yaml +19 -0
  1875. data/doc/ri/SyncArray/new-c.yaml +12 -0
  1876. data/doc/ri/SyncHash/Delegator/%5b%5d%3d-i.yaml +10 -0
  1877. data/doc/ri/SyncHash/Delegator/%5b%5d-i.yaml +10 -0
  1878. data/doc/ri/SyncHash/Delegator/cdesc-Delegator.yaml +30 -0
  1879. data/doc/ri/SyncHash/Delegator/clear-i.yaml +10 -0
  1880. data/doc/ri/SyncHash/Delegator/delete-i.yaml +10 -0
  1881. data/doc/ri/SyncHash/Delegator/keys-i.yaml +10 -0
  1882. data/doc/ri/SyncHash/Delegator/size-i.yaml +10 -0
  1883. data/doc/ri/SyncHash/Delegator/values-i.yaml +10 -0
  1884. data/doc/ri/SyncHash/Inheritor/%5b%5d%3d-i.yaml +10 -0
  1885. data/doc/ri/SyncHash/Inheritor/%5b%5d-i.yaml +10 -0
  1886. data/doc/ri/SyncHash/Inheritor/cdesc-Inheritor.yaml +30 -0
  1887. data/doc/ri/SyncHash/Inheritor/clear-i.yaml +10 -0
  1888. data/doc/ri/SyncHash/Inheritor/delete-i.yaml +10 -0
  1889. data/doc/ri/SyncHash/Inheritor/keys-i.yaml +10 -0
  1890. data/doc/ri/SyncHash/Inheritor/size-i.yaml +10 -0
  1891. data/doc/ri/SyncHash/Inheritor/values-i.yaml +10 -0
  1892. data/doc/ri/SyncHash/cdesc-SyncHash.yaml +38 -0
  1893. data/doc/ri/SyncHash/new-c.yaml +10 -0
  1894. data/doc/ri/System/argf-i.yaml +12 -0
  1895. data/doc/ri/System/argv-i.yaml +11 -0
  1896. data/doc/ri/System/cdesc-System.yaml +145 -0
  1897. data/doc/ri/System/child_status-i.yaml +11 -0
  1898. data/doc/ri/System/coding%3d-i.yaml +10 -0
  1899. data/doc/ri/System/coding-i.yaml +10 -0
  1900. data/doc/ri/System/current_platform-i.yaml +12 -0
  1901. data/doc/ri/System/data-i.yaml +12 -0
  1902. data/doc/ri/System/debug-i.yaml +10 -0
  1903. data/doc/ri/System/default_input-i.yaml +13 -0
  1904. data/doc/ri/System/default_output%3d-i.yaml +11 -0
  1905. data/doc/ri/System/default_output-i.yaml +11 -0
  1906. data/doc/ri/System/defin-i.yaml +12 -0
  1907. data/doc/ri/System/defout%3d-i.yaml +12 -0
  1908. data/doc/ri/System/defout-i.yaml +12 -0
  1909. data/doc/ri/System/env-i.yaml +10 -0
  1910. data/doc/ri/System/environment-i.yaml +10 -0
  1911. data/doc/ri/System/error_info-i.yaml +10 -0
  1912. data/doc/ri/System/error_position-i.yaml +10 -0
  1913. data/doc/ri/System/exit_status-i.yaml +12 -0
  1914. data/doc/ri/System/extentions-i.yaml +10 -0
  1915. data/doc/ri/System/fs%3d-i.yaml +12 -0
  1916. data/doc/ri/System/fs-i.yaml +12 -0
  1917. data/doc/ri/System/input_field_separator%3d-i.yaml +11 -0
  1918. data/doc/ri/System/input_field_separator-i.yaml +11 -0
  1919. data/doc/ri/System/input_line_number-i.yaml +11 -0
  1920. data/doc/ri/System/input_lineno-i.yaml +12 -0
  1921. data/doc/ri/System/input_record_separator%3d-i.yaml +11 -0
  1922. data/doc/ri/System/input_record_separator-i.yaml +11 -0
  1923. data/doc/ri/System/line_end_processing-i.yaml +10 -0
  1924. data/doc/ri/System/load_path-i.yaml +12 -0
  1925. data/doc/ri/System/loaded_features-i.yaml +11 -0
  1926. data/doc/ri/System/match_platform-i.yaml +11 -0
  1927. data/doc/ri/System/ofs%3d-i.yaml +12 -0
  1928. data/doc/ri/System/ofs-i.yaml +12 -0
  1929. data/doc/ri/System/options-i.yaml +12 -0
  1930. data/doc/ri/System/ors%3d-i.yaml +12 -0
  1931. data/doc/ri/System/ors-i.yaml +12 -0
  1932. data/doc/ri/System/output_field_separator%3d-i.yaml +11 -0
  1933. data/doc/ri/System/output_field_separator-i.yaml +11 -0
  1934. data/doc/ri/System/output_record_separator%3d-i.yaml +11 -0
  1935. data/doc/ri/System/output_record_separator-i.yaml +11 -0
  1936. data/doc/ri/System/pid-i.yaml +12 -0
  1937. data/doc/ri/System/platform-i.yaml +10 -0
  1938. data/doc/ri/System/process_id-i.yaml +15 -0
  1939. data/doc/ri/System/program_loop-i.yaml +10 -0
  1940. data/doc/ri/System/program_name%3d-i.yaml +10 -0
  1941. data/doc/ri/System/program_name-i.yaml +12 -0
  1942. data/doc/ri/System/release-i.yaml +10 -0
  1943. data/doc/ri/System/required-i.yaml +12 -0
  1944. data/doc/ri/System/rs%3d-i.yaml +12 -0
  1945. data/doc/ri/System/rs-i.yaml +12 -0
  1946. data/doc/ri/System/rubylibdir-i.yaml +10 -0
  1947. data/doc/ri/System/rubypath-i.yaml +10 -0
  1948. data/doc/ri/System/safe-i.yaml +10 -0
  1949. data/doc/ri/System/stderr%3d-i.yaml +10 -0
  1950. data/doc/ri/System/stderr-i.yaml +10 -0
  1951. data/doc/ri/System/stdin%3d-i.yaml +10 -0
  1952. data/doc/ri/System/stdin-i.yaml +12 -0
  1953. data/doc/ri/System/stdout%3d-i.yaml +10 -0
  1954. data/doc/ri/System/stdout-i.yaml +10 -0
  1955. data/doc/ri/System/verbose%3d-i.yaml +10 -0
  1956. data/doc/ri/System/verbose-i.yaml +10 -0
  1957. data/doc/ri/System/version-i.yaml +10 -0
  1958. data/doc/ri/Time/cdesc-Time.yaml +17 -0
  1959. data/doc/ri/Timer/Dummy/cdesc-Dummy.yaml +20 -0
  1960. data/doc/ri/Timer/Dummy/start-i.yaml +10 -0
  1961. data/doc/ri/Timer/Dummy/stop-i.yaml +10 -0
  1962. data/doc/ri/Timer/cdesc-Timer.yaml +57 -0
  1963. data/doc/ri/Timer/defuse-i.yaml +12 -0
  1964. data/doc/ri/Timer/limit-i.yaml +12 -0
  1965. data/doc/ri/Timer/new-c.yaml +10 -0
  1966. data/doc/ri/Timer/on_timeout-i.yaml +10 -0
  1967. data/doc/ri/Timer/reset-i.yaml +12 -0
  1968. data/doc/ri/Timer/reset_limit-i.yaml +14 -0
  1969. data/doc/ri/Timer/running%3f-i.yaml +12 -0
  1970. data/doc/ri/Timer/start-i.yaml +12 -0
  1971. data/doc/ri/Timer/stop-i.yaml +12 -0
  1972. data/doc/ri/Timer/stopped%3f-i.yaml +12 -0
  1973. data/doc/ri/Timer/total_time-i.yaml +12 -0
  1974. data/doc/ri/TracePoint/%3d%3d%3d-i.yaml +12 -0
  1975. data/doc/ri/TracePoint/active%3d-c.yaml +10 -0
  1976. data/doc/ri/TracePoint/active-c.yaml +10 -0
  1977. data/doc/ri/TracePoint/back-i.yaml +12 -0
  1978. data/doc/ri/TracePoint/bind-i.yaml +12 -0
  1979. data/doc/ri/TracePoint/called-i.yaml +13 -0
  1980. data/doc/ri/TracePoint/callee-i.yaml +13 -0
  1981. data/doc/ri/TracePoint/cdesc-TracePoint.yaml +82 -0
  1982. data/doc/ri/TracePoint/event%3f-i.yaml +12 -0
  1983. data/doc/ri/TracePoint/event_map-i.yaml +10 -0
  1984. data/doc/ri/TracePoint/eventless%3f-i.yaml +10 -0
  1985. data/doc/ri/TracePoint/method_name-i.yaml +12 -0
  1986. data/doc/ri/TracePoint/new-c.yaml +12 -0
  1987. data/doc/ri/TracePoint/self-i.yaml +12 -0
  1988. data/doc/ri/TracePoint/trace-c.yaml +12 -0
  1989. data/doc/ri/TrueClass/cdesc-TrueClass.yaml +15 -0
  1990. data/doc/ri/Tuple/%3c%3c-i.yaml +12 -0
  1991. data/doc/ri/Tuple/%3c%3d%3e-i.yaml +10 -0
  1992. data/doc/ri/Tuple/%3d%7e-i.yaml +12 -0
  1993. data/doc/ri/Tuple/%5b%5d%3d-i.yaml +10 -0
  1994. data/doc/ri/Tuple/%5b%5d-c.yaml +10 -0
  1995. data/doc/ri/Tuple/%5b%5d-i.yaml +10 -0
  1996. data/doc/ri/Tuple/cast_from_array-c.yaml +11 -0
  1997. data/doc/ri/Tuple/cast_from_string-c.yaml +20 -0
  1998. data/doc/ri/Tuple/cdesc-Tuple.yaml +113 -0
  1999. data/doc/ri/Tuple/constraint_to_lambda-c.yaml +12 -0
  2000. data/doc/ri/Tuple/divider-i.yaml +10 -0
  2001. data/doc/ri/Tuple/each-i.yaml +10 -0
  2002. data/doc/ri/Tuple/each_index-i.yaml +10 -0
  2003. data/doc/ri/Tuple/empty%3f-i.yaml +10 -0
  2004. data/doc/ri/Tuple/eql%3f-i.yaml +12 -0
  2005. data/doc/ri/Tuple/first-i.yaml +10 -0
  2006. data/doc/ri/Tuple/hash-i.yaml +12 -0
  2007. data/doc/ri/Tuple/index-i.yaml +10 -0
  2008. data/doc/ri/Tuple/inspect-i.yaml +10 -0
  2009. data/doc/ri/Tuple/last-i.yaml +10 -0
  2010. data/doc/ri/Tuple/length-i.yaml +10 -0
  2011. data/doc/ri/Tuple/major-i.yaml +12 -0
  2012. data/doc/ri/Tuple/minor-i.yaml +10 -0
  2013. data/doc/ri/Tuple/multiton_id-c.yaml +10 -0
  2014. data/doc/ri/Tuple/new-c.yaml +10 -0
  2015. data/doc/ri/Tuple/parse_constraint-c.yaml +10 -0
  2016. data/doc/ri/Tuple/pop-i.yaml +10 -0
  2017. data/doc/ri/Tuple/pot-i.yaml +13 -0
  2018. data/doc/ri/Tuple/pull-i.yaml +13 -0
  2019. data/doc/ri/Tuple/push-i.yaml +10 -0
  2020. data/doc/ri/Tuple/rindex-i.yaml +10 -0
  2021. data/doc/ri/Tuple/shift-i.yaml +12 -0
  2022. data/doc/ri/Tuple/size-i.yaml +10 -0
  2023. data/doc/ri/Tuple/teeny-i.yaml +10 -0
  2024. data/doc/ri/Tuple/to_a-i.yaml +10 -0
  2025. data/doc/ri/Tuple/to_ary-i.yaml +10 -0
  2026. data/doc/ri/Tuple/to_s-i.yaml +10 -0
  2027. data/doc/ri/Tuple/to_t-i.yaml +10 -0
  2028. data/doc/ri/Tuple/to_tuple-i.yaml +10 -0
  2029. data/doc/ri/Tuple/unshift-i.yaml +12 -0
  2030. data/doc/ri/Tuple/values-i.yaml +10 -0
  2031. data/doc/ri/TypeCast/Class/cast_from-i.yaml +14 -0
  2032. data/doc/ri/TypeCast/Class/cdesc-Class.yaml +18 -0
  2033. data/doc/ri/TypeCast/Object/cast_to-i.yaml +14 -0
  2034. data/doc/ri/TypeCast/Object/cdesc-Object.yaml +18 -0
  2035. data/doc/ri/TypeCast/cdesc-TypeCast.yaml +52 -0
  2036. data/doc/ri/TypeCastException/cdesc-TypeCastException.yaml +17 -0
  2037. data/doc/ri/URI/Hash/cdesc-Hash.yaml +16 -0
  2038. data/doc/ri/URI/Hash/to_uri-i.yaml +11 -0
  2039. data/doc/ri/URI/Kernel/cdesc-Kernel.yaml +18 -0
  2040. data/doc/ri/URI/Kernel/unuri-i.yaml +11 -0
  2041. data/doc/ri/URI/Kernel/uri-i.yaml +11 -0
  2042. data/doc/ri/URI/cdesc-URI.yaml +38 -0
  2043. data/doc/ri/URI/cgi_escape-i.yaml +12 -0
  2044. data/doc/ri/URI/cgi_parse-i.yaml +11 -0
  2045. data/doc/ri/URI/cgi_unescape-i.yaml +11 -0
  2046. data/doc/ri/URI/chomp_query_string-i.yaml +16 -0
  2047. data/doc/ri/URI/decode-i.yaml +12 -0
  2048. data/doc/ri/URI/get_query_string-i.yaml +16 -0
  2049. data/doc/ri/URI/hash_to_query-i.yaml +15 -0
  2050. data/doc/ri/URI/hash_to_query_string-i.yaml +12 -0
  2051. data/doc/ri/URI/query_string_to_hash-i.yaml +12 -0
  2052. data/doc/ri/URI/query_to_hash-i.yaml +17 -0
  2053. data/doc/ri/URI/update_query_string-i.yaml +18 -0
  2054. data/doc/ri/URI/update_request_uri-i.yaml +12 -0
  2055. data/doc/ri/UnboundMethod/arguments-i.yaml +18 -0
  2056. data/doc/ri/UnboundMethod/cdesc-UnboundMethod.yaml +18 -0
  2057. data/doc/ri/UnboundMethod/name-i.yaml +14 -0
  2058. data/doc/ri/Uninheritable/cdesc-Uninheritable.yaml +21 -0
  2059. data/doc/ri/Uninheritable/inherited-i.yaml +12 -0
  2060. data/doc/ri/UploadUtils/cdesc-UploadUtils.yaml +47 -0
  2061. data/doc/ri/UploadUtils/files-i.yaml +12 -0
  2062. data/doc/ri/UploadUtils/ftp-i.yaml +12 -0
  2063. data/doc/ri/UploadUtils/rsync-i.yaml +12 -0
  2064. data/doc/ri/UploadUtils/sftp-i.yaml +12 -0
  2065. data/doc/ri/UploadUtils/stage_linkdir-i.yaml +12 -0
  2066. data/doc/ri/UploadUtils/stage_transfer-i.yaml +20 -0
  2067. data/doc/ri/UploadUtils/upload-i.yaml +12 -0
  2068. data/doc/ri/UploadUtils/upload_parameters-i.yaml +12 -0
  2069. data/doc/ri/VersionNumber/%3c%3d%3e-i.yaml +12 -0
  2070. data/doc/ri/VersionNumber/%3d%7e-i.yaml +12 -0
  2071. data/doc/ri/VersionNumber/%5b%5d-i.yaml +10 -0
  2072. data/doc/ri/VersionNumber/cdesc-VersionNumber.yaml +45 -0
  2073. data/doc/ri/VersionNumber/constraint_lambda-c.yaml +12 -0
  2074. data/doc/ri/VersionNumber/inspect-i.yaml +10 -0
  2075. data/doc/ri/VersionNumber/major-i.yaml +12 -0
  2076. data/doc/ri/VersionNumber/method_missing-i.yaml +12 -0
  2077. data/doc/ri/VersionNumber/minor-i.yaml +12 -0
  2078. data/doc/ri/VersionNumber/new-c.yaml +10 -0
  2079. data/doc/ri/VersionNumber/parse_constraint-c.yaml +10 -0
  2080. data/doc/ri/VersionNumber/teeny-i.yaml +12 -0
  2081. data/doc/ri/VersionNumber/to_s-i.yaml +10 -0
  2082. data/doc/ri/VersionNumber/to_str-i.yaml +12 -0
  2083. data/doc/ri/Weekdays/after-i.yaml +12 -0
  2084. data/doc/ri/Weekdays/ago-i.yaml +13 -0
  2085. data/doc/ri/Weekdays/before-i.yaml +12 -0
  2086. data/doc/ri/Weekdays/cdesc-Weekdays.yaml +38 -0
  2087. data/doc/ri/Weekdays/from_now-i.yaml +12 -0
  2088. data/doc/ri/Weekdays/new-c.yaml +10 -0
  2089. data/doc/ri/Weekdays/since-i.yaml +13 -0
  2090. data/doc/ri/Weekdays/step-i.yaml +10 -0
  2091. data/doc/ri/Weekdays/until-i.yaml +12 -0
  2092. data/doc/ri/XOXO/Parser/cdesc-Parser.yaml +15 -0
  2093. data/doc/ri/XOXO/cdesc-XOXO.yaml +25 -0
  2094. data/doc/ri/XOXO/dump-c.yaml +35 -0
  2095. data/doc/ri/XOXO/load-c.yaml +12 -0
  2096. data/doc/ri/XOXO/make_xoxo-c.yaml +10 -0
  2097. data/doc/ri/ZipUtils/DryRun/cdesc-DryRun.yaml +32 -0
  2098. data/doc/ri/ZipUtils/DryRun/compress-i.yaml +10 -0
  2099. data/doc/ri/ZipUtils/DryRun/tar_bzip2-i.yaml +10 -0
  2100. data/doc/ri/ZipUtils/DryRun/tar_gzip-i.yaml +10 -0
  2101. data/doc/ri/ZipUtils/DryRun/untar_bzip2-i.yaml +10 -0
  2102. data/doc/ri/ZipUtils/DryRun/untar_gzip-i.yaml +10 -0
  2103. data/doc/ri/ZipUtils/DryRun/unzip-i.yaml +10 -0
  2104. data/doc/ri/ZipUtils/DryRun/zip-i.yaml +10 -0
  2105. data/doc/ri/ZipUtils/NoWrite/cdesc-NoWrite.yaml +32 -0
  2106. data/doc/ri/ZipUtils/NoWrite/compress-i.yaml +10 -0
  2107. data/doc/ri/ZipUtils/NoWrite/tar_bzip2-i.yaml +10 -0
  2108. data/doc/ri/ZipUtils/NoWrite/tar_gzip-i.yaml +10 -0
  2109. data/doc/ri/ZipUtils/NoWrite/untar_bzip2-i.yaml +10 -0
  2110. data/doc/ri/ZipUtils/NoWrite/untar_gzip-i.yaml +10 -0
  2111. data/doc/ri/ZipUtils/NoWrite/unzip-i.yaml +10 -0
  2112. data/doc/ri/ZipUtils/NoWrite/zip-i.yaml +10 -0
  2113. data/doc/ri/ZipUtils/Verbose/cdesc-Verbose.yaml +32 -0
  2114. data/doc/ri/ZipUtils/Verbose/compress-i.yaml +10 -0
  2115. data/doc/ri/ZipUtils/Verbose/tar_bzip2-i.yaml +10 -0
  2116. data/doc/ri/ZipUtils/Verbose/tar_gzip-i.yaml +10 -0
  2117. data/doc/ri/ZipUtils/Verbose/untar_bzip2-i.yaml +10 -0
  2118. data/doc/ri/ZipUtils/Verbose/untar_gzip-i.yaml +10 -0
  2119. data/doc/ri/ZipUtils/Verbose/unzip-i.yaml +10 -0
  2120. data/doc/ri/ZipUtils/Verbose/zip-i.yaml +10 -0
  2121. data/doc/ri/ZipUtils/cdesc-ZipUtils.yaml +50 -0
  2122. data/doc/ri/ZipUtils/compress-i.yaml +27 -0
  2123. data/doc/ri/ZipUtils/tar_bzip-i.yaml +12 -0
  2124. data/doc/ri/ZipUtils/tar_bzip2-i.yaml +15 -0
  2125. data/doc/ri/ZipUtils/tar_gzip-i.yaml +13 -0
  2126. data/doc/ri/ZipUtils/tar_j-i.yaml +12 -0
  2127. data/doc/ri/ZipUtils/tar_z-i.yaml +12 -0
  2128. data/doc/ri/ZipUtils/tgz-i.yaml +11 -0
  2129. data/doc/ri/ZipUtils/untar_bzip-i.yaml +12 -0
  2130. data/doc/ri/ZipUtils/untar_bzip2-i.yaml +15 -0
  2131. data/doc/ri/ZipUtils/untar_gzip-i.yaml +13 -0
  2132. data/doc/ri/ZipUtils/untar_j-i.yaml +12 -0
  2133. data/doc/ri/ZipUtils/untar_z-i.yaml +12 -0
  2134. data/doc/ri/ZipUtils/unzip-i.yaml +12 -0
  2135. data/doc/ri/ZipUtils/zip-i.yaml +12 -0
  2136. data/doc/ri/created.rid +1 -0
  2137. data/lib/core/facets-live.rb +17 -0
  2138. data/lib/core/facets.rb +11 -0
  2139. data/lib/core/facets/array.rb +23 -0
  2140. data/lib/core/facets/array/combination.rb +60 -0
  2141. data/lib/{facets → core/facets}/array/conjoin.rb +0 -0
  2142. data/lib/{facets → core/facets}/array/delete.rb +0 -0
  2143. data/lib/{facets → core/facets}/array/indexable.rb +0 -0
  2144. data/lib/{facets → core/facets}/array/merge.rb +0 -0
  2145. data/lib/{facets → core/facets}/array/not_empty.rb +0 -0
  2146. data/lib/{facets → core/facets}/array/only.rb +0 -0
  2147. data/lib/{facets → core/facets}/array/pad.rb +0 -0
  2148. data/lib/core/facets/array/permutation.rb +30 -0
  2149. data/lib/core/facets/array/product.rb +57 -0
  2150. data/lib/core/facets/array/recursively.rb +30 -0
  2151. data/lib/{facets → core/facets}/array/rotate.rb +0 -0
  2152. data/lib/{facets → core/facets}/array/select.rb +0 -0
  2153. data/lib/{facets → core/facets}/array/splice.rb +0 -0
  2154. data/lib/{facets → core/facets}/array/stackable.rb +0 -0
  2155. data/lib/{facets → core/facets}/array/traverse.rb +0 -0
  2156. data/lib/core/facets/binding.rb +8 -0
  2157. data/lib/core/facets/binding/caller.rb +54 -0
  2158. data/lib/core/facets/binding/defined.rb +13 -0
  2159. data/lib/core/facets/binding/eval.rb +18 -0
  2160. data/lib/core/facets/binding/local_variables.rb +15 -0
  2161. data/lib/core/facets/binding/opvars.rb +24 -0
  2162. data/lib/core/facets/binding/self.rb +12 -0
  2163. data/lib/{facets → core/facets}/bitmask.rb +0 -0
  2164. data/lib/{facets → core/facets}/blank.rb +0 -0
  2165. data/lib/{facets → core/facets}/boolean.rb +0 -0
  2166. data/lib/{facets → core/facets}/callstack.rb +0 -0
  2167. data/lib/core/facets/class.rb +7 -0
  2168. data/lib/{facets → core/facets}/class/descendents.rb +0 -0
  2169. data/lib/{facets → core/facets}/class/prepend.rb +0 -0
  2170. data/lib/{facets → core/facets}/class/subclasses.rb +0 -0
  2171. data/lib/core/facets/class/to_methodname.rb +11 -0
  2172. data/lib/core/facets/class/to_pathname.rb +12 -0
  2173. data/lib/core/facets/class/to_proc.rb +42 -0
  2174. data/lib/core/facets/comparable.rb +4 -0
  2175. data/lib/{facets → core/facets}/comparable/bound.rb +0 -0
  2176. data/lib/{facets → core/facets}/comparable/cmp.rb +0 -0
  2177. data/lib/{facets → core/facets}/comparable/comparable.rb +0 -0
  2178. data/lib/core/facets/dir.rb +7 -0
  2179. data/lib/{facets → core/facets}/dir/ascend.rb +0 -0
  2180. data/lib/{facets → core/facets}/dir/descend.rb +0 -0
  2181. data/lib/{facets → core/facets}/dir/multiglob.rb +0 -0
  2182. data/lib/{facets → core/facets}/dir/parent.rb +0 -0
  2183. data/lib/{facets → core/facets}/dir/recurse.rb +0 -0
  2184. data/lib/core/facets/enumerable.rb +21 -0
  2185. data/lib/{facets → core/facets}/enumerable/accumulate.rb +0 -0
  2186. data/lib/core/facets/enumerable/cluster_by.rb +21 -0
  2187. data/lib/{facets → core/facets}/enumerable/collect.rb +0 -0
  2188. data/lib/core/facets/enumerable/count.rb +26 -0
  2189. data/lib/{facets → core/facets}/enumerable/divide.rb +0 -0
  2190. data/lib/{facets → core/facets}/enumerable/duplicates.rb +0 -0
  2191. data/lib/{facets → core/facets}/enumerable/each_by.rb +0 -0
  2192. data/lib/core/facets/enumerable/group_by.rb +27 -0
  2193. data/lib/{facets → core/facets}/enumerable/inject.rb +0 -0
  2194. data/lib/{facets → core/facets}/enumerable/map_send.rb +0 -0
  2195. data/lib/{facets → core/facets}/enumerable/mash.rb +0 -0
  2196. data/lib/{facets → core/facets}/enumerable/mode.rb +0 -0
  2197. data/lib/{facets → core/facets}/enumerable/modulate.rb +0 -0
  2198. data/lib/core/facets/enumerable/none.rb +31 -0
  2199. data/lib/{facets → core/facets}/enumerable/occur.rb +0 -0
  2200. data/lib/core/facets/enumerable/one.rb +38 -0
  2201. data/lib/{facets → core/facets}/enumerable/probability.rb +0 -0
  2202. data/lib/{facets → core/facets}/enumerable/split.rb +0 -0
  2203. data/lib/{facets → core/facets}/enumerable/sum.rb +0 -0
  2204. data/lib/{facets → core/facets}/enumerable/uniq_by.rb +0 -0
  2205. data/lib/{facets → core/facets}/exception.rb +0 -0
  2206. data/lib/{facets → core/facets}/exception/detail.rb +0 -0
  2207. data/lib/{facets → core/facets}/exception/suppress.rb +0 -0
  2208. data/lib/core/facets/file.rb +6 -0
  2209. data/lib/{facets → core/facets}/file/null.rb +0 -0
  2210. data/lib/{facets → core/facets}/file/read.rb +0 -0
  2211. data/lib/core/facets/file/rewrite.rb +88 -0
  2212. data/lib/core/facets/file/rootname.rb +33 -0
  2213. data/lib/{facets → core/facets}/file/write.rb +0 -0
  2214. data/lib/core/facets/filetest.rb +1 -0
  2215. data/lib/{facets → core/facets}/filetest/root.rb +0 -0
  2216. data/lib/core/facets/float.rb +1 -0
  2217. data/lib/{facets → core/facets}/float/round.rb +0 -0
  2218. data/lib/{facets → core/facets}/functor.rb +0 -0
  2219. data/lib/core/facets/hash.rb +23 -0
  2220. data/lib/{facets → core/facets}/hash/alias.rb +0 -0
  2221. data/lib/{facets → core/facets}/hash/argumentize.rb +0 -0
  2222. data/lib/{facets → core/facets}/hash/at.rb +0 -0
  2223. data/lib/{facets → core/facets}/hash/autonew.rb +0 -0
  2224. data/lib/{facets → core/facets}/hash/collate.rb +0 -0
  2225. data/lib/{facets → core/facets}/hash/delete.rb +0 -0
  2226. data/lib/{facets → core/facets}/hash/diff.rb +0 -0
  2227. data/lib/{facets → core/facets}/hash/except.rb +0 -0
  2228. data/lib/{facets → core/facets}/hash/insert.rb +0 -0
  2229. data/lib/{facets → core/facets}/hash/inverse.rb +0 -0
  2230. data/lib/{facets → core/facets}/hash/join.rb +0 -0
  2231. data/lib/{facets → core/facets}/hash/keys.rb +0 -0
  2232. data/lib/{facets → core/facets}/hash/mash.rb +0 -0
  2233. data/lib/core/facets/hash/merge.rb +30 -0
  2234. data/lib/{facets → core/facets}/hash/op.rb +0 -0
  2235. data/lib/core/facets/hash/recursive_merge.rb +33 -0
  2236. data/lib/core/facets/hash/recursively.rb +29 -0
  2237. data/lib/core/facets/hash/rekey.rb +59 -0
  2238. data/lib/{facets → core/facets}/hash/select.rb +0 -0
  2239. data/lib/core/facets/hash/slice.rb +25 -0
  2240. data/lib/{facets → core/facets}/hash/stringify_keys.rb +0 -0
  2241. data/lib/{facets → core/facets}/hash/swap.rb +0 -0
  2242. data/lib/{facets → core/facets}/hash/symbolize_keys.rb +0 -0
  2243. data/lib/{facets → core/facets}/hash/to_h.rb +0 -0
  2244. data/lib/{facets → core/facets}/hash/to_proc.rb +0 -0
  2245. data/lib/{facets → core/facets}/hash/to_struct.rb +0 -0
  2246. data/lib/{facets → core/facets}/hash/traverse.rb +0 -0
  2247. data/lib/core/facets/hash/update.rb +75 -0
  2248. data/lib/{facets → core/facets}/hash/weave.rb +0 -0
  2249. data/lib/{facets → core/facets}/hash/zipnew.rb +0 -0
  2250. data/lib/core/facets/integer.rb +8 -0
  2251. data/lib/core/facets/integer/even.rb +1 -0
  2252. data/lib/{facets → core/facets}/integer/factorial.rb +0 -0
  2253. data/lib/{facets → core/facets}/integer/multiple.rb +0 -0
  2254. data/lib/core/facets/integer/odd.rb +33 -0
  2255. data/lib/{facets → core/facets}/integer/of.rb +0 -0
  2256. data/lib/{facets → core/facets}/integer/ordinal.rb +0 -0
  2257. data/lib/core/facets/kernel.rb +31 -0
  2258. data/lib/core/facets/kernel/__callee__.rb +1 -0
  2259. data/lib/{facets → core/facets}/kernel/__class__.rb +0 -0
  2260. data/lib/{facets → core/facets}/kernel/__dir__.rb +0 -0
  2261. data/lib/{facets → core/facets}/kernel/__get__.rb +0 -0
  2262. data/lib/core/facets/kernel/__method__.rb +36 -0
  2263. data/lib/{facets → core/facets}/kernel/__set__.rb +0 -0
  2264. data/lib/{facets → core/facets}/kernel/as.rb +0 -0
  2265. data/lib/core/facets/kernel/ask.rb +27 -0
  2266. data/lib/{facets → core/facets}/kernel/attr_singleton.rb +0 -0
  2267. data/lib/{facets → core/facets}/kernel/complete.rb +0 -0
  2268. data/lib/{facets → core/facets}/kernel/constant.rb +0 -0
  2269. data/lib/{facets → core/facets}/kernel/d.rb +0 -0
  2270. data/lib/{facets → core/facets}/kernel/deep_copy.rb +0 -0
  2271. data/lib/{facets → core/facets}/kernel/demo.rb +0 -0
  2272. data/lib/{facets → core/facets}/kernel/ergo.rb +0 -0
  2273. data/lib/{facets → core/facets}/kernel/here.rb +0 -0
  2274. data/lib/{facets → core/facets}/kernel/in.rb +0 -0
  2275. data/lib/core/facets/kernel/instance.rb +19 -0
  2276. data/lib/{facets → core/facets}/kernel/instance_assign.rb +0 -0
  2277. data/lib/{facets → core/facets}/kernel/instance_class.rb +0 -0
  2278. data/lib/{facets → core/facets}/kernel/instance_exec.rb +0 -0
  2279. data/lib/{facets → core/facets}/kernel/instance_send.rb +0 -0
  2280. data/lib/{facets → core/facets}/kernel/instance_variables.rb +0 -0
  2281. data/lib/{facets → core/facets}/kernel/load.rb +0 -0
  2282. data/lib/{facets → core/facets}/kernel/maybe.rb +0 -0
  2283. data/lib/{facets → core/facets}/kernel/not_nil.rb +0 -0
  2284. data/lib/{facets → core/facets}/kernel/object_class.rb +0 -0
  2285. data/lib/{facets → core/facets}/kernel/object_hexid.rb +0 -0
  2286. data/lib/{facets → core/facets}/kernel/object_send.rb +0 -0
  2287. data/lib/{facets → core/facets}/kernel/p.rb +0 -0
  2288. data/lib/{facets → core/facets}/kernel/populate.rb +0 -0
  2289. data/lib/{facets → core/facets}/kernel/resc.rb +0 -0
  2290. data/lib/{facets → core/facets}/kernel/respond.rb +0 -0
  2291. data/lib/{facets → core/facets}/kernel/returning.rb +0 -0
  2292. data/lib/{facets → core/facets}/kernel/silence.rb +0 -0
  2293. data/lib/{facets → core/facets}/kernel/singleton_class.rb +0 -0
  2294. data/lib/{facets → core/facets}/kernel/suppress.rb +0 -0
  2295. data/lib/core/facets/kernel/tap.rb +32 -0
  2296. data/lib/{facets → core/facets}/kernel/try.rb +0 -0
  2297. data/lib/{facets → core/facets}/kernel/val.rb +0 -0
  2298. data/lib/{facets → core/facets}/kernel/with.rb +0 -0
  2299. data/lib/{facets → core/facets}/lazy.rb +0 -0
  2300. data/lib/core/facets/matchdata.rb +4 -0
  2301. data/lib/{facets → core/facets}/matchdata/match.rb +0 -0
  2302. data/lib/{facets → core/facets}/matchdata/matchset.rb +0 -0
  2303. data/lib/{facets → core/facets}/metaid.rb +0 -0
  2304. data/lib/core/facets/module.rb +20 -0
  2305. data/lib/{facets → core/facets}/module/abstract.rb +0 -0
  2306. data/lib/{facets → core/facets}/module/alias.rb +0 -0
  2307. data/lib/{facets → core/facets}/module/ancestor.rb +0 -0
  2308. data/lib/{facets → core/facets}/module/basename.rb +0 -0
  2309. data/lib/{facets → core/facets}/module/can.rb +0 -0
  2310. data/lib/{facets → core/facets}/module/class.rb +0 -0
  2311. data/lib/{facets → core/facets}/module/clone.rb +0 -0
  2312. data/lib/core/facets/module/conflict.rb +56 -0
  2313. data/lib/{facets → core/facets}/module/include_function_module.rb +0 -0
  2314. data/lib/{facets → core/facets}/module/instance_methods.rb +0 -0
  2315. data/lib/{facets → core/facets}/module/is.rb +0 -0
  2316. data/lib/{facets → core/facets}/module/modspace.rb +0 -0
  2317. data/lib/{facets → core/facets}/module/module_load.rb +0 -0
  2318. data/lib/{facets → core/facets}/module/nesting.rb +0 -0
  2319. data/lib/{facets → core/facets}/module/op.rb +0 -0
  2320. data/lib/{facets → core/facets}/module/pathize.rb +0 -0
  2321. data/lib/{facets → core/facets}/module/prepend.rb +0 -0
  2322. data/lib/{facets → core/facets}/module/revise.rb +0 -0
  2323. data/lib/{facets → core/facets}/module/spacename.rb +0 -0
  2324. data/lib/core/facets/nilclass.rb +3 -0
  2325. data/lib/core/facets/nilclass/to_f.rb +17 -0
  2326. data/lib/core/facets/numeric.rb +4 -0
  2327. data/lib/{facets → core/facets}/numeric/approx.rb +0 -0
  2328. data/lib/{facets → core/facets}/numeric/distance.rb +0 -0
  2329. data/lib/{facets → core/facets}/numeric/round.rb +0 -0
  2330. data/lib/core/facets/proc.rb +7 -0
  2331. data/lib/{facets → core/facets}/proc/bind.rb +0 -0
  2332. data/lib/{facets → core/facets}/proc/compose.rb +0 -0
  2333. data/lib/{facets → core/facets}/proc/curry.rb +0 -0
  2334. data/lib/{facets → core/facets}/proc/partial.rb +0 -0
  2335. data/lib/{facets → core/facets}/proc/to_method.rb +0 -0
  2336. data/lib/{facets → core/facets}/proc/update.rb +0 -0
  2337. data/lib/core/facets/range.rb +6 -0
  2338. data/lib/{facets → core/facets}/range/combine.rb +0 -0
  2339. data/lib/{facets → core/facets}/range/overlap.rb +0 -0
  2340. data/lib/{facets → core/facets}/range/to_r.rb +0 -0
  2341. data/lib/{facets → core/facets}/range/umbrella.rb +0 -0
  2342. data/lib/{facets → core/facets}/range/within.rb +0 -0
  2343. data/lib/core/facets/regexp.rb +3 -0
  2344. data/lib/{facets → core/facets}/regexp/arity.rb +0 -0
  2345. data/lib/{facets → core/facets}/regexp/to_re.rb +0 -0
  2346. data/lib/core/facets/string.rb +35 -0
  2347. data/lib/{facets → core/facets}/string/align.rb +0 -0
  2348. data/lib/{facets → core/facets}/string/bracket.rb +0 -0
  2349. data/lib/core/facets/string/bytes.rb +15 -0
  2350. data/lib/{facets → core/facets}/string/camelcase.rb +0 -0
  2351. data/lib/{facets → core/facets}/string/capitalized.rb +0 -0
  2352. data/lib/core/facets/string/chars.rb +16 -0
  2353. data/lib/{facets → core/facets}/string/chomp.rb +0 -0
  2354. data/lib/{facets → core/facets}/string/cleave.rb +0 -0
  2355. data/lib/{facets → core/facets}/string/divide.rb +0 -0
  2356. data/lib/core/facets/string/each_char.rb +20 -0
  2357. data/lib/core/facets/string/end_with.rb +1 -0
  2358. data/lib/{facets → core/facets}/string/fold.rb +0 -0
  2359. data/lib/{facets → core/facets}/string/interpolate.rb +0 -0
  2360. data/lib/{facets → core/facets}/string/line_wrap.rb +0 -0
  2361. data/lib/core/facets/string/lines.rb +16 -0
  2362. data/lib/{facets → core/facets}/string/mscan.rb +0 -0
  2363. data/lib/{facets → core/facets}/string/natcmp.rb +0 -0
  2364. data/lib/{facets → core/facets}/string/nchar.rb +0 -0
  2365. data/lib/{facets → core/facets}/string/range.rb +0 -0
  2366. data/lib/{facets → core/facets}/string/rewrite.rb +0 -0
  2367. data/lib/{facets → core/facets}/string/shatter.rb +0 -0
  2368. data/lib/{facets → core/facets}/string/snakecase.rb +0 -0
  2369. data/lib/{facets → core/facets}/string/splice.rb +0 -0
  2370. data/lib/core/facets/string/start_with.rb +32 -0
  2371. data/lib/{facets → core/facets}/string/subtract.rb +0 -0
  2372. data/lib/{facets → core/facets}/string/tab.rb +0 -0
  2373. data/lib/{facets → core/facets}/string/titlecase.rb +0 -0
  2374. data/lib/{facets → core/facets}/string/to_re.rb +0 -0
  2375. data/lib/core/facets/string/to_time.rb +15 -0
  2376. data/lib/{facets → core/facets}/string/words.rb +0 -0
  2377. data/lib/{facets → core/facets}/string/xor.rb +0 -0
  2378. data/lib/core/facets/symbol.rb +5 -0
  2379. data/lib/{facets → core/facets}/symbol/chomp.rb +0 -0
  2380. data/lib/{facets → core/facets}/symbol/generate.rb +0 -0
  2381. data/lib/{facets → core/facets}/symbol/not.rb +0 -0
  2382. data/lib/core/facets/symbol/succ.rb +19 -0
  2383. data/lib/core/facets/symbol/to_proc.rb +38 -0
  2384. data/lib/core/facets/time.rb +13 -0
  2385. data/lib/{facets → core/facets}/time/ago.rb +0 -0
  2386. data/lib/core/facets/time/change.rb +47 -0
  2387. data/lib/{facets → core/facets}/time/elapse.rb +0 -0
  2388. data/lib/core/facets/time/hence.rb +61 -0
  2389. data/lib/core/facets/time/round.rb +17 -0
  2390. data/lib/{facets → core/facets}/time/set.rb +0 -0
  2391. data/lib/{facets → core/facets}/time/stamp.rb +0 -0
  2392. data/lib/core/facets/time/to_date.rb +26 -0
  2393. data/lib/core/facets/time/to_time.rb +15 -0
  2394. data/lib/core/facets/time/trunc.rb +15 -0
  2395. data/lib/{facets → core/facets}/to_hash.rb +0 -0
  2396. data/lib/core/facets/unboundmethod.rb +3 -0
  2397. data/lib/{facets → core/facets}/unboundmethod/arguments.rb +0 -0
  2398. data/lib/core/facets/unboundmethod/name.rb +25 -0
  2399. data/lib/{facets → lore/facets}/basicobject.rb +0 -0
  2400. data/lib/{facets → lore/facets}/cgi.rb +0 -0
  2401. data/lib/{facets → lore/facets}/continuation.rb +0 -0
  2402. data/lib/{facets → lore/facets}/date.rb +0 -0
  2403. data/lib/{facets → lore/facets}/fileutils.rb +0 -0
  2404. data/lib/{facets → lore/facets}/fileutils/head.rb +0 -0
  2405. data/lib/{facets → lore/facets}/fileutils/safe_ln.rb +0 -0
  2406. data/lib/{facets → lore/facets}/fileutils/slice.rb +0 -0
  2407. data/lib/{facets → lore/facets}/fileutils/tail.rb +0 -0
  2408. data/lib/{facets → lore/facets}/fileutils/wc.rb +0 -0
  2409. data/lib/lore/facets/fileutils/whereis.rb +64 -0
  2410. data/lib/{facets → lore/facets}/fileutils/which.rb +0 -0
  2411. data/lib/{facets → lore/facets}/getoptlong.rb +0 -0
  2412. data/lib/{facets → lore/facets}/logger.rb +0 -0
  2413. data/lib/{facets → lore/facets}/ostruct.rb +0 -0
  2414. data/lib/lore/facets/pathname.rb +141 -0
  2415. data/lib/{facets → lore/facets}/rbconfig.rb +0 -0
  2416. data/lib/{facets → lore/facets}/set.rb +0 -0
  2417. data/lib/{facets → lore/facets}/shellwords.rb +0 -0
  2418. data/lib/{facets → lore/facets}/uri.rb +0 -0
  2419. data/lib/lore/facets/yaml.rb +75 -0
  2420. data/lib/{facets → more/facets}/1stclassmethod.rb +0 -0
  2421. data/lib/{facets → more/facets}/advisable.rb +0 -0
  2422. data/lib/{facets → more/facets}/annotations.rb +0 -0
  2423. data/lib/more/facets/ansicode.rb +320 -0
  2424. data/lib/more/facets/arguments.rb +363 -0
  2425. data/lib/{facets → more/facets}/association.rb +0 -0
  2426. data/lib/{facets → more/facets}/attr.rb +0 -0
  2427. data/lib/{facets → more/facets}/autoarray.rb +0 -0
  2428. data/lib/{facets → more/facets}/autoreload.rb +0 -0
  2429. data/lib/{facets → more/facets}/basex.rb +0 -0
  2430. data/lib/{facets → more/facets}/bbcode.rb +0 -0
  2431. data/lib/{facets → more/facets}/bicrypt.rb +0 -0
  2432. data/lib/{facets → more/facets}/binreadable.rb +0 -0
  2433. data/lib/{facets → more/facets}/buildable.rb +0 -0
  2434. data/lib/{facets → more/facets}/bytes.rb +0 -0
  2435. data/lib/{facets → more/facets}/cachedecorator.rb +0 -0
  2436. data/lib/{facets → more/facets}/capsule.rb +0 -0
  2437. data/lib/{facets → more/facets}/cattr.rb +0 -0
  2438. data/lib/{facets → more/facets}/chain.rb +0 -0
  2439. data/lib/{facets → more/facets}/class_extension.rb +0 -0
  2440. data/lib/{facets → more/facets}/classmethods.rb +0 -0
  2441. data/lib/{facets → more/facets}/cloneable.rb +0 -0
  2442. data/lib/more/facets/command.rb +436 -0
  2443. data/lib/{facets → more/facets}/consoleutils.rb +0 -0
  2444. data/lib/{facets → more/facets}/coroutine.rb +0 -0
  2445. data/lib/{facets → more/facets}/crypt.rb +0 -0
  2446. data/lib/{facets → more/facets}/cssfilter.rb +0 -0
  2447. data/lib/{facets → more/facets}/daemonize.rb +0 -0
  2448. data/lib/{facets → more/facets}/dependency.rb +0 -0
  2449. data/lib/more/facets/dictionary.rb +478 -0
  2450. data/lib/more/facets/dictionarymatcher.rb +136 -0
  2451. data/lib/{facets → more/facets}/downloader.rb +0 -0
  2452. data/lib/{facets → more/facets}/duplicable.rb +0 -0
  2453. data/lib/{facets → more/facets}/duration.rb +0 -0
  2454. data/lib/{facets → more/facets}/elementor.rb +0 -0
  2455. data/lib/{facets → more/facets}/elementwise.rb +0 -0
  2456. data/lib/{facets → more/facets}/enumerablepass.rb +0 -0
  2457. data/lib/{facets → more/facets}/equatable.rb +0 -0
  2458. data/lib/{facets → more/facets}/eventhook.rb +0 -0
  2459. data/lib/{facets → more/facets}/expirable.rb +0 -0
  2460. data/lib/{facets → more/facets}/fileable.rb +0 -0
  2461. data/lib/more/facets/filelist.rb +497 -0
  2462. data/lib/{facets → more/facets}/fileshell.rb +0 -0
  2463. data/lib/{facets → more/facets}/heap.rb +0 -0
  2464. data/lib/{facets → more/facets}/htmlfilter.rb +0 -0
  2465. data/lib/{facets → more/facets}/indexable.rb +0 -0
  2466. data/lib/{facets → more/facets}/infinity.rb +0 -0
  2467. data/lib/{facets → more/facets}/inheritor.rb +0 -0
  2468. data/lib/more/facets/ini.rb +264 -0
  2469. data/lib/{facets → more/facets}/instantiable.rb +0 -0
  2470. data/lib/{facets → more/facets}/instantise.rb +0 -0
  2471. data/lib/{facets → more/facets}/interval.rb +0 -0
  2472. data/lib/{facets → more/facets}/ioredirect.rb +0 -0
  2473. data/lib/{facets → more/facets}/iteration.rb +0 -0
  2474. data/lib/more/facets/kernel/meta.rb +32 -0
  2475. data/lib/{facets → more/facets}/linkedlist.rb +0 -0
  2476. data/lib/{facets → more/facets}/lrucache.rb +0 -0
  2477. data/lib/{facets → more/facets}/main.rb +0 -0
  2478. data/lib/{facets → more/facets}/memoize.rb +0 -0
  2479. data/lib/{facets → more/facets}/methodspace.rb +0 -0
  2480. data/lib/{facets → more/facets}/minitar.rb +0 -0
  2481. data/lib/{facets → more/facets}/multipliers.rb +0 -0
  2482. data/lib/{facets → more/facets}/multiton.rb +0 -0
  2483. data/lib/{facets → more/facets}/nackclass.rb +0 -0
  2484. data/lib/{facets → more/facets}/net/smtp_tls.rb +0 -0
  2485. data/lib/{facets → more/facets}/nilstatus.rb +0 -0
  2486. data/lib/{facets → more/facets}/nullclass.rb +0 -0
  2487. data/lib/{facets → more/facets}/opencascade.rb +0 -0
  2488. data/lib/{facets → more/facets}/opencollection.rb +0 -0
  2489. data/lib/{facets → more/facets}/openhash.rb +0 -0
  2490. data/lib/{facets → more/facets}/openobject.rb +0 -0
  2491. data/lib/{facets → more/facets}/opesc.rb +0 -0
  2492. data/lib/{facets → more/facets}/orderedhash.rb +0 -0
  2493. data/lib/more/facets/overload.rb +94 -0
  2494. data/lib/more/facets/paramix.rb +202 -0
  2495. data/lib/{facets → more/facets}/pathlist.rb +0 -0
  2496. data/lib/{facets → more/facets}/platform.rb +0 -0
  2497. data/lib/{facets → more/facets}/pool.rb +0 -0
  2498. data/lib/{facets → more/facets}/pqueue.rb +0 -0
  2499. data/lib/{facets → more/facets}/progressbar.rb +0 -0
  2500. data/lib/{facets → more/facets}/prototype.rb +0 -0
  2501. data/lib/{facets → more/facets}/random.rb +0 -0
  2502. data/lib/{facets → more/facets}/rbsystem.rb +0 -0
  2503. data/lib/{facets → more/facets}/recorder.rb +0 -0
  2504. data/lib/{facets → more/facets}/reference.rb +0 -0
  2505. data/lib/more/facets/reflection.rb +145 -0
  2506. data/lib/{facets → more/facets}/registerable.rb +0 -0
  2507. data/lib/{facets → more/facets}/rwdelegator.rb +0 -0
  2508. data/lib/{facets → more/facets}/semaphore.rb +0 -0
  2509. data/lib/{facets → more/facets}/settings.rb +0 -0
  2510. data/lib/{facets → more/facets}/snapshot.rb +0 -0
  2511. data/lib/{facets → more/facets}/stackable.rb +0 -0
  2512. data/lib/{facets → more/facets}/style.rb +0 -0
  2513. data/lib/{facets → more/facets}/succ.rb +0 -0
  2514. data/lib/{facets → more/facets}/syncarray.rb +0 -0
  2515. data/lib/{facets → more/facets}/synchash.rb +0 -0
  2516. data/lib/{facets → more/facets}/thread.rb +0 -0
  2517. data/lib/{facets → more/facets}/timer.rb +0 -0
  2518. data/lib/{facets → more/facets}/times.rb +0 -0
  2519. data/lib/{facets → more/facets}/tracepoint.rb +0 -0
  2520. data/lib/{facets → more/facets}/tuple.rb +0 -0
  2521. data/lib/{facets → more/facets}/typecast.rb +0 -0
  2522. data/lib/{facets → more/facets}/uninheritable.rb +0 -0
  2523. data/lib/{facets → more/facets}/uploadutils.rb +0 -0
  2524. data/lib/{facets → more/facets}/version.rb +0 -0
  2525. data/lib/{facets → more/facets}/xmlhash.rb +0 -0
  2526. data/lib/{facets → more/facets}/xoxo.rb +0 -0
  2527. data/lib/{facets → more/facets}/ziputils.rb +0 -0
  2528. data/test/core/array/test_combination.rb +29 -0
  2529. data/test/{array → core/array}/test_delete.rb +0 -0
  2530. data/test/{array → core/array}/test_indexable.rb +0 -0
  2531. data/test/{array → core/array}/test_merge.rb +0 -0
  2532. data/test/{array → core/array}/test_only.rb +0 -0
  2533. data/test/{array → core/array}/test_pad.rb +0 -0
  2534. data/test/core/array/test_permutation.rb +14 -0
  2535. data/test/core/array/test_product.rb +58 -0
  2536. data/test/{array → core/array}/test_rotate.rb +0 -0
  2537. data/test/{array → core/array}/test_select.rb +0 -0
  2538. data/test/{array → core/array}/test_stackable.rb +0 -0
  2539. data/test/{binding → core/binding}/test_caller.rb +0 -0
  2540. data/test/{binding → core/binding}/test_defined.rb +0 -0
  2541. data/test/core/binding/test_eval.rb +16 -0
  2542. data/test/{binding → core/binding}/test_local_variables.rb +0 -0
  2543. data/test/{binding → core/binding}/test_opvars.rb +0 -0
  2544. data/test/{binding → core/binding}/test_self.rb +0 -0
  2545. data/test/{class → core/class}/test_descendents.rb +0 -0
  2546. data/test/{comparable → core/comparable}/test_bound.rb +0 -0
  2547. data/test/{comparable → core/comparable}/test_cmp.rb +0 -0
  2548. data/test/{comparable → core/comparable}/test_comparable.rb +0 -0
  2549. data/test/{dir → core/dir}/test_ascend.rb +0 -0
  2550. data/test/{dir → core/dir}/test_descend.rb +0 -0
  2551. data/test/{dir → core/dir}/test_multiglob.rb +0 -0
  2552. data/test/{dir → core/dir}/test_parent.rb +0 -0
  2553. data/test/{dir → core/dir}/test_recurse.rb +0 -0
  2554. data/test/{enumerable → core/enumerable}/test_cluster_by.rb +0 -0
  2555. data/test/{enumerable → core/enumerable}/test_collect.rb +0 -0
  2556. data/test/core/enumerable/test_count.rb +22 -0
  2557. data/test/{enumerable → core/enumerable}/test_each_by.rb +0 -0
  2558. data/test/core/enumerable/test_group_by.rb +26 -0
  2559. data/test/{enumerable → core/enumerable}/test_inject.rb +0 -0
  2560. data/test/{enumerable → core/enumerable}/test_mash.rb +0 -0
  2561. data/test/core/enumerable/test_modulate.rb +14 -0
  2562. data/test/core/enumerable/test_none.rb +17 -0
  2563. data/test/{enumerable → core/enumerable}/test_occur.rb +0 -0
  2564. data/test/core/enumerable/test_one.rb +19 -0
  2565. data/test/{enumerable → core/enumerable}/test_probability.rb +0 -0
  2566. data/test/{enumerable → core/enumerable}/test_uniq_by.rb +0 -0
  2567. data/test/{exception → core/exception}/test_exception.rb +0 -0
  2568. data/test/{file → core/file}/test_file.rb +0 -0
  2569. data/test/{filetest → core/filetest}/test_filetest.rb +0 -0
  2570. data/test/{hash → core/hash}/test_alias.rb +0 -0
  2571. data/test/{hash → core/hash}/test_at.rb +0 -0
  2572. data/test/{hash → core/hash}/test_autonew.rb +0 -0
  2573. data/test/{hash → core/hash}/test_collate.rb +0 -0
  2574. data/test/{hash → core/hash}/test_delete.rb +0 -0
  2575. data/test/{hash → core/hash}/test_insert.rb +0 -0
  2576. data/test/{hash → core/hash}/test_inverse.rb +0 -0
  2577. data/test/{hash → core/hash}/test_keys.rb +0 -0
  2578. data/test/{hash → core/hash}/test_mash.rb +0 -0
  2579. data/test/{hash → core/hash}/test_merge.rb +0 -0
  2580. data/test/{hash → core/hash}/test_op.rb +0 -0
  2581. data/test/core/hash/test_rekey.rb +73 -0
  2582. data/test/{hash → core/hash}/test_select.rb +0 -0
  2583. data/test/{hash → core/hash}/test_stringify_keys.rb +0 -0
  2584. data/test/{hash → core/hash}/test_swap.rb +0 -0
  2585. data/test/{hash → core/hash}/test_symbolize_keys.rb +0 -0
  2586. data/test/{hash → core/hash}/test_traverse.rb +0 -0
  2587. data/test/core/hash/test_update.rb +46 -0
  2588. data/test/{hash → core/hash}/test_weave.rb +0 -0
  2589. data/test/{hash → core/hash}/test_zipnew.rb +0 -0
  2590. data/test/{integer → core/integer}/test_bitmask.rb +0 -0
  2591. data/test/core/integer/test_even.rb +25 -0
  2592. data/test/{integer → core/integer}/test_factorial.rb +0 -0
  2593. data/test/{integer → core/integer}/test_multiple.rb +0 -0
  2594. data/test/{integer → core/integer}/test_of.rb +0 -0
  2595. data/test/{integer → core/integer}/test_ordinal.rb +0 -0
  2596. data/test/{kernel → core/kernel}/test_as.rb +0 -0
  2597. data/test/{kernel → core/kernel}/test_attr_singleton.rb +0 -0
  2598. data/test/{kernel → core/kernel}/test_callstack.rb +0 -0
  2599. data/test/{kernel → core/kernel}/test_constant.rb +0 -0
  2600. data/test/{kernel → core/kernel}/test_deepcopy.rb +0 -0
  2601. data/test/{kernel → core/kernel}/test_here.rb +0 -0
  2602. data/test/{kernel → core/kernel}/test_in.rb +0 -0
  2603. data/test/{kernel → core/kernel}/test_instance_assign.rb +0 -0
  2604. data/test/{kernel → core/kernel}/test_instance_class.rb +0 -0
  2605. data/test/{kernel → core/kernel}/test_not_nil.rb +0 -0
  2606. data/test/{kernel → core/kernel}/test_object_class.rb +0 -0
  2607. data/test/{kernel → core/kernel}/test_object_hexid.rb +0 -0
  2608. data/test/{kernel → core/kernel}/test_populate.rb +0 -0
  2609. data/test/{kernel → core/kernel}/test_resc.rb +0 -0
  2610. data/test/{kernel → core/kernel}/test_returning.rb +0 -0
  2611. data/test/{kernel → core/kernel}/test_silence.rb +0 -0
  2612. data/test/core/kernel/test_tap.rb +19 -0
  2613. data/test/{kernel → core/kernel}/test_val.rb +0 -0
  2614. data/test/{matchdata → core/matchdata}/test_match.rb +0 -0
  2615. data/test/{matchdata → core/matchdata}/test_matchset.rb +0 -0
  2616. data/test/{module → core/module}/test_abstract.rb +0 -0
  2617. data/test/{module → core/module}/test_alias.rb +0 -0
  2618. data/test/{module → core/module}/test_ancestor.rb +0 -0
  2619. data/test/{module → core/module}/test_basename.rb +0 -0
  2620. data/test/{module → core/module}/test_clone.rb +0 -0
  2621. data/test/{module → core/module}/test_modspace.rb +0 -0
  2622. data/test/{module → core/module}/test_nesting.rb +0 -0
  2623. data/test/{module → core/module}/test_op.rb +0 -0
  2624. data/test/{module → core/module}/test_pathize.rb +0 -0
  2625. data/test/{module → core/module}/test_revise.rb +0 -0
  2626. data/test/{module → core/module}/test_spacename.rb +0 -0
  2627. data/test/core/nilclass/test_to_f.rb +11 -0
  2628. data/test/{numeric → core/numeric}/test_approx.rb +0 -0
  2629. data/test/{numeric → core/numeric}/test_distance.rb +0 -0
  2630. data/test/{numeric → core/numeric}/test_round.rb +0 -0
  2631. data/test/{proc → core/proc}/test_bind.rb +0 -0
  2632. data/test/{proc → core/proc}/test_compose.rb +0 -0
  2633. data/test/{proc → core/proc}/test_curry.rb +0 -0
  2634. data/test/{proc → core/proc}/test_partial.rb +0 -0
  2635. data/test/{proc → core/proc}/test_to_method.rb +0 -0
  2636. data/test/{range → core/range}/test_combine.rb +0 -0
  2637. data/test/{range → core/range}/test_overlap.rb +0 -0
  2638. data/test/{range → core/range}/test_to_r.rb +0 -0
  2639. data/test/{range → core/range}/test_within.rb +0 -0
  2640. data/test/{regexp → core/regexp}/test_arity.rb +0 -0
  2641. data/test/{regexp → core/regexp}/test_to_re.rb +0 -0
  2642. data/test/{string → core/string}/test_align.rb +0 -0
  2643. data/test/{string → core/string}/test_bracket.rb +0 -0
  2644. data/test/core/string/test_bytes.rb +12 -0
  2645. data/test/{string → core/string}/test_camelcase.rb +0 -0
  2646. data/test/{string → core/string}/test_capitalized.rb +0 -0
  2647. data/test/core/string/test_chars.rb +12 -0
  2648. data/test/{string → core/string}/test_cleave.rb +0 -0
  2649. data/test/{string → core/string}/test_divide.rb +0 -0
  2650. data/test/core/string/test_each_char.rb +14 -0
  2651. data/test/{string → core/string}/test_fold.rb +0 -0
  2652. data/test/{string → core/string}/test_interpolate.rb +0 -0
  2653. data/test/{string → core/string}/test_line_wrap.rb +0 -0
  2654. data/test/core/string/test_lines.rb +11 -0
  2655. data/test/{string → core/string}/test_mscan.rb +0 -0
  2656. data/test/{string → core/string}/test_natcmp.rb +0 -0
  2657. data/test/{string → core/string}/test_nchar.rb +0 -0
  2658. data/test/{string → core/string}/test_range.rb +0 -0
  2659. data/test/{string → core/string}/test_shatter.rb +0 -0
  2660. data/test/{string → core/string}/test_snakecase.rb +0 -0
  2661. data/test/{string → core/string}/test_subtract.rb +0 -0
  2662. data/test/{string → core/string}/test_tab.rb +0 -0
  2663. data/test/{string → core/string}/test_titlecase.rb +0 -0
  2664. data/test/{string → core/string}/test_to_re.rb +0 -0
  2665. data/test/core/string/test_to_time.rb +15 -0
  2666. data/test/{string → core/string}/test_words.rb +0 -0
  2667. data/test/{string → core/string}/test_xor.rb +0 -0
  2668. data/test/{symbol → core/symbol}/test_chomp.rb +0 -0
  2669. data/test/{symbol → core/symbol}/test_generate.rb +0 -0
  2670. data/test/{symbol → core/symbol}/test_not.rb +0 -0
  2671. data/test/core/symbol/test_succ.rb +13 -0
  2672. data/test/core/symbol/test_to_proc.rb +32 -0
  2673. data/test/{time → core/time}/test_change.rb +0 -0
  2674. data/test/{time → core/time}/test_elapse.rb +0 -0
  2675. data/test/core/time/test_hence.rb +13 -0
  2676. data/test/core/time/test_round.rb +31 -0
  2677. data/test/{time → core/time}/test_stamp.rb +0 -0
  2678. data/test/core/time/test_to_date.rb +12 -0
  2679. data/test/core/time/test_to_time.rb +12 -0
  2680. data/test/core/time/test_trunc.rb +31 -0
  2681. data/test/{test_basicobject.rb → lore/test_basicobject.rb} +0 -0
  2682. data/test/{test_continuation.rb → lore/test_continuation.rb} +0 -0
  2683. data/test/{test_date.rb → lore/test_date.rb} +0 -0
  2684. data/test/{test_ostruct.rb → lore/test_ostruct.rb} +0 -0
  2685. data/test/{test_1stclassmethod.rb → more/test_1stclassmethod.rb} +0 -0
  2686. data/test/{test_advisable.rb → more/test_advisable.rb} +0 -0
  2687. data/test/{test_annotations.rb → more/test_annotations.rb} +0 -0
  2688. data/test/more/test_ansicode.rb +20 -0
  2689. data/test/{test_arguments.rb → more/test_arguments.rb} +0 -0
  2690. data/test/{test_association.rb → more/test_association.rb} +0 -0
  2691. data/test/{test_autoarray.rb → more/test_autoarray.rb} +0 -0
  2692. data/test/{test_bbcode.rb → more/test_bbcode.rb} +0 -0
  2693. data/test/{test_binreadable.rb → more/test_binreadable.rb} +0 -0
  2694. data/test/{test_blank.rb → more/test_blank.rb} +0 -0
  2695. data/test/{test_boolean.rb → more/test_boolean.rb} +0 -0
  2696. data/test/{test_buildable.rb → more/test_buildable.rb} +0 -0
  2697. data/test/{test_bytes.rb → more/test_bytes.rb} +0 -0
  2698. data/test/{test_cattr.rb → more/test_cattr.rb} +0 -0
  2699. data/test/{test_class_extension.rb → more/test_class_extension.rb} +0 -0
  2700. data/test/{test_classmethods.rb → more/test_classmethods.rb} +0 -0
  2701. data/test/{test_cloneable.rb → more/test_cloneable.rb} +0 -0
  2702. data/test/{test_command.rb → more/test_command.rb} +0 -0
  2703. data/test/{test_coroutine.rb → more/test_coroutine.rb} +0 -0
  2704. data/test/{test_crypt.rb → more/test_crypt.rb} +0 -0
  2705. data/test/{test_dependency.rb → more/test_dependency.rb} +0 -0
  2706. data/test/more/test_dictionary.rb +145 -0
  2707. data/test/{test_elementor.rb → more/test_elementor.rb} +0 -0
  2708. data/test/{test_elementwise.rb → more/test_elementwise.rb} +0 -0
  2709. data/test/{test_enumerablepass.rb → more/test_enumerablepass.rb} +0 -0
  2710. data/test/{test_equatable.rb → more/test_equatable.rb} +0 -0
  2711. data/test/{test_functor.rb → more/test_functor.rb} +0 -0
  2712. data/test/{test_getoptlong.rb → more/test_getoptlong.rb} +0 -0
  2713. data/test/{test_infinity.rb → more/test_infinity.rb} +0 -0
  2714. data/test/{test_inheritor.rb → more/test_inheritor.rb} +0 -0
  2715. data/test/{test_instantiable.rb → more/test_instantiable.rb} +0 -0
  2716. data/test/{test_instantise.rb → more/test_instantise.rb} +0 -0
  2717. data/test/{test_interval.rb → more/test_interval.rb} +0 -0
  2718. data/test/{test_linkedlist.rb → more/test_linkedlist.rb} +0 -0
  2719. data/test/{test_lrucache.rb → more/test_lrucache.rb} +0 -0
  2720. data/test/{test_memoize.rb → more/test_memoize.rb} +0 -0
  2721. data/test/{test_metaid.rb → more/test_metaid.rb} +0 -0
  2722. data/test/{test_methodspace.rb → more/test_methodspace.rb} +0 -0
  2723. data/test/{test_multipliers.rb → more/test_multipliers.rb} +0 -0
  2724. data/test/{test_multiton.rb → more/test_multiton.rb} +0 -0
  2725. data/test/{test_opencascade.rb → more/test_opencascade.rb} +0 -0
  2726. data/test/{test_openobject.rb → more/test_openobject.rb} +0 -0
  2727. data/test/more/test_overload.rb +160 -0
  2728. data/test/more/test_paramix.rb +167 -0
  2729. data/test/{test_prototype.rb → more/test_prototype.rb} +0 -0
  2730. data/test/{test_random.rb → more/test_random.rb} +0 -0
  2731. data/test/{test_recorder.rb → more/test_recorder.rb} +0 -0
  2732. data/test/{test_snapshot.rb → more/test_snapshot.rb} +0 -0
  2733. data/test/{test_style.rb → more/test_style.rb} +0 -0
  2734. data/test/{test_succ.rb → more/test_succ.rb} +0 -0
  2735. data/test/{test_syncarray.rb → more/test_syncarray.rb} +0 -0
  2736. data/test/{test_synchash.rb → more/test_synchash.rb} +0 -0
  2737. data/test/{test_thread.rb → more/test_thread.rb} +0 -0
  2738. data/test/{test_timer.rb → more/test_timer.rb} +0 -0
  2739. data/test/{test_times.rb → more/test_times.rb} +0 -0
  2740. data/test/{test_to_hash.rb → more/test_to_hash.rb} +0 -0
  2741. data/test/{test_tuple.rb → more/test_tuple.rb} +0 -0
  2742. data/test/{test_typecast.rb → more/test_typecast.rb} +0 -0
  2743. data/test/{test_uninheritable.rb → more/test_uninheritable.rb} +0 -0
  2744. data/test/{test_uri.rb → more/test_uri.rb} +0 -0
  2745. data/test/{test_xoxo.rb → more/test_xoxo.rb} +0 -0
  2746. metadata +3354 -1528
  2747. data/NOTES +0 -58
  2748. data/doc/html/api.css +0 -79
  2749. data/doc/html/api/core/classes/Array.html +0 -894
  2750. data/doc/html/api/core/classes/Binding.html +0 -419
  2751. data/doc/html/api/core/classes/Class.html +0 -218
  2752. data/doc/html/api/core/classes/Comparable.html +0 -261
  2753. data/doc/html/api/core/classes/Dir.html +0 -397
  2754. data/doc/html/api/core/classes/Enumerable.html +0 -1124
  2755. data/doc/html/api/core/classes/Exception.html +0 -130
  2756. data/doc/html/api/core/classes/File.html +0 -456
  2757. data/doc/html/api/core/classes/FileTest.html +0 -118
  2758. data/doc/html/api/core/classes/Float.html +0 -133
  2759. data/doc/html/api/core/classes/Functor.html +0 -173
  2760. data/doc/html/api/core/classes/Hash.html +0 -1992
  2761. data/doc/html/api/core/classes/Indexable.html +0 -606
  2762. data/doc/html/api/core/classes/Integer.html +0 -577
  2763. data/doc/html/api/core/classes/Kernel.html +0 -2135
  2764. data/doc/html/api/core/classes/MatchData.html +0 -203
  2765. data/doc/html/api/core/classes/MissingArgument.html +0 -97
  2766. data/doc/html/api/core/classes/Module.html +0 -1605
  2767. data/doc/html/api/core/classes/Module/CloneExtensions.html +0 -188
  2768. data/doc/html/api/core/classes/Object.html +0 -147
  2769. data/doc/html/api/core/classes/Proc.html +0 -346
  2770. data/doc/html/api/core/classes/Range.html +0 -360
  2771. data/doc/html/api/core/classes/Regexp.html +0 -193
  2772. data/doc/html/api/core/classes/Stackable.html +0 -264
  2773. data/doc/html/api/core/classes/String.html +0 -2297
  2774. data/doc/html/api/core/classes/String/Words.html +0 -330
  2775. data/doc/html/api/core/classes/Time.html +0 -521
  2776. data/doc/html/api/core/classes/UnboundMethod.html +0 -196
  2777. data/doc/html/api/core/created.rid +0 -1
  2778. data/doc/html/api/core/files/AUTHORS.html +0 -256
  2779. data/doc/html/api/core/files/CHANGES.html +0 -275
  2780. data/doc/html/api/core/files/COPYING.html +0 -462
  2781. data/doc/html/api/core/files/MANIFEST.html +0 -597
  2782. data/doc/html/api/core/files/NOTES.html +0 -164
  2783. data/doc/html/api/core/files/README.html +0 -412
  2784. data/doc/html/api/core/files/lib/facets/array/conjoin_rb.html +0 -92
  2785. data/doc/html/api/core/files/lib/facets/array/delete_rb.html +0 -92
  2786. data/doc/html/api/core/files/lib/facets/array/indexable_rb.html +0 -97
  2787. data/doc/html/api/core/files/lib/facets/array/merge_rb.html +0 -92
  2788. data/doc/html/api/core/files/lib/facets/array/not_empty_rb.html +0 -92
  2789. data/doc/html/api/core/files/lib/facets/array/only_rb.html +0 -92
  2790. data/doc/html/api/core/files/lib/facets/array/pad_rb.html +0 -92
  2791. data/doc/html/api/core/files/lib/facets/array/product_rb.html +0 -96
  2792. data/doc/html/api/core/files/lib/facets/array/rotate_rb.html +0 -92
  2793. data/doc/html/api/core/files/lib/facets/array/select_rb.html +0 -92
  2794. data/doc/html/api/core/files/lib/facets/array/splice_rb.html +0 -92
  2795. data/doc/html/api/core/files/lib/facets/array/stackable_rb.html +0 -97
  2796. data/doc/html/api/core/files/lib/facets/array/traverse_rb.html +0 -92
  2797. data/doc/html/api/core/files/lib/facets/array_rb.html +0 -129
  2798. data/doc/html/api/core/files/lib/facets/binding/caller_rb.html +0 -97
  2799. data/doc/html/api/core/files/lib/facets/binding/defined_rb.html +0 -96
  2800. data/doc/html/api/core/files/lib/facets/binding/local_variables_rb.html +0 -96
  2801. data/doc/html/api/core/files/lib/facets/binding/opvars_rb.html +0 -96
  2802. data/doc/html/api/core/files/lib/facets/binding/self_rb.html +0 -96
  2803. data/doc/html/api/core/files/lib/facets/binding_rb.html +0 -99
  2804. data/doc/html/api/core/files/lib/facets/bitmask_rb.html +0 -92
  2805. data/doc/html/api/core/files/lib/facets/blank_rb.html +0 -97
  2806. data/doc/html/api/core/files/lib/facets/boolean_rb.html +0 -126
  2807. data/doc/html/api/core/files/lib/facets/callstack_rb.html +0 -92
  2808. data/doc/html/api/core/files/lib/facets/class/descendents_rb.html +0 -92
  2809. data/doc/html/api/core/files/lib/facets/class/prepend_rb.html +0 -92
  2810. data/doc/html/api/core/files/lib/facets/class/subclasses_rb.html +0 -96
  2811. data/doc/html/api/core/files/lib/facets/class_rb.html +0 -97
  2812. data/doc/html/api/core/files/lib/facets/comparable/bound_rb.html +0 -92
  2813. data/doc/html/api/core/files/lib/facets/comparable/cmp_rb.html +0 -92
  2814. data/doc/html/api/core/files/lib/facets/comparable/comparable_rb.html +0 -109
  2815. data/doc/html/api/core/files/lib/facets/comparable_rb.html +0 -99
  2816. data/doc/html/api/core/files/lib/facets/dir/ascend_rb.html +0 -92
  2817. data/doc/html/api/core/files/lib/facets/dir/descend_rb.html +0 -96
  2818. data/doc/html/api/core/files/lib/facets/dir/multiglob_rb.html +0 -92
  2819. data/doc/html/api/core/files/lib/facets/dir/parent_rb.html +0 -92
  2820. data/doc/html/api/core/files/lib/facets/dir/recurse_rb.html +0 -92
  2821. data/doc/html/api/core/files/lib/facets/dir_rb.html +0 -102
  2822. data/doc/html/api/core/files/lib/facets/duplicable_rb.html +0 -100
  2823. data/doc/html/api/core/files/lib/facets/enumerable/accumulate_rb.html +0 -96
  2824. data/doc/html/api/core/files/lib/facets/enumerable/cluster_by_rb.html +0 -96
  2825. data/doc/html/api/core/files/lib/facets/enumerable/collect_rb.html +0 -92
  2826. data/doc/html/api/core/files/lib/facets/enumerable/divide_rb.html +0 -92
  2827. data/doc/html/api/core/files/lib/facets/enumerable/duplicates_rb.html +0 -92
  2828. data/doc/html/api/core/files/lib/facets/enumerable/each_by_rb.html +0 -96
  2829. data/doc/html/api/core/files/lib/facets/enumerable/inject_rb.html +0 -92
  2830. data/doc/html/api/core/files/lib/facets/enumerable/map_send_rb.html +0 -92
  2831. data/doc/html/api/core/files/lib/facets/enumerable/mash_rb.html +0 -92
  2832. data/doc/html/api/core/files/lib/facets/enumerable/mode_rb.html +0 -92
  2833. data/doc/html/api/core/files/lib/facets/enumerable/modulate_rb.html +0 -92
  2834. data/doc/html/api/core/files/lib/facets/enumerable/occur_rb.html +0 -92
  2835. data/doc/html/api/core/files/lib/facets/enumerable/probability_rb.html +0 -92
  2836. data/doc/html/api/core/files/lib/facets/enumerable/split_rb.html +0 -92
  2837. data/doc/html/api/core/files/lib/facets/enumerable/sum_rb.html +0 -92
  2838. data/doc/html/api/core/files/lib/facets/enumerable/uniq_by_rb.html +0 -92
  2839. data/doc/html/api/core/files/lib/facets/enumerable_rb.html +0 -111
  2840. data/doc/html/api/core/files/lib/facets/exception/detail_rb.html +0 -92
  2841. data/doc/html/api/core/files/lib/facets/exception_rb.html +0 -96
  2842. data/doc/html/api/core/files/lib/facets/file/null_rb.html +0 -92
  2843. data/doc/html/api/core/files/lib/facets/file/read_rb.html +0 -92
  2844. data/doc/html/api/core/files/lib/facets/file/rewrite_rb.html +0 -92
  2845. data/doc/html/api/core/files/lib/facets/file/rootname_rb.html +0 -92
  2846. data/doc/html/api/core/files/lib/facets/file/write_rb.html +0 -92
  2847. data/doc/html/api/core/files/lib/facets/file_rb.html +0 -100
  2848. data/doc/html/api/core/files/lib/facets/filetest/root_rb.html +0 -92
  2849. data/doc/html/api/core/files/lib/facets/filetest_rb.html +0 -97
  2850. data/doc/html/api/core/files/lib/facets/functor_rb.html +0 -151
  2851. data/doc/html/api/core/files/lib/facets/hash/alias_rb.html +0 -92
  2852. data/doc/html/api/core/files/lib/facets/hash/argumentize_rb.html +0 -92
  2853. data/doc/html/api/core/files/lib/facets/hash/at_rb.html +0 -92
  2854. data/doc/html/api/core/files/lib/facets/hash/autonew_rb.html +0 -92
  2855. data/doc/html/api/core/files/lib/facets/hash/collate_rb.html +0 -92
  2856. data/doc/html/api/core/files/lib/facets/hash/delete_rb.html +0 -92
  2857. data/doc/html/api/core/files/lib/facets/hash/diff_rb.html +0 -92
  2858. data/doc/html/api/core/files/lib/facets/hash/except_rb.html +0 -92
  2859. data/doc/html/api/core/files/lib/facets/hash/insert_rb.html +0 -92
  2860. data/doc/html/api/core/files/lib/facets/hash/inverse_rb.html +0 -92
  2861. data/doc/html/api/core/files/lib/facets/hash/join_rb.html +0 -92
  2862. data/doc/html/api/core/files/lib/facets/hash/keys_rb.html +0 -92
  2863. data/doc/html/api/core/files/lib/facets/hash/mash_rb.html +0 -96
  2864. data/doc/html/api/core/files/lib/facets/hash/merge_rb.html +0 -92
  2865. data/doc/html/api/core/files/lib/facets/hash/op_rb.html +0 -92
  2866. data/doc/html/api/core/files/lib/facets/hash/rekey_rb.html +0 -96
  2867. data/doc/html/api/core/files/lib/facets/hash/select_rb.html +0 -92
  2868. data/doc/html/api/core/files/lib/facets/hash/slice_rb.html +0 -92
  2869. data/doc/html/api/core/files/lib/facets/hash/stringify_keys_rb.html +0 -96
  2870. data/doc/html/api/core/files/lib/facets/hash/swap_rb.html +0 -92
  2871. data/doc/html/api/core/files/lib/facets/hash/symbolize_keys_rb.html +0 -96
  2872. data/doc/html/api/core/files/lib/facets/hash/to_h_rb.html +0 -96
  2873. data/doc/html/api/core/files/lib/facets/hash/to_proc_rb.html +0 -92
  2874. data/doc/html/api/core/files/lib/facets/hash/to_struct_rb.html +0 -92
  2875. data/doc/html/api/core/files/lib/facets/hash/traverse_rb.html +0 -92
  2876. data/doc/html/api/core/files/lib/facets/hash/update_rb.html +0 -92
  2877. data/doc/html/api/core/files/lib/facets/hash/weave_rb.html +0 -92
  2878. data/doc/html/api/core/files/lib/facets/hash/zipnew_rb.html +0 -96
  2879. data/doc/html/api/core/files/lib/facets/hash_rb.html +0 -118
  2880. data/doc/html/api/core/files/lib/facets/indexable_rb.html +0 -113
  2881. data/doc/html/api/core/files/lib/facets/integer/factorial_rb.html +0 -92
  2882. data/doc/html/api/core/files/lib/facets/integer/multiple_rb.html +0 -92
  2883. data/doc/html/api/core/files/lib/facets/integer/of_rb.html +0 -92
  2884. data/doc/html/api/core/files/lib/facets/integer/ordinal_rb.html +0 -92
  2885. data/doc/html/api/core/files/lib/facets/integer_rb.html +0 -100
  2886. data/doc/html/api/core/files/lib/facets/kernel/__dir___rb.html +0 -92
  2887. data/doc/html/api/core/files/lib/facets/kernel/as_rb.html +0 -96
  2888. data/doc/html/api/core/files/lib/facets/kernel/ask_rb.html +0 -92
  2889. data/doc/html/api/core/files/lib/facets/kernel/attr_singleton_rb.html +0 -92
  2890. data/doc/html/api/core/files/lib/facets/kernel/complete_rb.html +0 -92
  2891. data/doc/html/api/core/files/lib/facets/kernel/constant_rb.html +0 -92
  2892. data/doc/html/api/core/files/lib/facets/kernel/d_rb.html +0 -92
  2893. data/doc/html/api/core/files/lib/facets/kernel/deep_copy_rb.html +0 -92
  2894. data/doc/html/api/core/files/lib/facets/kernel/demo_rb.html +0 -92
  2895. data/doc/html/api/core/files/lib/facets/kernel/ergo_rb.html +0 -96
  2896. data/doc/html/api/core/files/lib/facets/kernel/here_rb.html +0 -92
  2897. data/doc/html/api/core/files/lib/facets/kernel/in_rb.html +0 -92
  2898. data/doc/html/api/core/files/lib/facets/kernel/instance_exec_rb.html +0 -96
  2899. data/doc/html/api/core/files/lib/facets/kernel/instance_rb.html +0 -92
  2900. data/doc/html/api/core/files/lib/facets/kernel/load_rb.html +0 -92
  2901. data/doc/html/api/core/files/lib/facets/kernel/maybe_rb.html +0 -92
  2902. data/doc/html/api/core/files/lib/facets/kernel/not_nil_rb.html +0 -92
  2903. data/doc/html/api/core/files/lib/facets/kernel/object_rb.html +0 -92
  2904. data/doc/html/api/core/files/lib/facets/kernel/p_rb.html +0 -92
  2905. data/doc/html/api/core/files/lib/facets/kernel/populate_rb.html +0 -92
  2906. data/doc/html/api/core/files/lib/facets/kernel/resc_rb.html +0 -92
  2907. data/doc/html/api/core/files/lib/facets/kernel/respond_rb.html +0 -92
  2908. data/doc/html/api/core/files/lib/facets/kernel/returning_rb.html +0 -92
  2909. data/doc/html/api/core/files/lib/facets/kernel/silence_rb.html +0 -92
  2910. data/doc/html/api/core/files/lib/facets/kernel/singleton_class_rb.html +0 -92
  2911. data/doc/html/api/core/files/lib/facets/kernel/try_rb.html +0 -92
  2912. data/doc/html/api/core/files/lib/facets/kernel/val_rb.html +0 -92
  2913. data/doc/html/api/core/files/lib/facets/kernel/with_rb.html +0 -92
  2914. data/doc/html/api/core/files/lib/facets/kernel_rb.html +0 -115
  2915. data/doc/html/api/core/files/lib/facets/matchdata/match_rb.html +0 -92
  2916. data/doc/html/api/core/files/lib/facets/matchdata/matchset_rb.html +0 -92
  2917. data/doc/html/api/core/files/lib/facets/matchdata_rb.html +0 -98
  2918. data/doc/html/api/core/files/lib/facets/metaid_rb.html +0 -92
  2919. data/doc/html/api/core/files/lib/facets/module/abstract_rb.html +0 -92
  2920. data/doc/html/api/core/files/lib/facets/module/alias_rb.html +0 -92
  2921. data/doc/html/api/core/files/lib/facets/module/ancestor_rb.html +0 -92
  2922. data/doc/html/api/core/files/lib/facets/module/can_rb.html +0 -92
  2923. data/doc/html/api/core/files/lib/facets/module/class_rb.html +0 -92
  2924. data/doc/html/api/core/files/lib/facets/module/clone_rb.html +0 -92
  2925. data/doc/html/api/core/files/lib/facets/module/conflict_rb.html +0 -92
  2926. data/doc/html/api/core/files/lib/facets/module/include_function_module_rb.html +0 -92
  2927. data/doc/html/api/core/files/lib/facets/module/instance_methods_rb.html +0 -92
  2928. data/doc/html/api/core/files/lib/facets/module/is_rb.html +0 -92
  2929. data/doc/html/api/core/files/lib/facets/module/module_load_rb.html +0 -92
  2930. data/doc/html/api/core/files/lib/facets/module/nesting_rb.html +0 -92
  2931. data/doc/html/api/core/files/lib/facets/module/op_rb.html +0 -92
  2932. data/doc/html/api/core/files/lib/facets/module/pathize_rb.html +0 -92
  2933. data/doc/html/api/core/files/lib/facets/module/prepend_rb.html +0 -92
  2934. data/doc/html/api/core/files/lib/facets/module/revise_rb.html +0 -92
  2935. data/doc/html/api/core/files/lib/facets/module_rb.html +0 -109
  2936. data/doc/html/api/core/files/lib/facets/nilclass_rb.html +0 -96
  2937. data/doc/html/api/core/files/lib/facets/numeric/approx_rb.html +0 -92
  2938. data/doc/html/api/core/files/lib/facets/numeric/distance_rb.html +0 -92
  2939. data/doc/html/api/core/files/lib/facets/numeric/round_rb.html +0 -92
  2940. data/doc/html/api/core/files/lib/facets/numeric_rb.html +0 -98
  2941. data/doc/html/api/core/files/lib/facets/proc/bind_rb.html +0 -92
  2942. data/doc/html/api/core/files/lib/facets/proc/compose_rb.html +0 -92
  2943. data/doc/html/api/core/files/lib/facets/proc/curry_rb.html +0 -92
  2944. data/doc/html/api/core/files/lib/facets/proc/partial_rb.html +0 -125
  2945. data/doc/html/api/core/files/lib/facets/proc/to_method_rb.html +0 -96
  2946. data/doc/html/api/core/files/lib/facets/proc/update_rb.html +0 -92
  2947. data/doc/html/api/core/files/lib/facets/proc_rb.html +0 -99
  2948. data/doc/html/api/core/files/lib/facets/range/combine_rb.html +0 -92
  2949. data/doc/html/api/core/files/lib/facets/range/overlap_rb.html +0 -92
  2950. data/doc/html/api/core/files/lib/facets/range/to_r_rb.html +0 -92
  2951. data/doc/html/api/core/files/lib/facets/range/umbrella_rb.html +0 -96
  2952. data/doc/html/api/core/files/lib/facets/range/within_rb.html +0 -92
  2953. data/doc/html/api/core/files/lib/facets/range_rb.html +0 -99
  2954. data/doc/html/api/core/files/lib/facets/regexp/arity_rb.html +0 -92
  2955. data/doc/html/api/core/files/lib/facets/regexp/to_re_rb.html +0 -92
  2956. data/doc/html/api/core/files/lib/facets/regexp_rb.html +0 -98
  2957. data/doc/html/api/core/files/lib/facets/ruby_rb.html +0 -110
  2958. data/doc/html/api/core/files/lib/facets/stackable_rb.html +0 -120
  2959. data/doc/html/api/core/files/lib/facets/string/align_rb.html +0 -92
  2960. data/doc/html/api/core/files/lib/facets/string/bracket_rb.html +0 -92
  2961. data/doc/html/api/core/files/lib/facets/string/camelcase_rb.html +0 -92
  2962. data/doc/html/api/core/files/lib/facets/string/capitalized_rb.html +0 -92
  2963. data/doc/html/api/core/files/lib/facets/string/chomp_rb.html +0 -92
  2964. data/doc/html/api/core/files/lib/facets/string/cleave_rb.html +0 -92
  2965. data/doc/html/api/core/files/lib/facets/string/divide_rb.html +0 -92
  2966. data/doc/html/api/core/files/lib/facets/string/fold_rb.html +0 -92
  2967. data/doc/html/api/core/files/lib/facets/string/interpolate_rb.html +0 -92
  2968. data/doc/html/api/core/files/lib/facets/string/line_wrap_rb.html +0 -92
  2969. data/doc/html/api/core/files/lib/facets/string/mscan_rb.html +0 -92
  2970. data/doc/html/api/core/files/lib/facets/string/natcmp_rb.html +0 -92
  2971. data/doc/html/api/core/files/lib/facets/string/nchar_rb.html +0 -92
  2972. data/doc/html/api/core/files/lib/facets/string/range_rb.html +0 -92
  2973. data/doc/html/api/core/files/lib/facets/string/rewrite_rb.html +0 -92
  2974. data/doc/html/api/core/files/lib/facets/string/shatter_rb.html +0 -92
  2975. data/doc/html/api/core/files/lib/facets/string/snakecase_rb.html +0 -92
  2976. data/doc/html/api/core/files/lib/facets/string/splice_rb.html +0 -92
  2977. data/doc/html/api/core/files/lib/facets/string/stylize_rb.html +0 -92
  2978. data/doc/html/api/core/files/lib/facets/string/subtract_rb.html +0 -92
  2979. data/doc/html/api/core/files/lib/facets/string/tab_rb.html +0 -92
  2980. data/doc/html/api/core/files/lib/facets/string/titlecase_rb.html +0 -92
  2981. data/doc/html/api/core/files/lib/facets/string/to_re_rb.html +0 -92
  2982. data/doc/html/api/core/files/lib/facets/string/to_time_rb.html +0 -98
  2983. data/doc/html/api/core/files/lib/facets/string/underscore_rb.html +0 -92
  2984. data/doc/html/api/core/files/lib/facets/string/words_rb.html +0 -96
  2985. data/doc/html/api/core/files/lib/facets/string/xor_rb.html +0 -92
  2986. data/doc/html/api/core/files/lib/facets/string_rb.html +0 -109
  2987. data/doc/html/api/core/files/lib/facets/symbol/chomp_rb.html +0 -92
  2988. data/doc/html/api/core/files/lib/facets/symbol/generate_rb.html +0 -92
  2989. data/doc/html/api/core/files/lib/facets/symbol/not_rb.html +0 -92
  2990. data/doc/html/api/core/files/lib/facets/symbol_rb.html +0 -98
  2991. data/doc/html/api/core/files/lib/facets/time/ago_rb.html +0 -96
  2992. data/doc/html/api/core/files/lib/facets/time/change_rb.html +0 -92
  2993. data/doc/html/api/core/files/lib/facets/time/elapse_rb.html +0 -92
  2994. data/doc/html/api/core/files/lib/facets/time/hence_rb.html +0 -92
  2995. data/doc/html/api/core/files/lib/facets/time/set_rb.html +0 -96
  2996. data/doc/html/api/core/files/lib/facets/time/stamp_rb.html +0 -92
  2997. data/doc/html/api/core/files/lib/facets/time_rb.html +0 -99
  2998. data/doc/html/api/core/files/lib/facets/to_hash_rb.html +0 -92
  2999. data/doc/html/api/core/files/lib/facets/unboundmethod/arguments_rb.html +0 -92
  3000. data/doc/html/api/core/files/lib/facets/unboundmethod_rb.html +0 -97
  3001. data/doc/html/api/core/fr_class_index.html +0 -74
  3002. data/doc/html/api/core/fr_file_index.html +0 -269
  3003. data/doc/html/api/core/fr_method_index.html +0 -463
  3004. data/doc/html/api/core/index.html +0 -26
  3005. data/doc/html/api/more/classes/ANSICode.html +0 -495
  3006. data/doc/html/api/more/classes/Advisable.html +0 -271
  3007. data/doc/html/api/more/classes/Advisable/Method.html +0 -251
  3008. data/doc/html/api/more/classes/Archive.html +0 -89
  3009. data/doc/html/api/more/classes/Archive/Tar.html +0 -89
  3010. data/doc/html/api/more/classes/Archive/Tar/Minitar.html +0 -470
  3011. data/doc/html/api/more/classes/Archive/Tar/Minitar/Input.html +0 -380
  3012. data/doc/html/api/more/classes/Archive/Tar/Minitar/Output.html +0 -218
  3013. data/doc/html/api/more/classes/Archive/Tar/Minitar/Reader.html +0 -285
  3014. data/doc/html/api/more/classes/Archive/Tar/Minitar/Writer.html +0 -419
  3015. data/doc/html/api/more/classes/Association.html +0 -307
  3016. data/doc/html/api/more/classes/Association/Kernel.html +0 -134
  3017. data/doc/html/api/more/classes/Autoarray.html +0 -168
  3018. data/doc/html/api/more/classes/BBCode.html +0 -534
  3019. data/doc/html/api/more/classes/BasicObject.html +0 -260
  3020. data/doc/html/api/more/classes/Behavior.html +0 -145
  3021. data/doc/html/api/more/classes/BiCrypt.html +0 -543
  3022. data/doc/html/api/more/classes/BigDuration.html +0 -327
  3023. data/doc/html/api/more/classes/BinReadable.html +0 -536
  3024. data/doc/html/api/more/classes/BinReadable/ByteOrder.html +0 -225
  3025. data/doc/html/api/more/classes/Buildable.html +0 -154
  3026. data/doc/html/api/more/classes/BuildingBlock.html +0 -362
  3027. data/doc/html/api/more/classes/CGI.html +0 -187
  3028. data/doc/html/api/more/classes/CLI.html +0 -108
  3029. data/doc/html/api/more/classes/CLI/Arguments.html +0 -709
  3030. data/doc/html/api/more/classes/CLI/Command.html +0 -436
  3031. data/doc/html/api/more/classes/CLI/Command/UniversalOptions.html +0 -91
  3032. data/doc/html/api/more/classes/CLI/NoCommandError.html +0 -113
  3033. data/doc/html/api/more/classes/CLI/NoOptionError.html +0 -120
  3034. data/doc/html/api/more/classes/CacheDecorator.html +0 -224
  3035. data/doc/html/api/more/classes/Capsule.html +0 -410
  3036. data/doc/html/api/more/classes/Capsule/MissingFile.html +0 -96
  3037. data/doc/html/api/more/classes/Chain.html +0 -208
  3038. data/doc/html/api/more/classes/Cloneable.html +0 -131
  3039. data/doc/html/api/more/classes/Config.html +0 -137
  3040. data/doc/html/api/more/classes/ConsoleUtils.html +0 -240
  3041. data/doc/html/api/more/classes/Continuation.html +0 -115
  3042. data/doc/html/api/more/classes/Coroutine.html +0 -286
  3043. data/doc/html/api/more/classes/Crypt.html +0 -277
  3044. data/doc/html/api/more/classes/CssFilter.html +0 -473
  3045. data/doc/html/api/more/classes/CssTree.html +0 -149
  3046. data/doc/html/api/more/classes/Date.html +0 -252
  3047. data/doc/html/api/more/classes/Dictionary.html +0 -1247
  3048. data/doc/html/api/more/classes/Downloader.html +0 -514
  3049. data/doc/html/api/more/classes/Duration.html +0 -769
  3050. data/doc/html/api/more/classes/Enumerable.html +0 -340
  3051. data/doc/html/api/more/classes/Enumerable/Elementor.html +0 -172
  3052. data/doc/html/api/more/classes/Enumerable/Enumerator.html +0 -118
  3053. data/doc/html/api/more/classes/EnumerablePass.html +0 -216
  3054. data/doc/html/api/more/classes/Equatable.html +0 -190
  3055. data/doc/html/api/more/classes/EventHook.html +0 -176
  3056. data/doc/html/api/more/classes/Expirable.html +0 -197
  3057. data/doc/html/api/more/classes/File.html +0 -130
  3058. data/doc/html/api/more/classes/FileList.html +0 -982
  3059. data/doc/html/api/more/classes/FileShell.html +0 -774
  3060. data/doc/html/api/more/classes/FileUtils.html +0 -454
  3061. data/doc/html/api/more/classes/Fileable.html +0 -181
  3062. data/doc/html/api/more/classes/Fileable/DSL.html +0 -306
  3063. data/doc/html/api/more/classes/GetoptLong.html +0 -120
  3064. data/doc/html/api/more/classes/GetoptLong/DSL.html +0 -210
  3065. data/doc/html/api/more/classes/Hash2Xml.html +0 -177
  3066. data/doc/html/api/more/classes/HtmlFilter.html +0 -850
  3067. data/doc/html/api/more/classes/IORedirect.html +0 -222
  3068. data/doc/html/api/more/classes/InfinityClass.html +0 -452
  3069. data/doc/html/api/more/classes/InfinityClass/Numeric.html +0 -197
  3070. data/doc/html/api/more/classes/InstanceReflection.html +0 -129
  3071. data/doc/html/api/more/classes/Instantiable.html +0 -142
  3072. data/doc/html/api/more/classes/Instantise.html +0 -162
  3073. data/doc/html/api/more/classes/Interval.html +0 -879
  3074. data/doc/html/api/more/classes/It.html +0 -207
  3075. data/doc/html/api/more/classes/LRUCache.html +0 -464
  3076. data/doc/html/api/more/classes/LRUCache/Item.html +0 -114
  3077. data/doc/html/api/more/classes/LRUCache/Sentinel.html +0 -100
  3078. data/doc/html/api/more/classes/Lazy.html +0 -96
  3079. data/doc/html/api/more/classes/Lazy/Future.html +0 -100
  3080. data/doc/html/api/more/classes/Lazy/Promise.html +0 -112
  3081. data/doc/html/api/more/classes/Lazy/PromiseSafe.html +0 -99
  3082. data/doc/html/api/more/classes/LinkedList.html +0 -494
  3083. data/doc/html/api/more/classes/LinkedList/Node.html +0 -151
  3084. data/doc/html/api/more/classes/Logger.html +0 -231
  3085. data/doc/html/api/more/classes/Logger/Ansicolor.html +0 -279
  3086. data/doc/html/api/more/classes/Logger/LogDevice.html +0 -123
  3087. data/doc/html/api/more/classes/Module.html +0 -1410
  3088. data/doc/html/api/more/classes/Multiton.html +0 -207
  3089. data/doc/html/api/more/classes/Multiton/Inclusive.html +0 -128
  3090. data/doc/html/api/more/classes/Multiton/MetaMethods.html +0 -270
  3091. data/doc/html/api/more/classes/NackClass.html +0 -99
  3092. data/doc/html/api/more/classes/Net/SMTP.html +0 -259
  3093. data/doc/html/api/more/classes/NilClass.html +0 -227
  3094. data/doc/html/api/more/classes/NullClass.html +0 -204
  3095. data/doc/html/api/more/classes/Numeric.html +0 -1188
  3096. data/doc/html/api/more/classes/ObjectReflection.html +0 -145
  3097. data/doc/html/api/more/classes/OpEsc.html +0 -138
  3098. data/doc/html/api/more/classes/OpenCascade.html +0 -144
  3099. data/doc/html/api/more/classes/OpenCollection.html +0 -140
  3100. data/doc/html/api/more/classes/OpenHash.html +0 -158
  3101. data/doc/html/api/more/classes/OpenObject.html +0 -604
  3102. data/doc/html/api/more/classes/OpenStruct.html +0 -413
  3103. data/doc/html/api/more/classes/PQueue.html +0 -734
  3104. data/doc/html/api/more/classes/PathList.html +0 -161
  3105. data/doc/html/api/more/classes/PathList/Finder.html +0 -137
  3106. data/doc/html/api/more/classes/Pathname.html +0 -178
  3107. data/doc/html/api/more/classes/Pool.html +0 -206
  3108. data/doc/html/api/more/classes/Proc.html +0 -138
  3109. data/doc/html/api/more/classes/ProgressBar.html +0 -683
  3110. data/doc/html/api/more/classes/Prototype.html +0 -245
  3111. data/doc/html/api/more/classes/RWDelegator.html +0 -196
  3112. data/doc/html/api/more/classes/Random.html +0 -164
  3113. data/doc/html/api/more/classes/Random/Array.html +0 -341
  3114. data/doc/html/api/more/classes/Random/Hash.html +0 -380
  3115. data/doc/html/api/more/classes/Random/Object.html +0 -121
  3116. data/doc/html/api/more/classes/Random/String.html +0 -301
  3117. data/doc/html/api/more/classes/Random/String/Self.html +0 -155
  3118. data/doc/html/api/more/classes/Recorder.html +0 -205
  3119. data/doc/html/api/more/classes/RecursiveDependency.html +0 -92
  3120. data/doc/html/api/more/classes/Reference.html +0 -198
  3121. data/doc/html/api/more/classes/Registerable.html +0 -159
  3122. data/doc/html/api/more/classes/Semaphore.html +0 -262
  3123. data/doc/html/api/more/classes/Set.html +0 -119
  3124. data/doc/html/api/more/classes/Settings.html +0 -290
  3125. data/doc/html/api/more/classes/Settings/Setting.html +0 -225
  3126. data/doc/html/api/more/classes/Settings/SettingCollection.html +0 -144
  3127. data/doc/html/api/more/classes/Shellwords.html +0 -113
  3128. data/doc/html/api/more/classes/SimpleStringIO.html +0 -137
  3129. data/doc/html/api/more/classes/Snapshot.html +0 -196
  3130. data/doc/html/api/more/classes/Snapshot/ValueHolder.html +0 -165
  3131. data/doc/html/api/more/classes/String/Style.html +0 -695
  3132. data/doc/html/api/more/classes/Struct.html +0 -132
  3133. data/doc/html/api/more/classes/SyncArray.html +0 -129
  3134. data/doc/html/api/more/classes/SyncHash.html +0 -158
  3135. data/doc/html/api/more/classes/SyncHash/Delegator.html +0 -213
  3136. data/doc/html/api/more/classes/SyncHash/Inheritor.html +0 -213
  3137. data/doc/html/api/more/classes/System.html +0 -1119
  3138. data/doc/html/api/more/classes/Timer.html +0 -466
  3139. data/doc/html/api/more/classes/Timer/Dummy.html +0 -141
  3140. data/doc/html/api/more/classes/TracePoint.html +0 -455
  3141. data/doc/html/api/more/classes/Tuple.html +0 -902
  3142. data/doc/html/api/more/classes/TypeCast.html +0 -158
  3143. data/doc/html/api/more/classes/TypeCast/Class.html +0 -129
  3144. data/doc/html/api/more/classes/TypeCast/Object.html +0 -119
  3145. data/doc/html/api/more/classes/TypeCastException.html +0 -96
  3146. data/doc/html/api/more/classes/URI.html +0 -455
  3147. data/doc/html/api/more/classes/URI/Hash.html +0 -107
  3148. data/doc/html/api/more/classes/URI/Kernel.html +0 -124
  3149. data/doc/html/api/more/classes/Uninheritable.html +0 -122
  3150. data/doc/html/api/more/classes/UploadUtils.html +0 -499
  3151. data/doc/html/api/more/classes/VersionNumber.html +0 -384
  3152. data/doc/html/api/more/classes/Weekdays.html +0 -248
  3153. data/doc/html/api/more/classes/XOXO.html +0 -252
  3154. data/doc/html/api/more/classes/ZipUtils.html +0 -437
  3155. data/doc/html/api/more/classes/ZipUtils/DryRun.html +0 -225
  3156. data/doc/html/api/more/classes/ZipUtils/NoWrite.html +0 -225
  3157. data/doc/html/api/more/classes/ZipUtils/Verbose.html +0 -225
  3158. data/doc/html/api/more/created.rid +0 -1
  3159. data/doc/html/api/more/files/AUTHORS.html +0 -257
  3160. data/doc/html/api/more/files/CHANGES.html +0 -274
  3161. data/doc/html/api/more/files/COPYING.html +0 -462
  3162. data/doc/html/api/more/files/MANIFEST.html +0 -597
  3163. data/doc/html/api/more/files/NOTES.html +0 -166
  3164. data/doc/html/api/more/files/README.html +0 -411
  3165. data/doc/html/api/more/files/lib/facets/1stclassmethod_rb.html +0 -181
  3166. data/doc/html/api/more/files/lib/facets/advisable_rb.html +0 -124
  3167. data/doc/html/api/more/files/lib/facets/annotations_rb.html +0 -179
  3168. data/doc/html/api/more/files/lib/facets/ansicode_rb.html +0 -199
  3169. data/doc/html/api/more/files/lib/facets/arguments_rb.html +0 -142
  3170. data/doc/html/api/more/files/lib/facets/association_rb.html +0 -158
  3171. data/doc/html/api/more/files/lib/facets/attr_rb.html +0 -92
  3172. data/doc/html/api/more/files/lib/facets/autoarray_rb.html +0 -125
  3173. data/doc/html/api/more/files/lib/facets/autoreload_rb.html +0 -134
  3174. data/doc/html/api/more/files/lib/facets/basicobject_rb.html +0 -190
  3175. data/doc/html/api/more/files/lib/facets/bbcode_rb.html +0 -138
  3176. data/doc/html/api/more/files/lib/facets/behavior_rb.html +0 -125
  3177. data/doc/html/api/more/files/lib/facets/bicrypt_rb.html +0 -124
  3178. data/doc/html/api/more/files/lib/facets/binreadable_rb.html +0 -141
  3179. data/doc/html/api/more/files/lib/facets/buildable_rb.html +0 -228
  3180. data/doc/html/api/more/files/lib/facets/bytes_rb.html +0 -170
  3181. data/doc/html/api/more/files/lib/facets/cachedecorator_rb.html +0 -178
  3182. data/doc/html/api/more/files/lib/facets/capsule_rb.html +0 -143
  3183. data/doc/html/api/more/files/lib/facets/cattr_rb.html +0 -125
  3184. data/doc/html/api/more/files/lib/facets/cgi_rb.html +0 -111
  3185. data/doc/html/api/more/files/lib/facets/chain_rb.html +0 -114
  3186. data/doc/html/api/more/files/lib/facets/class_extension_rb.html +0 -155
  3187. data/doc/html/api/more/files/lib/facets/classmethods_rb.html +0 -213
  3188. data/doc/html/api/more/files/lib/facets/cloneable_rb.html +0 -134
  3189. data/doc/html/api/more/files/lib/facets/command_rb.html +0 -170
  3190. data/doc/html/api/more/files/lib/facets/consoleutils_rb.html +0 -109
  3191. data/doc/html/api/more/files/lib/facets/continuation_rb.html +0 -145
  3192. data/doc/html/api/more/files/lib/facets/core_rb.html +0 -133
  3193. data/doc/html/api/more/files/lib/facets/coroutine_rb.html +0 -163
  3194. data/doc/html/api/more/files/lib/facets/crypt_rb.html +0 -141
  3195. data/doc/html/api/more/files/lib/facets/cssfilter_rb.html +0 -120
  3196. data/doc/html/api/more/files/lib/facets/daemonize_rb.html +0 -118
  3197. data/doc/html/api/more/files/lib/facets/date_rb.html +0 -121
  3198. data/doc/html/api/more/files/lib/facets/dependency_rb.html +0 -158
  3199. data/doc/html/api/more/files/lib/facets/dictionary_rb.html +0 -198
  3200. data/doc/html/api/more/files/lib/facets/downloader_rb.html +0 -137
  3201. data/doc/html/api/more/files/lib/facets/duration_rb.html +0 -132
  3202. data/doc/html/api/more/files/lib/facets/elementor_rb.html +0 -148
  3203. data/doc/html/api/more/files/lib/facets/elementwise_rb.html +0 -96
  3204. data/doc/html/api/more/files/lib/facets/enumerablepass_rb.html +0 -153
  3205. data/doc/html/api/more/files/lib/facets/equatable_rb.html +0 -145
  3206. data/doc/html/api/more/files/lib/facets/eventhook_rb.html +0 -141
  3207. data/doc/html/api/more/files/lib/facets/expirable_rb.html +0 -116
  3208. data/doc/html/api/more/files/lib/facets/fileable_rb.html +0 -138
  3209. data/doc/html/api/more/files/lib/facets/filelist_rb.html +0 -164
  3210. data/doc/html/api/more/files/lib/facets/fileshell_rb.html +0 -124
  3211. data/doc/html/api/more/files/lib/facets/fileutils/head_rb.html +0 -96
  3212. data/doc/html/api/more/files/lib/facets/fileutils/safe_ln_rb.html +0 -96
  3213. data/doc/html/api/more/files/lib/facets/fileutils/slice_rb.html +0 -96
  3214. data/doc/html/api/more/files/lib/facets/fileutils/tail_rb.html +0 -96
  3215. data/doc/html/api/more/files/lib/facets/fileutils/wc_rb.html +0 -96
  3216. data/doc/html/api/more/files/lib/facets/fileutils/whereis_rb.html +0 -96
  3217. data/doc/html/api/more/files/lib/facets/fileutils/which_rb.html +0 -96
  3218. data/doc/html/api/more/files/lib/facets/fileutils_rb.html +0 -131
  3219. data/doc/html/api/more/files/lib/facets/float/round_rb.html +0 -96
  3220. data/doc/html/api/more/files/lib/facets/getoptlong_rb.html +0 -135
  3221. data/doc/html/api/more/files/lib/facets/heap_rb.html +0 -132
  3222. data/doc/html/api/more/files/lib/facets/htmlfilter_rb.html +0 -153
  3223. data/doc/html/api/more/files/lib/facets/infinity_rb.html +0 -153
  3224. data/doc/html/api/more/files/lib/facets/inheritor_rb.html +0 -149
  3225. data/doc/html/api/more/files/lib/facets/instantiable_rb.html +0 -119
  3226. data/doc/html/api/more/files/lib/facets/instantise_rb.html +0 -145
  3227. data/doc/html/api/more/files/lib/facets/interval_rb.html +0 -163
  3228. data/doc/html/api/more/files/lib/facets/ioredirect_rb.html +0 -133
  3229. data/doc/html/api/more/files/lib/facets/iteration_rb.html +0 -94
  3230. data/doc/html/api/more/files/lib/facets/lazy_rb.html +0 -120
  3231. data/doc/html/api/more/files/lib/facets/linkedlist_rb.html +0 -159
  3232. data/doc/html/api/more/files/lib/facets/logger_rb.html +0 -142
  3233. data/doc/html/api/more/files/lib/facets/lrucache_rb.html +0 -129
  3234. data/doc/html/api/more/files/lib/facets/main_rb.html +0 -126
  3235. data/doc/html/api/more/files/lib/facets/memoize_rb.html +0 -163
  3236. data/doc/html/api/more/files/lib/facets/meta_rb.html +0 -96
  3237. data/doc/html/api/more/files/lib/facets/methodspace_rb.html +0 -138
  3238. data/doc/html/api/more/files/lib/facets/minitar_rb.html +0 -203
  3239. data/doc/html/api/more/files/lib/facets/multipliers_rb.html +0 -149
  3240. data/doc/html/api/more/files/lib/facets/multiton_rb.html +0 -187
  3241. data/doc/html/api/more/files/lib/facets/nackclass_rb.html +0 -121
  3242. data/doc/html/api/more/files/lib/facets/net/smtp_tls_rb.html +0 -143
  3243. data/doc/html/api/more/files/lib/facets/nilstatus_rb.html +0 -92
  3244. data/doc/html/api/more/files/lib/facets/nullclass_rb.html +0 -122
  3245. data/doc/html/api/more/files/lib/facets/opencascade_rb.html +0 -156
  3246. data/doc/html/api/more/files/lib/facets/opencollection_rb.html +0 -123
  3247. data/doc/html/api/more/files/lib/facets/openhash_rb.html +0 -107
  3248. data/doc/html/api/more/files/lib/facets/openobject_rb.html +0 -167
  3249. data/doc/html/api/more/files/lib/facets/opesc_rb.html +0 -94
  3250. data/doc/html/api/more/files/lib/facets/orderedhash_rb.html +0 -142
  3251. data/doc/html/api/more/files/lib/facets/ostruct_rb.html +0 -135
  3252. data/doc/html/api/more/files/lib/facets/overload_rb.html +0 -119
  3253. data/doc/html/api/more/files/lib/facets/pathlist_rb.html +0 -133
  3254. data/doc/html/api/more/files/lib/facets/pathname_rb.html +0 -155
  3255. data/doc/html/api/more/files/lib/facets/pool_rb.html +0 -131
  3256. data/doc/html/api/more/files/lib/facets/pqueue_rb.html +0 -129
  3257. data/doc/html/api/more/files/lib/facets/progressbar_rb.html +0 -126
  3258. data/doc/html/api/more/files/lib/facets/prototype_rb.html +0 -102
  3259. data/doc/html/api/more/files/lib/facets/random_rb.html +0 -148
  3260. data/doc/html/api/more/files/lib/facets/rbconfig_rb.html +0 -124
  3261. data/doc/html/api/more/files/lib/facets/rbsystem_rb.html +0 -143
  3262. data/doc/html/api/more/files/lib/facets/recorder_rb.html +0 -154
  3263. data/doc/html/api/more/files/lib/facets/reference_rb.html +0 -130
  3264. data/doc/html/api/more/files/lib/facets/reflection_rb.html +0 -119
  3265. data/doc/html/api/more/files/lib/facets/registerable_rb.html +0 -98
  3266. data/doc/html/api/more/files/lib/facets/rwdelegator_rb.html +0 -122
  3267. data/doc/html/api/more/files/lib/facets/semaphore_rb.html +0 -120
  3268. data/doc/html/api/more/files/lib/facets/set_rb.html +0 -96
  3269. data/doc/html/api/more/files/lib/facets/settings_rb.html +0 -141
  3270. data/doc/html/api/more/files/lib/facets/shellwords_rb.html +0 -124
  3271. data/doc/html/api/more/files/lib/facets/snapshot_rb.html +0 -177
  3272. data/doc/html/api/more/files/lib/facets/style_rb.html +0 -96
  3273. data/doc/html/api/more/files/lib/facets/succ_rb.html +0 -92
  3274. data/doc/html/api/more/files/lib/facets/syncarray_rb.html +0 -125
  3275. data/doc/html/api/more/files/lib/facets/synchash_rb.html +0 -138
  3276. data/doc/html/api/more/files/lib/facets/thread_rb.html +0 -132
  3277. data/doc/html/api/more/files/lib/facets/timer_rb.html +0 -174
  3278. data/doc/html/api/more/files/lib/facets/times_rb.html +0 -163
  3279. data/doc/html/api/more/files/lib/facets/tracepoint_rb.html +0 -167
  3280. data/doc/html/api/more/files/lib/facets/tuple_rb.html +0 -160
  3281. data/doc/html/api/more/files/lib/facets/typecast_rb.html +0 -214
  3282. data/doc/html/api/more/files/lib/facets/uninheritable_rb.html +0 -129
  3283. data/doc/html/api/more/files/lib/facets/uploadutils_rb.html +0 -176
  3284. data/doc/html/api/more/files/lib/facets/uri_rb.html +0 -125
  3285. data/doc/html/api/more/files/lib/facets/version_rb.html +0 -132
  3286. data/doc/html/api/more/files/lib/facets/xmlhash_rb.html +0 -97
  3287. data/doc/html/api/more/files/lib/facets/xoxo_rb.html +0 -136
  3288. data/doc/html/api/more/files/lib/facets/yaml_rb.html +0 -145
  3289. data/doc/html/api/more/files/lib/facets/ziputils_rb.html +0 -133
  3290. data/doc/html/api/more/fr_class_index.html +0 -200
  3291. data/doc/html/api/more/fr_file_index.html +0 -177
  3292. data/doc/html/api/more/fr_method_index.html +0 -1181
  3293. data/doc/html/api/more/index.html +0 -26
  3294. data/doc/html/authors.html +0 -178
  3295. data/doc/html/changes.html +0 -193
  3296. data/doc/html/copying.html +0 -384
  3297. data/doc/html/img/APIdocs.png +0 -0
  3298. data/doc/html/img/RubyFacets.png +0 -0
  3299. data/doc/html/img/bomb.gif +0 -0
  3300. data/doc/html/img/develop.gif +0 -0
  3301. data/doc/html/img/email.gif +0 -0
  3302. data/doc/html/img/fade_blue_down.gif +0 -0
  3303. data/doc/html/img/fade_red_down.png +0 -0
  3304. data/doc/html/img/folder.gif +0 -0
  3305. data/doc/html/img/home.gif +0 -0
  3306. data/doc/html/img/menu_bkg.png +0 -0
  3307. data/doc/html/img/quill.gif +0 -0
  3308. data/doc/html/img/ruby-h.png +0 -0
  3309. data/doc/html/img/ruby.gif +0 -0
  3310. data/doc/html/img/ruby.png +0 -0
  3311. data/doc/html/img/source.gif +0 -0
  3312. data/doc/html/index.html +0 -16
  3313. data/doc/html/js/doclist.js +0 -20
  3314. data/doc/html/js/jquery.js +0 -3408
  3315. data/doc/html/list.json +0 -1
  3316. data/doc/html/manifest.html +0 -519
  3317. data/doc/html/menu.html +0 -70
  3318. data/doc/html/notes.html +0 -86
  3319. data/doc/html/rakefile.html +0 -45
  3320. data/doc/html/readme.html +0 -327
  3321. data/doc/html/style-rdoc.css +0 -208
  3322. data/lib/facets.rb +0 -2
  3323. data/lib/facets/ansicode.rb +0 -320
  3324. data/lib/facets/arguments.rb +0 -349
  3325. data/lib/facets/array.rb +0 -24
  3326. data/lib/facets/array/product.rb +0 -15
  3327. data/lib/facets/binding.rb +0 -6
  3328. data/lib/facets/binding/caller.rb +0 -54
  3329. data/lib/facets/binding/defined.rb +0 -13
  3330. data/lib/facets/binding/local_variables.rb +0 -15
  3331. data/lib/facets/binding/opvars.rb +0 -24
  3332. data/lib/facets/binding/self.rb +0 -12
  3333. data/lib/facets/class.rb +0 -4
  3334. data/lib/facets/command.rb +0 -422
  3335. data/lib/facets/comparable.rb +0 -6
  3336. data/lib/facets/core.rb +0 -50
  3337. data/lib/facets/dictionary.rb +0 -474
  3338. data/lib/facets/dir.rb +0 -9
  3339. data/lib/facets/enumerable.rb +0 -19
  3340. data/lib/facets/enumerable/cluster_by.rb +0 -21
  3341. data/lib/facets/file.rb +0 -7
  3342. data/lib/facets/file/rewrite.rb +0 -54
  3343. data/lib/facets/file/rootname.rb +0 -23
  3344. data/lib/facets/filelist.rb +0 -499
  3345. data/lib/facets/filetest.rb +0 -3
  3346. data/lib/facets/fileutils/whereis.rb +0 -63
  3347. data/lib/facets/hash.rb +0 -25
  3348. data/lib/facets/hash/merge.rb +0 -74
  3349. data/lib/facets/hash/rekey.rb +0 -59
  3350. data/lib/facets/hash/slice.rb +0 -23
  3351. data/lib/facets/hash/update.rb +0 -75
  3352. data/lib/facets/integer.rb +0 -7
  3353. data/lib/facets/kernel.rb +0 -29
  3354. data/lib/facets/kernel/ask.rb +0 -27
  3355. data/lib/facets/matchdata.rb +0 -6
  3356. data/lib/facets/meta.rb +0 -23
  3357. data/lib/facets/module.rb +0 -22
  3358. data/lib/facets/module/conflict.rb +0 -56
  3359. data/lib/facets/nilclass.rb +0 -3
  3360. data/lib/facets/numeric.rb +0 -5
  3361. data/lib/facets/overload.rb +0 -94
  3362. data/lib/facets/paramix.rb +0 -187
  3363. data/lib/facets/pathname.rb +0 -112
  3364. data/lib/facets/proc.rb +0 -6
  3365. data/lib/facets/range.rb +0 -6
  3366. data/lib/facets/reflection.rb +0 -98
  3367. data/lib/facets/regexp.rb +0 -5
  3368. data/lib/facets/ruby.rb +0 -485
  3369. data/lib/facets/string.rb +0 -28
  3370. data/lib/facets/string/to_time.rb +0 -1
  3371. data/lib/facets/symbol.rb +0 -5
  3372. data/lib/facets/time.rb +0 -11
  3373. data/lib/facets/time/change.rb +0 -99
  3374. data/lib/facets/time/hence.rb +0 -56
  3375. data/lib/facets/time/to_time.rb +0 -14
  3376. data/lib/facets/unboundmethod.rb +0 -4
  3377. data/lib/facets/yaml.rb +0 -66
  3378. data/log/changelog-0.rdoc +0 -239
  3379. data/log/changelog-1.rdoc +0 -450
  3380. data/log/changelog.rdoc +0 -1173
  3381. data/log/fixme.rdoc +0 -12
  3382. data/log/testlog.txt +0 -645
  3383. data/log/todo.rdoc +0 -237
  3384. data/meta/authors +0 -48
  3385. data/meta/contact +0 -1
  3386. data/meta/created +0 -1
  3387. data/meta/description +0 -8
  3388. data/meta/download +0 -1
  3389. data/meta/homepage +0 -1
  3390. data/meta/mailinglist +0 -1
  3391. data/meta/project.yaml +0 -31
  3392. data/meta/slogan +0 -1
  3393. data/meta/unixname +0 -1
  3394. data/meta/version +0 -1
  3395. data/script/conflicts +0 -63
  3396. data/script/document +0 -231
  3397. data/script/methods +0 -49
  3398. data/script/test +0 -37
  3399. data/setup.rb +0 -1478
  3400. data/test/array/test_product.rb +0 -25
  3401. data/test/hash/test_rekey.rb +0 -41
  3402. data/test/hash/test_rekey2.rb +0 -37
  3403. data/test/hash/test_update.rb +0 -40
  3404. data/test/test_ansicode.rb +0 -20
  3405. data/test/test_dictionary.rb +0 -122
  3406. data/test/test_overload.rb +0 -120
  3407. data/test/test_ruby.rb +0 -198
  3408. data/test/test_ruby/array/test_combination.rb +0 -29
  3409. data/test/test_ruby/array/test_permutation.rb +0 -14
  3410. data/test/test_ruby/array/test_product.rb +0 -23
  3411. data/test/test_ruby/kernel/test_tap.rb +0 -19
  3412. data/test/test_ruby/symbol/test_succ.rb +0 -13
  3413. data/test/time/test_to_time.rb +0 -16
@@ -0,0 +1,289 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head>
7
+ <title>Class: Regexp</title>
8
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
10
+
11
+ <script language="JavaScript" type="text/javascript">
12
+ // <![CDATA[
13
+
14
+ function toggleSource( id )
15
+ {
16
+ var elem
17
+ var link
18
+
19
+ if( document.getElementById )
20
+ {
21
+ elem = document.getElementById( id )
22
+ link = document.getElementById( "l_" + id )
23
+ }
24
+ else if ( document.all )
25
+ {
26
+ elem = eval( "document.all." + id )
27
+ link = eval( "document.all.l_" + id )
28
+ }
29
+ else
30
+ return false;
31
+
32
+ if( elem.style.display == "block" )
33
+ {
34
+ elem.style.display = "none"
35
+ link.innerHTML = "show source"
36
+ }
37
+ else
38
+ {
39
+ elem.style.display = "block"
40
+ link.innerHTML = "hide source"
41
+ }
42
+ }
43
+
44
+ function openCode( url )
45
+ {
46
+ window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
47
+ }
48
+ // ]]>
49
+ </script>
50
+ </head>
51
+
52
+ <body>
53
+ <table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
54
+ <td class="file-title"><span class="file-title-prefix">Class</span><br />Regexp</td>
55
+ <td align="right">
56
+ <table cellspacing="0" cellpadding="2">
57
+ <tr valign="top">
58
+ <td>In:</td>
59
+ <td>
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
+ <a href="../files/lib/core/facets/regexp/arity_rb.html">lib/core/facets/regexp/arity.rb</a>
64
+ </td>
65
+ </tr>
66
+ <tr>
67
+ <td>Parent:</td>
68
+ <td>
69
+ <a href="Object.html">
70
+ Object
71
+ </a>
72
+ </td>
73
+ </tr>
74
+ </table>
75
+ </td>
76
+ </tr>
77
+ </table>
78
+ <!-- banner header -->
79
+
80
+ <div id="bodyContent">
81
+ <div id="content">
82
+
83
+
84
+
85
+
86
+ <div class="sectiontitle">Methods</div>
87
+ <ul>
88
+ <li><a href="#M000055">arity</a></li>
89
+ <li><a href="#M000052">arity</a></li>
90
+ <li><a href="#M000051">to_re</a></li>
91
+ <li><a href="#M000054">to_re</a></li>
92
+ <li><a href="#M000053">to_regexp</a></li>
93
+ <li><a href="#M000050">to_regexp</a></li>
94
+ </ul>
95
+
96
+
97
+
98
+
99
+
100
+
101
+ <div class="sectiontitle">Public Instance methods</div>
102
+ <div class="method">
103
+ <div class="title">
104
+ <a name="M000055"></a><b>arity</b>()
105
+ </div>
106
+ <div class="description">
107
+ <p>
108
+ Returns the number of backreferencing subexpressions.
109
+ </p>
110
+ <pre>
111
+ /(a)(b)(c)/.arity #=&gt; 3
112
+ /(a(b(c)))/.arity #=&gt; 3
113
+ </pre>
114
+ <p>
115
+ Note that this is not perfect, especially with regards to \x and embedded
116
+ comments.
117
+ </p>
118
+ <pre>
119
+ CREDIT: Trans
120
+ </pre>
121
+ </div>
122
+ <div class="sourcecode">
123
+ <p class="source-link">[ <a href="javascript:toggleSource('M000055_source')" id="l_M000055_source">show source</a> ]</p>
124
+ <div id="M000055_source" class="dyn-source">
125
+ <pre>
126
+ <span class="ruby-comment cmt"># File lib/core/facets/regexp/arity.rb, line 13</span>
127
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">arity</span>
128
+ <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>
129
+ <span class="ruby-keyword kw">end</span>
130
+ </pre>
131
+ </div>
132
+ </div>
133
+ </div>
134
+ <div class="method">
135
+ <div class="title">
136
+ <a name="M000052"></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('M000052_source')" id="l_M000052_source">show source</a> ]</p>
156
+ <div id="M000052_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="M000051"></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#M000486">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('M000051_source')" id="l_M000051_source">show source</a> ]</p>
186
+ <div id="M000051_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="M000054"></a><b>to_re</b>(esc=false)
199
+ </div>
200
+ <div class="description">
201
+ <p>
202
+ Simply returns itself. Helpful when converting strings to regular
203
+ expressions, where regexp might occur as well &#8212;in the same vien as
204
+ using to_s on symbols. The parameter is actaully a dummy parameter to
205
+ coincide with <a href="String.html#M000486">String#to_re</a>.
206
+ </p>
207
+ <pre>
208
+ /abc/.to_re #=&gt; /abc/
209
+ </pre>
210
+ <p>
211
+ CREDIT: Trans
212
+ </p>
213
+ </div>
214
+ <div class="sourcecode">
215
+ <p class="source-link">[ <a href="javascript:toggleSource('M000054_source')" id="l_M000054_source">show source</a> ]</p>
216
+ <div id="M000054_source" class="dyn-source">
217
+ <pre>
218
+ <span class="ruby-comment cmt"># File lib/core/facets/regexp/to_re.rb, line 24</span>
219
+ <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>)
220
+ <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>
221
+ <span class="ruby-keyword kw">end</span>
222
+ </pre>
223
+ </div>
224
+ </div>
225
+ </div>
226
+ <div class="method">
227
+ <div class="title">
228
+ <a name="M000053"></a><b>to_regexp</b>()
229
+ </div>
230
+ <div class="description">
231
+ <p>
232
+ Like <a href="Regexp.html#M000051">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('M000053_source')" id="l_M000053_source">show source</a> ]</p>
245
+ <div id="M000053_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="M000050"></a><b>to_regexp</b>()
258
+ </div>
259
+ <div class="description">
260
+ <p>
261
+ Like <a href="Regexp.html#M000051">to_re</a>, but following Ruby&#8216;s
262
+ formal definitions, only a Regular expression type object will respond to
263
+ this.
264
+ </p>
265
+ <p>
266
+ Note that to be of much real use this should be defined in core Ruby.
267
+ </p>
268
+ <p>
269
+ CREDIT: Florian Gross
270
+ </p>
271
+ </div>
272
+ <div class="sourcecode">
273
+ <p class="source-link">[ <a href="javascript:toggleSource('M000050_source')" id="l_M000050_source">show source</a> ]</p>
274
+ <div id="M000050_source" class="dyn-source">
275
+ <pre>
276
+ <span class="ruby-comment cmt"># File lib/core/facets/regexp/to_re.rb, line 10</span>
277
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_regexp</span>
278
+ <span class="ruby-keyword kw">self</span>
279
+ <span class="ruby-keyword kw">end</span>
280
+ </pre>
281
+ </div>
282
+ </div>
283
+ </div>
284
+ </div>
285
+
286
+ </div>
287
+
288
+ </body>
289
+ </html>
@@ -0,0 +1,3913 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head>
7
+ <title>Class: String</title>
8
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
10
+
11
+ <script language="JavaScript" type="text/javascript">
12
+ // <![CDATA[
13
+
14
+ function toggleSource( id )
15
+ {
16
+ var elem
17
+ var link
18
+
19
+ if( document.getElementById )
20
+ {
21
+ elem = document.getElementById( id )
22
+ link = document.getElementById( "l_" + id )
23
+ }
24
+ else if ( document.all )
25
+ {
26
+ elem = eval( "document.all." + id )
27
+ link = eval( "document.all.l_" + id )
28
+ }
29
+ else
30
+ return false;
31
+
32
+ if( elem.style.display == "block" )
33
+ {
34
+ elem.style.display = "none"
35
+ link.innerHTML = "show source"
36
+ }
37
+ else
38
+ {
39
+ elem.style.display = "block"
40
+ link.innerHTML = "hide source"
41
+ }
42
+ }
43
+
44
+ function openCode( url )
45
+ {
46
+ window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
47
+ }
48
+ // ]]>
49
+ </script>
50
+ </head>
51
+
52
+ <body>
53
+ <table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
54
+ <td class="file-title"><span class="file-title-prefix">Class</span><br />String</td>
55
+ <td align="right">
56
+ <table cellspacing="0" cellpadding="2">
57
+ <tr valign="top">
58
+ <td>In:</td>
59
+ <td>
60
+ <a href="../files/lib/core/facets/metaid_rb.html">lib/core/facets/metaid.rb</a>
61
+ <a href="../files/lib/core/facets/boolean_rb.html">lib/core/facets/boolean.rb</a>
62
+ <a href="../files/lib/core/facets/comparable/bound_rb.html">lib/core/facets/comparable/bound.rb</a>
63
+ <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/align_rb.html">lib/core/facets/string/align.rb</a>
73
+ <a href="../files/lib/core/facets/string/tab_rb.html">lib/core/facets/string/tab.rb</a>
74
+ <a href="../files/lib/core/facets/string/range_rb.html">lib/core/facets/string/range.rb</a>
75
+ <a href="../files/lib/core/facets/string/snakecase_rb.html">lib/core/facets/string/snakecase.rb</a>
76
+ <a href="../files/lib/core/facets/string/each_char_rb.html">lib/core/facets/string/each_char.rb</a>
77
+ <a href="../files/lib/core/facets/string/divide_rb.html">lib/core/facets/string/divide.rb</a>
78
+ <a href="../files/lib/core/facets/string/mscan_rb.html">lib/core/facets/string/mscan.rb</a>
79
+ <a href="../files/lib/core/facets/string/capitalized_rb.html">lib/core/facets/string/capitalized.rb</a>
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/bytes_rb.html">lib/core/facets/string/bytes.rb</a>
82
+ <a href="../files/lib/core/facets/string/subtract_rb.html">lib/core/facets/string/subtract.rb</a>
83
+ <a href="../files/lib/core/facets/string/titlecase_rb.html">lib/core/facets/string/titlecase.rb</a>
84
+ <a href="../files/lib/core/facets/string/words_rb.html">lib/core/facets/string/words.rb</a>
85
+ <a href="../files/lib/core/facets/string/interpolate_rb.html">lib/core/facets/string/interpolate.rb</a>
86
+ <a href="../files/lib/core/facets/string/cleave_rb.html">lib/core/facets/string/cleave.rb</a>
87
+ <a href="../files/lib/core/facets/string/to_time_rb.html">lib/core/facets/string/to_time.rb</a>
88
+ <a href="../files/lib/core/facets/string/line_wrap_rb.html">lib/core/facets/string/line_wrap.rb</a>
89
+ <a href="../files/lib/core/facets/string/bracket_rb.html">lib/core/facets/string/bracket.rb</a>
90
+ <a href="../files/lib/core/facets/string/chars_rb.html">lib/core/facets/string/chars.rb</a>
91
+ <a href="../files/lib/core/facets/string/chomp_rb.html">lib/core/facets/string/chomp.rb</a>
92
+ <a href="../files/lib/core/facets/string/splice_rb.html">lib/core/facets/string/splice.rb</a>
93
+ <a href="../files/lib/core/facets/string/rewrite_rb.html">lib/core/facets/string/rewrite.rb</a>
94
+ <a href="../files/lib/core/facets/string/nchar_rb.html">lib/core/facets/string/nchar.rb</a>
95
+ <a href="../files/lib/core/facets/string/xor_rb.html">lib/core/facets/string/xor.rb</a>
96
+ <a href="../files/lib/core/facets/string/shatter_rb.html">lib/core/facets/string/shatter.rb</a>
97
+ <a href="../files/lib/core/facets/string/to_re_rb.html">lib/core/facets/string/to_re.rb</a>
98
+ <a href="../files/lib/core/facets/string/fold_rb.html">lib/core/facets/string/fold.rb</a>
99
+ <a href="../files/lib/core/facets/string/start_with_rb.html">lib/core/facets/string/start_with.rb</a>
100
+ <a href="../files/lib/core/facets/string/camelcase_rb.html">lib/core/facets/string/camelcase.rb</a>
101
+ <a href="../files/lib/core/facets/string/lines_rb.html">lib/core/facets/string/lines.rb</a>
102
+ <a href="../files/lib/core/facets/string/align_rb.html">lib/core/facets/string/align.rb</a>
103
+ <a href="../files/lib/core/facets/string/tab_rb.html">lib/core/facets/string/tab.rb</a>
104
+ <a href="../files/lib/core/facets/string/range_rb.html">lib/core/facets/string/range.rb</a>
105
+ <a href="../files/lib/core/facets/string/snakecase_rb.html">lib/core/facets/string/snakecase.rb</a>
106
+ <a href="../files/lib/core/facets/string/each_char_rb.html">lib/core/facets/string/each_char.rb</a>
107
+ <a href="../files/lib/core/facets/string/divide_rb.html">lib/core/facets/string/divide.rb</a>
108
+ <a href="../files/lib/core/facets/string/mscan_rb.html">lib/core/facets/string/mscan.rb</a>
109
+ <a href="../files/lib/core/facets/string/capitalized_rb.html">lib/core/facets/string/capitalized.rb</a>
110
+ <a href="../files/lib/core/facets/string/natcmp_rb.html">lib/core/facets/string/natcmp.rb</a>
111
+ <a href="../files/lib/core/facets/string/bytes_rb.html">lib/core/facets/string/bytes.rb</a>
112
+ <a href="../files/lib/core/facets/string/subtract_rb.html">lib/core/facets/string/subtract.rb</a>
113
+ <a href="../files/lib/core/facets/string/titlecase_rb.html">lib/core/facets/string/titlecase.rb</a>
114
+ <a href="../files/lib/core/facets/string/words_rb.html">lib/core/facets/string/words.rb</a>
115
+ <a href="../files/lib/core/facets/string/interpolate_rb.html">lib/core/facets/string/interpolate.rb</a>
116
+ <a href="../files/lib/core/facets/string/cleave_rb.html">lib/core/facets/string/cleave.rb</a>
117
+ <a href="../files/lib/core/facets/string/to_time_rb.html">lib/core/facets/string/to_time.rb</a>
118
+ <a href="../files/lib/core/facets/string/line_wrap_rb.html">lib/core/facets/string/line_wrap.rb</a>
119
+ <a href="../files/lib/core/facets/string/bracket_rb.html">lib/core/facets/string/bracket.rb</a>
120
+ <a href="../files/lib/core/facets/string/chars_rb.html">lib/core/facets/string/chars.rb</a>
121
+ <a href="../files/lib/core/facets/string/chomp_rb.html">lib/core/facets/string/chomp.rb</a>
122
+ <a href="../files/lib/core/facets/string/splice_rb.html">lib/core/facets/string/splice.rb</a>
123
+ <a href="../files/lib/core/facets/string/rewrite_rb.html">lib/core/facets/string/rewrite.rb</a>
124
+ <a href="../files/lib/core/facets/string/nchar_rb.html">lib/core/facets/string/nchar.rb</a>
125
+ <a href="../files/lib/core/facets/string/xor_rb.html">lib/core/facets/string/xor.rb</a>
126
+ <a href="../files/lib/core/facets/blank_rb.html">lib/core/facets/blank.rb</a>
127
+ </td>
128
+ </tr>
129
+ <tr>
130
+ <td>Parent:</td>
131
+ <td>
132
+ <a href="Object.html">
133
+ Object
134
+ </a>
135
+ </td>
136
+ </tr>
137
+ </table>
138
+ </td>
139
+ </tr>
140
+ </table>
141
+ <!-- banner header -->
142
+
143
+ <div id="bodyContent">
144
+ <div id="content">
145
+
146
+
147
+
148
+
149
+ <div class="sectiontitle">Methods</div>
150
+ <ul>
151
+ <li><a href="#M000517">-</a></li>
152
+ <li><a href="#M000568">-</a></li>
153
+ <li><a href="#M000586">^</a></li>
154
+ <li><a href="#M000535">^</a></li>
155
+ <li><a href="#M000493">align</a></li>
156
+ <li><a href="#M000544">align</a></li>
157
+ <li><a href="#M000547">align_center</a></li>
158
+ <li><a href="#M000496">align_center</a></li>
159
+ <li><a href="#M000546">align_left</a></li>
160
+ <li><a href="#M000495">align_left</a></li>
161
+ <li><a href="#M000494">align_right</a></li>
162
+ <li><a href="#M000545">align_right</a></li>
163
+ <li><a href="#M000587">blank?</a></li>
164
+ <li><a href="#M000574">bracket</a></li>
165
+ <li><a href="#M000523">bracket</a></li>
166
+ <li><a href="#M000575">bracket!</a></li>
167
+ <li><a href="#M000524">bracket!</a></li>
168
+ <li><a href="#M000567">bytes</a></li>
169
+ <li><a href="#M000516">bytes</a></li>
170
+ <li><a href="#M000491">camelcase</a></li>
171
+ <li><a href="#M000542">camelcase</a></li>
172
+ <li><a href="#M000512">capitalized?</a></li>
173
+ <li><a href="#M000563">capitalized?</a></li>
174
+ <li><a href="#M000580">chars</a></li>
175
+ <li><a href="#M000529">chars</a></li>
176
+ <li><a href="#M000520">cleave</a></li>
177
+ <li><a href="#M000571">cleave</a></li>
178
+ <li><a href="#M000484">cmp</a></li>
179
+ <li><a href="#M000482">cmp</a></li>
180
+ <li><a href="#M000528">dequote</a></li>
181
+ <li><a href="#M000579">dequote</a></li>
182
+ <li><a href="#M000510">divide</a></li>
183
+ <li><a href="#M000561">divide</a></li>
184
+ <li><a href="#M000564">downcase?</a></li>
185
+ <li><a href="#M000513">downcase?</a></li>
186
+ <li><a href="#M000560">each_char</a></li>
187
+ <li><a href="#M000509">each_char</a></li>
188
+ <li><a href="#M000541">end_with?</a></li>
189
+ <li><a href="#M000490">end_with?</a></li>
190
+ <li><a href="#M000550">expand_tabs</a></li>
191
+ <li><a href="#M000499">expand_tabs</a></li>
192
+ <li><a href="#M000539">fold</a></li>
193
+ <li><a href="#M000488">fold</a></li>
194
+ <li><a href="#M000501">indent</a></li>
195
+ <li><a href="#M000552">indent</a></li>
196
+ <li><a href="#M000507">index_all</a></li>
197
+ <li><a href="#M000558">index_all</a></li>
198
+ <li><a href="#M000570">interpolate</a></li>
199
+ <li><a href="#M000519">interpolate</a></li>
200
+ <li><a href="#M000581">lchomp</a></li>
201
+ <li><a href="#M000530">lchomp</a></li>
202
+ <li><a href="#M000582">lchomp!</a></li>
203
+ <li><a href="#M000531">lchomp!</a></li>
204
+ <li><a href="#M000573">line_wrap</a></li>
205
+ <li><a href="#M000522">line_wrap</a></li>
206
+ <li><a href="#M000543">lines</a></li>
207
+ <li><a href="#M000492">lines</a></li>
208
+ <li><a href="#M000503">margin</a></li>
209
+ <li><a href="#M000554">margin</a></li>
210
+ <li><a href="#M000562">mscan</a></li>
211
+ <li><a href="#M000511">mscan</a></li>
212
+ <li><a href="#M000515">natcmp</a></li>
213
+ <li><a href="#M000566">natcmp</a></li>
214
+ <li><a href="#M000585">nchar</a></li>
215
+ <li><a href="#M000534">nchar</a></li>
216
+ <li><a href="#M000553">outdent</a></li>
217
+ <li><a href="#M000502">outdent</a></li>
218
+ <li><a href="#M000527">quote</a></li>
219
+ <li><a href="#M000578">quote</a></li>
220
+ <li><a href="#M000504">range</a></li>
221
+ <li><a href="#M000555">range</a></li>
222
+ <li><a href="#M000556">range_all</a></li>
223
+ <li><a href="#M000505">range_all</a></li>
224
+ <li><a href="#M000557">range_of_line</a></li>
225
+ <li><a href="#M000506">range_of_line</a></li>
226
+ <li><a href="#M000584">rewrite</a></li>
227
+ <li><a href="#M000533">rewrite</a></li>
228
+ <li><a href="#M000485">shatter</a></li>
229
+ <li><a href="#M000536">shatter</a></li>
230
+ <li><a href="#M000508">snakecase</a></li>
231
+ <li><a href="#M000559">snakecase</a></li>
232
+ <li><a href="#M000583">splice</a></li>
233
+ <li><a href="#M000532">splice</a></li>
234
+ <li><a href="#M000489">start_with?</a></li>
235
+ <li><a href="#M000540">start_with?</a></li>
236
+ <li><a href="#M000548">tab</a></li>
237
+ <li><a href="#M000497">tab</a></li>
238
+ <li><a href="#M000549">taballto</a></li>
239
+ <li><a href="#M000498">taballto</a></li>
240
+ <li><a href="#M000551">tabto</a></li>
241
+ <li><a href="#M000500">tabto</a></li>
242
+ <li><a href="#M000569">titlecase</a></li>
243
+ <li><a href="#M000518">titlecase</a></li>
244
+ <li><a href="#M000480">to_b</a></li>
245
+ <li><a href="#M000486">to_re</a></li>
246
+ <li><a href="#M000537">to_re</a></li>
247
+ <li><a href="#M000538">to_rx</a></li>
248
+ <li><a href="#M000487">to_rx</a></li>
249
+ <li><a href="#M000483">to_s</a></li>
250
+ <li><a href="#M000481">to_s</a></li>
251
+ <li><a href="#M000521">to_time</a></li>
252
+ <li><a href="#M000572">to_time</a></li>
253
+ <li><a href="#M000576">unbracket</a></li>
254
+ <li><a href="#M000525">unbracket</a></li>
255
+ <li><a href="#M000526">unbracket!</a></li>
256
+ <li><a href="#M000577">unbracket!</a></li>
257
+ <li><a href="#M000514">upcase?</a></li>
258
+ <li><a href="#M000565">upcase?</a></li>
259
+ <li><a href="#M000479">variablize</a></li>
260
+ </ul>
261
+
262
+ <div class="sectiontitle">Included Modules</div>
263
+ <ul>
264
+ <li><a href="String/Words.html">Words</a></li>
265
+ <li><a href="String/Words.html">Words</a></li>
266
+ </ul>
267
+
268
+
269
+ <div class="sectiontitle">Classes and Modules</div>
270
+ Module <a href="String/Words.html" class="link">String::Words</a><br />
271
+
272
+
273
+ <div class="sectiontitle">Constants</div>
274
+ <table border='0' cellpadding='5'>
275
+ <tr valign='top'>
276
+ <td class="attr-name">BRA2KET</td>
277
+ <td>=</td>
278
+ <td class="attr-value">{ '['=&gt;']', '('=&gt;')', '{'=&gt;'}', '&lt;'=&gt;'&gt;' }</td>
279
+ </tr>
280
+ <tr valign='top'>
281
+ <td class="attr-name">BRA2KET</td>
282
+ <td>=</td>
283
+ <td class="attr-value">{ '['=&gt;']', '('=&gt;')', '{'=&gt;'}', '&lt;'=&gt;'&gt;' }</td>
284
+ </tr>
285
+ </table>
286
+
287
+
288
+ <div class="sectiontitle">Public Class methods</div>
289
+ <div class="method">
290
+ <div class="title">
291
+ <a name="M000570"></a><b>interpolate</b>(&amp;str)
292
+ </div>
293
+ <div class="description">
294
+ <p>
295
+ Interpolate. Provides a means of extenally using Ruby string interpolation
296
+ mechinism.
297
+ </p>
298
+ <pre>
299
+ try = &quot;hello&quot;
300
+ str = &quot;\#{try}!!!&quot;
301
+ String.interpolate{ str } #=&gt; &quot;hello!!!&quot;
302
+
303
+ NOTE: The block neccessary in order to get
304
+ then binding of the caller.
305
+
306
+ CREDIT: Trans
307
+ </pre>
308
+ </div>
309
+ <div class="sourcecode">
310
+ <p class="source-link">[ <a href="javascript:toggleSource('M000570_source')" id="l_M000570_source">show source</a> ]</p>
311
+ <div id="M000570_source" class="dyn-source">
312
+ <pre>
313
+ <span class="ruby-comment cmt"># File lib/core/facets/string/interpolate.rb, line 15</span>
314
+ <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>)
315
+ <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>
316
+ <span class="ruby-keyword kw">end</span>
317
+ </pre>
318
+ </div>
319
+ </div>
320
+ </div>
321
+ <div class="method">
322
+ <div class="title">
323
+ <a name="M000519"></a><b>interpolate</b>(&amp;str)
324
+ </div>
325
+ <div class="description">
326
+ <p>
327
+ Interpolate. Provides a means of extenally using Ruby string interpolation
328
+ mechinism.
329
+ </p>
330
+ <pre>
331
+ try = &quot;hello&quot;
332
+ str = &quot;\#{try}!!!&quot;
333
+ String.interpolate{ str } #=&gt; &quot;hello!!!&quot;
334
+
335
+ NOTE: The block neccessary in order to get
336
+ then binding of the caller.
337
+
338
+ CREDIT: Trans
339
+ </pre>
340
+ </div>
341
+ <div class="sourcecode">
342
+ <p class="source-link">[ <a href="javascript:toggleSource('M000519_source')" id="l_M000519_source">show source</a> ]</p>
343
+ <div id="M000519_source" class="dyn-source">
344
+ <pre>
345
+ <span class="ruby-comment cmt"># File lib/core/facets/string/interpolate.rb, line 15</span>
346
+ <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>)
347
+ <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>
348
+ <span class="ruby-keyword kw">end</span>
349
+ </pre>
350
+ </div>
351
+ </div>
352
+ </div>
353
+ <div class="sectiontitle">Public Instance methods</div>
354
+ <div class="method">
355
+ <div class="title">
356
+ <a name="M000517"></a><b>-</b>(pattern)
357
+ </div>
358
+ <div class="description">
359
+ <p>
360
+ Removes occurances of a string or regexp.
361
+ </p>
362
+ <pre>
363
+ &quot;HELLO HELLO&quot; - &quot;LL&quot; #=&gt; &quot;HEO HEO&quot;
364
+
365
+ CREDIT: Benjamin David Oakes
366
+ </pre>
367
+ </div>
368
+ <div class="sourcecode">
369
+ <p class="source-link">[ <a href="javascript:toggleSource('M000517_source')" id="l_M000517_source">show source</a> ]</p>
370
+ <div id="M000517_source" class="dyn-source">
371
+ <pre>
372
+ <span class="ruby-comment cmt"># File lib/core/facets/string/subtract.rb, line 9</span>
373
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">pattern</span>)
374
+ <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>)
375
+ <span class="ruby-keyword kw">end</span>
376
+ </pre>
377
+ </div>
378
+ </div>
379
+ </div>
380
+ <div class="method">
381
+ <div class="title">
382
+ <a name="M000568"></a><b>-</b>(pattern)
383
+ </div>
384
+ <div class="description">
385
+ <p>
386
+ Removes occurances of a string or regexp.
387
+ </p>
388
+ <pre>
389
+ &quot;HELLO HELLO&quot; - &quot;LL&quot; #=&gt; &quot;HEO HEO&quot;
390
+
391
+ CREDIT: Benjamin David Oakes
392
+ </pre>
393
+ </div>
394
+ <div class="sourcecode">
395
+ <p class="source-link">[ <a href="javascript:toggleSource('M000568_source')" id="l_M000568_source">show source</a> ]</p>
396
+ <div id="M000568_source" class="dyn-source">
397
+ <pre>
398
+ <span class="ruby-comment cmt"># File lib/core/facets/string/subtract.rb, line 9</span>
399
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">pattern</span>)
400
+ <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>)
401
+ <span class="ruby-keyword kw">end</span>
402
+ </pre>
403
+ </div>
404
+ </div>
405
+ </div>
406
+ <div class="method">
407
+ <div class="title">
408
+ <a name="M000586"></a><b>^</b>(aString)
409
+ </div>
410
+ <div class="description">
411
+ <p>
412
+ XOR two string.
413
+ </p>
414
+ <p>
415
+ TODO: This is used by crypt.rb, it needs to be documented.
416
+ </p>
417
+ </div>
418
+ <div class="sourcecode">
419
+ <p class="source-link">[ <a href="javascript:toggleSource('M000586_source')" id="l_M000586_source">show source</a> ]</p>
420
+ <div id="M000586_source" class="dyn-source">
421
+ <pre>
422
+ <span class="ruby-comment cmt"># File lib/core/facets/string/xor.rb, line 7</span>
423
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">^</span>(<span class="ruby-identifier">aString</span>)
424
+ <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>))
425
+ <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>))
426
+ <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>)
427
+ (<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> }
428
+ <span class="ruby-keyword kw">end</span>
429
+ <span class="ruby-identifier">xor</span> = <span class="ruby-value str">&quot;&quot;</span>
430
+ <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>
431
+ <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>]
432
+ <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>()
433
+ }
434
+ <span class="ruby-keyword kw">return</span>(<span class="ruby-identifier">xor</span>)
435
+ <span class="ruby-keyword kw">end</span>
436
+ </pre>
437
+ </div>
438
+ </div>
439
+ </div>
440
+ <div class="method">
441
+ <div class="title">
442
+ <a name="M000535"></a><b>^</b>(aString)
443
+ </div>
444
+ <div class="description">
445
+ <p>
446
+ XOR two string.
447
+ </p>
448
+ <p>
449
+ TODO: This is used by crypt.rb, it needs to be documented.
450
+ </p>
451
+ </div>
452
+ <div class="sourcecode">
453
+ <p class="source-link">[ <a href="javascript:toggleSource('M000535_source')" id="l_M000535_source">show source</a> ]</p>
454
+ <div id="M000535_source" class="dyn-source">
455
+ <pre>
456
+ <span class="ruby-comment cmt"># File lib/core/facets/string/xor.rb, line 7</span>
457
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">^</span>(<span class="ruby-identifier">aString</span>)
458
+ <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>))
459
+ <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>))
460
+ <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>)
461
+ (<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> }
462
+ <span class="ruby-keyword kw">end</span>
463
+ <span class="ruby-identifier">xor</span> = <span class="ruby-value str">&quot;&quot;</span>
464
+ <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>
465
+ <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>]
466
+ <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>()
467
+ }
468
+ <span class="ruby-keyword kw">return</span>(<span class="ruby-identifier">xor</span>)
469
+ <span class="ruby-keyword kw">end</span>
470
+ </pre>
471
+ </div>
472
+ </div>
473
+ </div>
474
+ <div class="method">
475
+ <div class="title">
476
+ <a name="M000493"></a><b>align</b>(direction, n, sep=&quot;\n&quot;, c=' ')
477
+ </div>
478
+ <div class="sourcecode">
479
+ <p class="source-link">[ <a href="javascript:toggleSource('M000493_source')" id="l_M000493_source">show source</a> ]</p>
480
+ <div id="M000493_source" class="dyn-source">
481
+ <pre>
482
+ <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 3</span>
483
+ <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>)
484
+ <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">direction</span>
485
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:right</span>
486
+ <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>)
487
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:left</span>
488
+ <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>)
489
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:center</span>
490
+ <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>)
491
+ <span class="ruby-keyword kw">else</span>
492
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>
493
+ <span class="ruby-keyword kw">end</span>
494
+ <span class="ruby-keyword kw">end</span>
495
+ </pre>
496
+ </div>
497
+ </div>
498
+ </div>
499
+ <div class="method">
500
+ <div class="title">
501
+ <a name="M000544"></a><b>align</b>(direction, n, sep=&quot;\n&quot;, c=' ')
502
+ </div>
503
+ <div class="sourcecode">
504
+ <p class="source-link">[ <a href="javascript:toggleSource('M000544_source')" id="l_M000544_source">show source</a> ]</p>
505
+ <div id="M000544_source" class="dyn-source">
506
+ <pre>
507
+ <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 3</span>
508
+ <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>)
509
+ <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">direction</span>
510
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:right</span>
511
+ <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>)
512
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:left</span>
513
+ <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>)
514
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:center</span>
515
+ <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>)
516
+ <span class="ruby-keyword kw">else</span>
517
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>
518
+ <span class="ruby-keyword kw">end</span>
519
+ <span class="ruby-keyword kw">end</span>
520
+ </pre>
521
+ </div>
522
+ </div>
523
+ </div>
524
+ <div class="method">
525
+ <div class="title">
526
+ <a name="M000547"></a><b>align_center</b>(n, sep=&quot;\n&quot;, c=' ')
527
+ </div>
528
+ <div class="description">
529
+ <p>
530
+ Centers each line of a string.
531
+ </p>
532
+ <p>
533
+ The defualt alignment seperation is a new line (&quot;/n&quot;) This can be
534
+ changed as can be the padding string which defaults to a single space
535
+ (&#8217; &#8217;).
536
+ </p>
537
+ <pre>
538
+ s = &lt;&lt;-EOS
539
+ This is a test
540
+ and
541
+ so on
542
+ EOS
543
+
544
+ puts s.align_center(14)
545
+ </pre>
546
+ <p>
547
+ <em>produces</em>
548
+ </p>
549
+ <pre>
550
+ This is a test
551
+ and
552
+ so on
553
+
554
+ CREDIT: Trans
555
+ </pre>
556
+ </div>
557
+ <div class="sourcecode">
558
+ <p class="source-link">[ <a href="javascript:toggleSource('M000547_source')" id="l_M000547_source">show source</a> ]</p>
559
+ <div id="M000547_source" class="dyn-source">
560
+ <pre>
561
+ <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 97</span>
562
+ <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>)
563
+ <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>
564
+ <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>
565
+ <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>)
566
+ }
567
+ <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>)
568
+ <span class="ruby-keyword kw">end</span>
569
+ </pre>
570
+ </div>
571
+ </div>
572
+ </div>
573
+ <div class="method">
574
+ <div class="title">
575
+ <a name="M000496"></a><b>align_center</b>(n, sep=&quot;\n&quot;, c=' ')
576
+ </div>
577
+ <div class="description">
578
+ <p>
579
+ Centers each line of a string.
580
+ </p>
581
+ <p>
582
+ The defualt alignment seperation is a new line (&quot;/n&quot;) This can be
583
+ changed as can be the padding string which defaults to a single space
584
+ (&#8217; &#8217;).
585
+ </p>
586
+ <pre>
587
+ s = &lt;&lt;-EOS
588
+ This is a test
589
+ and
590
+ so on
591
+ EOS
592
+
593
+ puts s.align_center(14)
594
+ </pre>
595
+ <p>
596
+ <em>produces</em>
597
+ </p>
598
+ <pre>
599
+ This is a test
600
+ and
601
+ so on
602
+
603
+ CREDIT: Trans
604
+ </pre>
605
+ </div>
606
+ <div class="sourcecode">
607
+ <p class="source-link">[ <a href="javascript:toggleSource('M000496_source')" id="l_M000496_source">show source</a> ]</p>
608
+ <div id="M000496_source" class="dyn-source">
609
+ <pre>
610
+ <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 97</span>
611
+ <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>)
612
+ <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>
613
+ <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>
614
+ <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>)
615
+ }
616
+ <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>)
617
+ <span class="ruby-keyword kw">end</span>
618
+ </pre>
619
+ </div>
620
+ </div>
621
+ </div>
622
+ <div class="method">
623
+ <div class="title">
624
+ <a name="M000546"></a><b>align_left</b>(n, sep=&quot;\n&quot;, c=' ')
625
+ </div>
626
+ <div class="description">
627
+ <p>
628
+ Align a string to the left.
629
+ </p>
630
+ <p>
631
+ The defualt alignment seperation is a new line (&quot;/n&quot;) This can be
632
+ changes as can be the padding string which defaults to a single space
633
+ (&#8217; &#8217;).
634
+ </p>
635
+ <pre>
636
+ s = &lt;&lt;-EOS
637
+ This is a test
638
+ and
639
+ so on
640
+ EOS
641
+
642
+ puts s.align_left(2)
643
+ </pre>
644
+ <p>
645
+ <em>produces</em>
646
+ </p>
647
+ <pre>
648
+ This is a test
649
+ and
650
+ so on
651
+
652
+ CREDIT: Trans
653
+ </pre>
654
+ </div>
655
+ <div class="sourcecode">
656
+ <p class="source-link">[ <a href="javascript:toggleSource('M000546_source')" id="l_M000546_source">show source</a> ]</p>
657
+ <div id="M000546_source" class="dyn-source">
658
+ <pre>
659
+ <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 67</span>
660
+ <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>)
661
+ <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>
662
+ <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>
663
+ <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>)
664
+ }
665
+ <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>)
666
+ <span class="ruby-keyword kw">end</span>
667
+ </pre>
668
+ </div>
669
+ </div>
670
+ </div>
671
+ <div class="method">
672
+ <div class="title">
673
+ <a name="M000495"></a><b>align_left</b>(n, sep=&quot;\n&quot;, c=' ')
674
+ </div>
675
+ <div class="description">
676
+ <p>
677
+ Align a string to the left.
678
+ </p>
679
+ <p>
680
+ The defualt alignment seperation is a new line (&quot;/n&quot;) This can be
681
+ changes as can be the padding string which defaults to a single space
682
+ (&#8217; &#8217;).
683
+ </p>
684
+ <pre>
685
+ s = &lt;&lt;-EOS
686
+ This is a test
687
+ and
688
+ so on
689
+ EOS
690
+
691
+ puts s.align_left(2)
692
+ </pre>
693
+ <p>
694
+ <em>produces</em>
695
+ </p>
696
+ <pre>
697
+ This is a test
698
+ and
699
+ so on
700
+
701
+ CREDIT: Trans
702
+ </pre>
703
+ </div>
704
+ <div class="sourcecode">
705
+ <p class="source-link">[ <a href="javascript:toggleSource('M000495_source')" id="l_M000495_source">show source</a> ]</p>
706
+ <div id="M000495_source" class="dyn-source">
707
+ <pre>
708
+ <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 67</span>
709
+ <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>)
710
+ <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>
711
+ <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>
712
+ <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>)
713
+ }
714
+ <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>)
715
+ <span class="ruby-keyword kw">end</span>
716
+ </pre>
717
+ </div>
718
+ </div>
719
+ </div>
720
+ <div class="method">
721
+ <div class="title">
722
+ <a name="M000494"></a><b>align_right</b>(n, sep=&quot;\n&quot;, c=' ')
723
+ </div>
724
+ <div class="description">
725
+ <p>
726
+ Align a string to the right. The defualt alignment seperation is a new line
727
+ (&quot;/n&quot;) This can be changes as can be the padding string which
728
+ defaults to a single space (&#8217; &#8217;).
729
+ </p>
730
+ <pre>
731
+ s = &lt;&lt;-EOS
732
+ This is a test
733
+ and
734
+ so on
735
+ EOS
736
+
737
+ puts s.align_right(2)
738
+ </pre>
739
+ <p>
740
+ <em>produces</em>
741
+ </p>
742
+ <pre>
743
+ This is a test
744
+ and
745
+ so on
746
+
747
+ CREDIT: Trans
748
+ </pre>
749
+ </div>
750
+ <div class="sourcecode">
751
+ <p class="source-link">[ <a href="javascript:toggleSource('M000494_source')" id="l_M000494_source">show source</a> ]</p>
752
+ <div id="M000494_source" class="dyn-source">
753
+ <pre>
754
+ <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 37</span>
755
+ <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>)
756
+ <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>
757
+ <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>
758
+ <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>)
759
+ }
760
+ <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>)
761
+ <span class="ruby-keyword kw">end</span>
762
+ </pre>
763
+ </div>
764
+ </div>
765
+ </div>
766
+ <div class="method">
767
+ <div class="title">
768
+ <a name="M000545"></a><b>align_right</b>(n, sep=&quot;\n&quot;, c=' ')
769
+ </div>
770
+ <div class="description">
771
+ <p>
772
+ Align a string to the right. The defualt alignment seperation is a new line
773
+ (&quot;/n&quot;) This can be changes as can be the padding string which
774
+ defaults to a single space (&#8217; &#8217;).
775
+ </p>
776
+ <pre>
777
+ s = &lt;&lt;-EOS
778
+ This is a test
779
+ and
780
+ so on
781
+ EOS
782
+
783
+ puts s.align_right(2)
784
+ </pre>
785
+ <p>
786
+ <em>produces</em>
787
+ </p>
788
+ <pre>
789
+ This is a test
790
+ and
791
+ so on
792
+
793
+ CREDIT: Trans
794
+ </pre>
795
+ </div>
796
+ <div class="sourcecode">
797
+ <p class="source-link">[ <a href="javascript:toggleSource('M000545_source')" id="l_M000545_source">show source</a> ]</p>
798
+ <div id="M000545_source" class="dyn-source">
799
+ <pre>
800
+ <span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 37</span>
801
+ <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>)
802
+ <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>
803
+ <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>
804
+ <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>)
805
+ }
806
+ <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>)
807
+ <span class="ruby-keyword kw">end</span>
808
+ </pre>
809
+ </div>
810
+ </div>
811
+ </div>
812
+ <div class="method">
813
+ <div class="title">
814
+ <a name="M000587"></a><b>blank?</b>()
815
+ </div>
816
+ <div class="description">
817
+ <p>
818
+ Is this string just whitespace?
819
+ </p>
820
+ <pre>
821
+ &quot;abc&quot;.blank? #=&gt; false
822
+ &quot; &quot;.blank? #=&gt; true
823
+ </pre>
824
+ </div>
825
+ <div class="sourcecode">
826
+ <p class="source-link">[ <a href="javascript:toggleSource('M000587_source')" id="l_M000587_source">show source</a> ]</p>
827
+ <div id="M000587_source" class="dyn-source">
828
+ <pre>
829
+ <span class="ruby-comment cmt"># File lib/core/facets/blank.rb, line 50</span>
830
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blank?</span>
831
+ <span class="ruby-keyword kw">self</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/\S/</span>
832
+ <span class="ruby-keyword kw">end</span>
833
+ </pre>
834
+ </div>
835
+ </div>
836
+ </div>
837
+ <div class="method">
838
+ <div class="title">
839
+ <a name="M000574"></a><b>bracket</b>(bra, ket=nil)
840
+ </div>
841
+ <div class="description">
842
+ <p>
843
+ Return a new string embraced by given brakets. If only one <a
844
+ href="String.html#M000523">bracket</a> char is given it will be placed on
845
+ either side.
846
+ </p>
847
+ <pre>
848
+ &quot;wrap me&quot;.bracket('{') #=&gt; &quot;{wrap me}&quot;
849
+ &quot;wrap me&quot;.bracket('--','!') #=&gt; &quot;--wrap me!&quot;
850
+
851
+ CREDIT: Trans
852
+ </pre>
853
+ </div>
854
+ <div class="sourcecode">
855
+ <p class="source-link">[ <a href="javascript:toggleSource('M000574_source')" id="l_M000574_source">show source</a> ]</p>
856
+ <div id="M000574_source" class="dyn-source">
857
+ <pre>
858
+ <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 14</span>
859
+ <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>)
860
+ <span class="ruby-comment cmt">#ket = String.bra2ket[$&amp;] if ! ket &amp;&amp; /^[\[({&lt;]$/ =~ bra</span>
861
+ <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>
862
+ <span class="ruby-node">&quot;#{bra}#{self}#{ket ? ket : bra}&quot;</span>
863
+ <span class="ruby-keyword kw">end</span>
864
+ </pre>
865
+ </div>
866
+ </div>
867
+ </div>
868
+ <div class="method">
869
+ <div class="title">
870
+ <a name="M000523"></a><b>bracket</b>(bra, ket=nil)
871
+ </div>
872
+ <div class="description">
873
+ <p>
874
+ Return a new string embraced by given brakets. If only one <a
875
+ href="String.html#M000523">bracket</a> char is given it will be placed on
876
+ either side.
877
+ </p>
878
+ <pre>
879
+ &quot;wrap me&quot;.bracket('{') #=&gt; &quot;{wrap me}&quot;
880
+ &quot;wrap me&quot;.bracket('--','!') #=&gt; &quot;--wrap me!&quot;
881
+
882
+ CREDIT: Trans
883
+ </pre>
884
+ </div>
885
+ <div class="sourcecode">
886
+ <p class="source-link">[ <a href="javascript:toggleSource('M000523_source')" id="l_M000523_source">show source</a> ]</p>
887
+ <div id="M000523_source" class="dyn-source">
888
+ <pre>
889
+ <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 14</span>
890
+ <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>)
891
+ <span class="ruby-comment cmt">#ket = String.bra2ket[$&amp;] if ! ket &amp;&amp; /^[\[({&lt;]$/ =~ bra</span>
892
+ <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>
893
+ <span class="ruby-node">&quot;#{bra}#{self}#{ket ? ket : bra}&quot;</span>
894
+ <span class="ruby-keyword kw">end</span>
895
+ </pre>
896
+ </div>
897
+ </div>
898
+ </div>
899
+ <div class="method">
900
+ <div class="title">
901
+ <a name="M000575"></a><b>bracket!</b>(bra, ket=nil)
902
+ </div>
903
+ <div class="description">
904
+ <p>
905
+ Inplace version of braket.
906
+ </p>
907
+ <pre>
908
+ CREDIT: Trans
909
+ </pre>
910
+ </div>
911
+ <div class="sourcecode">
912
+ <p class="source-link">[ <a href="javascript:toggleSource('M000575_source')" id="l_M000575_source">show source</a> ]</p>
913
+ <div id="M000575_source" class="dyn-source">
914
+ <pre>
915
+ <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 24</span>
916
+ <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>)
917
+ <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>))
918
+ <span class="ruby-keyword kw">end</span>
919
+ </pre>
920
+ </div>
921
+ </div>
922
+ </div>
923
+ <div class="method">
924
+ <div class="title">
925
+ <a name="M000524"></a><b>bracket!</b>(bra, ket=nil)
926
+ </div>
927
+ <div class="description">
928
+ <p>
929
+ Inplace version of braket.
930
+ </p>
931
+ <pre>
932
+ CREDIT: Trans
933
+ </pre>
934
+ </div>
935
+ <div class="sourcecode">
936
+ <p class="source-link">[ <a href="javascript:toggleSource('M000524_source')" id="l_M000524_source">show source</a> ]</p>
937
+ <div id="M000524_source" class="dyn-source">
938
+ <pre>
939
+ <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 24</span>
940
+ <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>)
941
+ <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>))
942
+ <span class="ruby-keyword kw">end</span>
943
+ </pre>
944
+ </div>
945
+ </div>
946
+ </div>
947
+ <div class="method">
948
+ <div class="title">
949
+ <a name="M000567"></a><b>bytes</b>()
950
+ </div>
951
+ <div class="description">
952
+ <p>
953
+ Upacks string into <a href="String.html#M000516">bytes</a>.
954
+ </p>
955
+ </div>
956
+ <div class="sourcecode">
957
+ <p class="source-link">[ <a href="javascript:toggleSource('M000567_source')" id="l_M000567_source">show source</a> ]</p>
958
+ <div id="M000567_source" class="dyn-source">
959
+ <pre>
960
+ <span class="ruby-comment cmt"># File lib/core/facets/string/bytes.rb, line 8</span>
961
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bytes</span>
962
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'C*'</span>)
963
+ <span class="ruby-keyword kw">end</span>
964
+ </pre>
965
+ </div>
966
+ </div>
967
+ </div>
968
+ <div class="method">
969
+ <div class="title">
970
+ <a name="M000516"></a><b>bytes</b>()
971
+ </div>
972
+ <div class="description">
973
+ <p>
974
+ Upacks string into <a href="String.html#M000516">bytes</a>.
975
+ </p>
976
+ </div>
977
+ <div class="sourcecode">
978
+ <p class="source-link">[ <a href="javascript:toggleSource('M000516_source')" id="l_M000516_source">show source</a> ]</p>
979
+ <div id="M000516_source" class="dyn-source">
980
+ <pre>
981
+ <span class="ruby-comment cmt"># File lib/core/facets/string/bytes.rb, line 8</span>
982
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bytes</span>
983
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'C*'</span>)
984
+ <span class="ruby-keyword kw">end</span>
985
+ </pre>
986
+ </div>
987
+ </div>
988
+ </div>
989
+ <div class="method">
990
+ <div class="title">
991
+ <a name="M000491"></a><b>camelcase</b>(upcase_first_letter=true)
992
+ </div>
993
+ <div class="description">
994
+ <p>
995
+ Converts a string to <a href="String.html#M000491">camelcase</a>.
996
+ </p>
997
+ <p>
998
+ By default <a href="String.html#M000491">camelcase</a> convert to
999
+ UpperCamelCase, If an argument is set to <tt>false</tt>, then <a
1000
+ href="String.html#M000491">camelcase</a> will produce lowerCamelCase.
1001
+ </p>
1002
+ <p>
1003
+ <tt><a href="String.html#M000491">camelcase</a></tt> also converts
1004
+ &#8217;/&#8217; to &#8217;::&#8217; which is useful for converting paths to
1005
+ namespaces.
1006
+ </p>
1007
+ <p>
1008
+ Examples
1009
+ </p>
1010
+ <pre>
1011
+ &quot;camel_case&quot;.camelcase #=&gt; &quot;CamelCase&quot;
1012
+ &quot;camel/case&quot;.camelcase #=&gt; &quot;Camel::Case&quot;
1013
+ &quot;camel_case&quot;.camelcase(false) #=&gt; &quot;camelCase&quot;
1014
+ </pre>
1015
+ </div>
1016
+ <div class="sourcecode">
1017
+ <p class="source-link">[ <a href="javascript:toggleSource('M000491_source')" id="l_M000491_source">show source</a> ]</p>
1018
+ <div id="M000491_source" class="dyn-source">
1019
+ <pre>
1020
+ <span class="ruby-comment cmt"># File lib/core/facets/string/camelcase.rb, line 16</span>
1021
+ <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>)
1022
+ <span class="ruby-identifier">up</span> = <span class="ruby-identifier">upcase_first_letter</span>
1023
+ <span class="ruby-identifier">str</span> = <span class="ruby-identifier">dup</span>
1024
+ <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>
1025
+ <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> }
1026
+ <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>
1027
+ <span class="ruby-identifier">str</span>
1028
+ <span class="ruby-keyword kw">end</span>
1029
+ </pre>
1030
+ </div>
1031
+ </div>
1032
+ </div>
1033
+ <div class="method">
1034
+ <div class="title">
1035
+ <a name="M000542"></a><b>camelcase</b>(upcase_first_letter=true)
1036
+ </div>
1037
+ <div class="description">
1038
+ <p>
1039
+ Converts a string to <a href="String.html#M000491">camelcase</a>.
1040
+ </p>
1041
+ <p>
1042
+ By default <a href="String.html#M000491">camelcase</a> convert to
1043
+ UpperCamelCase, If an argument is set to <tt>false</tt>, then <a
1044
+ href="String.html#M000491">camelcase</a> will produce lowerCamelCase.
1045
+ </p>
1046
+ <p>
1047
+ <tt><a href="String.html#M000491">camelcase</a></tt> also converts
1048
+ &#8217;/&#8217; to &#8217;::&#8217; which is useful for converting paths to
1049
+ namespaces.
1050
+ </p>
1051
+ <p>
1052
+ Examples
1053
+ </p>
1054
+ <pre>
1055
+ &quot;camel_case&quot;.camelcase #=&gt; &quot;CamelCase&quot;
1056
+ &quot;camel/case&quot;.camelcase #=&gt; &quot;Camel::Case&quot;
1057
+ &quot;camel_case&quot;.camelcase(false) #=&gt; &quot;camelCase&quot;
1058
+ </pre>
1059
+ </div>
1060
+ <div class="sourcecode">
1061
+ <p class="source-link">[ <a href="javascript:toggleSource('M000542_source')" id="l_M000542_source">show source</a> ]</p>
1062
+ <div id="M000542_source" class="dyn-source">
1063
+ <pre>
1064
+ <span class="ruby-comment cmt"># File lib/core/facets/string/camelcase.rb, line 16</span>
1065
+ <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>)
1066
+ <span class="ruby-identifier">up</span> = <span class="ruby-identifier">upcase_first_letter</span>
1067
+ <span class="ruby-identifier">str</span> = <span class="ruby-identifier">dup</span>
1068
+ <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>
1069
+ <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> }
1070
+ <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>
1071
+ <span class="ruby-identifier">str</span>
1072
+ <span class="ruby-keyword kw">end</span>
1073
+ </pre>
1074
+ </div>
1075
+ </div>
1076
+ </div>
1077
+ <div class="method">
1078
+ <div class="title">
1079
+ <a name="M000512"></a><b>capitalized?</b>()
1080
+ </div>
1081
+ <div class="description">
1082
+ <p>
1083
+ Return true if the string is capitalized, otherwise false.
1084
+ </p>
1085
+ <pre>
1086
+ &quot;THIS&quot;.capitalized? #=&gt; true
1087
+ &quot;This&quot;.capitalized? #=&gt; true
1088
+ &quot;this&quot;.capitalized? #=&gt; false
1089
+
1090
+ CREDIT: Phil Tomson
1091
+ </pre>
1092
+ </div>
1093
+ <div class="sourcecode">
1094
+ <p class="source-link">[ <a href="javascript:toggleSource('M000512_source')" id="l_M000512_source">show source</a> ]</p>
1095
+ <div id="M000512_source" class="dyn-source">
1096
+ <pre>
1097
+ <span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 11</span>
1098
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">capitalized?</span>
1099
+ <span class="ruby-keyword kw">self</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^[A-Z]/</span>
1100
+ <span class="ruby-keyword kw">end</span>
1101
+ </pre>
1102
+ </div>
1103
+ </div>
1104
+ </div>
1105
+ <div class="method">
1106
+ <div class="title">
1107
+ <a name="M000563"></a><b>capitalized?</b>()
1108
+ </div>
1109
+ <div class="description">
1110
+ <p>
1111
+ Return true if the string is capitalized, otherwise false.
1112
+ </p>
1113
+ <pre>
1114
+ &quot;THIS&quot;.capitalized? #=&gt; true
1115
+ &quot;This&quot;.capitalized? #=&gt; true
1116
+ &quot;this&quot;.capitalized? #=&gt; false
1117
+
1118
+ CREDIT: Phil Tomson
1119
+ </pre>
1120
+ </div>
1121
+ <div class="sourcecode">
1122
+ <p class="source-link">[ <a href="javascript:toggleSource('M000563_source')" id="l_M000563_source">show source</a> ]</p>
1123
+ <div id="M000563_source" class="dyn-source">
1124
+ <pre>
1125
+ <span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 11</span>
1126
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">capitalized?</span>
1127
+ <span class="ruby-keyword kw">self</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^[A-Z]/</span>
1128
+ <span class="ruby-keyword kw">end</span>
1129
+ </pre>
1130
+ </div>
1131
+ </div>
1132
+ </div>
1133
+ <div class="method">
1134
+ <div class="title">
1135
+ <a name="M000580"></a><b>chars</b>()
1136
+ </div>
1137
+ <div class="description">
1138
+ <p>
1139
+ Returns an array of characters.
1140
+ </p>
1141
+ <pre>
1142
+ &quot;abc&quot;.chars #=&gt; [&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]
1143
+ </pre>
1144
+ </div>
1145
+ <div class="sourcecode">
1146
+ <p class="source-link">[ <a href="javascript:toggleSource('M000580_source')" id="l_M000580_source">show source</a> ]</p>
1147
+ <div id="M000580_source" class="dyn-source">
1148
+ <pre>
1149
+ <span class="ruby-comment cmt"># File lib/core/facets/string/chars.rb, line 9</span>
1150
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chars</span>
1151
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">//</span>)
1152
+ <span class="ruby-keyword kw">end</span>
1153
+ </pre>
1154
+ </div>
1155
+ </div>
1156
+ </div>
1157
+ <div class="method">
1158
+ <div class="title">
1159
+ <a name="M000529"></a><b>chars</b>()
1160
+ </div>
1161
+ <div class="description">
1162
+ <p>
1163
+ Returns an array of characters.
1164
+ </p>
1165
+ <pre>
1166
+ &quot;abc&quot;.chars #=&gt; [&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]
1167
+ </pre>
1168
+ </div>
1169
+ <div class="sourcecode">
1170
+ <p class="source-link">[ <a href="javascript:toggleSource('M000529_source')" id="l_M000529_source">show source</a> ]</p>
1171
+ <div id="M000529_source" class="dyn-source">
1172
+ <pre>
1173
+ <span class="ruby-comment cmt"># File lib/core/facets/string/chars.rb, line 9</span>
1174
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chars</span>
1175
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">//</span>)
1176
+ <span class="ruby-keyword kw">end</span>
1177
+ </pre>
1178
+ </div>
1179
+ </div>
1180
+ </div>
1181
+ <div class="method">
1182
+ <div class="title">
1183
+ <a name="M000520"></a><b>cleave</b>(threshold=nil, len=nil)
1184
+ </div>
1185
+ <div class="description">
1186
+ <p>
1187
+ Cleave a string. Break a string in two parts at the nearest whitespace.
1188
+ </p>
1189
+ <pre>
1190
+ CREDIT: Trans
1191
+ </pre>
1192
+ </div>
1193
+ <div class="sourcecode">
1194
+ <p class="source-link">[ <a href="javascript:toggleSource('M000520_source')" id="l_M000520_source">show source</a> ]</p>
1195
+ <div id="M000520_source" class="dyn-source">
1196
+ <pre>
1197
+ <span class="ruby-comment cmt"># File lib/core/facets/string/cleave.rb, line 8</span>
1198
+ <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>)
1199
+ <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>)
1200
+ <span class="ruby-identifier">t</span> = <span class="ruby-identifier">threshold</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">size</span>
1201
+
1202
+ <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>]
1203
+ <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>]
1204
+
1205
+ <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>
1206
+ <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>
1207
+
1208
+ <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>
1209
+ <span class="ruby-identifier">i2</span> = <span class="ruby-identifier">d2</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">l</span>
1210
+
1211
+ <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>
1212
+ <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>
1213
+
1214
+ <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>
1215
+ <span class="ruby-identifier">i</span> = <span class="ruby-identifier">t</span>
1216
+ <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>
1217
+ <span class="ruby-identifier">i</span> = <span class="ruby-identifier">i1</span>
1218
+ <span class="ruby-keyword kw">else</span>
1219
+ <span class="ruby-identifier">i</span> = <span class="ruby-identifier">i2</span>
1220
+ <span class="ruby-keyword kw">end</span>
1221
+
1222
+ <span class="ruby-comment cmt">#dup.insert(l, &quot;\n&quot;).gsub(/^\s+|\s+$/, '')</span>
1223
+ <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>
1224
+ <span class="ruby-keyword kw">end</span>
1225
+ </pre>
1226
+ </div>
1227
+ </div>
1228
+ </div>
1229
+ <div class="method">
1230
+ <div class="title">
1231
+ <a name="M000571"></a><b>cleave</b>(threshold=nil, len=nil)
1232
+ </div>
1233
+ <div class="description">
1234
+ <p>
1235
+ Cleave a string. Break a string in two parts at the nearest whitespace.
1236
+ </p>
1237
+ <pre>
1238
+ CREDIT: Trans
1239
+ </pre>
1240
+ </div>
1241
+ <div class="sourcecode">
1242
+ <p class="source-link">[ <a href="javascript:toggleSource('M000571_source')" id="l_M000571_source">show source</a> ]</p>
1243
+ <div id="M000571_source" class="dyn-source">
1244
+ <pre>
1245
+ <span class="ruby-comment cmt"># File lib/core/facets/string/cleave.rb, line 8</span>
1246
+ <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>)
1247
+ <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>)
1248
+ <span class="ruby-identifier">t</span> = <span class="ruby-identifier">threshold</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">size</span>
1249
+
1250
+ <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>]
1251
+ <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>]
1252
+
1253
+ <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>
1254
+ <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>
1255
+
1256
+ <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>
1257
+ <span class="ruby-identifier">i2</span> = <span class="ruby-identifier">d2</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">l</span>
1258
+
1259
+ <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>
1260
+ <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>
1261
+
1262
+ <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>
1263
+ <span class="ruby-identifier">i</span> = <span class="ruby-identifier">t</span>
1264
+ <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>
1265
+ <span class="ruby-identifier">i</span> = <span class="ruby-identifier">i1</span>
1266
+ <span class="ruby-keyword kw">else</span>
1267
+ <span class="ruby-identifier">i</span> = <span class="ruby-identifier">i2</span>
1268
+ <span class="ruby-keyword kw">end</span>
1269
+
1270
+ <span class="ruby-comment cmt">#dup.insert(l, &quot;\n&quot;).gsub(/^\s+|\s+$/, '')</span>
1271
+ <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>
1272
+ <span class="ruby-keyword kw">end</span>
1273
+ </pre>
1274
+ </div>
1275
+ </div>
1276
+ </div>
1277
+ <div class="method">
1278
+ <div class="title">
1279
+ <a name="M000484"></a><b>cmp</b>(other)
1280
+ </div>
1281
+ <div class="description">
1282
+ <p>
1283
+ Compare method that takes length into account. Unlike #&lt;=&gt;, this is
1284
+ compatible with succ.
1285
+ </p>
1286
+ <pre>
1287
+ &quot;abc&quot;.cmp(&quot;abc&quot;) #=&gt; 0
1288
+ &quot;abcd&quot;.cmp(&quot;abc&quot;) #=&gt; 1
1289
+ &quot;abc&quot;.cmp(&quot;abcd&quot;) #=&gt; -1
1290
+ &quot;xyz&quot;.cmp(&quot;abc&quot;) #=&gt; 1
1291
+
1292
+ CREDIT Peter Vanbroekhoven
1293
+ </pre>
1294
+ </div>
1295
+ <div class="sourcecode">
1296
+ <p class="source-link">[ <a href="javascript:toggleSource('M000484_source')" id="l_M000484_source">show source</a> ]</p>
1297
+ <div id="M000484_source" class="dyn-source">
1298
+ <pre>
1299
+ <span class="ruby-comment cmt"># File lib/core/facets/comparable/cmp.rb, line 31</span>
1300
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmp</span>(<span class="ruby-identifier">other</span>)
1301
+ <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>
1302
+ <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>
1303
+ <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>
1304
+ <span class="ruby-keyword kw">end</span>
1305
+ </pre>
1306
+ </div>
1307
+ </div>
1308
+ </div>
1309
+ <div class="method">
1310
+ <div class="title">
1311
+ <a name="M000482"></a><b>cmp</b>(other)
1312
+ </div>
1313
+ <div class="description">
1314
+ <p>
1315
+ Compare method that takes length into account. Unlike #&lt;=&gt;, this is
1316
+ compatible with succ.
1317
+ </p>
1318
+ <pre>
1319
+ &quot;abc&quot;.cmp(&quot;abc&quot;) #=&gt; 0
1320
+ &quot;abcd&quot;.cmp(&quot;abc&quot;) #=&gt; 1
1321
+ &quot;abc&quot;.cmp(&quot;abcd&quot;) #=&gt; -1
1322
+ &quot;xyz&quot;.cmp(&quot;abc&quot;) #=&gt; 1
1323
+
1324
+ CREDIT Peter Vanbroekhoven
1325
+ </pre>
1326
+ </div>
1327
+ <div class="sourcecode">
1328
+ <p class="source-link">[ <a href="javascript:toggleSource('M000482_source')" id="l_M000482_source">show source</a> ]</p>
1329
+ <div id="M000482_source" class="dyn-source">
1330
+ <pre>
1331
+ <span class="ruby-comment cmt"># File lib/core/facets/comparable/cmp.rb, line 31</span>
1332
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmp</span>(<span class="ruby-identifier">other</span>)
1333
+ <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>
1334
+ <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>
1335
+ <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>
1336
+ <span class="ruby-keyword kw">end</span>
1337
+ </pre>
1338
+ </div>
1339
+ </div>
1340
+ </div>
1341
+ <div class="method">
1342
+ <div class="title">
1343
+ <a name="M000528"></a><b>dequote</b>()
1344
+ </div>
1345
+ <div class="description">
1346
+ <p>
1347
+ Remove quotes from string.
1348
+ </p>
1349
+ <pre>
1350
+ &quot;'hi'&quot;.dequite #=&gt; &quot;hi&quot;
1351
+
1352
+ CREDIT: Trans
1353
+ </pre>
1354
+ </div>
1355
+ <div class="sourcecode">
1356
+ <p class="source-link">[ <a href="javascript:toggleSource('M000528_source')" id="l_M000528_source">show source</a> ]</p>
1357
+ <div id="M000528_source" class="dyn-source">
1358
+ <pre>
1359
+ <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 88</span>
1360
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dequote</span>
1361
+ <span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
1362
+
1363
+ <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>]
1364
+ <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>
1365
+ <span class="ruby-identifier">s</span>[<span class="ruby-value">0</span>] = <span class="ruby-value str">''</span>
1366
+ <span class="ruby-keyword kw">end</span>
1367
+
1368
+ <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>]
1369
+ <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>
1370
+ <span class="ruby-identifier">s</span>[<span class="ruby-value">-1</span>] = <span class="ruby-value str">''</span>
1371
+ <span class="ruby-keyword kw">end</span>
1372
+
1373
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
1374
+ <span class="ruby-keyword kw">end</span>
1375
+ </pre>
1376
+ </div>
1377
+ </div>
1378
+ </div>
1379
+ <div class="method">
1380
+ <div class="title">
1381
+ <a name="M000579"></a><b>dequote</b>()
1382
+ </div>
1383
+ <div class="description">
1384
+ <p>
1385
+ Remove quotes from string.
1386
+ </p>
1387
+ <pre>
1388
+ &quot;'hi'&quot;.dequite #=&gt; &quot;hi&quot;
1389
+
1390
+ CREDIT: Trans
1391
+ </pre>
1392
+ </div>
1393
+ <div class="sourcecode">
1394
+ <p class="source-link">[ <a href="javascript:toggleSource('M000579_source')" id="l_M000579_source">show source</a> ]</p>
1395
+ <div id="M000579_source" class="dyn-source">
1396
+ <pre>
1397
+ <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 88</span>
1398
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dequote</span>
1399
+ <span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
1400
+
1401
+ <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>]
1402
+ <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>
1403
+ <span class="ruby-identifier">s</span>[<span class="ruby-value">0</span>] = <span class="ruby-value str">''</span>
1404
+ <span class="ruby-keyword kw">end</span>
1405
+
1406
+ <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>]
1407
+ <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>
1408
+ <span class="ruby-identifier">s</span>[<span class="ruby-value">-1</span>] = <span class="ruby-value str">''</span>
1409
+ <span class="ruby-keyword kw">end</span>
1410
+
1411
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
1412
+ <span class="ruby-keyword kw">end</span>
1413
+ </pre>
1414
+ </div>
1415
+ </div>
1416
+ </div>
1417
+ <div class="method">
1418
+ <div class="title">
1419
+ <a name="M000510"></a><b>divide</b>( re )
1420
+ </div>
1421
+ <div class="description">
1422
+ <p>
1423
+ Breaks a string up into an array based on a regular expression. Similar to
1424
+ scan, but includes the matches.
1425
+ </p>
1426
+ <pre>
1427
+ s = &quot;&lt;p&gt;This&lt;b&gt;is&lt;/b&gt;a test.&lt;/p&gt;&quot;
1428
+ s.divide( /\&lt;.*?\&gt;/ )
1429
+ </pre>
1430
+ <p>
1431
+ <em>produces</em>
1432
+ </p>
1433
+ <pre>
1434
+ [&quot;&lt;p&gt;This&quot;, &quot;&lt;b&gt;is&quot;, &quot;&lt;/b&gt;a test.&quot;, &quot;&lt;/p&gt;&quot;]
1435
+
1436
+ CREDIT: Trans
1437
+ </pre>
1438
+ </div>
1439
+ <div class="sourcecode">
1440
+ <p class="source-link">[ <a href="javascript:toggleSource('M000510_source')" id="l_M000510_source">show source</a> ]</p>
1441
+ <div id="M000510_source" class="dyn-source">
1442
+ <pre>
1443
+ <span class="ruby-comment cmt"># File lib/core/facets/string/divide.rb, line 15</span>
1444
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divide</span>( <span class="ruby-identifier">re</span> )
1445
+ <span class="ruby-identifier">re2</span> = <span class="ruby-node">/#{re}.*?(?=#{re}|\Z)/</span>
1446
+ <span class="ruby-identifier">scan</span>(<span class="ruby-identifier">re2</span>) <span class="ruby-comment cmt">#{re}(?=#{re})/)</span>
1447
+ <span class="ruby-keyword kw">end</span>
1448
+ </pre>
1449
+ </div>
1450
+ </div>
1451
+ </div>
1452
+ <div class="method">
1453
+ <div class="title">
1454
+ <a name="M000561"></a><b>divide</b>( re )
1455
+ </div>
1456
+ <div class="description">
1457
+ <p>
1458
+ Breaks a string up into an array based on a regular expression. Similar to
1459
+ scan, but includes the matches.
1460
+ </p>
1461
+ <pre>
1462
+ s = &quot;&lt;p&gt;This&lt;b&gt;is&lt;/b&gt;a test.&lt;/p&gt;&quot;
1463
+ s.divide( /\&lt;.*?\&gt;/ )
1464
+ </pre>
1465
+ <p>
1466
+ <em>produces</em>
1467
+ </p>
1468
+ <pre>
1469
+ [&quot;&lt;p&gt;This&quot;, &quot;&lt;b&gt;is&quot;, &quot;&lt;/b&gt;a test.&quot;, &quot;&lt;/p&gt;&quot;]
1470
+
1471
+ CREDIT: Trans
1472
+ </pre>
1473
+ </div>
1474
+ <div class="sourcecode">
1475
+ <p class="source-link">[ <a href="javascript:toggleSource('M000561_source')" id="l_M000561_source">show source</a> ]</p>
1476
+ <div id="M000561_source" class="dyn-source">
1477
+ <pre>
1478
+ <span class="ruby-comment cmt"># File lib/core/facets/string/divide.rb, line 15</span>
1479
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divide</span>( <span class="ruby-identifier">re</span> )
1480
+ <span class="ruby-identifier">re2</span> = <span class="ruby-node">/#{re}.*?(?=#{re}|\Z)/</span>
1481
+ <span class="ruby-identifier">scan</span>(<span class="ruby-identifier">re2</span>) <span class="ruby-comment cmt">#{re}(?=#{re})/)</span>
1482
+ <span class="ruby-keyword kw">end</span>
1483
+ </pre>
1484
+ </div>
1485
+ </div>
1486
+ </div>
1487
+ <div class="method">
1488
+ <div class="title">
1489
+ <a name="M000564"></a><b>downcase?</b>()
1490
+ </div>
1491
+ <div class="description">
1492
+ <p>
1493
+ Return true if the string is lowercase (downcase), otherwise false.
1494
+ </p>
1495
+ <pre>
1496
+ &quot;THIS&quot;.downcase? #=&gt; false
1497
+ &quot;This&quot;.downcase? #=&gt; false
1498
+ &quot;this&quot;.downcase? #=&gt; true
1499
+
1500
+ CREDIT: Phil Tomson
1501
+ </pre>
1502
+ </div>
1503
+ <div class="sourcecode">
1504
+ <p class="source-link">[ <a href="javascript:toggleSource('M000564_source')" id="l_M000564_source">show source</a> ]</p>
1505
+ <div id="M000564_source" class="dyn-source">
1506
+ <pre>
1507
+ <span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 23</span>
1508
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">downcase?</span>
1509
+ <span class="ruby-identifier">downcase</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">self</span>
1510
+ <span class="ruby-keyword kw">end</span>
1511
+ </pre>
1512
+ </div>
1513
+ </div>
1514
+ </div>
1515
+ <div class="method">
1516
+ <div class="title">
1517
+ <a name="M000513"></a><b>downcase?</b>()
1518
+ </div>
1519
+ <div class="description">
1520
+ <p>
1521
+ Return true if the string is lowercase (downcase), otherwise false.
1522
+ </p>
1523
+ <pre>
1524
+ &quot;THIS&quot;.downcase? #=&gt; false
1525
+ &quot;This&quot;.downcase? #=&gt; false
1526
+ &quot;this&quot;.downcase? #=&gt; true
1527
+
1528
+ CREDIT: Phil Tomson
1529
+ </pre>
1530
+ </div>
1531
+ <div class="sourcecode">
1532
+ <p class="source-link">[ <a href="javascript:toggleSource('M000513_source')" id="l_M000513_source">show source</a> ]</p>
1533
+ <div id="M000513_source" class="dyn-source">
1534
+ <pre>
1535
+ <span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 23</span>
1536
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">downcase?</span>
1537
+ <span class="ruby-identifier">downcase</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">self</span>
1538
+ <span class="ruby-keyword kw">end</span>
1539
+ </pre>
1540
+ </div>
1541
+ </div>
1542
+ </div>
1543
+ <div class="method">
1544
+ <div class="title">
1545
+ <a name="M000560"></a><b>each_char</b>( {|| ...}
1546
+ </div>
1547
+ <div class="description">
1548
+ <p>
1549
+ Iterates through each character. This is a little faster than using <a
1550
+ href="String.html#M000529">chars</a> b/c it does not create the
1551
+ intermediate array.
1552
+ </p>
1553
+ <pre>
1554
+ a = ''
1555
+ &quot;HELLO&quot;.each_character{ |c| a &lt;&lt; #{c.downcase} }
1556
+ a #=&gt; 'hello'
1557
+ </pre>
1558
+ </div>
1559
+ <div class="sourcecode">
1560
+ <p class="source-link">[ <a href="javascript:toggleSource('M000560_source')" id="l_M000560_source">show source</a> ]</p>
1561
+ <div id="M000560_source" class="dyn-source">
1562
+ <pre>
1563
+ <span class="ruby-comment cmt"># File lib/core/facets/string/each_char.rb, line 12</span>
1564
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_char</span> <span class="ruby-comment cmt"># :yield:</span>
1565
+ <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>
1566
+ <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>])
1567
+ <span class="ruby-keyword kw">end</span>
1568
+ <span class="ruby-keyword kw">end</span>
1569
+ </pre>
1570
+ </div>
1571
+ </div>
1572
+ </div>
1573
+ <div class="method">
1574
+ <div class="title">
1575
+ <a name="M000509"></a><b>each_char</b>( {|| ...}
1576
+ </div>
1577
+ <div class="description">
1578
+ <p>
1579
+ Iterates through each character. This is a little faster than using <a
1580
+ href="String.html#M000529">chars</a> b/c it does not create the
1581
+ intermediate array.
1582
+ </p>
1583
+ <pre>
1584
+ a = ''
1585
+ &quot;HELLO&quot;.each_character{ |c| a &lt;&lt; #{c.downcase} }
1586
+ a #=&gt; 'hello'
1587
+ </pre>
1588
+ </div>
1589
+ <div class="sourcecode">
1590
+ <p class="source-link">[ <a href="javascript:toggleSource('M000509_source')" id="l_M000509_source">show source</a> ]</p>
1591
+ <div id="M000509_source" class="dyn-source">
1592
+ <pre>
1593
+ <span class="ruby-comment cmt"># File lib/core/facets/string/each_char.rb, line 12</span>
1594
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_char</span> <span class="ruby-comment cmt"># :yield:</span>
1595
+ <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>
1596
+ <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>])
1597
+ <span class="ruby-keyword kw">end</span>
1598
+ <span class="ruby-keyword kw">end</span>
1599
+ </pre>
1600
+ </div>
1601
+ </div>
1602
+ </div>
1603
+ <div class="method">
1604
+ <div class="title">
1605
+ <a name="M000541"></a><b>end_with?</b>(suffix)
1606
+ </div>
1607
+ <div class="description">
1608
+ <p>
1609
+ Does a string end with the given suffix?
1610
+ </p>
1611
+ <pre>
1612
+ &quot;hello&quot;.ends_with?(&quot;lo&quot;) #=&gt; true
1613
+ &quot;hello&quot;.ends_with?(&quot;to&quot;) #=&gt; false
1614
+
1615
+ CREDIT: Lucas Carlson
1616
+ CREDIT: Blaine Cook
1617
+ </pre>
1618
+ </div>
1619
+ <div class="sourcecode">
1620
+ <p class="source-link">[ <a href="javascript:toggleSource('M000541_source')" id="l_M000541_source">show source</a> ]</p>
1621
+ <div id="M000541_source" class="dyn-source">
1622
+ <pre>
1623
+ <span class="ruby-comment cmt"># File lib/core/facets/string/start_with.rb, line 25</span>
1624
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">end_with?</span>(<span class="ruby-identifier">suffix</span>)
1625
+ <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>
1626
+ <span class="ruby-keyword kw">end</span>
1627
+ </pre>
1628
+ </div>
1629
+ </div>
1630
+ </div>
1631
+ <div class="method">
1632
+ <div class="title">
1633
+ <a name="M000490"></a><b>end_with?</b>(suffix)
1634
+ </div>
1635
+ <div class="description">
1636
+ <p>
1637
+ Does a string end with the given suffix?
1638
+ </p>
1639
+ <pre>
1640
+ &quot;hello&quot;.ends_with?(&quot;lo&quot;) #=&gt; true
1641
+ &quot;hello&quot;.ends_with?(&quot;to&quot;) #=&gt; false
1642
+
1643
+ CREDIT: Lucas Carlson
1644
+ CREDIT: Blaine Cook
1645
+ </pre>
1646
+ </div>
1647
+ <div class="sourcecode">
1648
+ <p class="source-link">[ <a href="javascript:toggleSource('M000490_source')" id="l_M000490_source">show source</a> ]</p>
1649
+ <div id="M000490_source" class="dyn-source">
1650
+ <pre>
1651
+ <span class="ruby-comment cmt"># File lib/core/facets/string/start_with.rb, line 25</span>
1652
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">end_with?</span>(<span class="ruby-identifier">suffix</span>)
1653
+ <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>
1654
+ <span class="ruby-keyword kw">end</span>
1655
+ </pre>
1656
+ </div>
1657
+ </div>
1658
+ </div>
1659
+ <div class="method">
1660
+ <div class="title">
1661
+ <a name="M000550"></a><b>expand_tabs</b>(n=8)
1662
+ </div>
1663
+ <div class="description">
1664
+ <p>
1665
+ Expands tabs to <tt>n</tt> spaces. Non-destructive. If <tt>n</tt> is 0,
1666
+ then tabs are simply removed. Raises an exception if <tt>n</tt> is
1667
+ negative.
1668
+ </p>
1669
+ <p>
1670
+ Thanks to GGaramuno for a more efficient algorithm. Very nice.
1671
+ </p>
1672
+ <pre>
1673
+ CREDIT: Gavin Sinclair
1674
+ CREDIT: Noah Gibbs
1675
+ CREDIT: GGaramuno
1676
+ </pre>
1677
+ </div>
1678
+ <div class="sourcecode">
1679
+ <p class="source-link">[ <a href="javascript:toggleSource('M000550_source')" id="l_M000550_source">show source</a> ]</p>
1680
+ <div id="M000550_source" class="dyn-source">
1681
+ <pre>
1682
+ <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 26</span>
1683
+ <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>)
1684
+ <span class="ruby-identifier">n</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_int</span>
1685
+ <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>
1686
+ <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>
1687
+ <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>
1688
+ <span class="ruby-identifier">str</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
1689
+ <span class="ruby-keyword kw">while</span>
1690
+ <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>
1691
+ <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>) )
1692
+ <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>)
1693
+ }
1694
+ <span class="ruby-keyword kw">end</span>
1695
+ <span class="ruby-identifier">str</span>
1696
+ <span class="ruby-keyword kw">end</span>
1697
+ </pre>
1698
+ </div>
1699
+ </div>
1700
+ </div>
1701
+ <div class="method">
1702
+ <div class="title">
1703
+ <a name="M000499"></a><b>expand_tabs</b>(n=8)
1704
+ </div>
1705
+ <div class="description">
1706
+ <p>
1707
+ Expands tabs to <tt>n</tt> spaces. Non-destructive. If <tt>n</tt> is 0,
1708
+ then tabs are simply removed. Raises an exception if <tt>n</tt> is
1709
+ negative.
1710
+ </p>
1711
+ <p>
1712
+ Thanks to GGaramuno for a more efficient algorithm. Very nice.
1713
+ </p>
1714
+ <pre>
1715
+ CREDIT: Gavin Sinclair
1716
+ CREDIT: Noah Gibbs
1717
+ CREDIT: GGaramuno
1718
+ </pre>
1719
+ </div>
1720
+ <div class="sourcecode">
1721
+ <p class="source-link">[ <a href="javascript:toggleSource('M000499_source')" id="l_M000499_source">show source</a> ]</p>
1722
+ <div id="M000499_source" class="dyn-source">
1723
+ <pre>
1724
+ <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 26</span>
1725
+ <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>)
1726
+ <span class="ruby-identifier">n</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_int</span>
1727
+ <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>
1728
+ <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>
1729
+ <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>
1730
+ <span class="ruby-identifier">str</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
1731
+ <span class="ruby-keyword kw">while</span>
1732
+ <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>
1733
+ <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>) )
1734
+ <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>)
1735
+ }
1736
+ <span class="ruby-keyword kw">end</span>
1737
+ <span class="ruby-identifier">str</span>
1738
+ <span class="ruby-keyword kw">end</span>
1739
+ </pre>
1740
+ </div>
1741
+ </div>
1742
+ </div>
1743
+ <div class="method">
1744
+ <div class="title">
1745
+ <a name="M000539"></a><b>fold</b>(ignore_indented=false)
1746
+ </div>
1747
+ <div class="description">
1748
+ <p>
1749
+ Returns a new string with all new <a href="String.html#M000492">lines</a>
1750
+ removed from adjacent <a href="String.html#M000492">lines</a> of text.
1751
+ </p>
1752
+ <pre>
1753
+ s = &quot;This is\na test.\n\nIt clumps\nlines of text.&quot;
1754
+ s.fold
1755
+ </pre>
1756
+ <p>
1757
+ <em>produces</em>
1758
+ </p>
1759
+ <pre>
1760
+ &quot;This is a test.\n\nIt clumps lines of text. &quot;
1761
+ </pre>
1762
+ <p>
1763
+ One arguable flaw with this, that might need a fix: if the given string
1764
+ ends in a newline, it is replaced with a single space.
1765
+ </p>
1766
+ <pre>
1767
+ CREDIT: Trans
1768
+ </pre>
1769
+ </div>
1770
+ <div class="sourcecode">
1771
+ <p class="source-link">[ <a href="javascript:toggleSource('M000539_source')" id="l_M000539_source">show source</a> ]</p>
1772
+ <div id="M000539_source" class="dyn-source">
1773
+ <pre>
1774
+ <span class="ruby-comment cmt"># File lib/core/facets/string/fold.rb, line 19</span>
1775
+ <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>)
1776
+ <span class="ruby-identifier">ns</span> = <span class="ruby-value str">''</span>
1777
+ <span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
1778
+ <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>
1779
+ <span class="ruby-identifier">b</span> = <span class="ruby-identifier">$~</span>.<span class="ruby-identifier">begin</span>(<span class="ruby-value">1</span>)
1780
+ <span class="ruby-identifier">e</span> = <span class="ruby-identifier">$~</span>.<span class="ruby-identifier">end</span>(<span class="ruby-value">1</span>)
1781
+ <span class="ruby-identifier">nl</span> = <span class="ruby-identifier">$&amp;</span>
1782
+ <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>)
1783
+ <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>
1784
+ <span class="ruby-identifier">ns</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">tx</span>
1785
+ <span class="ruby-keyword kw">else</span>
1786
+ <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>)
1787
+ <span class="ruby-keyword kw">end</span>
1788
+ <span class="ruby-identifier">ns</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">nl</span>
1789
+ <span class="ruby-identifier">i</span> = <span class="ruby-identifier">e</span>
1790
+ <span class="ruby-keyword kw">end</span>
1791
+ <span class="ruby-identifier">ns</span>
1792
+ <span class="ruby-keyword kw">end</span>
1793
+ </pre>
1794
+ </div>
1795
+ </div>
1796
+ </div>
1797
+ <div class="method">
1798
+ <div class="title">
1799
+ <a name="M000488"></a><b>fold</b>(ignore_indented=false)
1800
+ </div>
1801
+ <div class="description">
1802
+ <p>
1803
+ Returns a new string with all new <a href="String.html#M000492">lines</a>
1804
+ removed from adjacent <a href="String.html#M000492">lines</a> of text.
1805
+ </p>
1806
+ <pre>
1807
+ s = &quot;This is\na test.\n\nIt clumps\nlines of text.&quot;
1808
+ s.fold
1809
+ </pre>
1810
+ <p>
1811
+ <em>produces</em>
1812
+ </p>
1813
+ <pre>
1814
+ &quot;This is a test.\n\nIt clumps lines of text. &quot;
1815
+ </pre>
1816
+ <p>
1817
+ One arguable flaw with this, that might need a fix: if the given string
1818
+ ends in a newline, it is replaced with a single space.
1819
+ </p>
1820
+ <pre>
1821
+ CREDIT: Trans
1822
+ </pre>
1823
+ </div>
1824
+ <div class="sourcecode">
1825
+ <p class="source-link">[ <a href="javascript:toggleSource('M000488_source')" id="l_M000488_source">show source</a> ]</p>
1826
+ <div id="M000488_source" class="dyn-source">
1827
+ <pre>
1828
+ <span class="ruby-comment cmt"># File lib/core/facets/string/fold.rb, line 19</span>
1829
+ <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>)
1830
+ <span class="ruby-identifier">ns</span> = <span class="ruby-value str">''</span>
1831
+ <span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
1832
+ <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>
1833
+ <span class="ruby-identifier">b</span> = <span class="ruby-identifier">$~</span>.<span class="ruby-identifier">begin</span>(<span class="ruby-value">1</span>)
1834
+ <span class="ruby-identifier">e</span> = <span class="ruby-identifier">$~</span>.<span class="ruby-identifier">end</span>(<span class="ruby-value">1</span>)
1835
+ <span class="ruby-identifier">nl</span> = <span class="ruby-identifier">$&amp;</span>
1836
+ <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>)
1837
+ <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>
1838
+ <span class="ruby-identifier">ns</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">tx</span>
1839
+ <span class="ruby-keyword kw">else</span>
1840
+ <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>)
1841
+ <span class="ruby-keyword kw">end</span>
1842
+ <span class="ruby-identifier">ns</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">nl</span>
1843
+ <span class="ruby-identifier">i</span> = <span class="ruby-identifier">e</span>
1844
+ <span class="ruby-keyword kw">end</span>
1845
+ <span class="ruby-identifier">ns</span>
1846
+ <span class="ruby-keyword kw">end</span>
1847
+ </pre>
1848
+ </div>
1849
+ </div>
1850
+ </div>
1851
+ <div class="method">
1852
+ <div class="title">
1853
+ <a name="M000501"></a><b>indent</b>(n)
1854
+ </div>
1855
+ <div class="description">
1856
+ <p>
1857
+ Indent left or right by n spaces. (This used to be called <a
1858
+ href="String.html#M000497">tab</a> and aliased as <a
1859
+ href="String.html#M000501">indent</a>.)
1860
+ </p>
1861
+ <pre>
1862
+ CREDIT: Gavin Sinclair
1863
+ CREDIT: Trans
1864
+ </pre>
1865
+ </div>
1866
+ <div class="sourcecode">
1867
+ <p class="source-link">[ <a href="javascript:toggleSource('M000501_source')" id="l_M000501_source">show source</a> ]</p>
1868
+ <div id="M000501_source" class="dyn-source">
1869
+ <pre>
1870
+ <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 60</span>
1871
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">n</span>)
1872
+ <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>
1873
+ <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>)
1874
+ <span class="ruby-keyword kw">else</span>
1875
+ <span class="ruby-identifier">gsub</span>(<span class="ruby-node">/^ {0,#{-n}}/</span>, <span class="ruby-value str">&quot;&quot;</span>)
1876
+ <span class="ruby-keyword kw">end</span>
1877
+ <span class="ruby-keyword kw">end</span>
1878
+ </pre>
1879
+ </div>
1880
+ </div>
1881
+ </div>
1882
+ <div class="method">
1883
+ <div class="title">
1884
+ <a name="M000552"></a><b>indent</b>(n)
1885
+ </div>
1886
+ <div class="description">
1887
+ <p>
1888
+ Indent left or right by n spaces. (This used to be called <a
1889
+ href="String.html#M000497">tab</a> and aliased as <a
1890
+ href="String.html#M000501">indent</a>.)
1891
+ </p>
1892
+ <pre>
1893
+ CREDIT: Gavin Sinclair
1894
+ CREDIT: Trans
1895
+ </pre>
1896
+ </div>
1897
+ <div class="sourcecode">
1898
+ <p class="source-link">[ <a href="javascript:toggleSource('M000552_source')" id="l_M000552_source">show source</a> ]</p>
1899
+ <div id="M000552_source" class="dyn-source">
1900
+ <pre>
1901
+ <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 60</span>
1902
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">n</span>)
1903
+ <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>
1904
+ <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>)
1905
+ <span class="ruby-keyword kw">else</span>
1906
+ <span class="ruby-identifier">gsub</span>(<span class="ruby-node">/^ {0,#{-n}}/</span>, <span class="ruby-value str">&quot;&quot;</span>)
1907
+ <span class="ruby-keyword kw">end</span>
1908
+ <span class="ruby-keyword kw">end</span>
1909
+ </pre>
1910
+ </div>
1911
+ </div>
1912
+ </div>
1913
+ <div class="method">
1914
+ <div class="title">
1915
+ <a name="M000507"></a><b>index_all</b>(s, reuse=false)
1916
+ </div>
1917
+ <div class="description">
1918
+ <p>
1919
+ Like index but returns an array of all index locations. The reuse flag
1920
+ allows the trailing portion of a match to be reused for subsquent matches.
1921
+ </p>
1922
+ <pre>
1923
+ &quot;abcabcabc&quot;.index_all('a') #=&gt; [0,3,6]
1924
+
1925
+ &quot;bbb&quot;.index_all('bb', false) #=&gt; [0]
1926
+ &quot;bbb&quot;.index_all('bb', true) #=&gt; [0,1]
1927
+
1928
+ TODO: Culd probably be defined for Indexable in general too.
1929
+ </pre>
1930
+ </div>
1931
+ <div class="sourcecode">
1932
+ <p class="source-link">[ <a href="javascript:toggleSource('M000507_source')" id="l_M000507_source">show source</a> ]</p>
1933
+ <div id="M000507_source" class="dyn-source">
1934
+ <pre>
1935
+ <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 66</span>
1936
+ <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>)
1937
+ <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>
1938
+ <span class="ruby-identifier">ia</span> = []; <span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
1939
+ <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>))
1940
+ <span class="ruby-identifier">ia</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">i</span>
1941
+ <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>)
1942
+ <span class="ruby-keyword kw">end</span>
1943
+ <span class="ruby-identifier">ia</span>
1944
+ <span class="ruby-keyword kw">end</span>
1945
+ </pre>
1946
+ </div>
1947
+ </div>
1948
+ </div>
1949
+ <div class="method">
1950
+ <div class="title">
1951
+ <a name="M000558"></a><b>index_all</b>(s, reuse=false)
1952
+ </div>
1953
+ <div class="description">
1954
+ <p>
1955
+ Like index but returns an array of all index locations. The reuse flag
1956
+ allows the trailing portion of a match to be reused for subsquent matches.
1957
+ </p>
1958
+ <pre>
1959
+ &quot;abcabcabc&quot;.index_all('a') #=&gt; [0,3,6]
1960
+
1961
+ &quot;bbb&quot;.index_all('bb', false) #=&gt; [0]
1962
+ &quot;bbb&quot;.index_all('bb', true) #=&gt; [0,1]
1963
+
1964
+ TODO: Culd probably be defined for Indexable in general too.
1965
+ </pre>
1966
+ </div>
1967
+ <div class="sourcecode">
1968
+ <p class="source-link">[ <a href="javascript:toggleSource('M000558_source')" id="l_M000558_source">show source</a> ]</p>
1969
+ <div id="M000558_source" class="dyn-source">
1970
+ <pre>
1971
+ <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 66</span>
1972
+ <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>)
1973
+ <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>
1974
+ <span class="ruby-identifier">ia</span> = []; <span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
1975
+ <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>))
1976
+ <span class="ruby-identifier">ia</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">i</span>
1977
+ <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>)
1978
+ <span class="ruby-keyword kw">end</span>
1979
+ <span class="ruby-identifier">ia</span>
1980
+ <span class="ruby-keyword kw">end</span>
1981
+ </pre>
1982
+ </div>
1983
+ </div>
1984
+ </div>
1985
+ <div class="method">
1986
+ <div class="title">
1987
+ <a name="M000581"></a><b>lchomp</b>(match)
1988
+ </div>
1989
+ <div class="description">
1990
+ <p>
1991
+ Left chomp.
1992
+ </p>
1993
+ <pre>
1994
+ &quot;help&quot;.lchomp(&quot;h&quot;) #=&gt; &quot;elp&quot;
1995
+ &quot;help&quot;.lchomp(&quot;k&quot;) #=&gt; &quot;help&quot;
1996
+
1997
+ CREDIT: Trans
1998
+ </pre>
1999
+ </div>
2000
+ <div class="sourcecode">
2001
+ <p class="source-link">[ <a href="javascript:toggleSource('M000581_source')" id="l_M000581_source">show source</a> ]</p>
2002
+ <div id="M000581_source" class="dyn-source">
2003
+ <pre>
2004
+ <span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 10</span>
2005
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp</span>(<span class="ruby-identifier">match</span>)
2006
+ <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>
2007
+ <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>]
2008
+ <span class="ruby-keyword kw">else</span>
2009
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
2010
+ <span class="ruby-keyword kw">end</span>
2011
+ <span class="ruby-keyword kw">end</span>
2012
+ </pre>
2013
+ </div>
2014
+ </div>
2015
+ </div>
2016
+ <div class="method">
2017
+ <div class="title">
2018
+ <a name="M000530"></a><b>lchomp</b>(match)
2019
+ </div>
2020
+ <div class="description">
2021
+ <p>
2022
+ Left chomp.
2023
+ </p>
2024
+ <pre>
2025
+ &quot;help&quot;.lchomp(&quot;h&quot;) #=&gt; &quot;elp&quot;
2026
+ &quot;help&quot;.lchomp(&quot;k&quot;) #=&gt; &quot;help&quot;
2027
+
2028
+ CREDIT: Trans
2029
+ </pre>
2030
+ </div>
2031
+ <div class="sourcecode">
2032
+ <p class="source-link">[ <a href="javascript:toggleSource('M000530_source')" id="l_M000530_source">show source</a> ]</p>
2033
+ <div id="M000530_source" class="dyn-source">
2034
+ <pre>
2035
+ <span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 10</span>
2036
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp</span>(<span class="ruby-identifier">match</span>)
2037
+ <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>
2038
+ <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>]
2039
+ <span class="ruby-keyword kw">else</span>
2040
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
2041
+ <span class="ruby-keyword kw">end</span>
2042
+ <span class="ruby-keyword kw">end</span>
2043
+ </pre>
2044
+ </div>
2045
+ </div>
2046
+ </div>
2047
+ <div class="method">
2048
+ <div class="title">
2049
+ <a name="M000582"></a><b>lchomp!</b>(match)
2050
+ </div>
2051
+ <div class="description">
2052
+ <p>
2053
+ In-place left chomp.
2054
+ </p>
2055
+ <pre>
2056
+ &quot;help&quot;.lchomp(&quot;h&quot;) #=&gt; &quot;elp&quot;
2057
+ &quot;help&quot;.lchomp(&quot;k&quot;) #=&gt; &quot;help&quot;
2058
+
2059
+ CREDIT: Trans
2060
+ </pre>
2061
+ </div>
2062
+ <div class="sourcecode">
2063
+ <p class="source-link">[ <a href="javascript:toggleSource('M000582_source')" id="l_M000582_source">show source</a> ]</p>
2064
+ <div id="M000582_source" class="dyn-source">
2065
+ <pre>
2066
+ <span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 25</span>
2067
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp!</span>(<span class="ruby-identifier">match</span>)
2068
+ <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>
2069
+ <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>
2070
+ <span class="ruby-keyword kw">self</span>
2071
+ <span class="ruby-keyword kw">end</span>
2072
+ <span class="ruby-keyword kw">end</span>
2073
+ </pre>
2074
+ </div>
2075
+ </div>
2076
+ </div>
2077
+ <div class="method">
2078
+ <div class="title">
2079
+ <a name="M000531"></a><b>lchomp!</b>(match)
2080
+ </div>
2081
+ <div class="description">
2082
+ <p>
2083
+ In-place left chomp.
2084
+ </p>
2085
+ <pre>
2086
+ &quot;help&quot;.lchomp(&quot;h&quot;) #=&gt; &quot;elp&quot;
2087
+ &quot;help&quot;.lchomp(&quot;k&quot;) #=&gt; &quot;help&quot;
2088
+
2089
+ CREDIT: Trans
2090
+ </pre>
2091
+ </div>
2092
+ <div class="sourcecode">
2093
+ <p class="source-link">[ <a href="javascript:toggleSource('M000531_source')" id="l_M000531_source">show source</a> ]</p>
2094
+ <div id="M000531_source" class="dyn-source">
2095
+ <pre>
2096
+ <span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 25</span>
2097
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp!</span>(<span class="ruby-identifier">match</span>)
2098
+ <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>
2099
+ <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>
2100
+ <span class="ruby-keyword kw">self</span>
2101
+ <span class="ruby-keyword kw">end</span>
2102
+ <span class="ruby-keyword kw">end</span>
2103
+ </pre>
2104
+ </div>
2105
+ </div>
2106
+ </div>
2107
+ <div class="method">
2108
+ <div class="title">
2109
+ <a name="M000573"></a><b>line_wrap</b>(width, tabs=4)
2110
+ </div>
2111
+ <div class="description">
2112
+ <p>
2113
+ Line wrap at width.
2114
+ </p>
2115
+ <pre>
2116
+ puts &quot;1234567890&quot;.line_wrap(5)
2117
+ </pre>
2118
+ <p>
2119
+ <em>produces</em>
2120
+ </p>
2121
+ <pre>
2122
+ 12345
2123
+ 67890
2124
+
2125
+ CREDIT: Trans
2126
+ </pre>
2127
+ </div>
2128
+ <div class="sourcecode">
2129
+ <p class="source-link">[ <a href="javascript:toggleSource('M000573_source')" id="l_M000573_source">show source</a> ]</p>
2130
+ <div id="M000573_source" class="dyn-source">
2131
+ <pre>
2132
+ <span class="ruby-comment cmt"># File lib/core/facets/string/line_wrap.rb, line 14</span>
2133
+ <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>)
2134
+ <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>
2135
+ <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>)
2136
+ <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> )
2137
+ <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>
2138
+ <span class="ruby-keyword kw">end</span>
2139
+ </pre>
2140
+ </div>
2141
+ </div>
2142
+ </div>
2143
+ <div class="method">
2144
+ <div class="title">
2145
+ <a name="M000522"></a><b>line_wrap</b>(width, tabs=4)
2146
+ </div>
2147
+ <div class="description">
2148
+ <p>
2149
+ Line wrap at width.
2150
+ </p>
2151
+ <pre>
2152
+ puts &quot;1234567890&quot;.line_wrap(5)
2153
+ </pre>
2154
+ <p>
2155
+ <em>produces</em>
2156
+ </p>
2157
+ <pre>
2158
+ 12345
2159
+ 67890
2160
+
2161
+ CREDIT: Trans
2162
+ </pre>
2163
+ </div>
2164
+ <div class="sourcecode">
2165
+ <p class="source-link">[ <a href="javascript:toggleSource('M000522_source')" id="l_M000522_source">show source</a> ]</p>
2166
+ <div id="M000522_source" class="dyn-source">
2167
+ <pre>
2168
+ <span class="ruby-comment cmt"># File lib/core/facets/string/line_wrap.rb, line 14</span>
2169
+ <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>)
2170
+ <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>
2171
+ <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>)
2172
+ <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> )
2173
+ <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>
2174
+ <span class="ruby-keyword kw">end</span>
2175
+ </pre>
2176
+ </div>
2177
+ </div>
2178
+ </div>
2179
+ <div class="method">
2180
+ <div class="title">
2181
+ <a name="M000543"></a><b>lines</b>()
2182
+ </div>
2183
+ <div class="description">
2184
+ <p>
2185
+ Returns an array of characters.
2186
+ </p>
2187
+ <pre>
2188
+ &quot;abc\n123&quot;.lines #=&gt; [&quot;abc&quot;,&quot;123&quot;]
2189
+ </pre>
2190
+ </div>
2191
+ <div class="sourcecode">
2192
+ <p class="source-link">[ <a href="javascript:toggleSource('M000543_source')" id="l_M000543_source">show source</a> ]</p>
2193
+ <div id="M000543_source" class="dyn-source">
2194
+ <pre>
2195
+ <span class="ruby-comment cmt"># File lib/core/facets/string/lines.rb, line 9</span>
2196
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lines</span>
2197
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/\n/</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="M000492"></a><b>lines</b>()
2206
+ </div>
2207
+ <div class="description">
2208
+ <p>
2209
+ Returns an array of characters.
2210
+ </p>
2211
+ <pre>
2212
+ &quot;abc\n123&quot;.lines #=&gt; [&quot;abc&quot;,&quot;123&quot;]
2213
+ </pre>
2214
+ </div>
2215
+ <div class="sourcecode">
2216
+ <p class="source-link">[ <a href="javascript:toggleSource('M000492_source')" id="l_M000492_source">show source</a> ]</p>
2217
+ <div id="M000492_source" class="dyn-source">
2218
+ <pre>
2219
+ <span class="ruby-comment cmt"># File lib/core/facets/string/lines.rb, line 9</span>
2220
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lines</span>
2221
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/\n/</span>)
2222
+ <span class="ruby-keyword kw">end</span>
2223
+ </pre>
2224
+ </div>
2225
+ </div>
2226
+ </div>
2227
+ <div class="method">
2228
+ <div class="title">
2229
+ <a name="M000503"></a><b>margin</b>(n=0)
2230
+ </div>
2231
+ <div class="description">
2232
+ <p>
2233
+ Provides a <a href="String.html#M000503">margin</a> controlled string.
2234
+ </p>
2235
+ <pre>
2236
+ x = %Q{
2237
+ | This
2238
+ | is
2239
+ | margin controlled!
2240
+ }.margin
2241
+
2242
+ NOTE: This may still need a bit of tweaking.
2243
+
2244
+ CREDIT: Trans
2245
+ </pre>
2246
+ </div>
2247
+ <div class="sourcecode">
2248
+ <p class="source-link">[ <a href="javascript:toggleSource('M000503_source')" id="l_M000503_source">show source</a> ]</p>
2249
+ <div id="M000503_source" class="dyn-source">
2250
+ <pre>
2251
+ <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 89</span>
2252
+ <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>)
2253
+ <span class="ruby-comment cmt">#d = /\A.*\n\s*(.)/.match( self )[1]</span>
2254
+ <span class="ruby-comment cmt">#d = /\A\s*(.)/.match( self)[1] unless d</span>
2255
+ <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>
2256
+ (<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>]
2257
+ <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>
2258
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
2259
+ <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>)
2260
+ <span class="ruby-keyword kw">else</span>
2261
+ <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>)
2262
+ <span class="ruby-keyword kw">end</span>
2263
+ <span class="ruby-keyword kw">end</span>
2264
+ </pre>
2265
+ </div>
2266
+ </div>
2267
+ </div>
2268
+ <div class="method">
2269
+ <div class="title">
2270
+ <a name="M000554"></a><b>margin</b>(n=0)
2271
+ </div>
2272
+ <div class="description">
2273
+ <p>
2274
+ Provides a <a href="String.html#M000503">margin</a> controlled string.
2275
+ </p>
2276
+ <pre>
2277
+ x = %Q{
2278
+ | This
2279
+ | is
2280
+ | margin controlled!
2281
+ }.margin
2282
+
2283
+ NOTE: This may still need a bit of tweaking.
2284
+
2285
+ CREDIT: Trans
2286
+ </pre>
2287
+ </div>
2288
+ <div class="sourcecode">
2289
+ <p class="source-link">[ <a href="javascript:toggleSource('M000554_source')" id="l_M000554_source">show source</a> ]</p>
2290
+ <div id="M000554_source" class="dyn-source">
2291
+ <pre>
2292
+ <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 89</span>
2293
+ <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>)
2294
+ <span class="ruby-comment cmt">#d = /\A.*\n\s*(.)/.match( self )[1]</span>
2295
+ <span class="ruby-comment cmt">#d = /\A\s*(.)/.match( self)[1] unless d</span>
2296
+ <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>
2297
+ (<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>]
2298
+ <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>
2299
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
2300
+ <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>)
2301
+ <span class="ruby-keyword kw">else</span>
2302
+ <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>)
2303
+ <span class="ruby-keyword kw">end</span>
2304
+ <span class="ruby-keyword kw">end</span>
2305
+ </pre>
2306
+ </div>
2307
+ </div>
2308
+ </div>
2309
+ <div class="method">
2310
+ <div class="title">
2311
+ <a name="M000562"></a><b>mscan</b>(re) {|| ...}
2312
+ </div>
2313
+ <div class="description">
2314
+ <p>
2315
+ Like scan but returns <a href="MatchData.html">MatchData</a> ($~) rather
2316
+ then matched string ($&amp;).
2317
+ </p>
2318
+ <pre>
2319
+ CREDIT: Trans
2320
+ </pre>
2321
+ </div>
2322
+ <div class="sourcecode">
2323
+ <p class="source-link">[ <a href="javascript:toggleSource('M000562_source')" id="l_M000562_source">show source</a> ]</p>
2324
+ <div id="M000562_source" class="dyn-source">
2325
+ <pre>
2326
+ <span class="ruby-comment cmt"># File lib/core/facets/string/mscan.rb, line 8</span>
2327
+ <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>
2328
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
2329
+ <span class="ruby-identifier">scan</span>(<span class="ruby-identifier">re</span>) { <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">$~</span>) }
2330
+ <span class="ruby-keyword kw">else</span>
2331
+ <span class="ruby-identifier">m</span> = []
2332
+ <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> }
2333
+ <span class="ruby-identifier">m</span>
2334
+ <span class="ruby-keyword kw">end</span>
2335
+ <span class="ruby-keyword kw">end</span>
2336
+ </pre>
2337
+ </div>
2338
+ </div>
2339
+ </div>
2340
+ <div class="method">
2341
+ <div class="title">
2342
+ <a name="M000511"></a><b>mscan</b>(re) {|| ...}
2343
+ </div>
2344
+ <div class="description">
2345
+ <p>
2346
+ Like scan but returns <a href="MatchData.html">MatchData</a> ($~) rather
2347
+ then matched string ($&amp;).
2348
+ </p>
2349
+ <pre>
2350
+ CREDIT: Trans
2351
+ </pre>
2352
+ </div>
2353
+ <div class="sourcecode">
2354
+ <p class="source-link">[ <a href="javascript:toggleSource('M000511_source')" id="l_M000511_source">show source</a> ]</p>
2355
+ <div id="M000511_source" class="dyn-source">
2356
+ <pre>
2357
+ <span class="ruby-comment cmt"># File lib/core/facets/string/mscan.rb, line 8</span>
2358
+ <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>
2359
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
2360
+ <span class="ruby-identifier">scan</span>(<span class="ruby-identifier">re</span>) { <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">$~</span>) }
2361
+ <span class="ruby-keyword kw">else</span>
2362
+ <span class="ruby-identifier">m</span> = []
2363
+ <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> }
2364
+ <span class="ruby-identifier">m</span>
2365
+ <span class="ruby-keyword kw">end</span>
2366
+ <span class="ruby-keyword kw">end</span>
2367
+ </pre>
2368
+ </div>
2369
+ </div>
2370
+ </div>
2371
+ <div class="method">
2372
+ <div class="title">
2373
+ <a name="M000515"></a><b>natcmp</b>(str2, caseInsensitive=false)
2374
+ </div>
2375
+ <div class="description">
2376
+ <p>
2377
+ &#8216;Natural order&#8217; comparison of strings, e.g.
2378
+ </p>
2379
+ <pre>
2380
+ &quot;my_prog_v1.1.0&quot; &lt; &quot;my_prog_v1.2.0&quot; &lt; &quot;my_prog_v1.10.0&quot;
2381
+ </pre>
2382
+ <p>
2383
+ which does not follow alphabetically. A secondary parameter, if set to
2384
+ <em>true</em>, makes the comparison case insensitive.
2385
+ </p>
2386
+ <pre>
2387
+ &quot;Hello.10&quot;.natcmp(&quot;Hello.1&quot;) #=&gt; -1
2388
+
2389
+ TODO: Invert case flag?
2390
+
2391
+ CREDIT: Alan Davies
2392
+ CREDIT: Martin Pool
2393
+ </pre>
2394
+ </div>
2395
+ <div class="sourcecode">
2396
+ <p class="source-link">[ <a href="javascript:toggleSource('M000515_source')" id="l_M000515_source">show source</a> ]</p>
2397
+ <div id="M000515_source" class="dyn-source">
2398
+ <pre>
2399
+ <span class="ruby-comment cmt"># File lib/core/facets/string/natcmp.rb, line 47</span>
2400
+ <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>)
2401
+ <span class="ruby-identifier">str1</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
2402
+ <span class="ruby-identifier">str2</span> = <span class="ruby-identifier">str2</span>.<span class="ruby-identifier">dup</span>
2403
+ <span class="ruby-identifier">compareExpression</span> = <span class="ruby-regexp re">/^(\D*)(\d*)(.*)$/</span>
2404
+
2405
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">caseInsensitive</span>
2406
+ <span class="ruby-identifier">str1</span>.<span class="ruby-identifier">downcase!</span>
2407
+ <span class="ruby-identifier">str2</span>.<span class="ruby-identifier">downcase!</span>
2408
+ <span class="ruby-keyword kw">end</span>
2409
+
2410
+ <span class="ruby-comment cmt"># remove all whitespace</span>
2411
+ <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>)
2412
+ <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>)
2413
+
2414
+ <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>
2415
+ <span class="ruby-comment cmt"># Extract non-digits, digits and rest of string</span>
2416
+ <span class="ruby-identifier">str1</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">compareExpression</span>
2417
+ <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>
2418
+ <span class="ruby-identifier">str2</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">compareExpression</span>
2419
+ <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>
2420
+ <span class="ruby-comment cmt"># Compare the non-digits</span>
2421
+ <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>)
2422
+ <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>
2423
+ <span class="ruby-comment cmt"># If either number begins with a zero, then compare alphabetically,</span>
2424
+ <span class="ruby-comment cmt"># otherwise compare numerically</span>
2425
+ <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>)
2426
+ <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>
2427
+ <span class="ruby-keyword kw">end</span>
2428
+ <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>)
2429
+ <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>
2430
+ <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>
2431
+ <span class="ruby-keyword kw">end</span>
2432
+ <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>
2433
+ <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>
2434
+ <span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt"># case</span>
2435
+ <span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt"># while</span>
2436
+
2437
+ <span class="ruby-comment cmt"># strings are naturally equal.</span>
2438
+ <span class="ruby-keyword kw">return</span> <span class="ruby-value">0</span>
2439
+ <span class="ruby-keyword kw">end</span>
2440
+
2441
+ <span class="ruby-keyword kw">end</span>
2442
+ </pre>
2443
+ </div>
2444
+ </div>
2445
+ </div>
2446
+ <div class="method">
2447
+ <div class="title">
2448
+ <a name="M000566"></a><b>natcmp</b>(str2, caseInsensitive=false)
2449
+ </div>
2450
+ <div class="description">
2451
+ <p>
2452
+ &#8216;Natural order&#8217; comparison of strings, e.g.
2453
+ </p>
2454
+ <pre>
2455
+ &quot;my_prog_v1.1.0&quot; &lt; &quot;my_prog_v1.2.0&quot; &lt; &quot;my_prog_v1.10.0&quot;
2456
+ </pre>
2457
+ <p>
2458
+ which does not follow alphabetically. A secondary parameter, if set to
2459
+ <em>true</em>, makes the comparison case insensitive.
2460
+ </p>
2461
+ <pre>
2462
+ &quot;Hello.10&quot;.natcmp(&quot;Hello.1&quot;) #=&gt; -1
2463
+
2464
+ TODO: Invert case flag?
2465
+
2466
+ CREDIT: Alan Davies
2467
+ CREDIT: Martin Pool
2468
+ </pre>
2469
+ </div>
2470
+ <div class="sourcecode">
2471
+ <p class="source-link">[ <a href="javascript:toggleSource('M000566_source')" id="l_M000566_source">show source</a> ]</p>
2472
+ <div id="M000566_source" class="dyn-source">
2473
+ <pre>
2474
+ <span class="ruby-comment cmt"># File lib/core/facets/string/natcmp.rb, line 47</span>
2475
+ <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>)
2476
+ <span class="ruby-identifier">str1</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
2477
+ <span class="ruby-identifier">str2</span> = <span class="ruby-identifier">str2</span>.<span class="ruby-identifier">dup</span>
2478
+ <span class="ruby-identifier">compareExpression</span> = <span class="ruby-regexp re">/^(\D*)(\d*)(.*)$/</span>
2479
+
2480
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">caseInsensitive</span>
2481
+ <span class="ruby-identifier">str1</span>.<span class="ruby-identifier">downcase!</span>
2482
+ <span class="ruby-identifier">str2</span>.<span class="ruby-identifier">downcase!</span>
2483
+ <span class="ruby-keyword kw">end</span>
2484
+
2485
+ <span class="ruby-comment cmt"># remove all whitespace</span>
2486
+ <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>)
2487
+ <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>)
2488
+
2489
+ <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>
2490
+ <span class="ruby-comment cmt"># Extract non-digits, digits and rest of string</span>
2491
+ <span class="ruby-identifier">str1</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">compareExpression</span>
2492
+ <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>
2493
+ <span class="ruby-identifier">str2</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">compareExpression</span>
2494
+ <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>
2495
+ <span class="ruby-comment cmt"># Compare the non-digits</span>
2496
+ <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>)
2497
+ <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>
2498
+ <span class="ruby-comment cmt"># If either number begins with a zero, then compare alphabetically,</span>
2499
+ <span class="ruby-comment cmt"># otherwise compare numerically</span>
2500
+ <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>)
2501
+ <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>
2502
+ <span class="ruby-keyword kw">end</span>
2503
+ <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>)
2504
+ <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>
2505
+ <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>
2506
+ <span class="ruby-keyword kw">end</span>
2507
+ <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>
2508
+ <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>
2509
+ <span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt"># case</span>
2510
+ <span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt"># while</span>
2511
+
2512
+ <span class="ruby-comment cmt"># strings are naturally equal.</span>
2513
+ <span class="ruby-keyword kw">return</span> <span class="ruby-value">0</span>
2514
+ <span class="ruby-keyword kw">end</span>
2515
+
2516
+ <span class="ruby-keyword kw">end</span>
2517
+ </pre>
2518
+ </div>
2519
+ </div>
2520
+ </div>
2521
+ <div class="method">
2522
+ <div class="title">
2523
+ <a name="M000585"></a><b>nchar</b>(n, replacement=nil)
2524
+ </div>
2525
+ <div class="description">
2526
+ <p>
2527
+ Returns <em>n</em> characters of the string. If <em>n</em> is positive the
2528
+ characters are from the beginning of the string. If <em>n</em> is negative
2529
+ from the end of the string.
2530
+ </p>
2531
+ <p>
2532
+ Alternatively a replacement string can be given, which will replace the
2533
+ <em>n</em> characters.
2534
+ </p>
2535
+ <pre>
2536
+ str = &quot;this is text&quot;
2537
+ str.nchar(4) #=&gt; &quot;this&quot;
2538
+ str.nchar(4, 'that') #=&gt; &quot;that&quot;
2539
+ str #=&gt; &quot;that is text&quot;
2540
+
2541
+ CREDIT: ?
2542
+ </pre>
2543
+ </div>
2544
+ <div class="sourcecode">
2545
+ <p class="source-link">[ <a href="javascript:toggleSource('M000585_source')" id="l_M000585_source">show source</a> ]</p>
2546
+ <div id="M000585_source" class="dyn-source">
2547
+ <pre>
2548
+ <span class="ruby-comment cmt"># File lib/core/facets/string/nchar.rb, line 17</span>
2549
+ <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>)
2550
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">replacement</span>
2551
+ <span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
2552
+ <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>)
2553
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
2554
+ <span class="ruby-keyword kw">else</span>
2555
+ <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>]
2556
+ <span class="ruby-keyword kw">end</span>
2557
+ <span class="ruby-keyword kw">end</span>
2558
+ </pre>
2559
+ </div>
2560
+ </div>
2561
+ </div>
2562
+ <div class="method">
2563
+ <div class="title">
2564
+ <a name="M000534"></a><b>nchar</b>(n, replacement=nil)
2565
+ </div>
2566
+ <div class="description">
2567
+ <p>
2568
+ Returns <em>n</em> characters of the string. If <em>n</em> is positive the
2569
+ characters are from the beginning of the string. If <em>n</em> is negative
2570
+ from the end of the string.
2571
+ </p>
2572
+ <p>
2573
+ Alternatively a replacement string can be given, which will replace the
2574
+ <em>n</em> characters.
2575
+ </p>
2576
+ <pre>
2577
+ str = &quot;this is text&quot;
2578
+ str.nchar(4) #=&gt; &quot;this&quot;
2579
+ str.nchar(4, 'that') #=&gt; &quot;that&quot;
2580
+ str #=&gt; &quot;that is text&quot;
2581
+
2582
+ CREDIT: ?
2583
+ </pre>
2584
+ </div>
2585
+ <div class="sourcecode">
2586
+ <p class="source-link">[ <a href="javascript:toggleSource('M000534_source')" id="l_M000534_source">show source</a> ]</p>
2587
+ <div id="M000534_source" class="dyn-source">
2588
+ <pre>
2589
+ <span class="ruby-comment cmt"># File lib/core/facets/string/nchar.rb, line 17</span>
2590
+ <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>)
2591
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">replacement</span>
2592
+ <span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
2593
+ <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>)
2594
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
2595
+ <span class="ruby-keyword kw">else</span>
2596
+ <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>]
2597
+ <span class="ruby-keyword kw">end</span>
2598
+ <span class="ruby-keyword kw">end</span>
2599
+ </pre>
2600
+ </div>
2601
+ </div>
2602
+ </div>
2603
+ <div class="method">
2604
+ <div class="title">
2605
+ <a name="M000553"></a><b>outdent</b>(n)
2606
+ </div>
2607
+ <div class="description">
2608
+ <p>
2609
+ Outdent just indents a negative number of spaces.
2610
+ </p>
2611
+ <pre>
2612
+ CREDIT: Noah Gibbs
2613
+ </pre>
2614
+ </div>
2615
+ <div class="sourcecode">
2616
+ <p class="source-link">[ <a href="javascript:toggleSource('M000553_source')" id="l_M000553_source">show source</a> ]</p>
2617
+ <div id="M000553_source" class="dyn-source">
2618
+ <pre>
2619
+ <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 72</span>
2620
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">outdent</span>(<span class="ruby-identifier">n</span>)
2621
+ <span class="ruby-identifier">indent</span>(<span class="ruby-operator">-</span><span class="ruby-identifier">n</span>)
2622
+ <span class="ruby-keyword kw">end</span>
2623
+ </pre>
2624
+ </div>
2625
+ </div>
2626
+ </div>
2627
+ <div class="method">
2628
+ <div class="title">
2629
+ <a name="M000502"></a><b>outdent</b>(n)
2630
+ </div>
2631
+ <div class="description">
2632
+ <p>
2633
+ Outdent just indents a negative number of spaces.
2634
+ </p>
2635
+ <pre>
2636
+ CREDIT: Noah Gibbs
2637
+ </pre>
2638
+ </div>
2639
+ <div class="sourcecode">
2640
+ <p class="source-link">[ <a href="javascript:toggleSource('M000502_source')" id="l_M000502_source">show source</a> ]</p>
2641
+ <div id="M000502_source" class="dyn-source">
2642
+ <pre>
2643
+ <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 72</span>
2644
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">outdent</span>(<span class="ruby-identifier">n</span>)
2645
+ <span class="ruby-identifier">indent</span>(<span class="ruby-operator">-</span><span class="ruby-identifier">n</span>)
2646
+ <span class="ruby-keyword kw">end</span>
2647
+ </pre>
2648
+ </div>
2649
+ </div>
2650
+ </div>
2651
+ <div class="method">
2652
+ <div class="title">
2653
+ <a name="M000527"></a><b>quote</b>(type=:s)
2654
+ </div>
2655
+ <div class="description">
2656
+ <p>
2657
+ Return a new string embraced by given quotes. If no quotes are specified,
2658
+ then assumes single quotes.
2659
+ </p>
2660
+ <pre>
2661
+ &quot;quote me&quot;.quote #=&gt; &quot;'quote me'&quot;
2662
+ &quot;quote me&quot;.quote(2) #=&gt; &quot;\&quot;quote me\&quot;&quot;
2663
+
2664
+ CREDIT: Trans
2665
+ </pre>
2666
+ </div>
2667
+ <div class="sourcecode">
2668
+ <p class="source-link">[ <a href="javascript:toggleSource('M000527_source')" id="l_M000527_source">show source</a> ]</p>
2669
+ <div id="M000527_source" class="dyn-source">
2670
+ <pre>
2671
+ <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 69</span>
2672
+ <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>)
2673
+ <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>
2674
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'s'</span>, <span class="ruby-value str">'single'</span>
2675
+ <span class="ruby-identifier">bracket</span>(<span class="ruby-value str">&quot;'&quot;</span>)
2676
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'d'</span>, <span class="ruby-value str">'double'</span>
2677
+ <span class="ruby-identifier">bracket</span>(<span class="ruby-value str">'&quot;'</span>)
2678
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'b'</span>, <span class="ruby-value str">'back'</span>
2679
+ <span class="ruby-identifier">bracket</span>(<span class="ruby-value str">'`'</span>)
2680
+ <span class="ruby-keyword kw">else</span>
2681
+ <span class="ruby-identifier">bracket</span>(<span class="ruby-value str">&quot;'&quot;</span>)
2682
+ <span class="ruby-keyword kw">end</span>
2683
+ <span class="ruby-keyword kw">end</span>
2684
+ </pre>
2685
+ </div>
2686
+ </div>
2687
+ </div>
2688
+ <div class="method">
2689
+ <div class="title">
2690
+ <a name="M000578"></a><b>quote</b>(type=:s)
2691
+ </div>
2692
+ <div class="description">
2693
+ <p>
2694
+ Return a new string embraced by given quotes. If no quotes are specified,
2695
+ then assumes single quotes.
2696
+ </p>
2697
+ <pre>
2698
+ &quot;quote me&quot;.quote #=&gt; &quot;'quote me'&quot;
2699
+ &quot;quote me&quot;.quote(2) #=&gt; &quot;\&quot;quote me\&quot;&quot;
2700
+
2701
+ CREDIT: Trans
2702
+ </pre>
2703
+ </div>
2704
+ <div class="sourcecode">
2705
+ <p class="source-link">[ <a href="javascript:toggleSource('M000578_source')" id="l_M000578_source">show source</a> ]</p>
2706
+ <div id="M000578_source" class="dyn-source">
2707
+ <pre>
2708
+ <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 69</span>
2709
+ <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>)
2710
+ <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>
2711
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'s'</span>, <span class="ruby-value str">'single'</span>
2712
+ <span class="ruby-identifier">bracket</span>(<span class="ruby-value str">&quot;'&quot;</span>)
2713
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'d'</span>, <span class="ruby-value str">'double'</span>
2714
+ <span class="ruby-identifier">bracket</span>(<span class="ruby-value str">'&quot;'</span>)
2715
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'b'</span>, <span class="ruby-value str">'back'</span>
2716
+ <span class="ruby-identifier">bracket</span>(<span class="ruby-value str">'`'</span>)
2717
+ <span class="ruby-keyword kw">else</span>
2718
+ <span class="ruby-identifier">bracket</span>(<span class="ruby-value str">&quot;'&quot;</span>)
2719
+ <span class="ruby-keyword kw">end</span>
2720
+ <span class="ruby-keyword kw">end</span>
2721
+ </pre>
2722
+ </div>
2723
+ </div>
2724
+ </div>
2725
+ <div class="method">
2726
+ <div class="title">
2727
+ <a name="M000504"></a><b>range</b>(s, offset=0)
2728
+ </div>
2729
+ <div class="description">
2730
+ <p>
2731
+ Like index but returns a <a href="Range.html">Range</a>.
2732
+ </p>
2733
+ <pre>
2734
+ &quot;This is a test!&quot;.range('test') #=&gt; 10..13
2735
+
2736
+ CREDIT: Trans
2737
+ </pre>
2738
+ </div>
2739
+ <div class="sourcecode">
2740
+ <p class="source-link">[ <a href="javascript:toggleSource('M000504_source')" id="l_M000504_source">show source</a> ]</p>
2741
+ <div id="M000504_source" class="dyn-source">
2742
+ <pre>
2743
+ <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 9</span>
2744
+ <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>)
2745
+ <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>)
2746
+ <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>)
2747
+ <span class="ruby-keyword kw">end</span>
2748
+ <span class="ruby-keyword kw">nil</span>
2749
+ <span class="ruby-keyword kw">end</span>
2750
+ </pre>
2751
+ </div>
2752
+ </div>
2753
+ </div>
2754
+ <div class="method">
2755
+ <div class="title">
2756
+ <a name="M000555"></a><b>range</b>(s, offset=0)
2757
+ </div>
2758
+ <div class="description">
2759
+ <p>
2760
+ Like index but returns a <a href="Range.html">Range</a>.
2761
+ </p>
2762
+ <pre>
2763
+ &quot;This is a test!&quot;.range('test') #=&gt; 10..13
2764
+
2765
+ CREDIT: Trans
2766
+ </pre>
2767
+ </div>
2768
+ <div class="sourcecode">
2769
+ <p class="source-link">[ <a href="javascript:toggleSource('M000555_source')" id="l_M000555_source">show source</a> ]</p>
2770
+ <div id="M000555_source" class="dyn-source">
2771
+ <pre>
2772
+ <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 9</span>
2773
+ <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>)
2774
+ <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>)
2775
+ <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>)
2776
+ <span class="ruby-keyword kw">end</span>
2777
+ <span class="ruby-keyword kw">nil</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="M000556"></a><b>range_all</b>(s, reuse=false)
2786
+ </div>
2787
+ <div class="description">
2788
+ <p>
2789
+ Like <a href="String.html#M000507">index_all</a> but returns an array of
2790
+ Ranges.
2791
+ </p>
2792
+ <pre>
2793
+ &quot;abc123abc123&quot;.range_all('abc') #=&gt; [0..2, 6..8]
2794
+
2795
+ TODO: Add offset, perhaps ?
2796
+
2797
+ CREDIT: Trans
2798
+ </pre>
2799
+ </div>
2800
+ <div class="sourcecode">
2801
+ <p class="source-link">[ <a href="javascript:toggleSource('M000556_source')" id="l_M000556_source">show source</a> ]</p>
2802
+ <div id="M000556_source" class="dyn-source">
2803
+ <pre>
2804
+ <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 24</span>
2805
+ <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>)
2806
+ <span class="ruby-identifier">r</span> = []; <span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
2807
+ <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>
2808
+ <span class="ruby-identifier">rng</span> = <span class="ruby-identifier">range</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">i</span>)
2809
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">rng</span>
2810
+ <span class="ruby-identifier">r</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">rng</span>
2811
+ <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>
2812
+ <span class="ruby-keyword kw">else</span>
2813
+ <span class="ruby-keyword kw">break</span>
2814
+ <span class="ruby-keyword kw">end</span>
2815
+ <span class="ruby-keyword kw">end</span>
2816
+ <span class="ruby-identifier">r</span>.<span class="ruby-identifier">uniq</span>
2817
+ <span class="ruby-keyword kw">end</span>
2818
+ </pre>
2819
+ </div>
2820
+ </div>
2821
+ </div>
2822
+ <div class="method">
2823
+ <div class="title">
2824
+ <a name="M000505"></a><b>range_all</b>(s, reuse=false)
2825
+ </div>
2826
+ <div class="description">
2827
+ <p>
2828
+ Like <a href="String.html#M000507">index_all</a> but returns an array of
2829
+ Ranges.
2830
+ </p>
2831
+ <pre>
2832
+ &quot;abc123abc123&quot;.range_all('abc') #=&gt; [0..2, 6..8]
2833
+
2834
+ TODO: Add offset, perhaps ?
2835
+
2836
+ CREDIT: Trans
2837
+ </pre>
2838
+ </div>
2839
+ <div class="sourcecode">
2840
+ <p class="source-link">[ <a href="javascript:toggleSource('M000505_source')" id="l_M000505_source">show source</a> ]</p>
2841
+ <div id="M000505_source" class="dyn-source">
2842
+ <pre>
2843
+ <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 24</span>
2844
+ <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>)
2845
+ <span class="ruby-identifier">r</span> = []; <span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
2846
+ <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>
2847
+ <span class="ruby-identifier">rng</span> = <span class="ruby-identifier">range</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">i</span>)
2848
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">rng</span>
2849
+ <span class="ruby-identifier">r</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">rng</span>
2850
+ <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>
2851
+ <span class="ruby-keyword kw">else</span>
2852
+ <span class="ruby-keyword kw">break</span>
2853
+ <span class="ruby-keyword kw">end</span>
2854
+ <span class="ruby-keyword kw">end</span>
2855
+ <span class="ruby-identifier">r</span>.<span class="ruby-identifier">uniq</span>
2856
+ <span class="ruby-keyword kw">end</span>
2857
+ </pre>
2858
+ </div>
2859
+ </div>
2860
+ </div>
2861
+ <div class="method">
2862
+ <div class="title">
2863
+ <a name="M000557"></a><b>range_of_line</b>()
2864
+ </div>
2865
+ <div class="description">
2866
+ <p>
2867
+ Returns an array of ranges mapping the characters per line.
2868
+ </p>
2869
+ <pre>
2870
+ &quot;this\nis\na\ntest&quot;.range_of_line
2871
+ #=&gt; [0..4, 5..7, 8..9, 10..13]
2872
+
2873
+ CREDIT: Trans
2874
+ </pre>
2875
+ </div>
2876
+ <div class="sourcecode">
2877
+ <p class="source-link">[ <a href="javascript:toggleSource('M000557_source')" id="l_M000557_source">show source</a> ]</p>
2878
+ <div id="M000557_source" class="dyn-source">
2879
+ <pre>
2880
+ <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 46</span>
2881
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range_of_line</span>
2882
+ <span class="ruby-identifier">offset</span>=<span class="ruby-value">0</span>; <span class="ruby-identifier">charmap</span> = []
2883
+ <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>
2884
+ <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>))
2885
+ <span class="ruby-identifier">offset</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">length</span>
2886
+ <span class="ruby-keyword kw">end</span>
2887
+ <span class="ruby-identifier">charmap</span>
2888
+ <span class="ruby-keyword kw">end</span>
2889
+ </pre>
2890
+ </div>
2891
+ </div>
2892
+ </div>
2893
+ <div class="method">
2894
+ <div class="title">
2895
+ <a name="M000506"></a><b>range_of_line</b>()
2896
+ </div>
2897
+ <div class="description">
2898
+ <p>
2899
+ Returns an array of ranges mapping the characters per line.
2900
+ </p>
2901
+ <pre>
2902
+ &quot;this\nis\na\ntest&quot;.range_of_line
2903
+ #=&gt; [0..4, 5..7, 8..9, 10..13]
2904
+
2905
+ CREDIT: Trans
2906
+ </pre>
2907
+ </div>
2908
+ <div class="sourcecode">
2909
+ <p class="source-link">[ <a href="javascript:toggleSource('M000506_source')" id="l_M000506_source">show source</a> ]</p>
2910
+ <div id="M000506_source" class="dyn-source">
2911
+ <pre>
2912
+ <span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 46</span>
2913
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range_of_line</span>
2914
+ <span class="ruby-identifier">offset</span>=<span class="ruby-value">0</span>; <span class="ruby-identifier">charmap</span> = []
2915
+ <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>
2916
+ <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>))
2917
+ <span class="ruby-identifier">offset</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">length</span>
2918
+ <span class="ruby-keyword kw">end</span>
2919
+ <span class="ruby-identifier">charmap</span>
2920
+ <span class="ruby-keyword kw">end</span>
2921
+ </pre>
2922
+ </div>
2923
+ </div>
2924
+ </div>
2925
+ <div class="method">
2926
+ <div class="title">
2927
+ <a name="M000584"></a><b>rewrite</b>(rules)
2928
+ </div>
2929
+ <div class="description">
2930
+ <p>
2931
+ Apply a set of rules (regular expression matches) to the string.
2932
+ </p>
2933
+ <h3>Requirements:</h3>
2934
+ <p>
2935
+ The rules must be applied in order! So we cannot use a hash because the
2936
+ ordering is not guaranteed! we use an array instead.
2937
+ </p>
2938
+ <h3>Input:</h3>
2939
+ <p>
2940
+ The array containing rule-pairs (match, write).
2941
+ </p>
2942
+ <h3>Output:</h3>
2943
+ <p>
2944
+ The rewritten string.
2945
+ </p>
2946
+ <pre>
2947
+ CREDIT: George Moschovitis
2948
+ </pre>
2949
+ </div>
2950
+ <div class="sourcecode">
2951
+ <p class="source-link">[ <a href="javascript:toggleSource('M000584_source')" id="l_M000584_source">show source</a> ]</p>
2952
+ <div id="M000584_source" class="dyn-source">
2953
+ <pre>
2954
+ <span class="ruby-comment cmt"># File lib/core/facets/string/rewrite.rb, line 18</span>
2955
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rewrite</span>(<span class="ruby-identifier">rules</span>)
2956
+ <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>
2957
+ <span class="ruby-identifier">rewritten_string</span> = <span class="ruby-identifier">dup</span>
2958
+ <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>
2959
+ <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>)
2960
+ <span class="ruby-keyword kw">end</span>
2961
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">rewritten_string</span>
2962
+ <span class="ruby-keyword kw">end</span>
2963
+ </pre>
2964
+ </div>
2965
+ </div>
2966
+ </div>
2967
+ <div class="method">
2968
+ <div class="title">
2969
+ <a name="M000533"></a><b>rewrite</b>(rules)
2970
+ </div>
2971
+ <div class="description">
2972
+ <p>
2973
+ Apply a set of rules (regular expression matches) to the string.
2974
+ </p>
2975
+ <h3>Requirements:</h3>
2976
+ <p>
2977
+ The rules must be applied in order! So we cannot use a hash because the
2978
+ ordering is not guaranteed! we use an array instead.
2979
+ </p>
2980
+ <h3>Input:</h3>
2981
+ <p>
2982
+ The array containing rule-pairs (match, write).
2983
+ </p>
2984
+ <h3>Output:</h3>
2985
+ <p>
2986
+ The rewritten string.
2987
+ </p>
2988
+ <pre>
2989
+ CREDIT: George Moschovitis
2990
+ </pre>
2991
+ </div>
2992
+ <div class="sourcecode">
2993
+ <p class="source-link">[ <a href="javascript:toggleSource('M000533_source')" id="l_M000533_source">show source</a> ]</p>
2994
+ <div id="M000533_source" class="dyn-source">
2995
+ <pre>
2996
+ <span class="ruby-comment cmt"># File lib/core/facets/string/rewrite.rb, line 18</span>
2997
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rewrite</span>(<span class="ruby-identifier">rules</span>)
2998
+ <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>
2999
+ <span class="ruby-identifier">rewritten_string</span> = <span class="ruby-identifier">dup</span>
3000
+ <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>
3001
+ <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>)
3002
+ <span class="ruby-keyword kw">end</span>
3003
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">rewritten_string</span>
3004
+ <span class="ruby-keyword kw">end</span>
3005
+ </pre>
3006
+ </div>
3007
+ </div>
3008
+ </div>
3009
+ <div class="method">
3010
+ <div class="title">
3011
+ <a name="M000485"></a><b>shatter</b>( re )
3012
+ </div>
3013
+ <div class="description">
3014
+ <p>
3015
+ Breaks a string up into an array based on a regular expression. Similar to
3016
+ scan, but includes the matches.
3017
+ </p>
3018
+ <pre>
3019
+ s = &quot;&lt;p&gt;This&lt;b&gt;is&lt;/b&gt;a test.&lt;/p&gt;&quot;
3020
+ s.shatter( /\&lt;.*?\&gt;/ )
3021
+ </pre>
3022
+ <p>
3023
+ <em>produces</em>
3024
+ </p>
3025
+ <pre>
3026
+ [&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;]
3027
+
3028
+ CREDIT: Trans
3029
+ </pre>
3030
+ </div>
3031
+ <div class="sourcecode">
3032
+ <p class="source-link">[ <a href="javascript:toggleSource('M000485_source')" id="l_M000485_source">show source</a> ]</p>
3033
+ <div id="M000485_source" class="dyn-source">
3034
+ <pre>
3035
+ <span class="ruby-comment cmt"># File lib/core/facets/string/shatter.rb, line 15</span>
3036
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shatter</span>( <span class="ruby-identifier">re</span> )
3037
+ <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> }
3038
+ <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>
3039
+ <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>
3040
+ <span class="ruby-identifier">r</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">&quot;\1&quot;</span>)
3041
+ <span class="ruby-keyword kw">end</span>
3042
+ </pre>
3043
+ </div>
3044
+ </div>
3045
+ </div>
3046
+ <div class="method">
3047
+ <div class="title">
3048
+ <a name="M000536"></a><b>shatter</b>( re )
3049
+ </div>
3050
+ <div class="description">
3051
+ <p>
3052
+ Breaks a string up into an array based on a regular expression. Similar to
3053
+ scan, but includes the matches.
3054
+ </p>
3055
+ <pre>
3056
+ s = &quot;&lt;p&gt;This&lt;b&gt;is&lt;/b&gt;a test.&lt;/p&gt;&quot;
3057
+ s.shatter( /\&lt;.*?\&gt;/ )
3058
+ </pre>
3059
+ <p>
3060
+ <em>produces</em>
3061
+ </p>
3062
+ <pre>
3063
+ [&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;]
3064
+
3065
+ CREDIT: Trans
3066
+ </pre>
3067
+ </div>
3068
+ <div class="sourcecode">
3069
+ <p class="source-link">[ <a href="javascript:toggleSource('M000536_source')" id="l_M000536_source">show source</a> ]</p>
3070
+ <div id="M000536_source" class="dyn-source">
3071
+ <pre>
3072
+ <span class="ruby-comment cmt"># File lib/core/facets/string/shatter.rb, line 15</span>
3073
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shatter</span>( <span class="ruby-identifier">re</span> )
3074
+ <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> }
3075
+ <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>
3076
+ <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>
3077
+ <span class="ruby-identifier">r</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">&quot;\1&quot;</span>)
3078
+ <span class="ruby-keyword kw">end</span>
3079
+ </pre>
3080
+ </div>
3081
+ </div>
3082
+ </div>
3083
+ <div class="method">
3084
+ <div class="title">
3085
+ <a name="M000508"></a><b>snakecase</b>()
3086
+ </div>
3087
+ <div class="description">
3088
+ <p>
3089
+ The reverse of <tt><a href="String.html#M000491">camelcase</a></tt>. Makes
3090
+ an underscored of a <a href="String.html#M000491">camelcase</a> string.
3091
+ </p>
3092
+ <p>
3093
+ Changes &#8217;::&#8217; to &#8217;/&#8217; to convert namespaces to paths.
3094
+ </p>
3095
+ <p>
3096
+ Examples
3097
+ </p>
3098
+ <pre>
3099
+ &quot;SnakeCase&quot;.snakecase #=&gt; &quot;snake_case&quot;
3100
+ &quot;Snake-Case&quot;.snakecase #=&gt; &quot;snake_case&quot;
3101
+ &quot;SnakeCase::Errors&quot;.underscore #=&gt; &quot;snake_case/errors&quot;
3102
+ </pre>
3103
+ </div>
3104
+ <div class="sourcecode">
3105
+ <p class="source-link">[ <a href="javascript:toggleSource('M000508_source')" id="l_M000508_source">show source</a> ]</p>
3106
+ <div id="M000508_source" class="dyn-source">
3107
+ <pre>
3108
+ <span class="ruby-comment cmt"># File lib/core/facets/string/snakecase.rb, line 12</span>
3109
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">snakecase</span>
3110
+ <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>
3111
+ <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>).
3112
+ <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>).
3113
+ <span class="ruby-identifier">tr</span>(<span class="ruby-value str">&quot;-&quot;</span>, <span class="ruby-value str">&quot;_&quot;</span>).
3114
+ <span class="ruby-identifier">downcase</span>
3115
+ <span class="ruby-keyword kw">end</span>
3116
+ </pre>
3117
+ </div>
3118
+ </div>
3119
+ </div>
3120
+ <div class="method">
3121
+ <div class="title">
3122
+ <a name="M000559"></a><b>snakecase</b>()
3123
+ </div>
3124
+ <div class="description">
3125
+ <p>
3126
+ The reverse of <tt><a href="String.html#M000491">camelcase</a></tt>. Makes
3127
+ an underscored of a <a href="String.html#M000491">camelcase</a> string.
3128
+ </p>
3129
+ <p>
3130
+ Changes &#8217;::&#8217; to &#8217;/&#8217; to convert namespaces to paths.
3131
+ </p>
3132
+ <p>
3133
+ Examples
3134
+ </p>
3135
+ <pre>
3136
+ &quot;SnakeCase&quot;.snakecase #=&gt; &quot;snake_case&quot;
3137
+ &quot;Snake-Case&quot;.snakecase #=&gt; &quot;snake_case&quot;
3138
+ &quot;SnakeCase::Errors&quot;.underscore #=&gt; &quot;snake_case/errors&quot;
3139
+ </pre>
3140
+ </div>
3141
+ <div class="sourcecode">
3142
+ <p class="source-link">[ <a href="javascript:toggleSource('M000559_source')" id="l_M000559_source">show source</a> ]</p>
3143
+ <div id="M000559_source" class="dyn-source">
3144
+ <pre>
3145
+ <span class="ruby-comment cmt"># File lib/core/facets/string/snakecase.rb, line 12</span>
3146
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">snakecase</span>
3147
+ <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>
3148
+ <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>).
3149
+ <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>).
3150
+ <span class="ruby-identifier">tr</span>(<span class="ruby-value str">&quot;-&quot;</span>, <span class="ruby-value str">&quot;_&quot;</span>).
3151
+ <span class="ruby-identifier">downcase</span>
3152
+ <span class="ruby-keyword kw">end</span>
3153
+ </pre>
3154
+ </div>
3155
+ </div>
3156
+ </div>
3157
+ <div class="method">
3158
+ <div class="title">
3159
+ <a name="M000583"></a><b>splice</b>(*args)
3160
+ </div>
3161
+ <div class="description">
3162
+ <p>
3163
+ Like slice, but writes rather than reads. Like store, but acts like slice!
3164
+ when given only one argument.
3165
+ </p>
3166
+ <pre>
3167
+ a = &quot;HELLO&quot;
3168
+ a.splice(1) #=&gt; &quot;E&quot;
3169
+ a #=&gt; &quot;HLLO&quot;
3170
+
3171
+ CREDIT: Trans
3172
+ </pre>
3173
+ </div>
3174
+ <div class="sourcecode">
3175
+ <p class="source-link">[ <a href="javascript:toggleSource('M000583_source')" id="l_M000583_source">show source</a> ]</p>
3176
+ <div id="M000583_source" class="dyn-source">
3177
+ <pre>
3178
+ <span class="ruby-comment cmt"># File lib/core/facets/string/splice.rb, line 13</span>
3179
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">splice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
3180
+ <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>
3181
+ <span class="ruby-identifier">slice!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
3182
+ <span class="ruby-keyword kw">else</span>
3183
+ <span class="ruby-identifier">store</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
3184
+ <span class="ruby-keyword kw">end</span>
3185
+ <span class="ruby-keyword kw">end</span>
3186
+ </pre>
3187
+ </div>
3188
+ </div>
3189
+ </div>
3190
+ <div class="method">
3191
+ <div class="title">
3192
+ <a name="M000532"></a><b>splice</b>(*args)
3193
+ </div>
3194
+ <div class="description">
3195
+ <p>
3196
+ Like slice, but writes rather than reads. Like store, but acts like slice!
3197
+ when given only one argument.
3198
+ </p>
3199
+ <pre>
3200
+ a = &quot;HELLO&quot;
3201
+ a.splice(1) #=&gt; &quot;E&quot;
3202
+ a #=&gt; &quot;HLLO&quot;
3203
+
3204
+ CREDIT: Trans
3205
+ </pre>
3206
+ </div>
3207
+ <div class="sourcecode">
3208
+ <p class="source-link">[ <a href="javascript:toggleSource('M000532_source')" id="l_M000532_source">show source</a> ]</p>
3209
+ <div id="M000532_source" class="dyn-source">
3210
+ <pre>
3211
+ <span class="ruby-comment cmt"># File lib/core/facets/string/splice.rb, line 13</span>
3212
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">splice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
3213
+ <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>
3214
+ <span class="ruby-identifier">slice!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
3215
+ <span class="ruby-keyword kw">else</span>
3216
+ <span class="ruby-identifier">store</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
3217
+ <span class="ruby-keyword kw">end</span>
3218
+ <span class="ruby-keyword kw">end</span>
3219
+ </pre>
3220
+ </div>
3221
+ </div>
3222
+ </div>
3223
+ <div class="method">
3224
+ <div class="title">
3225
+ <a name="M000489"></a><b>start_with?</b>(prefix)
3226
+ </div>
3227
+ <div class="description">
3228
+ <p>
3229
+ Does a string start with the given prefix.
3230
+ </p>
3231
+ <pre>
3232
+ &quot;hello&quot;.starts_with?(&quot;he&quot;) #=&gt; true
3233
+ &quot;hello&quot;.starts_with?(&quot;to&quot;) #=&gt; false
3234
+
3235
+ CREDIT: Lucas Carlson
3236
+ CREDIT: Blaine Cook
3237
+ </pre>
3238
+ </div>
3239
+ <div class="sourcecode">
3240
+ <p class="source-link">[ <a href="javascript:toggleSource('M000489_source')" id="l_M000489_source">show source</a> ]</p>
3241
+ <div id="M000489_source" class="dyn-source">
3242
+ <pre>
3243
+ <span class="ruby-comment cmt"># File lib/core/facets/string/start_with.rb, line 13</span>
3244
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_with?</span>(<span class="ruby-identifier">prefix</span>)
3245
+ <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>
3246
+ <span class="ruby-keyword kw">end</span>
3247
+ </pre>
3248
+ </div>
3249
+ </div>
3250
+ </div>
3251
+ <div class="method">
3252
+ <div class="title">
3253
+ <a name="M000540"></a><b>start_with?</b>(prefix)
3254
+ </div>
3255
+ <div class="description">
3256
+ <p>
3257
+ Does a string start with the given prefix.
3258
+ </p>
3259
+ <pre>
3260
+ &quot;hello&quot;.starts_with?(&quot;he&quot;) #=&gt; true
3261
+ &quot;hello&quot;.starts_with?(&quot;to&quot;) #=&gt; false
3262
+
3263
+ CREDIT: Lucas Carlson
3264
+ CREDIT: Blaine Cook
3265
+ </pre>
3266
+ </div>
3267
+ <div class="sourcecode">
3268
+ <p class="source-link">[ <a href="javascript:toggleSource('M000540_source')" id="l_M000540_source">show source</a> ]</p>
3269
+ <div id="M000540_source" class="dyn-source">
3270
+ <pre>
3271
+ <span class="ruby-comment cmt"># File lib/core/facets/string/start_with.rb, line 13</span>
3272
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_with?</span>(<span class="ruby-identifier">prefix</span>)
3273
+ <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>
3274
+ <span class="ruby-keyword kw">end</span>
3275
+ </pre>
3276
+ </div>
3277
+ </div>
3278
+ </div>
3279
+ <div class="method">
3280
+ <div class="title">
3281
+ <a name="M000548"></a><b>tab</b>(n)
3282
+ </div>
3283
+ <div class="description">
3284
+ <p>
3285
+ Aligns each line n spaces.
3286
+ </p>
3287
+ <pre>
3288
+ CREDIT: Gavin Sinclair
3289
+ </pre>
3290
+ </div>
3291
+ <div class="sourcecode">
3292
+ <p class="source-link">[ <a href="javascript:toggleSource('M000548_source')" id="l_M000548_source">show source</a> ]</p>
3293
+ <div id="M000548_source" class="dyn-source">
3294
+ <pre>
3295
+ <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 10</span>
3296
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tab</span>(<span class="ruby-identifier">n</span>)
3297
+ <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>)
3298
+ <span class="ruby-keyword kw">end</span>
3299
+ </pre>
3300
+ </div>
3301
+ </div>
3302
+ </div>
3303
+ <div class="method">
3304
+ <div class="title">
3305
+ <a name="M000497"></a><b>tab</b>(n)
3306
+ </div>
3307
+ <div class="description">
3308
+ <p>
3309
+ Aligns each line n spaces.
3310
+ </p>
3311
+ <pre>
3312
+ CREDIT: Gavin Sinclair
3313
+ </pre>
3314
+ </div>
3315
+ <div class="aka">
3316
+ This method is also aliased as
3317
+ <a href="String.html#M000498">taballto</a>
3318
+ <a href="String.html#M000549">taballto</a>
3319
+ </div>
3320
+ <div class="sourcecode">
3321
+ <p class="source-link">[ <a href="javascript:toggleSource('M000497_source')" id="l_M000497_source">show source</a> ]</p>
3322
+ <div id="M000497_source" class="dyn-source">
3323
+ <pre>
3324
+ <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 10</span>
3325
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tab</span>(<span class="ruby-identifier">n</span>)
3326
+ <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>)
3327
+ <span class="ruby-keyword kw">end</span>
3328
+ </pre>
3329
+ </div>
3330
+ </div>
3331
+ </div>
3332
+ <div class="method">
3333
+ <div class="title">
3334
+ <a name="M000549"></a><b>taballto</b>(n)
3335
+ </div>
3336
+ <div class="description">
3337
+ <p>
3338
+ Alias for <a href="String.html#M000497">tab</a>
3339
+ </p>
3340
+ </div>
3341
+ </div>
3342
+ <div class="method">
3343
+ <div class="title">
3344
+ <a name="M000498"></a><b>taballto</b>(n)
3345
+ </div>
3346
+ <div class="description">
3347
+ <p>
3348
+ Alias for <a href="String.html#M000497">tab</a>
3349
+ </p>
3350
+ </div>
3351
+ </div>
3352
+ <div class="method">
3353
+ <div class="title">
3354
+ <a name="M000551"></a><b>tabto</b>(n)
3355
+ </div>
3356
+ <div class="description">
3357
+ <p>
3358
+ Preserves relative tabbing. The first non-empty line ends up with n spaces
3359
+ before nonspace.
3360
+ </p>
3361
+ <pre>
3362
+ CREDIT: Gavin Sinclair
3363
+ </pre>
3364
+ </div>
3365
+ <div class="sourcecode">
3366
+ <p class="source-link">[ <a href="javascript:toggleSource('M000551_source')" id="l_M000551_source">show source</a> ]</p>
3367
+ <div id="M000551_source" class="dyn-source">
3368
+ <pre>
3369
+ <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 46</span>
3370
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tabto</span>(<span class="ruby-identifier">n</span>)
3371
+ <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>
3372
+ <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>)
3373
+ <span class="ruby-keyword kw">else</span>
3374
+ <span class="ruby-keyword kw">self</span>
3375
+ <span class="ruby-keyword kw">end</span>
3376
+ <span class="ruby-keyword kw">end</span>
3377
+ </pre>
3378
+ </div>
3379
+ </div>
3380
+ </div>
3381
+ <div class="method">
3382
+ <div class="title">
3383
+ <a name="M000500"></a><b>tabto</b>(n)
3384
+ </div>
3385
+ <div class="description">
3386
+ <p>
3387
+ Preserves relative tabbing. The first non-empty line ends up with n spaces
3388
+ before nonspace.
3389
+ </p>
3390
+ <pre>
3391
+ CREDIT: Gavin Sinclair
3392
+ </pre>
3393
+ </div>
3394
+ <div class="sourcecode">
3395
+ <p class="source-link">[ <a href="javascript:toggleSource('M000500_source')" id="l_M000500_source">show source</a> ]</p>
3396
+ <div id="M000500_source" class="dyn-source">
3397
+ <pre>
3398
+ <span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 46</span>
3399
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tabto</span>(<span class="ruby-identifier">n</span>)
3400
+ <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>
3401
+ <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>)
3402
+ <span class="ruby-keyword kw">else</span>
3403
+ <span class="ruby-keyword kw">self</span>
3404
+ <span class="ruby-keyword kw">end</span>
3405
+ <span class="ruby-keyword kw">end</span>
3406
+ </pre>
3407
+ </div>
3408
+ </div>
3409
+ </div>
3410
+ <div class="method">
3411
+ <div class="title">
3412
+ <a name="M000569"></a><b>titlecase</b>()
3413
+ </div>
3414
+ <div class="description">
3415
+ <p>
3416
+ Title case.
3417
+ </p>
3418
+ <pre>
3419
+ &quot;this is a string&quot;.titlecase
3420
+ =&gt; &quot;This Is A String&quot;
3421
+
3422
+ CREDIT: Eliazar Parra
3423
+ </pre>
3424
+ </div>
3425
+ <div class="sourcecode">
3426
+ <p class="source-link">[ <a href="javascript:toggleSource('M000569_source')" id="l_M000569_source">show source</a> ]</p>
3427
+ <div id="M000569_source" class="dyn-source">
3428
+ <pre>
3429
+ <span class="ruby-comment cmt"># File lib/core/facets/string/titlecase.rb, line 10</span>
3430
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">titlecase</span>
3431
+ <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>}
3432
+ <span class="ruby-keyword kw">end</span>
3433
+ </pre>
3434
+ </div>
3435
+ </div>
3436
+ </div>
3437
+ <div class="method">
3438
+ <div class="title">
3439
+ <a name="M000518"></a><b>titlecase</b>()
3440
+ </div>
3441
+ <div class="description">
3442
+ <p>
3443
+ Title case.
3444
+ </p>
3445
+ <pre>
3446
+ &quot;this is a string&quot;.titlecase
3447
+ =&gt; &quot;This Is A String&quot;
3448
+
3449
+ CREDIT: Eliazar Parra
3450
+ </pre>
3451
+ </div>
3452
+ <div class="sourcecode">
3453
+ <p class="source-link">[ <a href="javascript:toggleSource('M000518_source')" id="l_M000518_source">show source</a> ]</p>
3454
+ <div id="M000518_source" class="dyn-source">
3455
+ <pre>
3456
+ <span class="ruby-comment cmt"># File lib/core/facets/string/titlecase.rb, line 10</span>
3457
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">titlecase</span>
3458
+ <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>}
3459
+ <span class="ruby-keyword kw">end</span>
3460
+ </pre>
3461
+ </div>
3462
+ </div>
3463
+ </div>
3464
+ <div class="method">
3465
+ <div class="title">
3466
+ <a name="M000480"></a><b>to_b</b>()
3467
+ </div>
3468
+ <div class="description">
3469
+ <p>
3470
+ Interpret common affirmative string meanings as true, otherwise false.
3471
+ Balnk sapce and case are ignored. The following strings that will return
3472
+ true:
3473
+ </p>
3474
+ <pre>
3475
+ &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;
3476
+ </pre>
3477
+ <p>
3478
+ Examples:
3479
+ </p>
3480
+ <pre>
3481
+ &quot;true&quot;.to_b #=&gt; true
3482
+ &quot;yes&quot;.to_b #=&gt; true
3483
+ &quot;no&quot;.to_b #=&gt; false
3484
+ &quot;123&quot;.to_b #=&gt; false
3485
+ </pre>
3486
+ </div>
3487
+ <div class="sourcecode">
3488
+ <p class="source-link">[ <a href="javascript:toggleSource('M000480_source')" id="l_M000480_source">show source</a> ]</p>
3489
+ <div id="M000480_source" class="dyn-source">
3490
+ <pre>
3491
+ <span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 43</span>
3492
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_b</span>
3493
+ <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>
3494
+ <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>
3495
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
3496
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'nil'</span>, <span class="ruby-value str">'null'</span>
3497
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
3498
+ <span class="ruby-keyword kw">else</span>
3499
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
3500
+ <span class="ruby-keyword kw">end</span>
3501
+ <span class="ruby-keyword kw">end</span>
3502
+ </pre>
3503
+ </div>
3504
+ </div>
3505
+ </div>
3506
+ <div class="method">
3507
+ <div class="title">
3508
+ <a name="M000486"></a><b>to_re</b>(esc=false)
3509
+ </div>
3510
+ <div class="description">
3511
+ <p>
3512
+ Turns a string into a regular expression.
3513
+ </p>
3514
+ <pre>
3515
+ &quot;a?&quot;.to_re #=&gt; /a?/
3516
+
3517
+ CREDIT: Trans
3518
+ </pre>
3519
+ </div>
3520
+ <div class="sourcecode">
3521
+ <p class="source-link">[ <a href="javascript:toggleSource('M000486_source')" id="l_M000486_source">show source</a> ]</p>
3522
+ <div id="M000486_source" class="dyn-source">
3523
+ <pre>
3524
+ <span class="ruby-comment cmt"># File lib/core/facets/string/to_re.rb, line 9</span>
3525
+ <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>)
3526
+ <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>))
3527
+ <span class="ruby-keyword kw">end</span>
3528
+ </pre>
3529
+ </div>
3530
+ </div>
3531
+ </div>
3532
+ <div class="method">
3533
+ <div class="title">
3534
+ <a name="M000537"></a><b>to_re</b>(esc=false)
3535
+ </div>
3536
+ <div class="description">
3537
+ <p>
3538
+ Turns a string into a regular expression.
3539
+ </p>
3540
+ <pre>
3541
+ &quot;a?&quot;.to_re #=&gt; /a?/
3542
+
3543
+ CREDIT: Trans
3544
+ </pre>
3545
+ </div>
3546
+ <div class="sourcecode">
3547
+ <p class="source-link">[ <a href="javascript:toggleSource('M000537_source')" id="l_M000537_source">show source</a> ]</p>
3548
+ <div id="M000537_source" class="dyn-source">
3549
+ <pre>
3550
+ <span class="ruby-comment cmt"># File lib/core/facets/string/to_re.rb, line 9</span>
3551
+ <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>)
3552
+ <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>))
3553
+ <span class="ruby-keyword kw">end</span>
3554
+ </pre>
3555
+ </div>
3556
+ </div>
3557
+ </div>
3558
+ <div class="method">
3559
+ <div class="title">
3560
+ <a name="M000538"></a><b>to_rx</b>(esc=true)
3561
+ </div>
3562
+ <div class="description">
3563
+ <p>
3564
+ Turns a string into a regular expression. By default it will escape all
3565
+ characters. Use <tt>false</tt> argument to turn off escaping.
3566
+ </p>
3567
+ <pre>
3568
+ &quot;[&quot;.to_rx #=&gt; /\[/
3569
+
3570
+ CREDIT: Trans
3571
+ </pre>
3572
+ </div>
3573
+ <div class="sourcecode">
3574
+ <p class="source-link">[ <a href="javascript:toggleSource('M000538_source')" id="l_M000538_source">show source</a> ]</p>
3575
+ <div id="M000538_source" class="dyn-source">
3576
+ <pre>
3577
+ <span class="ruby-comment cmt"># File lib/core/facets/string/to_re.rb, line 21</span>
3578
+ <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>)
3579
+ <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>))
3580
+ <span class="ruby-keyword kw">end</span>
3581
+ </pre>
3582
+ </div>
3583
+ </div>
3584
+ </div>
3585
+ <div class="method">
3586
+ <div class="title">
3587
+ <a name="M000487"></a><b>to_rx</b>(esc=true)
3588
+ </div>
3589
+ <div class="description">
3590
+ <p>
3591
+ Turns a string into a regular expression. By default it will escape all
3592
+ characters. Use <tt>false</tt> argument to turn off escaping.
3593
+ </p>
3594
+ <pre>
3595
+ &quot;[&quot;.to_rx #=&gt; /\[/
3596
+
3597
+ CREDIT: Trans
3598
+ </pre>
3599
+ </div>
3600
+ <div class="sourcecode">
3601
+ <p class="source-link">[ <a href="javascript:toggleSource('M000487_source')" id="l_M000487_source">show source</a> ]</p>
3602
+ <div id="M000487_source" class="dyn-source">
3603
+ <pre>
3604
+ <span class="ruby-comment cmt"># File lib/core/facets/string/to_re.rb, line 21</span>
3605
+ <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>)
3606
+ <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>))
3607
+ <span class="ruby-keyword kw">end</span>
3608
+ </pre>
3609
+ </div>
3610
+ </div>
3611
+ </div>
3612
+ <div class="method">
3613
+ <div class="title">
3614
+ <a name="M000483"></a><b>to_s</b>()
3615
+ </div>
3616
+ <div class="sourcecode">
3617
+ <p class="source-link">[ <a href="javascript:toggleSource('M000483_source')" id="l_M000483_source">show source</a> ]</p>
3618
+ <div id="M000483_source" class="dyn-source">
3619
+ <pre>
3620
+ <span class="ruby-comment cmt"># File lib/core/facets/comparable/bound.rb, line 2</span>
3621
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
3622
+ <span class="ruby-keyword kw">self</span>
3623
+ <span class="ruby-keyword kw">end</span>
3624
+ </pre>
3625
+ </div>
3626
+ </div>
3627
+ </div>
3628
+ <div class="method">
3629
+ <div class="title">
3630
+ <a name="M000481"></a><b>to_s</b>()
3631
+ </div>
3632
+ <div class="sourcecode">
3633
+ <p class="source-link">[ <a href="javascript:toggleSource('M000481_source')" id="l_M000481_source">show source</a> ]</p>
3634
+ <div id="M000481_source" class="dyn-source">
3635
+ <pre>
3636
+ <span class="ruby-comment cmt"># File lib/core/facets/comparable/bound.rb, line 2</span>
3637
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
3638
+ <span class="ruby-keyword kw">self</span>
3639
+ <span class="ruby-keyword kw">end</span>
3640
+ </pre>
3641
+ </div>
3642
+ </div>
3643
+ </div>
3644
+ <div class="method">
3645
+ <div class="title">
3646
+ <a name="M000521"></a><b>to_time</b>()
3647
+ </div>
3648
+ <div class="description">
3649
+ <p>
3650
+ Parse string to time.
3651
+ </p>
3652
+ <pre>
3653
+ CREDIT: Trans
3654
+ </pre>
3655
+ <p>
3656
+ TODO: This requires the external time.rb lib. Should we do this?
3657
+ </p>
3658
+ </div>
3659
+ <div class="sourcecode">
3660
+ <p class="source-link">[ <a href="javascript:toggleSource('M000521_source')" id="l_M000521_source">show source</a> ]</p>
3661
+ <div id="M000521_source" class="dyn-source">
3662
+ <pre>
3663
+ <span class="ruby-comment cmt"># File lib/core/facets/string/to_time.rb, line 9</span>
3664
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_time</span>
3665
+ <span class="ruby-identifier">require</span> <span class="ruby-value str">'time'</span>
3666
+ <span class="ruby-constant">Time</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-keyword kw">self</span>)
3667
+ <span class="ruby-keyword kw">end</span>
3668
+ </pre>
3669
+ </div>
3670
+ </div>
3671
+ </div>
3672
+ <div class="method">
3673
+ <div class="title">
3674
+ <a name="M000572"></a><b>to_time</b>()
3675
+ </div>
3676
+ <div class="description">
3677
+ <p>
3678
+ Parse string to time.
3679
+ </p>
3680
+ <pre>
3681
+ CREDIT: Trans
3682
+ </pre>
3683
+ <p>
3684
+ TODO: This requires the external time.rb lib. Should we do this?
3685
+ </p>
3686
+ </div>
3687
+ <div class="sourcecode">
3688
+ <p class="source-link">[ <a href="javascript:toggleSource('M000572_source')" id="l_M000572_source">show source</a> ]</p>
3689
+ <div id="M000572_source" class="dyn-source">
3690
+ <pre>
3691
+ <span class="ruby-comment cmt"># File lib/core/facets/string/to_time.rb, line 9</span>
3692
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_time</span>
3693
+ <span class="ruby-identifier">require</span> <span class="ruby-value str">'time'</span>
3694
+ <span class="ruby-constant">Time</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-keyword kw">self</span>)
3695
+ <span class="ruby-keyword kw">end</span>
3696
+ </pre>
3697
+ </div>
3698
+ </div>
3699
+ </div>
3700
+ <div class="method">
3701
+ <div class="title">
3702
+ <a name="M000576"></a><b>unbracket</b>(bra=nil, ket=nil)
3703
+ </div>
3704
+ <div class="description">
3705
+ <p>
3706
+ Return a new string embraced by given brakets. If only one <a
3707
+ href="String.html#M000523">bracket</a> char is given it will be placed on
3708
+ either side.
3709
+ </p>
3710
+ <pre>
3711
+ &quot;{unwrap me}&quot;.debracket('{') #=&gt; &quot;unwrap me&quot;
3712
+ &quot;--unwrap me!&quot;.debracket('--','!') #=&gt; &quot;unwrap me!&quot;
3713
+
3714
+ CREDIT: Trans
3715
+ </pre>
3716
+ </div>
3717
+ <div class="sourcecode">
3718
+ <p class="source-link">[ <a href="javascript:toggleSource('M000576_source')" id="l_M000576_source">show source</a> ]</p>
3719
+ <div id="M000576_source" class="dyn-source">
3720
+ <pre>
3721
+ <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 37</span>
3722
+ <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>)
3723
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">bra</span>
3724
+ <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>
3725
+ <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>
3726
+ <span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
3727
+ <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>)
3728
+ <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>)
3729
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
3730
+ <span class="ruby-keyword kw">else</span>
3731
+ <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>] ]
3732
+ <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>
3733
+ <span class="ruby-keyword kw">end</span>
3734
+ <span class="ruby-keyword kw">end</span>
3735
+ <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>
3736
+ <span class="ruby-keyword kw">end</span>
3737
+ </pre>
3738
+ </div>
3739
+ </div>
3740
+ </div>
3741
+ <div class="method">
3742
+ <div class="title">
3743
+ <a name="M000525"></a><b>unbracket</b>(bra=nil, ket=nil)
3744
+ </div>
3745
+ <div class="description">
3746
+ <p>
3747
+ Return a new string embraced by given brakets. If only one <a
3748
+ href="String.html#M000523">bracket</a> char is given it will be placed on
3749
+ either side.
3750
+ </p>
3751
+ <pre>
3752
+ &quot;{unwrap me}&quot;.debracket('{') #=&gt; &quot;unwrap me&quot;
3753
+ &quot;--unwrap me!&quot;.debracket('--','!') #=&gt; &quot;unwrap me!&quot;
3754
+
3755
+ CREDIT: Trans
3756
+ </pre>
3757
+ </div>
3758
+ <div class="sourcecode">
3759
+ <p class="source-link">[ <a href="javascript:toggleSource('M000525_source')" id="l_M000525_source">show source</a> ]</p>
3760
+ <div id="M000525_source" class="dyn-source">
3761
+ <pre>
3762
+ <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 37</span>
3763
+ <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>)
3764
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">bra</span>
3765
+ <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>
3766
+ <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>
3767
+ <span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
3768
+ <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>)
3769
+ <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>)
3770
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
3771
+ <span class="ruby-keyword kw">else</span>
3772
+ <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>] ]
3773
+ <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>
3774
+ <span class="ruby-keyword kw">end</span>
3775
+ <span class="ruby-keyword kw">end</span>
3776
+ <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>
3777
+ <span class="ruby-keyword kw">end</span>
3778
+ </pre>
3779
+ </div>
3780
+ </div>
3781
+ </div>
3782
+ <div class="method">
3783
+ <div class="title">
3784
+ <a name="M000526"></a><b>unbracket!</b>(bra=nil, ket=nil)
3785
+ </div>
3786
+ <div class="description">
3787
+ <p>
3788
+ Inplace version of debraket.
3789
+ </p>
3790
+ <pre>
3791
+ CREDIT: Trans
3792
+ </pre>
3793
+ </div>
3794
+ <div class="sourcecode">
3795
+ <p class="source-link">[ <a href="javascript:toggleSource('M000526_source')" id="l_M000526_source">show source</a> ]</p>
3796
+ <div id="M000526_source" class="dyn-source">
3797
+ <pre>
3798
+ <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 57</span>
3799
+ <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>)
3800
+ <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>) )
3801
+ <span class="ruby-keyword kw">end</span>
3802
+ </pre>
3803
+ </div>
3804
+ </div>
3805
+ </div>
3806
+ <div class="method">
3807
+ <div class="title">
3808
+ <a name="M000577"></a><b>unbracket!</b>(bra=nil, ket=nil)
3809
+ </div>
3810
+ <div class="description">
3811
+ <p>
3812
+ Inplace version of debraket.
3813
+ </p>
3814
+ <pre>
3815
+ CREDIT: Trans
3816
+ </pre>
3817
+ </div>
3818
+ <div class="sourcecode">
3819
+ <p class="source-link">[ <a href="javascript:toggleSource('M000577_source')" id="l_M000577_source">show source</a> ]</p>
3820
+ <div id="M000577_source" class="dyn-source">
3821
+ <pre>
3822
+ <span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 57</span>
3823
+ <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>)
3824
+ <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>) )
3825
+ <span class="ruby-keyword kw">end</span>
3826
+ </pre>
3827
+ </div>
3828
+ </div>
3829
+ </div>
3830
+ <div class="method">
3831
+ <div class="title">
3832
+ <a name="M000514"></a><b>upcase?</b>()
3833
+ </div>
3834
+ <div class="description">
3835
+ <p>
3836
+ Is the string upcase/uppercase?
3837
+ </p>
3838
+ <pre>
3839
+ &quot;THIS&quot;.upcase? #=&gt; true
3840
+ &quot;This&quot;.upcase? #=&gt; false
3841
+ &quot;this&quot;.upcase? #=&gt; false
3842
+
3843
+ CREDIT: Phil Tomson
3844
+ </pre>
3845
+ </div>
3846
+ <div class="sourcecode">
3847
+ <p class="source-link">[ <a href="javascript:toggleSource('M000514_source')" id="l_M000514_source">show source</a> ]</p>
3848
+ <div id="M000514_source" class="dyn-source">
3849
+ <pre>
3850
+ <span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 38</span>
3851
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">upcase?</span>
3852
+ <span class="ruby-identifier">upcase</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">self</span>
3853
+ <span class="ruby-keyword kw">end</span>
3854
+ </pre>
3855
+ </div>
3856
+ </div>
3857
+ </div>
3858
+ <div class="method">
3859
+ <div class="title">
3860
+ <a name="M000565"></a><b>upcase?</b>()
3861
+ </div>
3862
+ <div class="description">
3863
+ <p>
3864
+ Is the string upcase/uppercase?
3865
+ </p>
3866
+ <pre>
3867
+ &quot;THIS&quot;.upcase? #=&gt; true
3868
+ &quot;This&quot;.upcase? #=&gt; false
3869
+ &quot;this&quot;.upcase? #=&gt; false
3870
+
3871
+ CREDIT: Phil Tomson
3872
+ </pre>
3873
+ </div>
3874
+ <div class="sourcecode">
3875
+ <p class="source-link">[ <a href="javascript:toggleSource('M000565_source')" id="l_M000565_source">show source</a> ]</p>
3876
+ <div id="M000565_source" class="dyn-source">
3877
+ <pre>
3878
+ <span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 38</span>
3879
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">upcase?</span>
3880
+ <span class="ruby-identifier">upcase</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">self</span>
3881
+ <span class="ruby-keyword kw">end</span>
3882
+ </pre>
3883
+ </div>
3884
+ </div>
3885
+ </div>
3886
+ <div class="method">
3887
+ <div class="title">
3888
+ <a name="M000479"></a><b>variablize</b>()
3889
+ </div>
3890
+ <div class="description">
3891
+ <p>
3892
+ Append an &quot;@&quot; to the beginning of a string to make a instance
3893
+ variable name. This also replaces non-valid characters with underscores.
3894
+ </p>
3895
+ </div>
3896
+ <div class="sourcecode">
3897
+ <p class="source-link">[ <a href="javascript:toggleSource('M000479_source')" id="l_M000479_source">show source</a> ]</p>
3898
+ <div id="M000479_source" class="dyn-source">
3899
+ <pre>
3900
+ <span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 128</span>
3901
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">variablize</span>
3902
+ <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>
3903
+ <span class="ruby-keyword kw">end</span>
3904
+ </pre>
3905
+ </div>
3906
+ </div>
3907
+ </div>
3908
+ </div>
3909
+
3910
+ </div>
3911
+
3912
+ </body>
3913
+ </html>