facets 2.4.4 → 2.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (787) hide show
  1. data/AUTHORS +3 -0
  2. data/CHANGES +41 -1569
  3. data/COPYING +6 -4
  4. data/MANIFEST +114 -25
  5. data/README +12 -2
  6. data/RELEASE +37 -0
  7. data/Rakefile +4 -0
  8. data/VERSION +1 -0
  9. data/demo/bench/general/comment_loading/bench.rb +46 -0
  10. data/demo/bench/general/comment_loading/comments_begin.rb +109 -0
  11. data/demo/bench/general/comment_loading/comments_end.rb +127 -0
  12. data/demo/bench/general/comment_loading/comments_none.rb +1 -0
  13. data/demo/bench/general/comment_loading/comments_sharp.rb +125 -0
  14. data/doc/archive/changelog-0.rdoc +239 -0
  15. data/doc/archive/changelog-1.rdoc +450 -0
  16. data/doc/news/{news-2.0.5 → RELEASE-2.0.5} +0 -0
  17. data/doc/news/{news-2.1.0 → RELEASE-2.1.0} +0 -0
  18. data/doc/news/{news-2.1.1 → RELEASE-2.1.1} +0 -0
  19. data/doc/news/{news-2.1.2 → RELEASE-2.1.2} +0 -0
  20. data/doc/news/{news-2.1.3 → RELEASE-2.1.3} +0 -0
  21. data/doc/news/{news-2.2.0 → RELEASE-2.2.0} +0 -0
  22. data/doc/news/{news-2.2.1 → RELEASE-2.2.1} +0 -0
  23. data/doc/news/{news-2.3.0 → RELEASE-2.3.0} +0 -0
  24. data/doc/news/{news-2.4.0 → RELEASE-2.4.0} +0 -0
  25. data/doc/news/{news-2.4.1 → RELEASE-2.4.1} +0 -0
  26. data/doc/news/{news-2.4.2 → RELEASE-2.4.2} +0 -0
  27. data/doc/news/{news-2.4.3 → RELEASE-2.4.3} +0 -0
  28. data/{NEWS → doc/news/RELEASE-2.4.4} +0 -2
  29. data/doc/rdoc/core/classes/Array.html +115 -115
  30. data/doc/rdoc/core/classes/Binding.html +47 -49
  31. data/doc/rdoc/core/classes/Class.html +172 -24
  32. data/doc/rdoc/core/classes/Comparable.html +28 -30
  33. data/doc/rdoc/core/classes/Dir.html +16 -18
  34. data/doc/rdoc/core/classes/Enumerable.html +146 -143
  35. data/doc/rdoc/core/classes/Exception.html +10 -12
  36. data/doc/rdoc/core/classes/FalseClass.html +10 -12
  37. data/doc/rdoc/core/classes/File.html +70 -69
  38. data/doc/rdoc/core/classes/FileTest.html +6 -8
  39. data/doc/rdoc/core/classes/Float.html +10 -12
  40. data/doc/rdoc/core/classes/Friend.html +4 -6
  41. data/doc/rdoc/core/classes/Functor.html +14 -16
  42. data/doc/rdoc/core/classes/Hash.html +182 -180
  43. data/doc/rdoc/core/classes/Indexable.html +145 -122
  44. data/doc/rdoc/core/classes/InstanceVariables.html +24 -26
  45. data/doc/rdoc/core/classes/Integer.html +43 -43
  46. data/doc/rdoc/core/classes/Kernel.html +331 -333
  47. data/doc/rdoc/core/classes/Lazy.html +2 -2
  48. data/doc/rdoc/core/classes/Lazy/Future.html +2 -2
  49. data/doc/rdoc/core/classes/Lazy/Promise.html +3 -3
  50. data/doc/rdoc/core/classes/Lazy/PromiseSafe.html +2 -2
  51. data/doc/rdoc/core/classes/MatchData.html +17 -19
  52. data/doc/rdoc/core/classes/Module.html +175 -166
  53. data/doc/rdoc/core/classes/NilClass.html +24 -26
  54. data/doc/rdoc/core/classes/Numeric.html +29 -31
  55. data/doc/rdoc/core/classes/Object.html +10 -12
  56. data/doc/rdoc/core/classes/Proc.html +24 -26
  57. data/doc/rdoc/core/classes/Range.html +16 -18
  58. data/doc/rdoc/core/classes/Regexp.html +9 -11
  59. data/doc/rdoc/core/classes/Stackable.html +33 -35
  60. data/doc/rdoc/core/classes/String.html +332 -275
  61. data/doc/rdoc/core/classes/Symbol.html +72 -45
  62. data/doc/rdoc/core/classes/Time.html +26 -28
  63. data/doc/rdoc/core/classes/TrueClass.html +10 -12
  64. data/doc/rdoc/core/classes/UnboundMethod.html +13 -15
  65. data/doc/rdoc/core/created.rid +1 -1
  66. data/doc/rdoc/core/files/README.html +25 -10
  67. data/doc/rdoc/core/files/doc/README_core.html +2 -2
  68. data/doc/rdoc/core/files/lib/core/facets/array/combination_rb.html +3 -3
  69. data/doc/rdoc/core/files/lib/core/facets/array/conjoin_rb.html +2 -2
  70. data/doc/rdoc/core/files/lib/core/facets/array/delete_rb.html +2 -2
  71. data/doc/rdoc/core/files/lib/core/facets/array/index_rb.html +3 -3
  72. data/doc/rdoc/core/files/lib/core/facets/array/indexable_rb.html +2 -2
  73. data/doc/rdoc/core/files/lib/core/facets/array/merge_rb.html +2 -2
  74. data/doc/rdoc/core/files/lib/core/facets/array/not_empty_rb.html +2 -2
  75. data/doc/rdoc/core/files/lib/core/facets/array/only_rb.html +2 -2
  76. data/doc/rdoc/core/files/lib/core/facets/array/pad_rb.html +2 -2
  77. data/doc/rdoc/core/files/lib/core/facets/array/permutation_rb.html +2 -2
  78. data/doc/rdoc/core/files/lib/core/facets/array/product_rb.html +2 -2
  79. data/doc/rdoc/core/files/lib/core/facets/array/recursively_rb.html +2 -2
  80. data/doc/rdoc/core/files/lib/core/facets/array/rotate_rb.html +2 -2
  81. data/doc/rdoc/core/files/lib/core/facets/array/select_rb.html +2 -2
  82. data/doc/rdoc/core/files/lib/core/facets/array/splice_rb.html +2 -2
  83. data/doc/rdoc/core/files/lib/core/facets/array/stackable_rb.html +2 -2
  84. data/doc/rdoc/core/files/lib/core/facets/array/traverse_rb.html +2 -2
  85. data/doc/rdoc/core/files/lib/core/facets/array_rb.html +2 -2
  86. data/doc/rdoc/core/files/lib/core/facets/binding/caller_rb.html +2 -2
  87. data/doc/rdoc/core/files/lib/core/facets/binding/defined_rb.html +2 -2
  88. data/doc/rdoc/core/files/lib/core/facets/binding/eval_rb.html +2 -2
  89. data/doc/rdoc/core/files/lib/core/facets/binding/local_variables_rb.html +2 -2
  90. data/doc/rdoc/core/files/lib/core/facets/binding/self_rb.html +2 -2
  91. data/doc/rdoc/core/files/lib/core/facets/binding_rb.html +2 -2
  92. data/doc/rdoc/core/files/lib/core/facets/bitmask_rb.html +2 -2
  93. data/doc/rdoc/core/files/lib/core/facets/blank_rb.html +2 -2
  94. data/doc/rdoc/core/files/lib/core/facets/boolean_rb.html +2 -2
  95. data/doc/rdoc/core/files/lib/core/facets/callstack_rb.html +2 -2
  96. data/doc/rdoc/{more/files/lib/more/facets/rope_rb.html → core/files/lib/core/facets/cattr_rb.html} +11 -9
  97. data/doc/rdoc/core/files/lib/core/facets/class/cattr_accessor_rb.html +96 -0
  98. data/doc/rdoc/core/files/lib/core/facets/class/cattr_rb.html +92 -0
  99. data/doc/rdoc/core/files/lib/core/facets/class/cattr_reader_rb.html +96 -0
  100. data/doc/rdoc/core/files/lib/core/facets/class/cattr_writer_rb.html +96 -0
  101. data/doc/rdoc/core/files/lib/core/facets/class/descendents_rb.html +2 -2
  102. data/doc/rdoc/core/files/lib/core/facets/class/methodize_rb.html +2 -2
  103. data/doc/rdoc/core/files/lib/core/facets/class/pathize_rb.html +2 -2
  104. data/doc/rdoc/core/files/lib/core/facets/class/prepend_rb.html +2 -2
  105. data/doc/rdoc/core/files/lib/core/facets/class/subclasses_rb.html +2 -2
  106. data/doc/rdoc/core/files/lib/core/facets/class/to_proc_rb.html +2 -2
  107. data/doc/rdoc/core/files/lib/core/facets/class_rb.html +2 -2
  108. data/doc/rdoc/core/files/lib/core/facets/comparable/bound_rb.html +2 -2
  109. data/doc/rdoc/core/files/lib/core/facets/comparable/cmp_rb.html +2 -2
  110. data/doc/rdoc/core/files/lib/core/facets/comparable/comparable_rb.html +2 -2
  111. data/doc/rdoc/core/files/lib/core/facets/comparable_rb.html +2 -2
  112. data/doc/rdoc/core/files/lib/core/facets/dir/ascend_rb.html +2 -2
  113. data/doc/rdoc/core/files/lib/core/facets/dir/descend_rb.html +2 -2
  114. data/doc/rdoc/core/files/lib/core/facets/dir/multiglob_rb.html +3 -3
  115. data/doc/rdoc/core/files/lib/core/facets/dir/parent_rb.html +2 -2
  116. data/doc/rdoc/core/files/lib/core/facets/dir/recurse_rb.html +2 -2
  117. data/doc/rdoc/core/files/lib/core/facets/dir_rb.html +2 -2
  118. data/doc/rdoc/core/files/lib/core/facets/enumerable/accumulate_rb.html +2 -2
  119. data/doc/rdoc/core/files/lib/core/facets/enumerable/cluster_by_rb.html +2 -2
  120. data/doc/rdoc/core/files/lib/core/facets/enumerable/collect_rb.html +2 -2
  121. data/doc/rdoc/core/files/lib/core/facets/enumerable/commonality_rb.html +2 -2
  122. data/doc/rdoc/core/files/lib/core/facets/enumerable/count_rb.html +2 -2
  123. data/doc/rdoc/core/files/lib/core/facets/enumerable/divide_rb.html +2 -2
  124. data/doc/rdoc/core/files/lib/core/facets/enumerable/duplicates_rb.html +2 -2
  125. data/doc/rdoc/core/files/lib/core/facets/enumerable/each_by_rb.html +2 -2
  126. data/doc/rdoc/core/files/lib/core/facets/enumerable/entropy_rb.html +2 -2
  127. data/doc/rdoc/core/files/lib/core/facets/enumerable/frequency_rb.html +2 -2
  128. data/doc/rdoc/core/files/lib/core/facets/enumerable/group_by_rb.html +2 -2
  129. data/doc/rdoc/core/files/lib/core/facets/enumerable/inject_rb.html +2 -2
  130. data/doc/rdoc/core/files/lib/core/facets/enumerable/map_send_rb.html +2 -2
  131. data/doc/rdoc/core/files/lib/core/facets/enumerable/mash_rb.html +2 -2
  132. data/doc/rdoc/core/files/lib/core/facets/enumerable/mode_rb.html +3 -3
  133. data/doc/rdoc/core/files/lib/core/facets/enumerable/modulate_rb.html +2 -2
  134. data/doc/rdoc/core/files/lib/core/facets/enumerable/none_rb.html +2 -2
  135. data/doc/rdoc/core/files/lib/core/facets/enumerable/occur_rb.html +2 -2
  136. data/doc/rdoc/core/files/lib/core/facets/enumerable/one_rb.html +2 -2
  137. data/doc/rdoc/core/files/lib/core/facets/enumerable/probability_rb.html +2 -2
  138. data/doc/rdoc/core/files/lib/core/facets/enumerable/split_rb.html +3 -3
  139. data/doc/rdoc/core/files/lib/core/facets/enumerable/sum_rb.html +2 -2
  140. data/doc/rdoc/core/files/lib/core/facets/enumerable/uniq_by_rb.html +2 -2
  141. data/doc/rdoc/core/files/lib/core/facets/enumerable_rb.html +2 -2
  142. data/doc/rdoc/core/files/lib/core/facets/exception/detail_rb.html +2 -2
  143. data/doc/rdoc/core/files/lib/core/facets/exception/suppress_rb.html +2 -2
  144. data/doc/rdoc/core/files/lib/core/facets/exception_rb.html +2 -2
  145. data/doc/rdoc/core/files/lib/core/facets/file/append_rb.html +92 -0
  146. data/doc/rdoc/core/files/lib/core/facets/file/create_rb.html +92 -0
  147. data/doc/rdoc/core/files/lib/core/facets/file/null_rb.html +2 -2
  148. data/doc/rdoc/core/files/lib/core/facets/file/read_rb.html +2 -2
  149. data/doc/rdoc/core/files/lib/core/facets/file/rewrite_rb.html +3 -3
  150. data/doc/rdoc/core/files/lib/core/facets/file/rootname_rb.html +2 -2
  151. data/doc/rdoc/core/files/lib/core/facets/file/split_root_rb.html +2 -2
  152. data/doc/rdoc/core/files/lib/core/facets/file/write_rb.html +13 -3
  153. data/doc/rdoc/core/files/lib/core/facets/file/writelines_rb.html +92 -0
  154. data/doc/rdoc/core/files/lib/core/facets/file_rb.html +2 -2
  155. data/doc/rdoc/core/files/lib/core/facets/filetest/root_rb.html +2 -2
  156. data/doc/rdoc/core/files/lib/core/facets/filetest_rb.html +2 -2
  157. data/doc/rdoc/core/files/lib/core/facets/float/round_rb.html +2 -2
  158. data/doc/rdoc/core/files/lib/core/facets/float_rb.html +2 -2
  159. data/doc/rdoc/core/files/lib/core/facets/functor_rb.html +2 -2
  160. data/doc/rdoc/core/files/lib/core/facets/hash/alias_rb.html +2 -2
  161. data/doc/rdoc/core/files/lib/core/facets/hash/argumentize_rb.html +2 -2
  162. data/doc/rdoc/core/files/lib/core/facets/hash/at_rb.html +2 -2
  163. data/doc/rdoc/core/files/lib/core/facets/hash/autonew_rb.html +2 -2
  164. data/doc/rdoc/core/files/lib/core/facets/hash/collate_rb.html +2 -2
  165. data/doc/rdoc/core/files/lib/core/facets/hash/delete_rb.html +2 -2
  166. data/doc/rdoc/core/files/lib/core/facets/hash/diff_rb.html +2 -2
  167. data/doc/rdoc/core/files/lib/core/facets/hash/except_rb.html +2 -2
  168. data/doc/rdoc/core/files/lib/core/facets/hash/insert_rb.html +2 -2
  169. data/doc/rdoc/core/files/lib/core/facets/hash/inverse_rb.html +2 -2
  170. data/doc/rdoc/core/files/lib/core/facets/hash/join_rb.html +2 -2
  171. data/doc/rdoc/core/files/lib/core/facets/hash/keys_rb.html +2 -2
  172. data/doc/rdoc/core/files/lib/core/facets/hash/mash_rb.html +2 -2
  173. data/doc/rdoc/core/files/lib/core/facets/hash/merge_rb.html +2 -2
  174. data/doc/rdoc/core/files/lib/core/facets/hash/op_add_rb.html +92 -0
  175. data/doc/rdoc/core/files/lib/core/facets/hash/op_and_rb.html +92 -0
  176. data/doc/rdoc/core/files/lib/core/facets/hash/op_mul_rb.html +92 -0
  177. data/doc/rdoc/core/files/lib/core/facets/hash/op_or_rb.html +92 -0
  178. data/doc/rdoc/core/files/lib/core/facets/hash/op_push_rb.html +2 -2
  179. data/doc/rdoc/core/files/lib/core/facets/hash/op_rb.html +12 -3
  180. data/doc/rdoc/core/files/lib/core/facets/hash/op_sub_rb.html +92 -0
  181. data/doc/rdoc/core/files/lib/core/facets/hash/recursive_merge_rb.html +2 -2
  182. data/doc/rdoc/core/files/lib/core/facets/hash/recursively_rb.html +2 -2
  183. data/doc/rdoc/core/files/lib/core/facets/hash/rekey_rb.html +2 -2
  184. data/doc/rdoc/core/files/lib/core/facets/hash/select_rb.html +2 -2
  185. data/doc/rdoc/core/files/lib/core/facets/hash/slice_rb.html +3 -3
  186. data/doc/rdoc/core/files/lib/core/facets/hash/swap_rb.html +2 -2
  187. data/doc/rdoc/core/files/lib/core/facets/hash/to_h_rb.html +2 -2
  188. data/doc/rdoc/core/files/lib/core/facets/hash/to_proc_rb.html +2 -2
  189. data/doc/rdoc/core/files/lib/core/facets/hash/to_struct_rb.html +2 -2
  190. data/doc/rdoc/core/files/lib/core/facets/hash/traverse_rb.html +2 -2
  191. data/doc/rdoc/core/files/lib/core/facets/hash/update_rb.html +2 -2
  192. data/doc/rdoc/core/files/lib/core/facets/hash/weave_rb.html +2 -2
  193. data/doc/rdoc/core/files/lib/core/facets/hash/zipnew_rb.html +2 -2
  194. data/doc/rdoc/core/files/lib/core/facets/hash_rb.html +2 -2
  195. data/doc/rdoc/core/files/lib/core/facets/indexable_rb.html +4 -4
  196. data/doc/rdoc/core/files/lib/core/facets/integer/even_rb.html +2 -2
  197. data/doc/rdoc/core/files/lib/core/facets/integer/factorial_rb.html +2 -2
  198. data/doc/rdoc/core/files/lib/core/facets/integer/multiple_rb.html +2 -2
  199. data/doc/rdoc/core/files/lib/core/facets/integer/odd_rb.html +3 -3
  200. data/doc/rdoc/core/files/lib/core/facets/integer/of_rb.html +2 -2
  201. data/doc/rdoc/core/files/lib/core/facets/integer/ordinal_rb.html +2 -2
  202. data/doc/rdoc/core/files/lib/core/facets/integer_rb.html +2 -2
  203. data/doc/rdoc/core/files/lib/core/facets/kernel/__callee___rb.html +2 -2
  204. data/doc/rdoc/core/files/lib/core/facets/kernel/__class___rb.html +2 -2
  205. data/doc/rdoc/core/files/lib/core/facets/kernel/__dir___rb.html +2 -2
  206. data/doc/rdoc/core/files/lib/core/facets/kernel/__get___rb.html +2 -2
  207. data/doc/rdoc/core/files/lib/core/facets/kernel/__method___rb.html +2 -2
  208. data/doc/rdoc/core/files/lib/core/facets/kernel/__set___rb.html +2 -2
  209. data/doc/rdoc/core/files/lib/core/facets/kernel/as_rb.html +2 -2
  210. data/doc/rdoc/core/files/lib/core/facets/kernel/ask_rb.html +2 -2
  211. data/doc/rdoc/core/files/lib/core/facets/kernel/attr_singleton_rb.html +2 -2
  212. data/doc/rdoc/core/files/lib/core/facets/kernel/complete_rb.html +2 -2
  213. data/doc/rdoc/core/files/lib/core/facets/kernel/constant_rb.html +2 -2
  214. data/doc/rdoc/core/files/lib/core/facets/kernel/d_rb.html +2 -2
  215. data/doc/rdoc/core/files/lib/core/facets/kernel/deep_copy_rb.html +2 -2
  216. data/doc/rdoc/core/files/lib/core/facets/kernel/demo_rb.html +2 -2
  217. data/doc/rdoc/core/files/lib/core/facets/kernel/ergo_rb.html +2 -2
  218. data/doc/rdoc/core/files/lib/core/facets/kernel/here_rb.html +2 -2
  219. data/doc/rdoc/core/files/lib/core/facets/kernel/in_rb.html +2 -2
  220. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_assign_rb.html +2 -2
  221. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_class_rb.html +2 -2
  222. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_exec_rb.html +2 -2
  223. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_rb.html +2 -2
  224. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_send_rb.html +2 -2
  225. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_variables_rb.html +2 -2
  226. data/doc/rdoc/core/files/lib/core/facets/kernel/maybe_rb.html +2 -2
  227. data/doc/rdoc/core/files/lib/core/facets/kernel/not_nil_rb.html +2 -2
  228. data/doc/rdoc/core/files/lib/core/facets/kernel/object_class_rb.html +2 -2
  229. data/doc/rdoc/core/files/lib/core/facets/kernel/object_hexid_rb.html +2 -2
  230. data/doc/rdoc/core/files/lib/core/facets/kernel/object_send_rb.html +2 -2
  231. data/doc/rdoc/core/files/lib/core/facets/kernel/p_rb.html +2 -2
  232. data/doc/rdoc/core/files/lib/core/facets/kernel/populate_rb.html +2 -2
  233. data/doc/rdoc/core/files/lib/core/facets/kernel/qua_class_rb.html +2 -2
  234. data/doc/rdoc/core/files/lib/core/facets/kernel/require_all_rb.html +2 -2
  235. data/doc/rdoc/core/files/lib/core/facets/kernel/require_local_rb.html +2 -2
  236. data/doc/rdoc/core/files/lib/core/facets/kernel/resc_rb.html +2 -2
  237. data/doc/rdoc/core/files/lib/core/facets/kernel/respond_rb.html +2 -2
  238. data/doc/rdoc/core/files/lib/core/facets/kernel/returning_rb.html +2 -2
  239. data/doc/rdoc/core/files/lib/core/facets/kernel/silence_rb.html +2 -2
  240. data/doc/rdoc/core/files/lib/core/facets/kernel/singleton_class_rb.html +2 -2
  241. data/doc/rdoc/core/files/lib/core/facets/kernel/tap_rb.html +2 -2
  242. data/doc/rdoc/core/files/lib/core/facets/kernel/try_rb.html +2 -2
  243. data/doc/rdoc/core/files/lib/core/facets/kernel/val_rb.html +2 -2
  244. data/doc/rdoc/core/files/lib/core/facets/kernel/with_rb.html +2 -2
  245. data/doc/rdoc/core/files/lib/core/facets/kernel_rb.html +2 -2
  246. data/doc/rdoc/core/files/lib/core/facets/lazy_rb.html +2 -2
  247. data/doc/rdoc/core/files/lib/core/facets/matchdata/match_rb.html +2 -2
  248. data/doc/rdoc/core/files/lib/core/facets/matchdata/matchset_rb.html +2 -2
  249. data/doc/rdoc/core/files/lib/core/facets/matchdata_rb.html +2 -2
  250. data/doc/rdoc/core/files/lib/core/facets/metaid_rb.html +2 -2
  251. data/doc/rdoc/core/files/lib/core/facets/module/abstract_rb.html +2 -2
  252. data/doc/rdoc/core/files/lib/core/facets/module/alias_accessor_rb.html +2 -2
  253. data/doc/rdoc/core/files/lib/core/facets/module/alias_method_chain_rb.html +2 -2
  254. data/doc/rdoc/core/files/lib/core/facets/module/alias_module_function_rb.html +2 -2
  255. data/doc/rdoc/core/files/lib/core/facets/module/ancestor_rb.html +2 -2
  256. data/doc/rdoc/core/files/lib/core/facets/module/basename_rb.html +2 -2
  257. data/doc/rdoc/core/files/lib/core/facets/module/can_rb.html +2 -2
  258. data/doc/rdoc/core/files/lib/core/facets/module/class_rb.html +3 -3
  259. data/doc/rdoc/core/files/lib/core/facets/module/conflict_rb.html +3 -3
  260. data/doc/rdoc/core/files/lib/core/facets/module/include_function_module_rb.html +2 -2
  261. data/doc/rdoc/core/files/lib/core/facets/module/instance_methods_rb.html +3 -3
  262. data/doc/rdoc/core/files/lib/core/facets/module/integrate_rb.html +2 -2
  263. data/doc/rdoc/core/files/lib/core/facets/module/is_rb.html +2 -2
  264. data/doc/rdoc/core/files/lib/core/facets/module/methodize_rb.html +2 -2
  265. data/doc/rdoc/core/files/lib/core/facets/module/modspace_rb.html +2 -2
  266. data/doc/rdoc/core/files/lib/core/facets/module/module_load_rb.html +2 -2
  267. data/doc/rdoc/core/files/lib/core/facets/module/nesting_rb.html +2 -2
  268. data/doc/rdoc/core/files/lib/core/facets/module/op_rb.html +2 -2
  269. data/doc/rdoc/core/files/lib/core/facets/module/pathize_rb.html +2 -2
  270. data/doc/rdoc/core/files/lib/core/facets/module/prepend_rb.html +3 -3
  271. data/doc/rdoc/core/files/lib/core/facets/module/redefine_method_rb.html +2 -2
  272. data/doc/rdoc/core/files/lib/core/facets/module/redirect_method_rb.html +2 -2
  273. data/doc/rdoc/core/files/lib/core/facets/module/rename_method_rb.html +2 -2
  274. data/doc/rdoc/core/files/lib/core/facets/module/revise_rb.html +2 -2
  275. data/doc/rdoc/core/files/lib/core/facets/module/spacename_rb.html +2 -2
  276. data/doc/rdoc/core/files/lib/core/facets/module/wrap_method_rb.html +2 -2
  277. data/doc/rdoc/core/files/lib/core/facets/module_rb.html +2 -2
  278. data/doc/rdoc/core/files/lib/core/facets/nilclass/ergo_rb.html +2 -2
  279. data/doc/rdoc/core/files/lib/core/facets/nilclass/to_f_rb.html +2 -2
  280. data/doc/rdoc/core/files/lib/core/facets/nilclass_rb.html +2 -2
  281. data/doc/rdoc/core/files/lib/core/facets/numeric/approx_rb.html +2 -2
  282. data/doc/rdoc/core/files/lib/core/facets/numeric/distance_rb.html +2 -2
  283. data/doc/rdoc/core/files/lib/core/facets/numeric/round_rb.html +2 -2
  284. data/doc/rdoc/core/files/lib/core/facets/numeric_rb.html +2 -2
  285. data/doc/rdoc/core/files/lib/core/facets/proc/bind_rb.html +2 -2
  286. data/doc/rdoc/core/files/lib/core/facets/proc/compose_rb.html +2 -2
  287. data/doc/rdoc/core/files/lib/core/facets/proc/curry_rb.html +2 -2
  288. data/doc/rdoc/core/files/lib/core/facets/proc/to_method_rb.html +2 -2
  289. data/doc/rdoc/core/files/lib/core/facets/proc/update_rb.html +2 -2
  290. data/doc/rdoc/core/files/lib/core/facets/proc_rb.html +2 -2
  291. data/doc/rdoc/core/files/lib/core/facets/range/combine_rb.html +2 -2
  292. data/doc/rdoc/core/files/lib/core/facets/range/overlap_rb.html +2 -2
  293. data/doc/rdoc/core/files/lib/core/facets/range/to_r_rb.html +2 -2
  294. data/doc/rdoc/core/files/lib/core/facets/range/umbrella_rb.html +2 -2
  295. data/doc/rdoc/core/files/lib/core/facets/range/within_rb.html +2 -2
  296. data/doc/rdoc/core/files/lib/core/facets/range_rb.html +2 -2
  297. data/doc/rdoc/core/files/lib/core/facets/regexp/arity_rb.html +2 -2
  298. data/doc/rdoc/core/files/lib/core/facets/regexp/to_re_rb.html +2 -2
  299. data/doc/rdoc/core/files/lib/core/facets/regexp_rb.html +2 -2
  300. data/doc/rdoc/core/files/lib/core/facets/stackable_rb.html +2 -2
  301. data/doc/rdoc/core/files/lib/core/facets/string/align_rb.html +2 -2
  302. data/doc/rdoc/core/files/lib/core/facets/string/bracket_rb.html +2 -2
  303. data/doc/rdoc/core/files/lib/core/facets/string/bytes_rb.html +2 -2
  304. data/doc/rdoc/core/files/lib/core/facets/string/camelcase_rb.html +2 -2
  305. data/doc/rdoc/core/files/lib/core/facets/string/capitalized_rb.html +2 -2
  306. data/doc/rdoc/core/files/lib/core/facets/string/chars_rb.html +2 -2
  307. data/doc/rdoc/core/files/lib/core/facets/string/chomp_rb.html +2 -2
  308. data/doc/rdoc/core/files/lib/core/facets/string/cleave_rb.html +2 -2
  309. data/doc/rdoc/core/files/lib/core/facets/string/divide_rb.html +2 -2
  310. data/doc/rdoc/core/files/lib/core/facets/string/each_char_rb.html +2 -2
  311. data/doc/rdoc/core/files/lib/core/facets/string/each_word_rb.html +2 -2
  312. data/doc/rdoc/core/files/lib/core/facets/string/end_with_rb.html +2 -2
  313. data/doc/rdoc/core/files/lib/core/facets/string/fold_rb.html +2 -2
  314. data/doc/rdoc/core/files/lib/core/facets/string/interpolate_rb.html +2 -2
  315. data/doc/rdoc/core/files/lib/core/facets/string/line_wrap_rb.html +2 -2
  316. data/doc/rdoc/core/files/lib/core/facets/string/lines_rb.html +2 -2
  317. data/doc/rdoc/core/files/lib/core/facets/string/methodize_rb.html +3 -3
  318. data/doc/rdoc/core/files/lib/core/facets/string/modulize_rb.html +92 -0
  319. data/doc/rdoc/core/files/lib/core/facets/string/mscan_rb.html +2 -2
  320. data/doc/rdoc/core/files/lib/core/facets/string/natcmp_rb.html +2 -2
  321. data/doc/rdoc/core/files/lib/core/facets/string/nchar_rb.html +2 -2
  322. data/doc/rdoc/core/files/lib/core/facets/string/op_sub_rb.html +2 -2
  323. data/doc/rdoc/core/files/lib/core/facets/string/pathize_rb.html +3 -3
  324. data/doc/rdoc/core/files/lib/core/facets/string/range_rb.html +2 -2
  325. data/doc/rdoc/core/files/lib/core/facets/string/rewrite_rb.html +2 -2
  326. data/doc/rdoc/core/files/lib/core/facets/string/shatter_rb.html +2 -2
  327. data/doc/rdoc/core/files/lib/core/facets/string/snakecase_rb.html +2 -2
  328. data/doc/rdoc/core/files/lib/core/facets/string/splice_rb.html +3 -3
  329. data/doc/rdoc/core/files/lib/core/facets/string/start_with_rb.html +2 -2
  330. data/doc/rdoc/core/files/lib/core/facets/string/subtract_rb.html +2 -2
  331. data/doc/rdoc/core/files/lib/core/facets/string/tab_rb.html +2 -2
  332. data/doc/rdoc/core/files/lib/core/facets/string/titlecase_rb.html +2 -2
  333. data/doc/rdoc/core/files/lib/core/facets/string/to_re_rb.html +2 -2
  334. data/doc/rdoc/core/files/lib/core/facets/string/variablize_rb.html +3 -3
  335. data/doc/rdoc/core/files/lib/core/facets/string/word_wrap_rb.html +2 -2
  336. data/doc/rdoc/core/files/lib/core/facets/string/words_rb.html +2 -2
  337. data/doc/rdoc/core/files/lib/core/facets/string/xor_rb.html +2 -2
  338. data/doc/rdoc/core/files/lib/core/facets/string_rb.html +2 -2
  339. data/doc/rdoc/core/files/lib/core/facets/symbol/chomp_rb.html +2 -2
  340. data/doc/rdoc/core/files/lib/core/facets/symbol/generate_rb.html +2 -2
  341. data/doc/rdoc/core/files/lib/core/facets/symbol/not_rb.html +2 -2
  342. data/doc/rdoc/core/files/lib/core/facets/symbol/plain_rb.html +3 -3
  343. data/doc/rdoc/core/files/lib/core/facets/symbol/query_rb.html +2 -2
  344. data/doc/rdoc/{more/files/lib/more/facets/string/style_rb.html → core/files/lib/core/facets/symbol/re_s_rb.html} +7 -7
  345. data/doc/rdoc/core/files/lib/core/facets/symbol/setter_rb.html +2 -2
  346. data/doc/rdoc/core/files/lib/core/facets/symbol/succ_rb.html +2 -2
  347. data/doc/rdoc/core/files/lib/core/facets/symbol/to_proc_rb.html +2 -2
  348. data/doc/rdoc/core/files/lib/core/facets/symbol/variablize_rb.html +2 -2
  349. data/doc/rdoc/core/files/lib/core/facets/symbol_rb.html +2 -2
  350. data/doc/rdoc/core/files/lib/core/facets/time/advance_rb.html +2 -2
  351. data/doc/rdoc/core/files/lib/core/facets/time/ago_rb.html +2 -2
  352. data/doc/rdoc/core/files/lib/core/facets/time/change_rb.html +2 -2
  353. data/doc/rdoc/core/files/lib/core/facets/time/elapse_rb.html +2 -2
  354. data/doc/rdoc/core/files/lib/core/facets/time/hence_rb.html +2 -2
  355. data/doc/rdoc/core/files/lib/core/facets/time/round_rb.html +2 -2
  356. data/doc/rdoc/core/files/lib/core/facets/time/set_rb.html +2 -2
  357. data/doc/rdoc/core/files/lib/core/facets/time/stamp_rb.html +2 -2
  358. data/doc/rdoc/core/files/lib/core/facets/time/to_time_rb.html +2 -2
  359. data/doc/rdoc/core/files/lib/core/facets/time/trunc_rb.html +2 -2
  360. data/doc/rdoc/core/files/lib/core/facets/time_rb.html +2 -2
  361. data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +2 -2
  362. data/doc/rdoc/core/files/lib/core/facets/unboundmethod/arguments_rb.html +2 -2
  363. data/doc/rdoc/core/files/lib/core/facets/unboundmethod/name_rb.html +2 -2
  364. data/doc/rdoc/core/files/lib/core/facets/unboundmethod_rb.html +2 -2
  365. data/doc/rdoc/core/fr_class_index.html +3 -3
  366. data/doc/rdoc/core/fr_file_index.html +18 -3
  367. data/doc/rdoc/core/fr_method_index.html +359 -352
  368. data/doc/rdoc/core/rdoc-style.css +18 -16
  369. data/doc/rdoc/lore/classes/Array.html +9 -11
  370. data/doc/rdoc/lore/classes/CGI.html +10 -12
  371. data/doc/rdoc/lore/classes/Config.html +6 -8
  372. data/doc/rdoc/lore/classes/Continuation.html +4 -6
  373. data/doc/rdoc/lore/classes/Date.html +40 -42
  374. data/doc/rdoc/lore/classes/DateTime.html +39 -41
  375. data/doc/rdoc/lore/classes/File.html +4 -6
  376. data/doc/rdoc/lore/classes/FileUtils.html +16 -18
  377. data/doc/rdoc/lore/classes/GetoptLong.html +4 -6
  378. data/doc/rdoc/lore/classes/GetoptLong/DSL.html +12 -14
  379. data/doc/rdoc/lore/classes/Kernel.html +10 -12
  380. data/doc/rdoc/lore/classes/Logger.html +8 -10
  381. data/doc/rdoc/lore/classes/Logger/Ansicolor.html +22 -24
  382. data/doc/rdoc/lore/classes/Logger/LogDevice.html +4 -6
  383. data/doc/rdoc/lore/classes/NilClass.html +4 -6
  384. data/doc/rdoc/lore/classes/OpenStruct.html +63 -44
  385. data/doc/rdoc/lore/classes/Pathname.html +25 -27
  386. data/doc/rdoc/lore/classes/Set.html +4 -6
  387. data/doc/rdoc/lore/classes/Shellwords.html +4 -6
  388. data/doc/rdoc/lore/classes/String.html +6 -8
  389. data/doc/rdoc/lore/classes/Time.html +6 -8
  390. data/doc/rdoc/lore/classes/URI.html +24 -26
  391. data/doc/rdoc/lore/classes/URI/Hash.html +4 -6
  392. data/doc/rdoc/lore/classes/URI/Kernel.html +6 -8
  393. data/doc/rdoc/lore/classes/Zlib.html +188 -0
  394. data/doc/rdoc/lore/created.rid +1 -1
  395. data/doc/rdoc/lore/files/README.html +25 -10
  396. data/doc/rdoc/lore/files/doc/README_lore.html +2 -2
  397. data/doc/rdoc/lore/files/lib/lore/facets/basicobject_rb.html +2 -2
  398. data/doc/rdoc/lore/files/lib/lore/facets/cgi_rb.html +2 -2
  399. data/doc/rdoc/lore/files/lib/lore/facets/continuation_rb.html +2 -2
  400. data/doc/rdoc/lore/files/lib/lore/facets/date_rb.html +2 -2
  401. data/doc/rdoc/lore/files/lib/lore/facets/fileutils/head_rb.html +2 -2
  402. data/doc/rdoc/lore/files/lib/lore/facets/fileutils/safe_ln_rb.html +2 -2
  403. data/doc/rdoc/lore/files/lib/lore/facets/fileutils/slice_rb.html +2 -2
  404. data/doc/rdoc/lore/files/lib/lore/facets/fileutils/tail_rb.html +2 -2
  405. data/doc/rdoc/lore/files/lib/lore/facets/fileutils/wc_rb.html +2 -2
  406. data/doc/rdoc/lore/files/lib/lore/facets/fileutils/whereis_rb.html +2 -2
  407. data/doc/rdoc/lore/files/lib/lore/facets/fileutils/which_rb.html +2 -2
  408. data/doc/rdoc/lore/files/lib/lore/facets/fileutils_rb.html +2 -2
  409. data/doc/rdoc/lore/files/lib/lore/facets/getoptlong_rb.html +2 -2
  410. data/doc/rdoc/lore/files/lib/lore/facets/logger_rb.html +2 -2
  411. data/doc/rdoc/lore/files/lib/lore/facets/ostruct_rb.html +3 -3
  412. data/doc/rdoc/lore/files/lib/lore/facets/pathname_rb.html +3 -3
  413. data/doc/rdoc/lore/files/lib/lore/facets/rbconfig_rb.html +2 -2
  414. data/doc/rdoc/lore/files/lib/lore/facets/set_rb.html +2 -2
  415. data/doc/rdoc/lore/files/lib/lore/facets/shellwords_rb.html +2 -2
  416. data/doc/rdoc/lore/files/lib/lore/facets/uri_rb.html +2 -2
  417. data/doc/rdoc/lore/files/lib/lore/facets/yaml_rb.html +2 -2
  418. data/doc/rdoc/lore/files/lib/lore/facets/zlib_rb.html +97 -0
  419. data/doc/rdoc/lore/fr_class_index.html +4 -3
  420. data/doc/rdoc/lore/fr_file_index.html +4 -3
  421. data/doc/rdoc/lore/fr_method_index.html +19 -15
  422. data/doc/rdoc/lore/rdoc-style.css +18 -16
  423. data/doc/rdoc/more/classes/ANSICode.html +68 -70
  424. data/doc/rdoc/more/classes/Advisable.html +39 -41
  425. data/doc/rdoc/more/classes/Advisable/Method.html +22 -24
  426. data/doc/rdoc/more/classes/Archive.html +2 -2
  427. data/doc/rdoc/more/classes/Archive/Tar.html +2 -2
  428. data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +29 -31
  429. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +30 -32
  430. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +21 -23
  431. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +33 -35
  432. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +35 -37
  433. data/doc/rdoc/more/classes/Argvector.html +78 -80
  434. data/doc/rdoc/more/classes/Association.html +30 -32
  435. data/doc/rdoc/more/classes/Association/Kernel.html +10 -12
  436. data/doc/rdoc/more/classes/Autoarray.html +8 -10
  437. data/doc/rdoc/more/classes/BBCode.html +36 -38
  438. data/doc/rdoc/more/classes/BaseX.html +18 -20
  439. data/doc/rdoc/more/classes/BiCrypt.html +69 -71
  440. data/doc/rdoc/more/classes/BigDuration.html +32 -34
  441. data/doc/rdoc/more/classes/BinReadable.html +87 -89
  442. data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +27 -29
  443. data/doc/rdoc/more/classes/Binding.html +10 -12
  444. data/doc/rdoc/more/classes/BlankSlate.html +4 -6
  445. data/doc/rdoc/more/classes/Buildable.html +6 -8
  446. data/doc/rdoc/more/classes/BuildingBlock.html +18 -20
  447. data/doc/rdoc/more/classes/CLI.html +2 -2
  448. data/doc/rdoc/more/classes/CLI/Arguments.html +78 -80
  449. data/doc/rdoc/more/classes/CLI/Command.html +24 -26
  450. data/doc/rdoc/more/classes/CLI/Command/UniversalOptions.html +2 -2
  451. data/doc/rdoc/more/classes/CLI/NoCommandError.html +6 -8
  452. data/doc/rdoc/more/classes/CLI/NoOptionError.html +6 -8
  453. data/doc/rdoc/more/classes/CacheDecorator.html +23 -25
  454. data/doc/rdoc/more/classes/Capsule.html +43 -45
  455. data/doc/rdoc/more/classes/Capsule/MissingFile.html +2 -2
  456. data/doc/rdoc/more/classes/Chain.html +19 -21
  457. data/doc/rdoc/more/classes/Cloneable.html +6 -8
  458. data/doc/rdoc/more/classes/ConsoleUtils.html +20 -22
  459. data/doc/rdoc/more/classes/Coroutine.html +30 -32
  460. data/doc/rdoc/more/classes/Crypt.html +18 -20
  461. data/doc/rdoc/more/classes/CssFilter.html +24 -26
  462. data/doc/rdoc/more/classes/CssTree.html +10 -12
  463. data/doc/rdoc/more/classes/Dictionary.html +230 -232
  464. data/doc/rdoc/more/classes/DictionaryMatcher.html +40 -42
  465. data/doc/rdoc/more/classes/DictionaryMatcher/MatchData.html +6 -8
  466. data/doc/rdoc/more/classes/Downloader.html +26 -28
  467. data/doc/rdoc/more/classes/Duration.html +70 -72
  468. data/doc/rdoc/more/classes/Enumerable.html +46 -48
  469. data/doc/rdoc/more/classes/Enumerable/Elementor.html +18 -20
  470. data/doc/rdoc/more/classes/Enumerable/Enumerator.html +6 -8
  471. data/doc/rdoc/more/classes/EnumerablePass.html +17 -19
  472. data/doc/rdoc/more/classes/Equatable.html +18 -20
  473. data/doc/rdoc/more/classes/EventHook.html +10 -12
  474. data/doc/rdoc/more/classes/Expirable.html +19 -21
  475. data/doc/rdoc/more/classes/FileList.html +54 -56
  476. data/doc/rdoc/more/classes/FileShell.html +149 -151
  477. data/doc/rdoc/more/classes/Fileable.html +16 -18
  478. data/doc/rdoc/more/classes/Fileable/DSL.html +43 -45
  479. data/doc/rdoc/more/classes/Hash.html +36 -38
  480. data/doc/rdoc/more/classes/Hash2Xml.html +6 -8
  481. data/doc/rdoc/more/classes/HtmlFilter.html +11 -13
  482. data/doc/rdoc/more/classes/IORedirect.html +10 -12
  483. data/doc/rdoc/more/classes/InfinityClass.html +38 -40
  484. data/doc/rdoc/more/classes/InfinityClass/Numeric.html +25 -27
  485. data/doc/rdoc/more/classes/Ini.html +39 -41
  486. data/doc/rdoc/more/classes/Instantiable.html +11 -13
  487. data/doc/rdoc/more/classes/Instantize.html +10 -12
  488. data/doc/rdoc/more/classes/Interval.html +189 -191
  489. data/doc/rdoc/more/classes/It.html +14 -16
  490. data/doc/rdoc/more/classes/LRUCache.html +40 -42
  491. data/doc/rdoc/more/classes/LRUCache/Item.html +2 -2
  492. data/doc/rdoc/more/classes/LRUCache/Sentinel.html +2 -2
  493. data/doc/rdoc/more/classes/LinkedList.html +70 -72
  494. data/doc/rdoc/more/classes/LinkedList/Node.html +6 -8
  495. data/doc/rdoc/more/classes/MissingArgument.html +2 -2
  496. data/doc/rdoc/more/classes/Module.html +173 -175
  497. data/doc/rdoc/more/classes/Multiton.html +14 -16
  498. data/doc/rdoc/more/classes/Multiton/Inclusive.html +2 -2
  499. data/doc/rdoc/more/classes/Multiton/MetaMethods.html +30 -32
  500. data/doc/rdoc/more/classes/NackClass.html +2 -2
  501. data/doc/rdoc/more/classes/Net.html +2 -2
  502. data/doc/rdoc/more/classes/Net/SMTP.html +10 -12
  503. data/doc/rdoc/more/classes/NullClass.html +26 -28
  504. data/doc/rdoc/more/classes/ObjectReflection.html +8 -10
  505. data/doc/rdoc/more/classes/OpEsc.html +7 -9
  506. data/doc/rdoc/more/classes/OpenCascade.html +48 -13
  507. data/doc/rdoc/more/classes/OpenCollection.html +10 -12
  508. data/doc/rdoc/more/classes/OpenHash.html +11 -13
  509. data/doc/rdoc/more/classes/OpenObject.html +97 -99
  510. data/doc/rdoc/more/classes/PQueue.html +86 -88
  511. data/doc/rdoc/more/classes/Paramix.html +13 -15
  512. data/doc/rdoc/more/classes/Paramix/Delegator.html +18 -20
  513. data/doc/rdoc/more/classes/PathList.html +10 -12
  514. data/doc/rdoc/more/classes/PathList/Finder.html +10 -12
  515. data/doc/rdoc/more/classes/Platform.html +24 -26
  516. data/doc/rdoc/more/classes/Pool.html +20 -22
  517. data/doc/rdoc/more/classes/Proc.html +11 -13
  518. data/doc/rdoc/more/classes/ProgressBar.html +54 -56
  519. data/doc/rdoc/more/classes/Prototype.html +30 -32
  520. data/doc/rdoc/more/classes/RWDelegator.html +18 -20
  521. data/doc/rdoc/more/classes/Random.html +7 -9
  522. data/doc/rdoc/more/classes/Random/Array.html +39 -41
  523. data/doc/rdoc/more/classes/Random/Hash.html +54 -56
  524. data/doc/rdoc/more/classes/Random/Object.html +6 -8
  525. data/doc/rdoc/more/classes/Random/String.html +36 -38
  526. data/doc/rdoc/more/classes/Random/String/Self.html +11 -13
  527. data/doc/rdoc/more/classes/Recorder.html +18 -20
  528. data/doc/rdoc/more/classes/RecursiveDependency.html +2 -2
  529. data/doc/rdoc/more/classes/Reference.html +21 -23
  530. data/doc/rdoc/more/classes/Registerable.html +15 -17
  531. data/doc/rdoc/more/classes/Semaphore.html +38 -40
  532. data/doc/rdoc/more/classes/Settings.html +30 -32
  533. data/doc/rdoc/more/classes/Settings/Setting.html +15 -17
  534. data/doc/rdoc/more/classes/Settings/SettingCollection.html +6 -8
  535. data/doc/rdoc/more/classes/SimpleStringIO.html +10 -12
  536. data/doc/rdoc/more/classes/Snapshot.html +8 -10
  537. data/doc/rdoc/more/classes/Snapshot/ValueHolder.html +8 -10
  538. data/doc/rdoc/more/classes/String/Mask.html +74 -76
  539. data/doc/rdoc/more/classes/String/Words.html +33 -35
  540. data/doc/rdoc/more/classes/Struct.html +6 -8
  541. data/doc/rdoc/more/classes/SyncArray.html +4 -6
  542. data/doc/rdoc/more/classes/SyncHash.html +4 -6
  543. data/doc/rdoc/more/classes/SyncHash/Delegator.html +16 -18
  544. data/doc/rdoc/more/classes/SyncHash/Inheritor.html +16 -18
  545. data/doc/rdoc/more/classes/System.html +255 -257
  546. data/doc/rdoc/more/classes/TagIterator.html +581 -0
  547. data/doc/rdoc/more/classes/Timer.html +50 -52
  548. data/doc/rdoc/more/classes/Timer/Dummy.html +11 -13
  549. data/doc/rdoc/more/classes/TracePoint.html +60 -62
  550. data/doc/rdoc/more/classes/Tuple.html +172 -174
  551. data/doc/rdoc/more/classes/TypeCast.html +2 -2
  552. data/doc/rdoc/more/classes/TypeCast/Class.html +9 -11
  553. data/doc/rdoc/more/classes/TypeCast/Object.html +7 -9
  554. data/doc/rdoc/more/classes/TypeCastException.html +2 -2
  555. data/doc/rdoc/more/classes/Uninheritable.html +8 -10
  556. data/doc/rdoc/more/classes/UploadUtils.html +51 -53
  557. data/doc/rdoc/more/classes/VersionNumber.html +59 -61
  558. data/doc/rdoc/more/classes/Weekdays.html +30 -32
  559. data/doc/rdoc/more/classes/XOXO.html +11 -13
  560. data/doc/rdoc/more/classes/ZipUtils.html +60 -62
  561. data/doc/rdoc/more/classes/ZipUtils/DryRun.html +30 -32
  562. data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +30 -32
  563. data/doc/rdoc/more/classes/ZipUtils/Verbose.html +30 -32
  564. data/doc/rdoc/more/created.rid +1 -1
  565. data/doc/rdoc/more/files/README.html +25 -10
  566. data/doc/rdoc/more/files/doc/README_more.html +2 -2
  567. data/doc/rdoc/more/files/lib/more/facets/1stclassmethod_rb.html +2 -2
  568. data/doc/rdoc/more/files/lib/more/facets/advisable_rb.html +2 -2
  569. data/doc/rdoc/more/files/lib/more/facets/annotations_rb.html +2 -2
  570. data/doc/rdoc/more/files/lib/more/facets/ansicode_rb.html +3 -3
  571. data/doc/rdoc/more/files/lib/more/facets/arguments_rb.html +2 -2
  572. data/doc/rdoc/more/files/lib/more/facets/argvector_rb.html +2 -2
  573. data/doc/rdoc/more/files/lib/more/facets/association_rb.html +2 -2
  574. data/doc/rdoc/more/files/lib/more/facets/attr_rb.html +2 -2
  575. data/doc/rdoc/more/files/lib/more/facets/autoarray_rb.html +2 -2
  576. data/doc/rdoc/more/files/lib/more/facets/autoreload_rb.html +2 -2
  577. data/doc/rdoc/more/files/lib/more/facets/basex_rb.html +2 -2
  578. data/doc/rdoc/more/files/lib/more/facets/bbcode_rb.html +2 -2
  579. data/doc/rdoc/more/files/lib/more/facets/bicrypt_rb.html +2 -2
  580. data/doc/rdoc/more/files/lib/more/facets/binding/opvars_rb.html +2 -2
  581. data/doc/rdoc/more/files/lib/more/facets/binreadable_rb.html +2 -2
  582. data/doc/rdoc/more/files/lib/more/facets/blankslate_rb.html +2 -2
  583. data/doc/rdoc/more/files/lib/more/facets/buildable_rb.html +2 -2
  584. data/doc/rdoc/more/files/lib/more/facets/bytes_rb.html +2 -2
  585. data/doc/rdoc/more/files/lib/more/facets/cachedecorator_rb.html +2 -2
  586. data/doc/rdoc/more/files/lib/more/facets/capsule_rb.html +2 -2
  587. data/doc/rdoc/more/files/lib/more/facets/cattr_rb.html +2 -2
  588. data/doc/rdoc/more/files/lib/more/facets/chain_rb.html +2 -2
  589. data/doc/rdoc/more/files/lib/more/facets/class_extension_rb.html +2 -2
  590. data/doc/rdoc/more/files/lib/more/facets/classmethods_rb.html +2 -2
  591. data/doc/rdoc/more/files/lib/more/facets/cloneable_rb.html +2 -2
  592. data/doc/rdoc/more/files/lib/more/facets/command_rb.html +2 -2
  593. data/doc/rdoc/more/files/lib/more/facets/consoleutils_rb.html +2 -2
  594. data/doc/rdoc/more/files/lib/more/facets/coroutine_rb.html +2 -2
  595. data/doc/rdoc/more/files/lib/more/facets/crypt_rb.html +2 -2
  596. data/doc/rdoc/more/files/lib/more/facets/cssfilter_rb.html +2 -2
  597. data/doc/rdoc/more/files/lib/more/facets/daemonize_rb.html +2 -2
  598. data/doc/rdoc/more/files/lib/more/facets/dependency_rb.html +2 -2
  599. data/doc/rdoc/more/files/lib/more/facets/dictionary_rb.html +2 -2
  600. data/doc/rdoc/more/files/lib/more/facets/dictionarymatcher_rb.html +2 -2
  601. data/doc/rdoc/more/files/lib/more/facets/downloader_rb.html +2 -2
  602. data/doc/rdoc/more/files/lib/more/facets/duplicable_rb.html +2 -2
  603. data/doc/rdoc/more/files/lib/more/facets/duration_rb.html +2 -2
  604. data/doc/rdoc/more/files/lib/more/facets/elementor_rb.html +2 -2
  605. data/doc/rdoc/more/files/lib/more/facets/elementwise_rb.html +2 -2
  606. data/doc/rdoc/more/files/lib/more/facets/enumerablepass_rb.html +2 -2
  607. data/doc/rdoc/more/files/lib/more/facets/equatable_rb.html +2 -2
  608. data/doc/rdoc/more/files/lib/more/facets/eventhook_rb.html +2 -2
  609. data/doc/rdoc/more/files/lib/more/facets/expirable_rb.html +2 -2
  610. data/doc/rdoc/more/files/lib/more/facets/fileable_rb.html +2 -2
  611. data/doc/rdoc/more/files/lib/more/facets/filelist_rb.html +2 -2
  612. data/doc/rdoc/more/files/lib/more/facets/fileshell_rb.html +2 -2
  613. data/doc/rdoc/more/files/lib/more/facets/hash/stringify_keys_rb.html +2 -2
  614. data/doc/rdoc/more/files/lib/more/facets/hash/symbolize_keys_rb.html +2 -2
  615. data/doc/rdoc/more/files/lib/more/facets/heap_rb.html +2 -2
  616. data/doc/rdoc/more/files/lib/more/facets/htmlfilter_rb.html +2 -2
  617. data/doc/rdoc/more/files/lib/more/facets/infinity_rb.html +2 -2
  618. data/doc/rdoc/more/files/lib/more/facets/inheritor_rb.html +2 -2
  619. data/doc/rdoc/more/files/lib/more/facets/ini_rb.html +2 -2
  620. data/doc/rdoc/more/files/lib/more/facets/instantiable_rb.html +2 -2
  621. data/doc/rdoc/more/files/lib/more/facets/instantise_rb.html +2 -2
  622. data/doc/rdoc/more/files/lib/more/facets/instantize_rb.html +2 -2
  623. data/doc/rdoc/more/files/lib/more/facets/interval_rb.html +2 -2
  624. data/doc/rdoc/more/files/lib/more/facets/ioredirect_rb.html +2 -2
  625. data/doc/rdoc/more/files/lib/more/facets/iteration_rb.html +2 -2
  626. data/doc/rdoc/more/files/lib/more/facets/kernel/meta_rb.html +2 -2
  627. data/doc/rdoc/more/files/lib/more/facets/linkedlist_rb.html +2 -2
  628. data/doc/rdoc/more/files/lib/more/facets/lrucache_rb.html +2 -2
  629. data/doc/rdoc/more/files/lib/more/facets/main_rb.html +2 -2
  630. data/doc/rdoc/more/files/lib/more/facets/memoize_rb.html +4 -6
  631. data/doc/rdoc/more/files/lib/more/facets/methodspace_rb.html +2 -2
  632. data/doc/rdoc/more/files/lib/more/facets/minitar_rb.html +2 -2
  633. data/doc/rdoc/more/files/lib/more/facets/multipliers_rb.html +2 -2
  634. data/doc/rdoc/more/files/lib/more/facets/multiton_rb.html +2 -2
  635. data/doc/rdoc/more/files/lib/more/facets/nackclass_rb.html +2 -2
  636. data/doc/rdoc/more/files/lib/more/facets/net/smtp_tls_rb.html +2 -2
  637. data/doc/rdoc/more/files/lib/more/facets/nilstatus_rb.html +2 -2
  638. data/doc/rdoc/more/files/lib/more/facets/nullclass_rb.html +2 -2
  639. data/doc/rdoc/more/files/lib/more/facets/opencascade_rb.html +4 -46
  640. data/doc/rdoc/more/files/lib/more/facets/opencollection_rb.html +2 -2
  641. data/doc/rdoc/more/files/lib/more/facets/openhash_rb.html +2 -2
  642. data/doc/rdoc/more/files/lib/more/facets/openobject_rb.html +2 -2
  643. data/doc/rdoc/more/files/lib/more/facets/opesc_rb.html +2 -2
  644. data/doc/rdoc/more/files/lib/more/facets/orderedhash_rb.html +2 -2
  645. data/doc/rdoc/more/files/lib/more/facets/overload_rb.html +2 -2
  646. data/doc/rdoc/more/files/lib/more/facets/paramix_rb.html +2 -2
  647. data/doc/rdoc/more/files/lib/more/facets/partial_rb.html +4 -6
  648. data/doc/rdoc/more/files/lib/more/facets/pathlist_rb.html +2 -2
  649. data/doc/rdoc/more/files/lib/more/facets/platform_rb.html +2 -2
  650. data/doc/rdoc/more/files/lib/more/facets/pool_rb.html +2 -2
  651. data/doc/rdoc/more/files/lib/more/facets/pqueue_rb.html +2 -2
  652. data/doc/rdoc/more/files/lib/more/facets/progressbar_rb.html +2 -2
  653. data/doc/rdoc/more/files/lib/more/facets/prototype_rb.html +2 -2
  654. data/doc/rdoc/more/files/lib/more/facets/random_rb.html +2 -2
  655. data/doc/rdoc/more/files/lib/more/facets/rbsystem_rb.html +2 -2
  656. data/doc/rdoc/more/files/lib/more/facets/recorder_rb.html +2 -2
  657. data/doc/rdoc/more/files/lib/more/facets/reference_rb.html +2 -2
  658. data/doc/rdoc/more/files/lib/more/facets/reflection_rb.html +2 -2
  659. data/doc/rdoc/more/files/lib/more/facets/registerable_rb.html +2 -2
  660. data/doc/rdoc/more/files/lib/more/facets/rwdelegator_rb.html +2 -2
  661. data/doc/rdoc/more/files/lib/more/facets/semaphore_rb.html +2 -2
  662. data/doc/rdoc/more/files/lib/more/facets/settings_rb.html +2 -2
  663. data/doc/rdoc/more/files/lib/more/facets/snapshot_rb.html +2 -2
  664. data/doc/rdoc/more/files/lib/more/facets/string/mask_rb.html +2 -2
  665. data/doc/rdoc/more/files/lib/more/facets/string/words_rb.html +2 -2
  666. data/doc/rdoc/more/files/lib/more/facets/succ_rb.html +2 -2
  667. data/doc/rdoc/more/files/lib/more/facets/syncarray_rb.html +2 -2
  668. data/doc/rdoc/more/files/lib/more/facets/synchash_rb.html +2 -2
  669. data/doc/rdoc/more/files/lib/more/facets/tagiterator_rb.html +111 -0
  670. data/doc/rdoc/more/files/lib/more/facets/thread_rb.html +2 -2
  671. data/doc/rdoc/more/files/lib/more/facets/timer_rb.html +2 -2
  672. data/doc/rdoc/more/files/lib/more/facets/times_rb.html +2 -2
  673. data/doc/rdoc/more/files/lib/more/facets/tracepoint_rb.html +2 -2
  674. data/doc/rdoc/more/files/lib/more/facets/tuple_rb.html +2 -2
  675. data/doc/rdoc/more/files/lib/more/facets/typecast_rb.html +5 -4
  676. data/doc/rdoc/more/files/lib/more/facets/uninheritable_rb.html +2 -2
  677. data/doc/rdoc/more/files/lib/more/facets/uploadutils_rb.html +2 -2
  678. data/doc/rdoc/more/files/lib/more/facets/version_rb.html +2 -2
  679. data/doc/rdoc/more/files/lib/more/facets/xmlhash_rb.html +2 -2
  680. data/doc/rdoc/more/files/lib/more/facets/xoxo_rb.html +2 -2
  681. data/doc/rdoc/more/files/lib/more/facets/ziputils_rb.html +2 -2
  682. data/doc/rdoc/more/fr_class_index.html +4 -5
  683. data/doc/rdoc/more/fr_file_index.html +4 -5
  684. data/doc/rdoc/more/fr_method_index.html +917 -941
  685. data/doc/rdoc/more/rdoc-style.css +18 -16
  686. data/lib/core/facets/array/combination.rb +15 -16
  687. data/lib/core/facets/array/index.rb +31 -6
  688. data/lib/core/facets/cattr.rb +2 -0
  689. data/lib/{more/facets → core/facets/class}/cattr.rb +18 -44
  690. data/lib/core/facets/class/cattr_accessor.rb +1 -0
  691. data/lib/core/facets/class/cattr_reader.rb +1 -0
  692. data/lib/core/facets/class/cattr_writer.rb +1 -0
  693. data/lib/core/facets/enumerable/mode.rb +5 -4
  694. data/lib/core/facets/enumerable/split.rb +6 -2
  695. data/lib/core/facets/file/append.rb +14 -0
  696. data/lib/core/facets/file/create.rb +21 -0
  697. data/lib/core/facets/file/rewrite.rb +6 -6
  698. data/lib/core/facets/file/write.rb +5 -47
  699. data/lib/core/facets/file/writelines.rb +24 -0
  700. data/lib/core/facets/hash/op.rb +6 -84
  701. data/lib/core/facets/hash/op_add.rb +12 -0
  702. data/lib/core/facets/hash/op_and.rb +33 -0
  703. data/lib/core/facets/hash/op_mul.rb +18 -0
  704. data/lib/core/facets/hash/op_or.rb +12 -0
  705. data/lib/core/facets/hash/op_sub.rb +26 -0
  706. data/lib/core/facets/indexable.rb +34 -26
  707. data/lib/core/facets/integer/odd.rb +8 -6
  708. data/lib/core/facets/module/class.rb +1 -3
  709. data/lib/core/facets/module/conflict.rb +10 -3
  710. data/lib/core/facets/module/prepend.rb +1 -0
  711. data/lib/core/facets/string/methodize.rb +6 -1
  712. data/lib/core/facets/string/modulize.rb +21 -0
  713. data/lib/core/facets/string/pathize.rb +6 -2
  714. data/lib/core/facets/string/splice.rb +19 -7
  715. data/lib/core/facets/string/variablize.rb +2 -1
  716. data/lib/core/facets/symbol/plain.rb +0 -27
  717. data/lib/core/facets/symbol/re_s.rb +18 -0
  718. data/lib/lore/facets/ostruct.rb +26 -10
  719. data/lib/lore/facets/pathname.rb +1 -1
  720. data/lib/lore/facets/zlib.rb +38 -0
  721. data/lib/more/facets/ansicode.rb +0 -5
  722. data/lib/more/facets/opencascade.rb +34 -32
  723. data/lib/more/facets/tagiter.rb +366 -0
  724. data/lib/more/facets/typecast.rb +5 -4
  725. data/task/conflicts +63 -0
  726. data/task/coverage.rake +37 -0
  727. data/task/methods +49 -0
  728. data/task/rdoc.rake +17 -0
  729. data/task/setup.rake +30 -0
  730. data/task/test.rake +47 -0
  731. data/test/{more → core/class}/test_cattr.rb +1 -1
  732. data/test/core/class/test_cattr_accessor.rb +2 -0
  733. data/test/core/class/test_cattr_reader.rb +1 -0
  734. data/test/core/class/test_cattr_writer.rb +1 -0
  735. data/test/core/file/test_create.rb +31 -0
  736. data/test/core/file/test_file.rb +0 -76
  737. data/test/core/file/test_null.rb +12 -0
  738. data/test/core/file/test_rewrite.rb +32 -0
  739. data/test/core/file/test_write.rb +31 -0
  740. data/test/core/file/test_writelines.rb +22 -0
  741. data/test/core/hash/test_op.rb +1 -42
  742. data/test/core/hash/test_op_add.rb +14 -0
  743. data/test/core/hash/test_op_and.rb +28 -0
  744. data/test/core/hash/test_op_mul.rb +14 -0
  745. data/test/core/hash/test_op_or.rb +14 -0
  746. data/test/core/hash/test_op_push.rb +23 -0
  747. data/test/core/hash/test_op_sub.rb +21 -0
  748. data/test/core/integer/test_even.rb +0 -9
  749. data/test/core/integer/test_odd.rb +16 -0
  750. data/test/core/module/test_alias_accessor.rb +22 -0
  751. data/test/core/module/test_alias_method_chain.rb +30 -0
  752. data/test/core/module/test_alias_module_function.rb +19 -0
  753. data/test/core/module/test_can.rb +19 -0
  754. data/test/core/module/test_class.rb +21 -0
  755. data/test/core/module/test_conflict.rb +19 -0
  756. data/test/core/module/test_integrate.rb +23 -0
  757. data/test/core/module/test_is.rb +19 -0
  758. data/test/core/module/test_methodize.rb +11 -0
  759. data/test/core/module/test_prepend.rb +29 -0
  760. data/test/core/module/test_redefine_method.rb +27 -0
  761. data/test/core/module/test_redirect_method.rb +25 -0
  762. data/test/core/module/test_rename_method.rb +27 -0
  763. data/test/core/module/test_revise.rb +2 -125
  764. data/test/core/module/test_wrap_method.rb +24 -0
  765. data/test/core/string/test_end_with.rb +12 -0
  766. data/test/core/string/test_lchomp.rb +18 -0
  767. data/test/core/string/test_methodize.rb +25 -0
  768. data/test/core/string/test_modulize.rb +25 -0
  769. data/test/core/string/test_op_sub.rb +12 -0
  770. data/test/core/string/test_pathize.rb +25 -0
  771. data/test/core/string/test_rewrite.rb +14 -0
  772. data/test/core/string/test_splice.rb +32 -0
  773. data/test/core/string/test_start_with.rb +12 -0
  774. data/test/core/string/test_variablize.rb +12 -0
  775. data/test/core/symbol/test_plain.rb +14 -0
  776. data/test/core/symbol/test_query.rb +14 -0
  777. data/test/core/symbol/test_setter.rb +14 -0
  778. data/test/core/unboundmethod/test_arguments.rb +21 -0
  779. data/test/core/unboundmethod/test_name.rb +15 -0
  780. metadata +174 -35
  781. data/METADATA +0 -28
  782. data/doc/rdoc/more/classes/Rope.html +0 -434
  783. data/doc/rdoc/more/classes/String/Style.html +0 -803
  784. data/lib/more/facets/rope.rb +0 -131
  785. data/lib/more/facets/string/style.rb +0 -317
  786. data/test/core/module/test_alias.rb +0 -45
  787. data/test/more/test_style.rb +0 -50
@@ -1,31 +1,9 @@
1
- class File
2
-
3
- # Append to a file.
4
- #
5
- # CREDIT: George Moschovitis
6
-
7
- def self.append( file, str )
8
- File.open( file, 'ab' ) { |f|
9
- f << str
10
- }
11
- end
1
+ # DEPRECATE
2
+ require 'facets/file/create'
3
+ require 'facets/file/append'
4
+ require 'facets/file/writelines'
12
5
 
13
- # Creates a new file, or overwrites an existing file,
14
- # and writes a string into it. Can also take a block
15
- # just like File#open, which is yielded _after_ the
16
- # string is writ.
17
- #
18
- # str = 'The content for the file'
19
- # File.create('myfile.txt', str)
20
- #
21
- # CREDIT: George Moschovitis
22
-
23
- def self.create(path, str='', &blk)
24
- File.open(path, 'wb') do |f|
25
- f << str
26
- blk.call(f) if blk
27
- end
28
- end
6
+ class File
29
7
 
30
8
  # Writes the given data to the given path and closes the file. This is
31
9
  # done in binary mode, complementing <tt>IO.read</tt> in standard Ruby.
@@ -40,25 +18,5 @@ class File
40
18
  end
41
19
  end
42
20
 
43
- # Writes the given array of data to the given path and closes the file.
44
- # This is done in binary mode, complementing <tt>IO.readlines</tt> in
45
- # standard Ruby.
46
- #
47
- # Note that +readlines+ (the standard Ruby method) returns an array of lines
48
- # <em>with newlines intact</em>, whereas +writelines+ uses +puts+, and so
49
- # appends newlines if necessary. In this small way, +readlines+ and
50
- # +writelines+ are not exact opposites.
51
- #
52
- # Returns +nil+.
53
- #
54
- # CREDIT: Noah Gibbs
55
- # CREDIT: Gavin Sinclair
56
-
57
- def self.writelines(path, data)
58
- File.open(path, "wb") do |file|
59
- file.puts(data)
60
- end
61
- end
62
-
63
21
  end
64
22
 
@@ -0,0 +1,24 @@
1
+ class File
2
+
3
+ # Writes the given array of data to the given path and closes the file.
4
+ # This is done in binary mode, complementing <tt>IO.readlines</tt> in
5
+ # standard Ruby.
6
+ #
7
+ # Note that +readlines+ (the standard Ruby method) returns an array of lines
8
+ # <em>with newlines intact</em>, whereas +writelines+ uses +puts+, and so
9
+ # appends newlines if necessary. In this small way, +readlines+ and
10
+ # +writelines+ are not exact opposites.
11
+ #
12
+ # Returns +nil+.
13
+ #
14
+ # CREDIT: Noah Gibbs
15
+ # CREDIT: Gavin Sinclair
16
+
17
+ def self.writelines(path, data)
18
+ File.open(path, "wb") do |file|
19
+ file.puts(data)
20
+ end
21
+ end
22
+
23
+ end
24
+
@@ -1,85 +1,7 @@
1
- class Hash
2
-
3
- # Hash intersection. Two hashes intersect
4
- # when their pairs are equal.
5
- #
6
- # {:a=>1,:b=>2} & {:a=>1,:c=>3} #=> {:a=>1}
7
- #
8
- # A hash can also be intersected with an array
9
- # to intersect keys only.
10
- #
11
- # {:a=>1,:b=>2} & [:a,:c] #=> {:a=>1}
12
- #
13
- # The later form is similar to #pairs_at. The differ only
14
- # in that #pairs_at will return a nil value for a key
15
- # not in the hash, but #& will not.
16
- #
17
- # CREDIT: Trans
18
-
19
- def &(other)
20
- case other
21
- when Array
22
- k = (keys & other)
23
- Hash[*(k.zip(values_at(*k)).flatten)]
24
- else
25
- x = (to_a & other.to_a).inject([]) do |a, kv|
26
- a.concat kv; a
27
- end
28
- Hash[*x]
29
- end
30
- end
31
-
32
- # Operator for #reverse_merge.
33
- #
34
- # CREDIT: Trans
35
-
36
- def |(other)
37
- other.merge(self)
38
- end
39
-
40
- # Operator for #merge.
41
- #
42
- # CREDIT: Trans
43
-
44
- def +(other)
45
- merge(other)
46
- end
47
-
48
- # Operator for remove hash paris. If another hash is given
49
- # the pairs are only removed if both key and value are equal.
50
- # If an array is given then matching keys are removed.
51
- #
52
- # CREDIT: Trans
53
-
54
- def -(other)
55
- h = self.dup
56
- if other.respond_to?(:to_ary)
57
- other.to_ary.each do |k|
58
- h.delete(k)
59
- end
60
- else
61
- other.each do |k,v|
62
- if h.key?(k)
63
- h.delete(k) if v == h[k]
64
- end
65
- end
66
- end
67
- h
68
- end
69
-
70
- # Like merge operator '+' but merges in reverse order.
71
- #
72
- # h1 = { :a=>1 }
73
- # h2 = { :a=>2, :b=>3 }
74
- #
75
- # h1 + h2 #=> { :a=>2, :b=>3 }
76
- # h1 * h2 #=> { :a=>1, :b=>3 }
77
- #
78
- # CREDIT: Trans
79
-
80
- def *(other)
81
- other.merge(self)
82
- end
83
-
84
- end
1
+ require 'facets/hash/op_and'
2
+ require 'facets/hash/op_or'
3
+ require 'facets/hash/op_add'
4
+ require 'facets/hash/op_sub'
5
+ require 'facets/hash/op_mul'
6
+ require 'facets/hash/op_push'
85
7
 
@@ -0,0 +1,12 @@
1
+ class Hash
2
+
3
+ # Operator for #merge.
4
+ #
5
+ # CREDIT: Trans
6
+
7
+ def +(other)
8
+ merge(other)
9
+ end
10
+
11
+ end
12
+
@@ -0,0 +1,33 @@
1
+ class Hash
2
+
3
+ # Hash intersection. Two hashes intersect
4
+ # when their pairs are equal.
5
+ #
6
+ # {:a=>1,:b=>2} & {:a=>1,:c=>3} #=> {:a=>1}
7
+ #
8
+ # A hash can also be intersected with an array
9
+ # to intersect keys only.
10
+ #
11
+ # {:a=>1,:b=>2} & [:a,:c] #=> {:a=>1}
12
+ #
13
+ # The later form is similar to #pairs_at. The differ only
14
+ # in that #pairs_at will return a nil value for a key
15
+ # not in the hash, but #& will not.
16
+ #
17
+ # CREDIT: Trans
18
+
19
+ def &(other)
20
+ case other
21
+ when Array
22
+ k = (keys & other)
23
+ Hash[*(k.zip(values_at(*k)).flatten)]
24
+ else
25
+ x = (to_a & other.to_a).inject([]) do |a, kv|
26
+ a.concat kv; a
27
+ end
28
+ Hash[*x]
29
+ end
30
+ end
31
+
32
+ end
33
+
@@ -0,0 +1,18 @@
1
+ class Hash
2
+
3
+ # Like merge operator '+' but merges in reverse order.
4
+ #
5
+ # h1 = { :a=>1 }
6
+ # h2 = { :a=>2, :b=>3 }
7
+ #
8
+ # h1 + h2 #=> { :a=>2, :b=>3 }
9
+ # h1 * h2 #=> { :a=>1, :b=>3 }
10
+ #
11
+ # CREDIT: Trans
12
+
13
+ def *(other)
14
+ other.merge(self)
15
+ end
16
+
17
+ end
18
+
@@ -0,0 +1,12 @@
1
+ class Hash
2
+
3
+ # Operator for #reverse_merge.
4
+ #
5
+ # CREDIT: Trans
6
+
7
+ def |(other)
8
+ other.merge(self)
9
+ end
10
+
11
+ end
12
+
@@ -0,0 +1,26 @@
1
+ class Hash
2
+
3
+ # Operator for remove hash paris. If another hash is given
4
+ # the pairs are only removed if both key and value are equal.
5
+ # If an array is given then matching keys are removed.
6
+ #
7
+ # CREDIT: Trans
8
+
9
+ def -(other)
10
+ h = self.dup
11
+ if other.respond_to?(:to_ary)
12
+ other.to_ary.each do |k|
13
+ h.delete(k)
14
+ end
15
+ else
16
+ other.each do |k,v|
17
+ if h.key?(k)
18
+ h.delete(k) if v == h[k]
19
+ end
20
+ end
21
+ end
22
+ h
23
+ end
24
+
25
+ end
26
+
@@ -7,7 +7,7 @@
7
7
  # These methods work in harmony. Where #index returns a
8
8
  # position of a given element, #slice returns elements
9
9
  # for given positions. #splice is like #slice but replaces
10
- # the given position with new values. This mehtod is not
10
+ # the given position with new values. This method is not
11
11
  # part of ruby core, but it generally just an alias for #[]=,
12
12
  # just as #slice is an alias of #[]. #size of course simply
13
13
  # returns the total length of the indexable object.
@@ -37,7 +37,7 @@ module Indexable
37
37
  # in a new array.
38
38
  #
39
39
  # [1,2,3].head #=> [1]
40
-
40
+ #
41
41
  def head
42
42
  slice(0,1)
43
43
  end
@@ -45,7 +45,7 @@ module Indexable
45
45
  # Returns an array from second element to last element.
46
46
  #
47
47
  # [1,2,3].tail #=> [2,3]
48
-
48
+ #
49
49
  def tail
50
50
  slice(1,length-1)
51
51
  end
@@ -54,7 +54,7 @@ module Indexable
54
54
  # in an array.
55
55
  #
56
56
  # [1,2,3].foot #=> [3]
57
-
57
+ #
58
58
  def foot
59
59
  slice(-1,1)
60
60
  end
@@ -67,7 +67,7 @@ module Indexable
67
67
  #--
68
68
  # Better name for this? (bulk, perhaps?)
69
69
  #++
70
-
70
+ #
71
71
  def body
72
72
  slice(0,size-1)
73
73
  end
@@ -85,7 +85,7 @@ module Indexable
85
85
  # In other words, If there are an even number of elements the
86
86
  # higher-indexed of the two center elements is indexed as
87
87
  # orgin (0).
88
-
88
+ #
89
89
  def mid(offset=0)
90
90
  slice((size / 2) + offset)
91
91
  end
@@ -98,7 +98,7 @@ module Indexable
98
98
  # [1,2,3,4,5,6].middle #=> [3,4]
99
99
  #
100
100
  # In contrast to #mid which utilizes an offset.
101
-
101
+ #
102
102
  def middle
103
103
  if size % 2 == 0
104
104
  slice( (size / 2) - 1, 2 )
@@ -112,7 +112,7 @@ module Indexable
112
112
  #
113
113
  # [1,2,3,4,5].thru(0,2) #=> [1,2,3]
114
114
  # [1,2,3,4,5].thru(2,4) #=> [3,4,5]
115
-
115
+ #
116
116
  def thru(from, to)
117
117
  a = []
118
118
  i = from
@@ -126,7 +126,7 @@ module Indexable
126
126
  # Returns first _n_ elements.
127
127
  #
128
128
  # "Hello World".first(3) #=> "Hel"
129
-
129
+ #
130
130
  def first(n=1)
131
131
  slice(0, n.to_i)
132
132
  end
@@ -134,7 +134,7 @@ module Indexable
134
134
  # Returns last _n_ elements.
135
135
  #
136
136
  # "Hello World".last(3) #=> "rld"
137
-
137
+ #
138
138
  def last(n=1)
139
139
  n = n.to_i
140
140
  return self if n > size
@@ -146,7 +146,7 @@ module Indexable
146
146
  # a = ["a","y","z"]
147
147
  # a.first = "x"
148
148
  # p a #=> ["x","y","z"]
149
-
149
+ #
150
150
  def first=(x)
151
151
  splice(0,x)
152
152
  end
@@ -166,7 +166,7 @@ module Indexable
166
166
  # a = [1,2,3]
167
167
  # a.first! #=> 1
168
168
  # a #=> [2,3]
169
-
169
+ #
170
170
  def first!
171
171
  splice(0)
172
172
  end
@@ -176,7 +176,7 @@ module Indexable
176
176
  # a = [1,2,3]
177
177
  # a.last! #=> 3
178
178
  # a #=> [1,2]
179
-
179
+ #
180
180
  def last!
181
181
  splice(-1)
182
182
  end
@@ -188,7 +188,7 @@ module Indexable
188
188
  # [1,2,3,4,5].ends #=> 4
189
189
  #
190
190
  # This nearly equivalent to +size - 1+.
191
-
191
+ #
192
192
  def ends
193
193
  return nil if size == 0
194
194
  size - 1
@@ -199,7 +199,7 @@ module Indexable
199
199
  #
200
200
  # [1,2,3,4,5].pos(1) #=> 0
201
201
  # [1,2,3,4,5].pos(-1) #=> 4
202
-
202
+ #
203
203
  def pos(i)
204
204
  if i > 0
205
205
  return i - 1
@@ -208,20 +208,28 @@ module Indexable
208
208
  end
209
209
  end
210
210
 
211
- # Returns the index of the first element to satisfy the block
212
- # condition. This is simply #index with a block.
211
+ # Returns the index of the first element equal to the
212
+ # given object or satisfying the block condition.
213
213
  #
214
- # [1,2,3,4].index_of { |e| e == 3 } #=> 2
215
- # [1,2,3,4].index_of { |e| e > 3 } #=> 3
214
+ # [1,2,3,4].index{ |e| e == 3 } #=> 2
215
+ # [1,2,3,4].index{ |e| e > 3 } #=> 3
216
216
  #
217
- # TODO: Remove Array#index_of when Ruby 1.9 adds block to #index.
218
-
219
- def index_of(obj=nil,&blk)
220
- return index(obj) unless block_given?
221
- i=0; i+=1 until yield(self[i])
222
- return i
217
+ def index(obj=nil, &block)
218
+ if block_given?
219
+ size.times do |i|
220
+ return i if yield(slice(i))
221
+ end
222
+ else
223
+ size.times do |i|
224
+ return i if obj == slice(i)
225
+ end
226
+ end
227
+ nil
223
228
  end
224
229
 
230
+ # to be deprecated
231
+ alias_method :index_of, :index
232
+
225
233
  # TODO Maybe #range could use a little error catch code (todo).
226
234
 
227
235
  # Returns the index range between two elements.
@@ -230,7 +238,7 @@ module Indexable
230
238
  #
231
239
  # ['a','b','c','d'].range #=> 0..3
232
240
  # ['a','b','c','d'].range('b','d') #=> 1..2
233
-
241
+ #
234
242
  def range(a=nil,z=nil)
235
243
  if !a
236
244
  0..(size-1)