facets 2.5.2 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (677) hide show
  1. data/HISTORY.rdoc +2245 -0
  2. data/MANIFEST +20 -725
  3. data/{README → README.rdoc} +0 -0
  4. data/RELEASE +37 -48
  5. data/doc/log/stats/index.html +39 -0
  6. data/doc/notes/CHANGES +2529 -0
  7. data/lib/{more → core}/facets/binding/opvars.rb +0 -0
  8. data/lib/core/facets/integer/length.rb +16 -0
  9. data/lib/core/facets/kernel/state.rb +50 -0
  10. data/lib/core/facets/module/extend.rb +2 -2
  11. data/lib/core/facets/string/camelcase.rb +33 -9
  12. data/lib/core/facets/string/lowercase.rb +1 -0
  13. data/lib/core/facets/string/methodize.rb +10 -1
  14. data/lib/core/facets/string/modulize.rb +8 -0
  15. data/lib/core/facets/string/pathize.rb +10 -0
  16. data/lib/core/facets/string/snakecase.rb +2 -2
  17. data/lib/core/facets/string/underscore.rb +21 -0
  18. data/lib/core/facets/string/uppercase.rb +23 -0
  19. data/lib/more/facets/censor.rb +97 -0
  20. data/lib/more/facets/minitar.rb +11 -11
  21. data/lib/more/facets/platform.rb +47 -0
  22. data/lib/more/facets/pry.rb +32 -0
  23. data/lib/more/facets/string/obfuscate.rb +65 -0
  24. data/lib/more/facets/string/stylize.rb +169 -0
  25. data/lib/more/facets/string/words.rb +10 -13
  26. data/meta/modified +1 -0
  27. data/meta/package +1 -0
  28. data/meta/version +1 -0
  29. data/test/core/integer/test_length.rb +12 -0
  30. metadata +41 -822
  31. data/CHANGES +0 -133
  32. data/VERSION +0 -1
  33. data/doc/changelogs/CHANGELOG-0.10.30 +0 -239
  34. data/doc/changelogs/CHANGELOG-1.8.54 +0 -450
  35. data/doc/changelogs/CHANGELOG-2.4.5 +0 -1654
  36. data/doc/rdoc/core/classes/Array.html +0 -1208
  37. data/doc/rdoc/core/classes/Binding.html +0 -364
  38. data/doc/rdoc/core/classes/Class.html +0 -444
  39. data/doc/rdoc/core/classes/Comparable.html +0 -250
  40. data/doc/rdoc/core/classes/Dir.html +0 -395
  41. data/doc/rdoc/core/classes/Enumerable.html +0 -1262
  42. data/doc/rdoc/core/classes/Enumerable/Enumerator.html +0 -243
  43. data/doc/rdoc/core/classes/Enumerator.html +0 -242
  44. data/doc/rdoc/core/classes/Exception.html +0 -163
  45. data/doc/rdoc/core/classes/FalseClass.html +0 -131
  46. data/doc/rdoc/core/classes/File.html +0 -576
  47. data/doc/rdoc/core/classes/FileTest.html +0 -116
  48. data/doc/rdoc/core/classes/Float.html +0 -159
  49. data/doc/rdoc/core/classes/Functor.html +0 -171
  50. data/doc/rdoc/core/classes/Hash.html +0 -2184
  51. data/doc/rdoc/core/classes/Indexable.html +0 -629
  52. data/doc/rdoc/core/classes/InstanceVariables.html +0 -306
  53. data/doc/rdoc/core/classes/Integer.html +0 -583
  54. data/doc/rdoc/core/classes/Kernel.html +0 -2269
  55. data/doc/rdoc/core/classes/Lazy.html +0 -96
  56. data/doc/rdoc/core/classes/Lazy/Future.html +0 -100
  57. data/doc/rdoc/core/classes/Lazy/Promise.html +0 -114
  58. data/doc/rdoc/core/classes/Lazy/PromiseSafe.html +0 -99
  59. data/doc/rdoc/core/classes/MatchData.html +0 -204
  60. data/doc/rdoc/core/classes/Module.html +0 -1316
  61. data/doc/rdoc/core/classes/NilClass.html +0 -217
  62. data/doc/rdoc/core/classes/Numeric.html +0 -251
  63. data/doc/rdoc/core/classes/Object.html +0 -161
  64. data/doc/rdoc/core/classes/ObjectSpace.html +0 -114
  65. data/doc/rdoc/core/classes/Proc.html +0 -302
  66. data/doc/rdoc/core/classes/Range.html +0 -360
  67. data/doc/rdoc/core/classes/Regexp.html +0 -191
  68. data/doc/rdoc/core/classes/Stackable.html +0 -262
  69. data/doc/rdoc/core/classes/String.html +0 -2332
  70. data/doc/rdoc/core/classes/Struct.html +0 -121
  71. data/doc/rdoc/core/classes/Symbol.html +0 -441
  72. data/doc/rdoc/core/classes/Time.html +0 -521
  73. data/doc/rdoc/core/classes/TrueClass.html +0 -131
  74. data/doc/rdoc/core/classes/UnboundMethod.html +0 -200
  75. data/doc/rdoc/core/created.rid +0 -1
  76. data/doc/rdoc/core/files/README.html +0 -287
  77. data/doc/rdoc/core/files/doc/README_core.html +0 -230
  78. data/doc/rdoc/core/files/lib/core/facets/array/combination_rb.html +0 -96
  79. data/doc/rdoc/core/files/lib/core/facets/array/conjoin_rb.html +0 -92
  80. data/doc/rdoc/core/files/lib/core/facets/array/delete_rb.html +0 -101
  81. data/doc/rdoc/core/files/lib/core/facets/array/delete_unless_rb.html +0 -92
  82. data/doc/rdoc/core/files/lib/core/facets/array/delete_values_rb.html +0 -92
  83. data/doc/rdoc/core/files/lib/core/facets/array/index_rb.html +0 -92
  84. data/doc/rdoc/core/files/lib/core/facets/array/indexable_rb.html +0 -97
  85. data/doc/rdoc/core/files/lib/core/facets/array/merge_rb.html +0 -92
  86. data/doc/rdoc/core/files/lib/core/facets/array/not_empty_rb.html +0 -92
  87. data/doc/rdoc/core/files/lib/core/facets/array/only_rb.html +0 -92
  88. data/doc/rdoc/core/files/lib/core/facets/array/pad_rb.html +0 -92
  89. data/doc/rdoc/core/files/lib/core/facets/array/permutation_rb.html +0 -92
  90. data/doc/rdoc/core/files/lib/core/facets/array/product_rb.html +0 -92
  91. data/doc/rdoc/core/files/lib/core/facets/array/recursively_rb.html +0 -92
  92. data/doc/rdoc/core/files/lib/core/facets/array/rotate_rb.html +0 -92
  93. data/doc/rdoc/core/files/lib/core/facets/array/select_rb.html +0 -92
  94. data/doc/rdoc/core/files/lib/core/facets/array/splice_rb.html +0 -92
  95. data/doc/rdoc/core/files/lib/core/facets/array/stackable_rb.html +0 -97
  96. data/doc/rdoc/core/files/lib/core/facets/array/traverse_rb.html +0 -92
  97. data/doc/rdoc/core/files/lib/core/facets/array_rb.html +0 -92
  98. data/doc/rdoc/core/files/lib/core/facets/binding/caller_rb.html +0 -97
  99. data/doc/rdoc/core/files/lib/core/facets/binding/callstack_rb.html +0 -96
  100. data/doc/rdoc/core/files/lib/core/facets/binding/defined_rb.html +0 -96
  101. data/doc/rdoc/core/files/lib/core/facets/binding/eval_rb.html +0 -92
  102. data/doc/rdoc/core/files/lib/core/facets/binding/local_variables_rb.html +0 -96
  103. data/doc/rdoc/core/files/lib/core/facets/binding/self_rb.html +0 -96
  104. data/doc/rdoc/core/files/lib/core/facets/binding_rb.html +0 -92
  105. data/doc/rdoc/core/files/lib/core/facets/bitmask_rb.html +0 -92
  106. data/doc/rdoc/core/files/lib/core/facets/blank_rb.html +0 -97
  107. data/doc/rdoc/core/files/lib/core/facets/boolean_rb.html +0 -126
  108. data/doc/rdoc/core/files/lib/core/facets/cattr_rb.html +0 -100
  109. data/doc/rdoc/core/files/lib/core/facets/class/cattr_accessor_rb.html +0 -96
  110. data/doc/rdoc/core/files/lib/core/facets/class/cattr_rb.html +0 -92
  111. data/doc/rdoc/core/files/lib/core/facets/class/cattr_reader_rb.html +0 -96
  112. data/doc/rdoc/core/files/lib/core/facets/class/cattr_writer_rb.html +0 -96
  113. data/doc/rdoc/core/files/lib/core/facets/class/descendents_rb.html +0 -92
  114. data/doc/rdoc/core/files/lib/core/facets/class/methodize_rb.html +0 -96
  115. data/doc/rdoc/core/files/lib/core/facets/class/pathize_rb.html +0 -96
  116. data/doc/rdoc/core/files/lib/core/facets/class/prepend_rb.html +0 -92
  117. data/doc/rdoc/core/files/lib/core/facets/class/subclasses_rb.html +0 -96
  118. data/doc/rdoc/core/files/lib/core/facets/class/to_proc_rb.html +0 -92
  119. data/doc/rdoc/core/files/lib/core/facets/class_rb.html +0 -92
  120. data/doc/rdoc/core/files/lib/core/facets/comparable/at_least_rb.html +0 -96
  121. data/doc/rdoc/core/files/lib/core/facets/comparable/at_most_rb.html +0 -96
  122. data/doc/rdoc/core/files/lib/core/facets/comparable/bound_rb.html +0 -96
  123. data/doc/rdoc/core/files/lib/core/facets/comparable/cap_rb.html +0 -92
  124. data/doc/rdoc/core/files/lib/core/facets/comparable/clip_rb.html +0 -92
  125. data/doc/rdoc/core/files/lib/core/facets/comparable/cmp_rb.html +0 -92
  126. data/doc/rdoc/core/files/lib/core/facets/comparable/comparable_rb.html +0 -109
  127. data/doc/rdoc/core/files/lib/core/facets/comparable_rb.html +0 -92
  128. data/doc/rdoc/core/files/lib/core/facets/dir/ascend_rb.html +0 -92
  129. data/doc/rdoc/core/files/lib/core/facets/dir/descend_rb.html +0 -96
  130. data/doc/rdoc/core/files/lib/core/facets/dir/multiglob_rb.html +0 -92
  131. data/doc/rdoc/core/files/lib/core/facets/dir/parent_rb.html +0 -92
  132. data/doc/rdoc/core/files/lib/core/facets/dir/recurse_rb.html +0 -92
  133. data/doc/rdoc/core/files/lib/core/facets/dir_rb.html +0 -92
  134. data/doc/rdoc/core/files/lib/core/facets/enumerable/accumulate_rb.html +0 -96
  135. data/doc/rdoc/core/files/lib/core/facets/enumerable/cluster_by_rb.html +0 -96
  136. data/doc/rdoc/core/files/lib/core/facets/enumerable/collect_rb.html +0 -101
  137. data/doc/rdoc/core/files/lib/core/facets/enumerable/commonality_rb.html +0 -92
  138. data/doc/rdoc/core/files/lib/core/facets/enumerable/compact_map_rb.html +0 -92
  139. data/doc/rdoc/core/files/lib/core/facets/enumerable/count_rb.html +0 -92
  140. data/doc/rdoc/core/files/lib/core/facets/enumerable/divide_rb.html +0 -92
  141. data/doc/rdoc/core/files/lib/core/facets/enumerable/duplicates_rb.html +0 -92
  142. data/doc/rdoc/core/files/lib/core/facets/enumerable/each_by_rb.html +0 -96
  143. data/doc/rdoc/core/files/lib/core/facets/enumerable/entropy_rb.html +0 -96
  144. data/doc/rdoc/core/files/lib/core/facets/enumerable/frequency_rb.html +0 -92
  145. data/doc/rdoc/core/files/lib/core/facets/enumerable/graph_rb.html +0 -96
  146. data/doc/rdoc/core/files/lib/core/facets/enumerable/group_by_rb.html +0 -92
  147. data/doc/rdoc/core/files/lib/core/facets/enumerable/inject_rb.html +0 -92
  148. data/doc/rdoc/core/files/lib/core/facets/enumerable/map_send_rb.html +0 -92
  149. data/doc/rdoc/core/files/lib/core/facets/enumerable/map_with_index_rb.html +0 -92
  150. data/doc/rdoc/core/files/lib/core/facets/enumerable/mash_rb.html +0 -92
  151. data/doc/rdoc/core/files/lib/core/facets/enumerable/mode_rb.html +0 -92
  152. data/doc/rdoc/core/files/lib/core/facets/enumerable/modulate_rb.html +0 -92
  153. data/doc/rdoc/core/files/lib/core/facets/enumerable/none_rb.html +0 -92
  154. data/doc/rdoc/core/files/lib/core/facets/enumerable/occur_rb.html +0 -92
  155. data/doc/rdoc/core/files/lib/core/facets/enumerable/one_rb.html +0 -92
  156. data/doc/rdoc/core/files/lib/core/facets/enumerable/probability_rb.html +0 -92
  157. data/doc/rdoc/core/files/lib/core/facets/enumerable/split_rb.html +0 -92
  158. data/doc/rdoc/core/files/lib/core/facets/enumerable/sum_rb.html +0 -92
  159. data/doc/rdoc/core/files/lib/core/facets/enumerable/take_rb.html +0 -92
  160. data/doc/rdoc/core/files/lib/core/facets/enumerable/uniq_by_rb.html +0 -92
  161. data/doc/rdoc/core/files/lib/core/facets/enumerable_rb.html +0 -92
  162. data/doc/rdoc/core/files/lib/core/facets/exception/detail_rb.html +0 -92
  163. data/doc/rdoc/core/files/lib/core/facets/exception/suppress_rb.html +0 -92
  164. data/doc/rdoc/core/files/lib/core/facets/exception_rb.html +0 -92
  165. data/doc/rdoc/core/files/lib/core/facets/file/append_rb.html +0 -92
  166. data/doc/rdoc/core/files/lib/core/facets/file/create_rb.html +0 -92
  167. data/doc/rdoc/core/files/lib/core/facets/file/null_rb.html +0 -92
  168. data/doc/rdoc/core/files/lib/core/facets/file/read_rb.html +0 -92
  169. data/doc/rdoc/core/files/lib/core/facets/file/rewrite_rb.html +0 -92
  170. data/doc/rdoc/core/files/lib/core/facets/file/rootname_rb.html +0 -92
  171. data/doc/rdoc/core/files/lib/core/facets/file/split_all_rb.html +0 -92
  172. data/doc/rdoc/core/files/lib/core/facets/file/split_root_rb.html +0 -92
  173. data/doc/rdoc/core/files/lib/core/facets/file/write_rb.html +0 -102
  174. data/doc/rdoc/core/files/lib/core/facets/file/writelines_rb.html +0 -92
  175. data/doc/rdoc/core/files/lib/core/facets/file_rb.html +0 -92
  176. data/doc/rdoc/core/files/lib/core/facets/filetest/root_rb.html +0 -92
  177. data/doc/rdoc/core/files/lib/core/facets/filetest_rb.html +0 -92
  178. data/doc/rdoc/core/files/lib/core/facets/float/round_rb.html +0 -96
  179. data/doc/rdoc/core/files/lib/core/facets/float_rb.html +0 -92
  180. data/doc/rdoc/core/files/lib/core/facets/functor_rb.html +0 -151
  181. data/doc/rdoc/core/files/lib/core/facets/hash/alias_rb.html +0 -92
  182. data/doc/rdoc/core/files/lib/core/facets/hash/argumentize_rb.html +0 -92
  183. data/doc/rdoc/core/files/lib/core/facets/hash/at_rb.html +0 -92
  184. data/doc/rdoc/core/files/lib/core/facets/hash/autonew_rb.html +0 -92
  185. data/doc/rdoc/core/files/lib/core/facets/hash/collate_rb.html +0 -92
  186. data/doc/rdoc/core/files/lib/core/facets/hash/dearray_values_rb.html +0 -92
  187. data/doc/rdoc/core/files/lib/core/facets/hash/delete_rb.html +0 -92
  188. data/doc/rdoc/core/files/lib/core/facets/hash/diff_rb.html +0 -92
  189. data/doc/rdoc/core/files/lib/core/facets/hash/except_rb.html +0 -92
  190. data/doc/rdoc/core/files/lib/core/facets/hash/group_by_value_rb.html +0 -92
  191. data/doc/rdoc/core/files/lib/core/facets/hash/insert_rb.html +0 -92
  192. data/doc/rdoc/core/files/lib/core/facets/hash/inverse_rb.html +0 -92
  193. data/doc/rdoc/core/files/lib/core/facets/hash/join_rb.html +0 -92
  194. data/doc/rdoc/core/files/lib/core/facets/hash/keys_rb.html +0 -92
  195. data/doc/rdoc/core/files/lib/core/facets/hash/mash_rb.html +0 -96
  196. data/doc/rdoc/core/files/lib/core/facets/hash/merge_rb.html +0 -92
  197. data/doc/rdoc/core/files/lib/core/facets/hash/new_with_rb.html +0 -92
  198. data/doc/rdoc/core/files/lib/core/facets/hash/op_add_rb.html +0 -92
  199. data/doc/rdoc/core/files/lib/core/facets/hash/op_and_rb.html +0 -92
  200. data/doc/rdoc/core/files/lib/core/facets/hash/op_mul_rb.html +0 -92
  201. data/doc/rdoc/core/files/lib/core/facets/hash/op_or_rb.html +0 -92
  202. data/doc/rdoc/core/files/lib/core/facets/hash/op_push_rb.html +0 -92
  203. data/doc/rdoc/core/files/lib/core/facets/hash/op_rb.html +0 -101
  204. data/doc/rdoc/core/files/lib/core/facets/hash/op_sub_rb.html +0 -92
  205. data/doc/rdoc/core/files/lib/core/facets/hash/recursive_merge_rb.html +0 -92
  206. data/doc/rdoc/core/files/lib/core/facets/hash/recursively_rb.html +0 -92
  207. data/doc/rdoc/core/files/lib/core/facets/hash/rekey_rb.html +0 -96
  208. data/doc/rdoc/core/files/lib/core/facets/hash/replace_each_rb.html +0 -92
  209. data/doc/rdoc/core/files/lib/core/facets/hash/select_rb.html +0 -92
  210. data/doc/rdoc/core/files/lib/core/facets/hash/slice_rb.html +0 -96
  211. data/doc/rdoc/core/files/lib/core/facets/hash/stringify_keys_rb.html +0 -96
  212. data/doc/rdoc/core/files/lib/core/facets/hash/swap_rb.html +0 -92
  213. data/doc/rdoc/core/files/lib/core/facets/hash/symbolize_keys_rb.html +0 -96
  214. data/doc/rdoc/core/files/lib/core/facets/hash/to_h_rb.html +0 -96
  215. data/doc/rdoc/core/files/lib/core/facets/hash/to_options_rb.html +0 -96
  216. data/doc/rdoc/core/files/lib/core/facets/hash/to_proc_rb.html +0 -92
  217. data/doc/rdoc/core/files/lib/core/facets/hash/to_struct_rb.html +0 -92
  218. data/doc/rdoc/core/files/lib/core/facets/hash/traverse_rb.html +0 -92
  219. data/doc/rdoc/core/files/lib/core/facets/hash/update_each_rb.html +0 -92
  220. data/doc/rdoc/core/files/lib/core/facets/hash/update_keys_rb.html +0 -92
  221. data/doc/rdoc/core/files/lib/core/facets/hash/update_rb.html +0 -103
  222. data/doc/rdoc/core/files/lib/core/facets/hash/update_values_rb.html +0 -92
  223. data/doc/rdoc/core/files/lib/core/facets/hash/weave_rb.html +0 -92
  224. data/doc/rdoc/core/files/lib/core/facets/hash/zipnew_rb.html +0 -92
  225. data/doc/rdoc/core/files/lib/core/facets/hash_rb.html +0 -92
  226. data/doc/rdoc/core/files/lib/core/facets/indexable_rb.html +0 -113
  227. data/doc/rdoc/core/files/lib/core/facets/integer/even_rb.html +0 -96
  228. data/doc/rdoc/core/files/lib/core/facets/integer/factorial_rb.html +0 -92
  229. data/doc/rdoc/core/files/lib/core/facets/integer/multiple_rb.html +0 -92
  230. data/doc/rdoc/core/files/lib/core/facets/integer/odd_rb.html +0 -92
  231. data/doc/rdoc/core/files/lib/core/facets/integer/of_rb.html +0 -92
  232. data/doc/rdoc/core/files/lib/core/facets/integer/ordinal_rb.html +0 -92
  233. data/doc/rdoc/core/files/lib/core/facets/integer_rb.html +0 -92
  234. data/doc/rdoc/core/files/lib/core/facets/kernel/__callee___rb.html +0 -96
  235. data/doc/rdoc/core/files/lib/core/facets/kernel/__class___rb.html +0 -92
  236. data/doc/rdoc/core/files/lib/core/facets/kernel/__dir___rb.html +0 -92
  237. data/doc/rdoc/core/files/lib/core/facets/kernel/__get___rb.html +0 -92
  238. data/doc/rdoc/core/files/lib/core/facets/kernel/__here___rb.html +0 -92
  239. data/doc/rdoc/core/files/lib/core/facets/kernel/__method___rb.html +0 -92
  240. data/doc/rdoc/core/files/lib/core/facets/kernel/__set___rb.html +0 -96
  241. data/doc/rdoc/core/files/lib/core/facets/kernel/as_rb.html +0 -96
  242. data/doc/rdoc/core/files/lib/core/facets/kernel/ask_rb.html +0 -92
  243. data/doc/rdoc/core/files/lib/core/facets/kernel/attr_singleton_rb.html +0 -92
  244. data/doc/rdoc/core/files/lib/core/facets/kernel/callstack_rb.html +0 -92
  245. data/doc/rdoc/core/files/lib/core/facets/kernel/complete_rb.html +0 -92
  246. data/doc/rdoc/core/files/lib/core/facets/kernel/constant_rb.html +0 -92
  247. data/doc/rdoc/core/files/lib/core/facets/kernel/d_rb.html +0 -92
  248. data/doc/rdoc/core/files/lib/core/facets/kernel/deep_copy_rb.html +0 -92
  249. data/doc/rdoc/core/files/lib/core/facets/kernel/demo_rb.html +0 -92
  250. data/doc/rdoc/core/files/lib/core/facets/kernel/ergo_rb.html +0 -96
  251. data/doc/rdoc/core/files/lib/core/facets/kernel/here_rb.html +0 -92
  252. data/doc/rdoc/core/files/lib/core/facets/kernel/in_rb.html +0 -92
  253. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_assign_rb.html +0 -92
  254. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_class_rb.html +0 -92
  255. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_exec_rb.html +0 -92
  256. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_rb.html +0 -96
  257. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_send_rb.html +0 -92
  258. data/doc/rdoc/core/files/lib/core/facets/kernel/instance_variables_rb.html +0 -92
  259. data/doc/rdoc/core/files/lib/core/facets/kernel/maybe_rb.html +0 -92
  260. data/doc/rdoc/core/files/lib/core/facets/kernel/not_nil_rb.html +0 -92
  261. data/doc/rdoc/core/files/lib/core/facets/kernel/object_class_rb.html +0 -92
  262. data/doc/rdoc/core/files/lib/core/facets/kernel/object_hexid_rb.html +0 -92
  263. data/doc/rdoc/core/files/lib/core/facets/kernel/object_send_rb.html +0 -92
  264. data/doc/rdoc/core/files/lib/core/facets/kernel/p_rb.html +0 -92
  265. data/doc/rdoc/core/files/lib/core/facets/kernel/populate_rb.html +0 -92
  266. data/doc/rdoc/core/files/lib/core/facets/kernel/qua_class_rb.html +0 -92
  267. data/doc/rdoc/core/files/lib/core/facets/kernel/require_all_rb.html +0 -92
  268. data/doc/rdoc/core/files/lib/core/facets/kernel/require_local_rb.html +0 -92
  269. data/doc/rdoc/core/files/lib/core/facets/kernel/resc_rb.html +0 -92
  270. data/doc/rdoc/core/files/lib/core/facets/kernel/respond_rb.html +0 -92
  271. data/doc/rdoc/core/files/lib/core/facets/kernel/returning_rb.html +0 -92
  272. data/doc/rdoc/core/files/lib/core/facets/kernel/silence_rb.html +0 -92
  273. data/doc/rdoc/core/files/lib/core/facets/kernel/singleton_class_rb.html +0 -92
  274. data/doc/rdoc/core/files/lib/core/facets/kernel/tap_rb.html +0 -92
  275. data/doc/rdoc/core/files/lib/core/facets/kernel/try_rb.html +0 -92
  276. data/doc/rdoc/core/files/lib/core/facets/kernel/val_rb.html +0 -92
  277. data/doc/rdoc/core/files/lib/core/facets/kernel/with_rb.html +0 -92
  278. data/doc/rdoc/core/files/lib/core/facets/kernel_rb.html +0 -92
  279. data/doc/rdoc/core/files/lib/core/facets/lazy_rb.html +0 -120
  280. data/doc/rdoc/core/files/lib/core/facets/matchdata/match_rb.html +0 -92
  281. data/doc/rdoc/core/files/lib/core/facets/matchdata/matchset_rb.html +0 -92
  282. data/doc/rdoc/core/files/lib/core/facets/matchdata_rb.html +0 -92
  283. data/doc/rdoc/core/files/lib/core/facets/metaid_rb.html +0 -92
  284. data/doc/rdoc/core/files/lib/core/facets/module/abstract_rb.html +0 -92
  285. data/doc/rdoc/core/files/lib/core/facets/module/alias_accessor_rb.html +0 -92
  286. data/doc/rdoc/core/files/lib/core/facets/module/alias_method_chain_rb.html +0 -92
  287. data/doc/rdoc/core/files/lib/core/facets/module/alias_module_function_rb.html +0 -92
  288. data/doc/rdoc/core/files/lib/core/facets/module/ancestor_rb.html +0 -92
  289. data/doc/rdoc/core/files/lib/core/facets/module/basename_rb.html +0 -92
  290. data/doc/rdoc/core/files/lib/core/facets/module/can_rb.html +0 -92
  291. data/doc/rdoc/core/files/lib/core/facets/module/class_rb.html +0 -92
  292. data/doc/rdoc/core/files/lib/core/facets/module/conflict_rb.html +0 -92
  293. data/doc/rdoc/core/files/lib/core/facets/module/extend_rb.html +0 -92
  294. data/doc/rdoc/core/files/lib/core/facets/module/include_function_module_rb.html +0 -92
  295. data/doc/rdoc/core/files/lib/core/facets/module/instance_methods_rb.html +0 -92
  296. data/doc/rdoc/core/files/lib/core/facets/module/integrate_rb.html +0 -96
  297. data/doc/rdoc/core/files/lib/core/facets/module/is_rb.html +0 -92
  298. data/doc/rdoc/core/files/lib/core/facets/module/methodize_rb.html +0 -96
  299. data/doc/rdoc/core/files/lib/core/facets/module/modspace_rb.html +0 -92
  300. data/doc/rdoc/core/files/lib/core/facets/module/module_load_rb.html +0 -92
  301. data/doc/rdoc/core/files/lib/core/facets/module/nesting_rb.html +0 -92
  302. data/doc/rdoc/core/files/lib/core/facets/module/op_rb.html +0 -92
  303. data/doc/rdoc/core/files/lib/core/facets/module/pathize_rb.html +0 -96
  304. data/doc/rdoc/core/files/lib/core/facets/module/prepend_rb.html +0 -92
  305. data/doc/rdoc/core/files/lib/core/facets/module/redefine_method_rb.html +0 -92
  306. data/doc/rdoc/core/files/lib/core/facets/module/redirect_method_rb.html +0 -92
  307. data/doc/rdoc/core/files/lib/core/facets/module/rename_method_rb.html +0 -92
  308. data/doc/rdoc/core/files/lib/core/facets/module/revise_rb.html +0 -99
  309. data/doc/rdoc/core/files/lib/core/facets/module/spacename_rb.html +0 -92
  310. data/doc/rdoc/core/files/lib/core/facets/module/wrap_method_rb.html +0 -92
  311. data/doc/rdoc/core/files/lib/core/facets/module_rb.html +0 -92
  312. data/doc/rdoc/core/files/lib/core/facets/nilclass/ergo_rb.html +0 -96
  313. data/doc/rdoc/core/files/lib/core/facets/nilclass/to_f_rb.html +0 -92
  314. data/doc/rdoc/core/files/lib/core/facets/nilclass_rb.html +0 -92
  315. data/doc/rdoc/core/files/lib/core/facets/numeric/approx_rb.html +0 -92
  316. data/doc/rdoc/core/files/lib/core/facets/numeric/distance_rb.html +0 -92
  317. data/doc/rdoc/core/files/lib/core/facets/numeric/round_rb.html +0 -92
  318. data/doc/rdoc/core/files/lib/core/facets/numeric_rb.html +0 -92
  319. data/doc/rdoc/core/files/lib/core/facets/objectspace/classes_rb.html +0 -92
  320. data/doc/rdoc/core/files/lib/core/facets/objectspace_rb.html +0 -92
  321. data/doc/rdoc/core/files/lib/core/facets/proc/bind_rb.html +0 -92
  322. data/doc/rdoc/core/files/lib/core/facets/proc/compose_rb.html +0 -92
  323. data/doc/rdoc/core/files/lib/core/facets/proc/curry_rb.html +0 -92
  324. data/doc/rdoc/core/files/lib/core/facets/proc/to_method_rb.html +0 -96
  325. data/doc/rdoc/core/files/lib/core/facets/proc/update_rb.html +0 -92
  326. data/doc/rdoc/core/files/lib/core/facets/proc_rb.html +0 -92
  327. data/doc/rdoc/core/files/lib/core/facets/range/combine_rb.html +0 -92
  328. data/doc/rdoc/core/files/lib/core/facets/range/overlap_rb.html +0 -92
  329. data/doc/rdoc/core/files/lib/core/facets/range/to_r_rb.html +0 -92
  330. data/doc/rdoc/core/files/lib/core/facets/range/umbrella_rb.html +0 -96
  331. data/doc/rdoc/core/files/lib/core/facets/range/within_rb.html +0 -92
  332. data/doc/rdoc/core/files/lib/core/facets/range_rb.html +0 -92
  333. data/doc/rdoc/core/files/lib/core/facets/regexp/arity_rb.html +0 -92
  334. data/doc/rdoc/core/files/lib/core/facets/regexp/to_re_rb.html +0 -92
  335. data/doc/rdoc/core/files/lib/core/facets/regexp_rb.html +0 -92
  336. data/doc/rdoc/core/files/lib/core/facets/stackable_rb.html +0 -120
  337. data/doc/rdoc/core/files/lib/core/facets/string/align_rb.html +0 -92
  338. data/doc/rdoc/core/files/lib/core/facets/string/bracket_rb.html +0 -92
  339. data/doc/rdoc/core/files/lib/core/facets/string/bytes_rb.html +0 -92
  340. data/doc/rdoc/core/files/lib/core/facets/string/camelcase_rb.html +0 -92
  341. data/doc/rdoc/core/files/lib/core/facets/string/capitalized_rb.html +0 -92
  342. data/doc/rdoc/core/files/lib/core/facets/string/chars_rb.html +0 -92
  343. data/doc/rdoc/core/files/lib/core/facets/string/chomp_rb.html +0 -92
  344. data/doc/rdoc/core/files/lib/core/facets/string/cleave_rb.html +0 -92
  345. data/doc/rdoc/core/files/lib/core/facets/string/compress_lines_rb.html +0 -92
  346. data/doc/rdoc/core/files/lib/core/facets/string/contains_rb.html +0 -92
  347. data/doc/rdoc/core/files/lib/core/facets/string/divide_rb.html +0 -92
  348. data/doc/rdoc/core/files/lib/core/facets/string/each_char_rb.html +0 -96
  349. data/doc/rdoc/core/files/lib/core/facets/string/each_word_rb.html +0 -96
  350. data/doc/rdoc/core/files/lib/core/facets/string/end_with_rb.html +0 -96
  351. data/doc/rdoc/core/files/lib/core/facets/string/expand_tab_rb.html +0 -92
  352. data/doc/rdoc/core/files/lib/core/facets/string/file_rb.html +0 -96
  353. data/doc/rdoc/core/files/lib/core/facets/string/fold_rb.html +0 -92
  354. data/doc/rdoc/core/files/lib/core/facets/string/indent_rb.html +0 -92
  355. data/doc/rdoc/core/files/lib/core/facets/string/interpolate_rb.html +0 -92
  356. data/doc/rdoc/core/files/lib/core/facets/string/line_wrap_rb.html +0 -92
  357. data/doc/rdoc/core/files/lib/core/facets/string/lines_rb.html +0 -92
  358. data/doc/rdoc/core/files/lib/core/facets/string/margin_rb.html +0 -92
  359. data/doc/rdoc/core/files/lib/core/facets/string/methodize_rb.html +0 -92
  360. data/doc/rdoc/core/files/lib/core/facets/string/modulize_rb.html +0 -92
  361. data/doc/rdoc/core/files/lib/core/facets/string/mscan_rb.html +0 -92
  362. data/doc/rdoc/core/files/lib/core/facets/string/natcmp_rb.html +0 -92
  363. data/doc/rdoc/core/files/lib/core/facets/string/nchar_rb.html +0 -92
  364. data/doc/rdoc/core/files/lib/core/facets/string/op_sub_rb.html +0 -92
  365. data/doc/rdoc/core/files/lib/core/facets/string/outdent_rb.html +0 -96
  366. data/doc/rdoc/core/files/lib/core/facets/string/pathize_rb.html +0 -92
  367. data/doc/rdoc/core/files/lib/core/facets/string/range_rb.html +0 -92
  368. data/doc/rdoc/core/files/lib/core/facets/string/rewrite_rb.html +0 -92
  369. data/doc/rdoc/core/files/lib/core/facets/string/shatter_rb.html +0 -92
  370. data/doc/rdoc/core/files/lib/core/facets/string/snakecase_rb.html +0 -92
  371. data/doc/rdoc/core/files/lib/core/facets/string/splice_rb.html +0 -92
  372. data/doc/rdoc/core/files/lib/core/facets/string/start_with_rb.html +0 -92
  373. data/doc/rdoc/core/files/lib/core/facets/string/subtract_rb.html +0 -100
  374. data/doc/rdoc/core/files/lib/core/facets/string/tab_rb.html +0 -99
  375. data/doc/rdoc/core/files/lib/core/facets/string/tabto_rb.html +0 -96
  376. data/doc/rdoc/core/files/lib/core/facets/string/titlecase_rb.html +0 -92
  377. data/doc/rdoc/core/files/lib/core/facets/string/to_re_rb.html +0 -92
  378. data/doc/rdoc/core/files/lib/core/facets/string/variablize_rb.html +0 -92
  379. data/doc/rdoc/core/files/lib/core/facets/string/word_wrap_rb.html +0 -92
  380. data/doc/rdoc/core/files/lib/core/facets/string/words_rb.html +0 -92
  381. data/doc/rdoc/core/files/lib/core/facets/string/xor_rb.html +0 -92
  382. data/doc/rdoc/core/files/lib/core/facets/string_rb.html +0 -92
  383. data/doc/rdoc/core/files/lib/core/facets/struct/attributes_rb.html +0 -92
  384. data/doc/rdoc/core/files/lib/core/facets/struct_rb.html +0 -92
  385. data/doc/rdoc/core/files/lib/core/facets/symbol/chomp_rb.html +0 -92
  386. data/doc/rdoc/core/files/lib/core/facets/symbol/generate_rb.html +0 -92
  387. data/doc/rdoc/core/files/lib/core/facets/symbol/not_rb.html +0 -92
  388. data/doc/rdoc/core/files/lib/core/facets/symbol/plain_rb.html +0 -92
  389. data/doc/rdoc/core/files/lib/core/facets/symbol/query_rb.html +0 -96
  390. data/doc/rdoc/core/files/lib/core/facets/symbol/re_s_rb.html +0 -96
  391. data/doc/rdoc/core/files/lib/core/facets/symbol/setter_rb.html +0 -96
  392. data/doc/rdoc/core/files/lib/core/facets/symbol/succ_rb.html +0 -92
  393. data/doc/rdoc/core/files/lib/core/facets/symbol/to_proc_rb.html +0 -92
  394. data/doc/rdoc/core/files/lib/core/facets/symbol/variablize_rb.html +0 -92
  395. data/doc/rdoc/core/files/lib/core/facets/symbol_rb.html +0 -92
  396. data/doc/rdoc/core/files/lib/core/facets/time/advance_rb.html +0 -92
  397. data/doc/rdoc/core/files/lib/core/facets/time/ago_rb.html +0 -96
  398. data/doc/rdoc/core/files/lib/core/facets/time/change_rb.html +0 -92
  399. data/doc/rdoc/core/files/lib/core/facets/time/elapse_rb.html +0 -92
  400. data/doc/rdoc/core/files/lib/core/facets/time/hence_rb.html +0 -96
  401. data/doc/rdoc/core/files/lib/core/facets/time/round_rb.html +0 -96
  402. data/doc/rdoc/core/files/lib/core/facets/time/set_rb.html +0 -92
  403. data/doc/rdoc/core/files/lib/core/facets/time/stamp_rb.html +0 -92
  404. data/doc/rdoc/core/files/lib/core/facets/time/to_time_rb.html +0 -92
  405. data/doc/rdoc/core/files/lib/core/facets/time/trunc_rb.html +0 -92
  406. data/doc/rdoc/core/files/lib/core/facets/time_rb.html +0 -92
  407. data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +0 -97
  408. data/doc/rdoc/core/files/lib/core/facets/unboundmethod/arguments_rb.html +0 -92
  409. data/doc/rdoc/core/files/lib/core/facets/unboundmethod/name_rb.html +0 -92
  410. data/doc/rdoc/core/files/lib/core/facets/unboundmethod_rb.html +0 -92
  411. data/doc/rdoc/core/fr_class_index.html +0 -85
  412. data/doc/rdoc/core/fr_file_index.html +0 -381
  413. data/doc/rdoc/core/fr_method_index.html +0 -520
  414. data/doc/rdoc/core/index.html +0 -26
  415. data/doc/rdoc/core/rdoc-style.css +0 -177
  416. data/doc/rdoc/more/classes/ANSICode.html +0 -493
  417. data/doc/rdoc/more/classes/Advisable.html +0 -269
  418. data/doc/rdoc/more/classes/Advisable/Method.html +0 -223
  419. data/doc/rdoc/more/classes/Archive.html +0 -89
  420. data/doc/rdoc/more/classes/Archive/Tar.html +0 -89
  421. data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +0 -469
  422. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +0 -355
  423. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +0 -216
  424. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +0 -283
  425. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +0 -378
  426. data/doc/rdoc/more/classes/Argvector.html +0 -487
  427. data/doc/rdoc/more/classes/Association.html +0 -319
  428. data/doc/rdoc/more/classes/Association/Kernel.html +0 -131
  429. data/doc/rdoc/more/classes/Autoarray.html +0 -166
  430. data/doc/rdoc/more/classes/BBCode.html +0 -532
  431. data/doc/rdoc/more/classes/BaseX.html +0 -194
  432. data/doc/rdoc/more/classes/BiCrypt.html +0 -541
  433. data/doc/rdoc/more/classes/BinReadable.html +0 -485
  434. data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +0 -223
  435. data/doc/rdoc/more/classes/Binding.html +0 -146
  436. data/doc/rdoc/more/classes/BlankSlate.html +0 -129
  437. data/doc/rdoc/more/classes/Buildable.html +0 -152
  438. data/doc/rdoc/more/classes/BuildingBlock.html +0 -360
  439. data/doc/rdoc/more/classes/Capsule.html +0 -408
  440. data/doc/rdoc/more/classes/Capsule/MissingFile.html +0 -96
  441. data/doc/rdoc/more/classes/Cloneable.html +0 -129
  442. data/doc/rdoc/more/classes/ConsoleUtils.html +0 -238
  443. data/doc/rdoc/more/classes/Coroutine.html +0 -285
  444. data/doc/rdoc/more/classes/Crypt.html +0 -275
  445. data/doc/rdoc/more/classes/CssFilter.html +0 -471
  446. data/doc/rdoc/more/classes/CssTree.html +0 -149
  447. data/doc/rdoc/more/classes/Dictionary.html +0 -1255
  448. data/doc/rdoc/more/classes/Downloader.html +0 -512
  449. data/doc/rdoc/more/classes/Duration.html +0 -691
  450. data/doc/rdoc/more/classes/Duration/Numeric.html +0 -389
  451. data/doc/rdoc/more/classes/Duration/Time.html +0 -124
  452. data/doc/rdoc/more/classes/Enumerable.html +0 -401
  453. data/doc/rdoc/more/classes/Enumerable/Elementor.html +0 -170
  454. data/doc/rdoc/more/classes/Enumerable/Enumerator.html +0 -116
  455. data/doc/rdoc/more/classes/Enumerable/Filterable.html +0 -246
  456. data/doc/rdoc/more/classes/EnumerablePass.html +0 -214
  457. data/doc/rdoc/more/classes/Enumerator.html +0 -95
  458. data/doc/rdoc/more/classes/Enumerator/Filter.html +0 -104
  459. data/doc/rdoc/more/classes/Equatable.html +0 -188
  460. data/doc/rdoc/more/classes/Expirable.html +0 -195
  461. data/doc/rdoc/more/classes/FileList.html +0 -955
  462. data/doc/rdoc/more/classes/Fileable.html +0 -178
  463. data/doc/rdoc/more/classes/Fileable/DSL.html +0 -303
  464. data/doc/rdoc/more/classes/Hash.html +0 -171
  465. data/doc/rdoc/more/classes/Hash2Xml.html +0 -105
  466. data/doc/rdoc/more/classes/Hook.html +0 -162
  467. data/doc/rdoc/more/classes/HtmlFilter.html +0 -329
  468. data/doc/rdoc/more/classes/IORedirect.html +0 -220
  469. data/doc/rdoc/more/classes/InfinityClass.html +0 -448
  470. data/doc/rdoc/more/classes/InfinityClass/Numeric.html +0 -195
  471. data/doc/rdoc/more/classes/Ini.html +0 -447
  472. data/doc/rdoc/more/classes/Instantiable.html +0 -140
  473. data/doc/rdoc/more/classes/Instantize.html +0 -160
  474. data/doc/rdoc/more/classes/Interval.html +0 -877
  475. data/doc/rdoc/more/classes/It.html +0 -185
  476. data/doc/rdoc/more/classes/LRUCache.html +0 -321
  477. data/doc/rdoc/more/classes/LRUCache/Item.html +0 -114
  478. data/doc/rdoc/more/classes/LRUCache/Sentinel.html +0 -100
  479. data/doc/rdoc/more/classes/LinkedList.html +0 -432
  480. data/doc/rdoc/more/classes/LinkedList/Node.html +0 -149
  481. data/doc/rdoc/more/classes/Matcher.html +0 -335
  482. data/doc/rdoc/more/classes/Matcher/MatchData.html +0 -115
  483. data/doc/rdoc/more/classes/Memoizer.html +0 -240
  484. data/doc/rdoc/more/classes/MissingArgument.html +0 -97
  485. data/doc/rdoc/more/classes/Module.html +0 -1224
  486. data/doc/rdoc/more/classes/Multiton.html +0 -205
  487. data/doc/rdoc/more/classes/Multiton/Inclusive.html +0 -93
  488. data/doc/rdoc/more/classes/Multiton/MetaMethods.html +0 -221
  489. data/doc/rdoc/more/classes/NackClass.html +0 -98
  490. data/doc/rdoc/more/classes/Net.html +0 -88
  491. data/doc/rdoc/more/classes/Net/SMTP.html +0 -140
  492. data/doc/rdoc/more/classes/NullClass.html +0 -202
  493. data/doc/rdoc/more/classes/Numeric/Multipliers.html +0 -456
  494. data/doc/rdoc/more/classes/ObjectReflection.html +0 -172
  495. data/doc/rdoc/more/classes/OpEsc.html +0 -137
  496. data/doc/rdoc/more/classes/OpenCascade.html +0 -179
  497. data/doc/rdoc/more/classes/OpenCollection.html +0 -138
  498. data/doc/rdoc/more/classes/OpenHash.html +0 -157
  499. data/doc/rdoc/more/classes/OpenModule.html +0 -135
  500. data/doc/rdoc/more/classes/OpenObject.html +0 -608
  501. data/doc/rdoc/more/classes/OpenStructable.html +0 -326
  502. data/doc/rdoc/more/classes/PQueue.html +0 -607
  503. data/doc/rdoc/more/classes/Paramix.html +0 -201
  504. data/doc/rdoc/more/classes/Paramix/Delegator.html +0 -215
  505. data/doc/rdoc/more/classes/PathList.html +0 -159
  506. data/doc/rdoc/more/classes/PathList/Finder.html +0 -135
  507. data/doc/rdoc/more/classes/Platform.html +0 -444
  508. data/doc/rdoc/more/classes/Pool.html +0 -204
  509. data/doc/rdoc/more/classes/Proc.html +0 -180
  510. data/doc/rdoc/more/classes/ProgressBar.html +0 -356
  511. data/doc/rdoc/more/classes/Prototype.html +0 -243
  512. data/doc/rdoc/more/classes/RWDelegator.html +0 -194
  513. data/doc/rdoc/more/classes/Random.html +0 -145
  514. data/doc/rdoc/more/classes/Random/Array.html +0 -339
  515. data/doc/rdoc/more/classes/Random/Hash.html +0 -378
  516. data/doc/rdoc/more/classes/Random/Object.html +0 -119
  517. data/doc/rdoc/more/classes/Random/String.html +0 -299
  518. data/doc/rdoc/more/classes/Random/String/Self.html +0 -153
  519. data/doc/rdoc/more/classes/Recorder.html +0 -203
  520. data/doc/rdoc/more/classes/Reference.html +0 -196
  521. data/doc/rdoc/more/classes/Registerable.html +0 -157
  522. data/doc/rdoc/more/classes/Semaphore.html +0 -260
  523. data/doc/rdoc/more/classes/Settings.html +0 -288
  524. data/doc/rdoc/more/classes/Settings/Setting.html +0 -223
  525. data/doc/rdoc/more/classes/Settings/SettingCollection.html +0 -144
  526. data/doc/rdoc/more/classes/SimpleStringIO.html +0 -135
  527. data/doc/rdoc/more/classes/Snapshot.html +0 -194
  528. data/doc/rdoc/more/classes/Snapshot/ValueHolder.html +0 -163
  529. data/doc/rdoc/more/classes/SparseArray.html +0 -1397
  530. data/doc/rdoc/more/classes/Stash.html +0 -232
  531. data/doc/rdoc/more/classes/String/Mask.html +0 -555
  532. data/doc/rdoc/more/classes/String/Words.html +0 -328
  533. data/doc/rdoc/more/classes/Struct.html +0 -130
  534. data/doc/rdoc/more/classes/SyncArray.html +0 -127
  535. data/doc/rdoc/more/classes/SyncHash.html +0 -158
  536. data/doc/rdoc/more/classes/SyncHash/Delegator.html +0 -211
  537. data/doc/rdoc/more/classes/SyncHash/Inheritor.html +0 -211
  538. data/doc/rdoc/more/classes/System.html +0 -1117
  539. data/doc/rdoc/more/classes/Timer.html +0 -464
  540. data/doc/rdoc/more/classes/Timer/Dummy.html +0 -139
  541. data/doc/rdoc/more/classes/TracePoint.html +0 -455
  542. data/doc/rdoc/more/classes/Tuple.html +0 -900
  543. data/doc/rdoc/more/classes/TypeCast.html +0 -158
  544. data/doc/rdoc/more/classes/TypeCast/Class.html +0 -127
  545. data/doc/rdoc/more/classes/TypeCast/Object.html +0 -117
  546. data/doc/rdoc/more/classes/TypeCastException.html +0 -96
  547. data/doc/rdoc/more/classes/Uninheritable.html +0 -120
  548. data/doc/rdoc/more/classes/VersionNumber.html +0 -408
  549. data/doc/rdoc/more/classes/X.html +0 -117
  550. data/doc/rdoc/more/classes/XOXO.html +0 -189
  551. data/doc/rdoc/more/classes/ZipUtils.html +0 -568
  552. data/doc/rdoc/more/classes/ZipUtils/DryRun.html +0 -391
  553. data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +0 -391
  554. data/doc/rdoc/more/classes/ZipUtils/Verbose.html +0 -361
  555. data/doc/rdoc/more/created.rid +0 -1
  556. data/doc/rdoc/more/files/README.html +0 -286
  557. data/doc/rdoc/more/files/doc/README_more.html +0 -141
  558. data/doc/rdoc/more/files/lib/more/facets/1stclassmethod_rb.html +0 -181
  559. data/doc/rdoc/more/files/lib/more/facets/advisable_rb.html +0 -124
  560. data/doc/rdoc/more/files/lib/more/facets/ansicode_rb.html +0 -200
  561. data/doc/rdoc/more/files/lib/more/facets/argvector_rb.html +0 -142
  562. data/doc/rdoc/more/files/lib/more/facets/association_rb.html +0 -158
  563. data/doc/rdoc/more/files/lib/more/facets/attr_rb.html +0 -92
  564. data/doc/rdoc/more/files/lib/more/facets/autoarray_rb.html +0 -125
  565. data/doc/rdoc/more/files/lib/more/facets/autoreload_rb.html +0 -134
  566. data/doc/rdoc/more/files/lib/more/facets/basex_rb.html +0 -92
  567. data/doc/rdoc/more/files/lib/more/facets/bbcode_rb.html +0 -138
  568. data/doc/rdoc/more/files/lib/more/facets/bicrypt_rb.html +0 -124
  569. data/doc/rdoc/more/files/lib/more/facets/binding/opvars_rb.html +0 -96
  570. data/doc/rdoc/more/files/lib/more/facets/binreadable_rb.html +0 -141
  571. data/doc/rdoc/more/files/lib/more/facets/blankslate_rb.html +0 -92
  572. data/doc/rdoc/more/files/lib/more/facets/buildable_rb.html +0 -230
  573. data/doc/rdoc/more/files/lib/more/facets/capsule_rb.html +0 -143
  574. data/doc/rdoc/more/files/lib/more/facets/class_extension_rb.html +0 -155
  575. data/doc/rdoc/more/files/lib/more/facets/classmethods_rb.html +0 -213
  576. data/doc/rdoc/more/files/lib/more/facets/cloneable_rb.html +0 -134
  577. data/doc/rdoc/more/files/lib/more/facets/consoleutils_rb.html +0 -92
  578. data/doc/rdoc/more/files/lib/more/facets/coroutine_rb.html +0 -163
  579. data/doc/rdoc/more/files/lib/more/facets/crypt_rb.html +0 -141
  580. data/doc/rdoc/more/files/lib/more/facets/cssfilter_rb.html +0 -121
  581. data/doc/rdoc/more/files/lib/more/facets/daemonize_rb.html +0 -118
  582. data/doc/rdoc/more/files/lib/more/facets/dependency_rb.html +0 -158
  583. data/doc/rdoc/more/files/lib/more/facets/dictionary_rb.html +0 -201
  584. data/doc/rdoc/more/files/lib/more/facets/downloader_rb.html +0 -137
  585. data/doc/rdoc/more/files/lib/more/facets/duplicable_rb.html +0 -100
  586. data/doc/rdoc/more/files/lib/more/facets/duration_rb.html +0 -92
  587. data/doc/rdoc/more/files/lib/more/facets/elementor_rb.html +0 -149
  588. data/doc/rdoc/more/files/lib/more/facets/elementwise_rb.html +0 -96
  589. data/doc/rdoc/more/files/lib/more/facets/enumerablepass_rb.html +0 -154
  590. data/doc/rdoc/more/files/lib/more/facets/equatable_rb.html +0 -146
  591. data/doc/rdoc/more/files/lib/more/facets/expirable_rb.html +0 -116
  592. data/doc/rdoc/more/files/lib/more/facets/fileable_rb.html +0 -138
  593. data/doc/rdoc/more/files/lib/more/facets/filelist_rb.html +0 -165
  594. data/doc/rdoc/more/files/lib/more/facets/filter_rb.html +0 -97
  595. data/doc/rdoc/more/files/lib/more/facets/heap_rb.html +0 -132
  596. data/doc/rdoc/more/files/lib/more/facets/hook_rb.html +0 -96
  597. data/doc/rdoc/more/files/lib/more/facets/htmlfilter_rb.html +0 -153
  598. data/doc/rdoc/more/files/lib/more/facets/infinity_rb.html +0 -153
  599. data/doc/rdoc/more/files/lib/more/facets/inheritor_rb.html +0 -124
  600. data/doc/rdoc/more/files/lib/more/facets/ini_rb.html +0 -105
  601. data/doc/rdoc/more/files/lib/more/facets/instantiable_rb.html +0 -119
  602. data/doc/rdoc/more/files/lib/more/facets/instantise_rb.html +0 -96
  603. data/doc/rdoc/more/files/lib/more/facets/instantize_rb.html +0 -160
  604. data/doc/rdoc/more/files/lib/more/facets/interval_rb.html +0 -163
  605. data/doc/rdoc/more/files/lib/more/facets/ioredirect_rb.html +0 -133
  606. data/doc/rdoc/more/files/lib/more/facets/iteration_rb.html +0 -94
  607. data/doc/rdoc/more/files/lib/more/facets/kernel/meta_rb.html +0 -96
  608. data/doc/rdoc/more/files/lib/more/facets/linkedlist_rb.html +0 -159
  609. data/doc/rdoc/more/files/lib/more/facets/lrucache_rb.html +0 -129
  610. data/doc/rdoc/more/files/lib/more/facets/main_rb.html +0 -126
  611. data/doc/rdoc/more/files/lib/more/facets/matcher_rb.html +0 -97
  612. data/doc/rdoc/more/files/lib/more/facets/memoize_rb.html +0 -164
  613. data/doc/rdoc/more/files/lib/more/facets/memoizer_rb.html +0 -152
  614. data/doc/rdoc/more/files/lib/more/facets/methodspace_rb.html +0 -138
  615. data/doc/rdoc/more/files/lib/more/facets/minitar_rb.html +0 -203
  616. data/doc/rdoc/more/files/lib/more/facets/multipliers_rb.html +0 -132
  617. data/doc/rdoc/more/files/lib/more/facets/multiton_rb.html +0 -187
  618. data/doc/rdoc/more/files/lib/more/facets/nackclass_rb.html +0 -120
  619. data/doc/rdoc/more/files/lib/more/facets/net/smtp_tls_rb.html +0 -143
  620. data/doc/rdoc/more/files/lib/more/facets/nilstatus_rb.html +0 -92
  621. data/doc/rdoc/more/files/lib/more/facets/nullclass_rb.html +0 -122
  622. data/doc/rdoc/more/files/lib/more/facets/opencascade_rb.html +0 -114
  623. data/doc/rdoc/more/files/lib/more/facets/opencollection_rb.html +0 -123
  624. data/doc/rdoc/more/files/lib/more/facets/openhash_rb.html +0 -107
  625. data/doc/rdoc/more/files/lib/more/facets/openmodule_rb.html +0 -92
  626. data/doc/rdoc/more/files/lib/more/facets/openobject_rb.html +0 -169
  627. data/doc/rdoc/more/files/lib/more/facets/opesc_rb.html +0 -94
  628. data/doc/rdoc/more/files/lib/more/facets/orderedhash_rb.html +0 -143
  629. data/doc/rdoc/more/files/lib/more/facets/ostructable_rb.html +0 -92
  630. data/doc/rdoc/more/files/lib/more/facets/overload_rb.html +0 -119
  631. data/doc/rdoc/more/files/lib/more/facets/paramix_rb.html +0 -135
  632. data/doc/rdoc/more/files/lib/more/facets/partial_rb.html +0 -124
  633. data/doc/rdoc/more/files/lib/more/facets/pathlist_rb.html +0 -133
  634. data/doc/rdoc/more/files/lib/more/facets/platform_rb.html +0 -103
  635. data/doc/rdoc/more/files/lib/more/facets/pool_rb.html +0 -131
  636. data/doc/rdoc/more/files/lib/more/facets/pqueue_rb.html +0 -128
  637. data/doc/rdoc/more/files/lib/more/facets/progressbar_rb.html +0 -126
  638. data/doc/rdoc/more/files/lib/more/facets/prototype_rb.html +0 -102
  639. data/doc/rdoc/more/files/lib/more/facets/random_rb.html +0 -149
  640. data/doc/rdoc/more/files/lib/more/facets/rbsystem_rb.html +0 -144
  641. data/doc/rdoc/more/files/lib/more/facets/recorder_rb.html +0 -154
  642. data/doc/rdoc/more/files/lib/more/facets/reference_rb.html +0 -130
  643. data/doc/rdoc/more/files/lib/more/facets/reflection_rb.html +0 -134
  644. data/doc/rdoc/more/files/lib/more/facets/registerable_rb.html +0 -98
  645. data/doc/rdoc/more/files/lib/more/facets/rwdelegator_rb.html +0 -122
  646. data/doc/rdoc/more/files/lib/more/facets/semaphore_rb.html +0 -120
  647. data/doc/rdoc/more/files/lib/more/facets/settings_rb.html +0 -141
  648. data/doc/rdoc/more/files/lib/more/facets/snapshot_rb.html +0 -177
  649. data/doc/rdoc/more/files/lib/more/facets/sparse_array_rb.html +0 -92
  650. data/doc/rdoc/more/files/lib/more/facets/stash_rb.html +0 -166
  651. data/doc/rdoc/more/files/lib/more/facets/string/mask_rb.html +0 -96
  652. data/doc/rdoc/more/files/lib/more/facets/string/words_rb.html +0 -96
  653. data/doc/rdoc/more/files/lib/more/facets/succ_rb.html +0 -92
  654. data/doc/rdoc/more/files/lib/more/facets/syncarray_rb.html +0 -125
  655. data/doc/rdoc/more/files/lib/more/facets/synchash_rb.html +0 -138
  656. data/doc/rdoc/more/files/lib/more/facets/thread_rb.html +0 -132
  657. data/doc/rdoc/more/files/lib/more/facets/timer_rb.html +0 -174
  658. data/doc/rdoc/more/files/lib/more/facets/tracepoint_rb.html +0 -172
  659. data/doc/rdoc/more/files/lib/more/facets/tuple_rb.html +0 -160
  660. data/doc/rdoc/more/files/lib/more/facets/typecast_rb.html +0 -215
  661. data/doc/rdoc/more/files/lib/more/facets/uninheritable_rb.html +0 -129
  662. data/doc/rdoc/more/files/lib/more/facets/version_rb.html +0 -132
  663. data/doc/rdoc/more/files/lib/more/facets/xmlhash_rb.html +0 -97
  664. data/doc/rdoc/more/files/lib/more/facets/xoxo_rb.html +0 -136
  665. data/doc/rdoc/more/files/lib/more/facets/ziputils_rb.html +0 -105
  666. data/doc/rdoc/more/fr_class_index.html +0 -185
  667. data/doc/rdoc/more/fr_file_index.html +0 -156
  668. data/doc/rdoc/more/fr_method_index.html +0 -1132
  669. data/doc/rdoc/more/index.html +0 -26
  670. data/doc/rdoc/more/rdoc-style.css +0 -177
  671. data/lib/core/facets/kernel/__here__.rb +0 -8
  672. data/lib/more/facets/buildable.rb +0 -344
  673. data/lib/more/facets/cssfilter.rb +0 -254
  674. data/lib/more/facets/htmlfilter.rb +0 -595
  675. data/lib/more/facets/kernel/meta.rb +0 -32
  676. data/lib/more/facets/prototype.rb +0 -88
  677. data/lib/more/facets/rwdelegator.rb +0 -74
@@ -1,1224 +0,0 @@
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: Module</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 = "+"
36
- }
37
- else
38
- {
39
- elem.style.display = "block"
40
- link.innerHTML = "-"
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 />Module</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/more/facets/classmethods_rb.html">lib/more/facets/classmethods.rb</a>
61
- <a href="../files/lib/more/facets/dependency_rb.html">lib/more/facets/dependency.rb</a>
62
- <a href="../files/lib/more/facets/memoize_rb.html">lib/more/facets/memoize.rb</a>
63
- <a href="../files/lib/more/facets/attr_rb.html">lib/more/facets/attr.rb</a>
64
- <a href="../files/lib/more/facets/settings_rb.html">lib/more/facets/settings.rb</a>
65
- <a href="../files/lib/more/facets/1stclassmethod_rb.html">lib/more/facets/1stclassmethod.rb</a>
66
- <a href="../files/lib/more/facets/overload_rb.html">lib/more/facets/overload.rb</a>
67
- <a href="../files/lib/more/facets/methodspace_rb.html">lib/more/facets/methodspace.rb</a>
68
- <a href="../files/lib/more/facets/capsule_rb.html">lib/more/facets/capsule.rb</a>
69
- <a href="../files/lib/more/facets/equatable_rb.html">lib/more/facets/equatable.rb</a>
70
- <a href="../files/lib/more/facets/paramix_rb.html">lib/more/facets/paramix.rb</a>
71
- <a href="../files/lib/more/facets/class_extension_rb.html">lib/more/facets/class_extension.rb</a>
72
- </td>
73
- </tr>
74
- <tr>
75
- <td>Parent:</td>
76
- <td>
77
- Object
78
- </td>
79
- </tr>
80
- </table>
81
- </td>
82
- </tr>
83
- </table>
84
- <!-- banner header -->
85
-
86
- <div id="bodyContent">
87
- <div id="content">
88
-
89
-
90
-
91
-
92
- <div class="sectiontitle">Methods</div>
93
- <span style="padding-right: 5px;"><a href="#M000311">Equatable</a></span>
94
- <span style="padding-right: 5px;"><a href="#M000294">alias_accessor!</a></span>
95
- <span style="padding-right: 5px;"><a href="#M000300">alias_reader!</a></span>
96
- <span style="padding-right: 5px;"><a href="#M000301">alias_reader?</a></span>
97
- <span style="padding-right: 5px;"><a href="#M000290">alias_setter</a></span>
98
- <span style="padding-right: 5px;"><a href="#M000295">alias_switcher</a></span>
99
- <span style="padding-right: 5px;"><a href="#M000302">alias_tester</a></span>
100
- <span style="padding-right: 5px;"><a href="#M000296">alias_toggler</a></span>
101
- <span style="padding-right: 5px;"><a href="#M000288">alias_validator</a></span>
102
- <span style="padding-right: 5px;"><a href="#M000304">alias_writer!</a></span>
103
- <span style="padding-right: 5px;"><a href="#M000315">append_features</a></span>
104
- <span style="padding-right: 5px;"><a href="#M000280">append_features</a></span>
105
- <span style="padding-right: 5px;"><a href="#M000316">append_features</a></span>
106
- <span style="padding-right: 5px;"><a href="#M000314">append_features_without_class_extension</a></span>
107
- <span style="padding-right: 5px;"><a href="#M000291">attr_accessor!</a></span>
108
- <span style="padding-right: 5px;"><a href="#M000297">attr_reader!</a></span>
109
- <span style="padding-right: 5px;"><a href="#M000298">attr_reader?</a></span>
110
- <span style="padding-right: 5px;"><a href="#M000289">attr_setter</a></span>
111
- <span style="padding-right: 5px;"><a href="#M000292">attr_switcher</a></span>
112
- <span style="padding-right: 5px;"><a href="#M000299">attr_tester</a></span>
113
- <span style="padding-right: 5px;"><a href="#M000293">attr_toggler</a></span>
114
- <span style="padding-right: 5px;"><a href="#M000287">attr_validator</a></span>
115
- <span style="padding-right: 5px;"><a href="#M000303">attr_writer!</a></span>
116
- <span style="padding-right: 5px;"><a href="#M000282">class_inherit</a></span>
117
- <span style="padding-right: 5px;"><a href="#M000281">class_methods</a></span>
118
- <span style="padding-right: 5px;"><a href="#M000285">define_dependency</a></span>
119
- <span style="padding-right: 5px;"><a href="#M000283">depend</a></span>
120
- <span style="padding-right: 5px;"><a href="#M000284">dependencies</a></span>
121
- <span style="padding-right: 5px;"><a href="#M000310">include_as</a></span>
122
- <span style="padding-right: 5px;"><a href="#M000306">instance_method!</a></span>
123
- <span style="padding-right: 5px;"><a href="#M000286">memoize</a></span>
124
- <span style="padding-right: 5px;"><a href="#M000307">method_overloads</a></span>
125
- <span style="padding-right: 5px;"><a href="#M000309">method_space</a></span>
126
- <span style="padding-right: 5px;"><a href="#M000312">mixin_parameters</a></span>
127
- <span style="padding-right: 5px;"><a href="#M000313">mixin_params</a></span>
128
- <span style="padding-right: 5px;"><a href="#M000308">overload</a></span>
129
- <span style="padding-right: 5px;"><a href="#M000305">setting</a></span>
130
-
131
-
132
-
133
-
134
-
135
-
136
- <div class="sectiontitle">Public Class methods</div>
137
- <div class="method">
138
- <div class="title">
139
- <a name="M000315"></a><b>append_features</b>(mod)
140
- </div>
141
- <div class="sourcecode">
142
- <p class="source-link">[ <a href="javascript:toggleSource('M000315_source')" id="l_M000315_source">+</a> ]</p>
143
- <div id="M000315_source" class="dyn-source">
144
- <pre>
145
- <span class="ruby-comment cmt"># File lib/more/facets/class_extension.rb, line 85</span>
146
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">append_features</span>(<span class="ruby-identifier">mod</span>)
147
- <span class="ruby-identifier">append_features_without_class_extension</span>(<span class="ruby-identifier">mod</span>)
148
- <span class="ruby-keyword kw">end</span>
149
- </pre>
150
- </div>
151
- </div>
152
- </div>
153
- <div class="sectiontitle">Public Instance methods</div>
154
- <div class="method">
155
- <div class="title">
156
- <a name="M000311"></a><b>Equatable</b>(*accessors)
157
- </div>
158
- <div class="description">
159
- <p>
160
- This function provided a &quot;shortcut&quot; for creating the identity
161
- method based on given accessors and returns the <a
162
- href="Module.html#M000311">Equatable</a> module for inclusion.
163
- </p>
164
- <pre>
165
- include Equatable(:a, :b)
166
- </pre>
167
- <p>
168
- is equivalent to including a module containing:
169
- </p>
170
- <pre>
171
- def ==(other)
172
- self.a == other.a &amp;&amp; self.b == other.b
173
- end
174
-
175
- def eql?(other)
176
- self.a.eql?(other.a) &amp;&amp; self.b.eql?(other.b)
177
- end
178
-
179
- def hash()
180
- self.a.hash ^ self.b.hash
181
- end
182
- </pre>
183
- </div>
184
- <div class="sourcecode">
185
- <p class="source-link">[ <a href="javascript:toggleSource('M000311_source')" id="l_M000311_source">+</a> ]</p>
186
- <div id="M000311_source" class="dyn-source">
187
- <pre>
188
- <span class="ruby-comment cmt"># File lib/more/facets/equatable.rb, line 115</span>
189
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Equatable</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">accessors</span>)
190
- <span class="ruby-constant">Equatable</span>.<span class="ruby-identifier">identify</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">accessors</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="M000294"></a><b>alias_accessor!</b>(*args)
199
- </div>
200
- <div class="description">
201
- <p>
202
- Create aliases for flag accessors.
203
- </p>
204
- <p>
205
- CREDIT: Trans
206
- </p>
207
- </div>
208
- <div class="aka">
209
- This method is also aliased as
210
- <a href="Module.html#M000295">alias_switcher</a>
211
- <a href="Module.html#M000296">alias_toggler</a>
212
- </div>
213
- <div class="sourcecode">
214
- <p class="source-link">[ <a href="javascript:toggleSource('M000294_source')" id="l_M000294_source">+</a> ]</p>
215
- <div id="M000294_source" class="dyn-source">
216
- <pre>
217
- <span class="ruby-comment cmt"># File lib/more/facets/attr.rb, line 117</span>
218
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alias_accessor!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
219
- <span class="ruby-identifier">orig</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">last</span>
220
- <span class="ruby-identifier">args</span> = <span class="ruby-identifier">args</span> <span class="ruby-operator">-</span> [<span class="ruby-identifier">orig</span>]
221
- <span class="ruby-identifier">args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
222
- <span class="ruby-identifier">alias_method</span>(<span class="ruby-node">&quot;#{name}?&quot;</span>, <span class="ruby-node">&quot;#{orig}?&quot;</span>)
223
- <span class="ruby-identifier">alias_method</span>(<span class="ruby-node">&quot;#{name}!&quot;</span>, <span class="ruby-node">&quot;#{orig}!&quot;</span>)
224
- <span class="ruby-keyword kw">end</span>
225
- <span class="ruby-keyword kw">end</span>
226
- </pre>
227
- </div>
228
- </div>
229
- </div>
230
- <div class="method">
231
- <div class="title">
232
- <a name="M000300"></a><b>alias_reader!</b>(*args)
233
- </div>
234
- <div class="description">
235
- <p>
236
- Create aliases for flag reader.
237
- </p>
238
- <p>
239
- CREDIT: Trans
240
- </p>
241
- </div>
242
- <div class="aka">
243
- This method is also aliased as
244
- <a href="Module.html#M000301">alias_reader?</a>
245
- <a href="Module.html#M000302">alias_tester</a>
246
- </div>
247
- <div class="sourcecode">
248
- <p class="source-link">[ <a href="javascript:toggleSource('M000300_source')" id="l_M000300_source">+</a> ]</p>
249
- <div id="M000300_source" class="dyn-source">
250
- <pre>
251
- <span class="ruby-comment cmt"># File lib/more/facets/attr.rb, line 159</span>
252
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alias_reader!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
253
- <span class="ruby-identifier">orig</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">last</span>
254
- <span class="ruby-identifier">args</span> = <span class="ruby-identifier">args</span> <span class="ruby-operator">-</span> [<span class="ruby-identifier">orig</span>]
255
- <span class="ruby-identifier">args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
256
- <span class="ruby-identifier">alias_method</span>(<span class="ruby-node">&quot;#{name}?&quot;</span>, <span class="ruby-node">&quot;#{orig}?&quot;</span>)
257
- <span class="ruby-keyword kw">end</span>
258
- <span class="ruby-keyword kw">end</span>
259
- </pre>
260
- </div>
261
- </div>
262
- </div>
263
- <div class="method">
264
- <div class="title">
265
- <a name="M000301"></a><b>alias_reader?</b>(*args)
266
- </div>
267
- <div class="description">
268
- <p>
269
- Alias for alias_reader!
270
- </p>
271
- </div>
272
- </div>
273
- <div class="method">
274
- <div class="title">
275
- <a name="M000290"></a><b>alias_setter</b>(*args)
276
- </div>
277
- <div class="description">
278
- <p>
279
- Alias an accessor. This create an alias for both a reader and a writer.
280
- </p>
281
- <pre>
282
- class X
283
- attr_accessor :a
284
- alias_accessor :b, :a
285
- end
286
-
287
- x = X.new
288
- x.b = 1
289
- x.a #=&gt; 1
290
- </pre>
291
- <p>
292
- CREDIT: Trans
293
- </p>
294
- </div>
295
- <div class="sourcecode">
296
- <p class="source-link">[ <a href="javascript:toggleSource('M000290_source')" id="l_M000290_source">+</a> ]</p>
297
- <div id="M000290_source" class="dyn-source">
298
- <pre>
299
- <span class="ruby-comment cmt"># File lib/more/facets/attr.rb, line 81</span>
300
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alias_setter</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
301
- <span class="ruby-identifier">args</span> = <span class="ruby-identifier">args</span> <span class="ruby-operator">-</span> [<span class="ruby-identifier">orig</span>]
302
- <span class="ruby-identifier">args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
303
- <span class="ruby-identifier">alias_method</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">orig</span>)
304
- <span class="ruby-keyword kw">end</span>
305
- <span class="ruby-keyword kw">end</span>
306
- </pre>
307
- </div>
308
- </div>
309
- </div>
310
- <div class="method">
311
- <div class="title">
312
- <a name="M000295"></a><b>alias_switcher</b>(*args)
313
- </div>
314
- <div class="description">
315
- <p>
316
- Alias for alias_accessor!
317
- </p>
318
- </div>
319
- </div>
320
- <div class="method">
321
- <div class="title">
322
- <a name="M000302"></a><b>alias_tester</b>(*args)
323
- </div>
324
- <div class="description">
325
- <p>
326
- Alias for alias_reader!
327
- </p>
328
- </div>
329
- </div>
330
- <div class="method">
331
- <div class="title">
332
- <a name="M000296"></a><b>alias_toggler</b>(*args)
333
- </div>
334
- <div class="description">
335
- <p>
336
- Alias for alias_accessor!
337
- </p>
338
- </div>
339
- </div>
340
- <div class="method">
341
- <div class="title">
342
- <a name="M000288"></a><b>alias_validator</b>(*args)
343
- </div>
344
- <div class="description">
345
- <p>
346
- Create aliases for validators.
347
- </p>
348
- </div>
349
- <div class="sourcecode">
350
- <p class="source-link">[ <a href="javascript:toggleSource('M000288_source')" id="l_M000288_source">+</a> ]</p>
351
- <div id="M000288_source" class="dyn-source">
352
- <pre>
353
- <span class="ruby-comment cmt"># File lib/more/facets/attr.rb, line 24</span>
354
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alias_validator</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
355
- <span class="ruby-identifier">orig</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">last</span>
356
- <span class="ruby-identifier">args</span> = <span class="ruby-identifier">args</span> <span class="ruby-operator">-</span> [<span class="ruby-identifier">orig</span>]
357
- <span class="ruby-identifier">args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
358
- <span class="ruby-comment cmt">#alias_method(name, orig)</span>
359
- <span class="ruby-identifier">alias_method</span>(<span class="ruby-node">&quot;#{name}=&quot;</span>, <span class="ruby-node">&quot;#{orig}=&quot;</span>)
360
- <span class="ruby-keyword kw">end</span>
361
- <span class="ruby-keyword kw">end</span>
362
- </pre>
363
- </div>
364
- </div>
365
- </div>
366
- <div class="method">
367
- <div class="title">
368
- <a name="M000304"></a><b>alias_writer!</b>(*args)
369
- </div>
370
- <div class="description">
371
- <p>
372
- Create aliases for flag writer.
373
- </p>
374
- <p>
375
- CREDIT: Trans
376
- </p>
377
- </div>
378
- <div class="sourcecode">
379
- <p class="source-link">[ <a href="javascript:toggleSource('M000304_source')" id="l_M000304_source">+</a> ]</p>
380
- <div id="M000304_source" class="dyn-source">
381
- <pre>
382
- <span class="ruby-comment cmt"># File lib/more/facets/attr.rb, line 200</span>
383
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alias_writer!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
384
- <span class="ruby-identifier">orig</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">last</span>
385
- <span class="ruby-identifier">args</span> = <span class="ruby-identifier">args</span> <span class="ruby-operator">-</span> [<span class="ruby-identifier">orig</span>]
386
- <span class="ruby-identifier">args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
387
- <span class="ruby-identifier">alias_method</span>(<span class="ruby-node">&quot;#{name}!&quot;</span>, <span class="ruby-node">&quot;#{orig}!&quot;</span>)
388
- <span class="ruby-keyword kw">end</span>
389
- <span class="ruby-keyword kw">end</span>
390
- </pre>
391
- </div>
392
- </div>
393
- </div>
394
- <div class="method">
395
- <div class="title">
396
- <a name="M000280"></a><b>append_features</b>( base )
397
- </div>
398
- <div class="aka">
399
- This method is also aliased as
400
- <a href="Module.html#M000314">append_features_without_class_extension</a>
401
- </div>
402
- <div class="sourcecode">
403
- <p class="source-link">[ <a href="javascript:toggleSource('M000280_source')" id="l_M000280_source">+</a> ]</p>
404
- <div id="M000280_source" class="dyn-source">
405
- <pre>
406
- <span class="ruby-comment cmt"># File lib/more/facets/classmethods.rb, line 163</span>
407
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">append_features</span>( <span class="ruby-identifier">base</span> )
408
- <span class="ruby-identifier">result</span> = <span class="ruby-identifier">append_features_without_classmethods</span>( <span class="ruby-identifier">base</span> )
409
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">const_defined?</span>( <span class="ruby-identifier">:ClassMethods</span> )
410
- <span class="ruby-identifier">base</span>.<span class="ruby-identifier">extend</span>( <span class="ruby-keyword kw">self</span><span class="ruby-operator">::</span><span class="ruby-constant">ClassMethods</span> )
411
- <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">base</span>.<span class="ruby-identifier">is_a?</span>( <span class="ruby-constant">Class</span> )
412
- <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">base</span>.<span class="ruby-identifier">const_defined?</span>( <span class="ruby-identifier">:ClassMethods</span> )
413
- <span class="ruby-identifier">base</span>.<span class="ruby-identifier">const_set</span>( <span class="ruby-identifier">:ClassMethods</span>, <span class="ruby-constant">Module</span>.<span class="ruby-identifier">new</span> )
414
- <span class="ruby-keyword kw">end</span>
415
- <span class="ruby-identifier">my</span> = <span class="ruby-keyword kw">self</span>
416
- <span class="ruby-identifier">base</span><span class="ruby-operator">::</span><span class="ruby-constant">ClassMethods</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>
417
- <span class="ruby-identifier">include</span> <span class="ruby-identifier">my</span><span class="ruby-operator">::</span><span class="ruby-constant">ClassMethods</span>
418
- <span class="ruby-keyword kw">end</span>
419
- <span class="ruby-keyword kw">end</span>
420
- <span class="ruby-keyword kw">end</span>
421
- <span class="ruby-identifier">result</span>
422
- <span class="ruby-keyword kw">end</span>
423
- </pre>
424
- </div>
425
- </div>
426
- </div>
427
- <div class="method">
428
- <div class="title">
429
- <a name="M000316"></a><b>append_features</b>(mod)
430
- </div>
431
- <div class="sourcecode">
432
- <p class="source-link">[ <a href="javascript:toggleSource('M000316_source')" id="l_M000316_source">+</a> ]</p>
433
- <div id="M000316_source" class="dyn-source">
434
- <pre>
435
- <span class="ruby-comment cmt"># File lib/more/facets/class_extension.rb, line 95</span>
436
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">append_features</span>(<span class="ruby-identifier">mod</span>)
437
- <span class="ruby-identifier">append_features_without_class_extension</span>(<span class="ruby-identifier">mod</span>)
438
- <span class="ruby-identifier">mod</span>.<span class="ruby-identifier">extend</span>(<span class="ruby-identifier">class_extension</span>)
439
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">mod</span>.<span class="ruby-identifier">instance_of?</span> <span class="ruby-constant">Module</span>
440
- <span class="ruby-identifier">mod</span>.<span class="ruby-identifier">__send__</span>(<span class="ruby-identifier">:class_extension</span>).<span class="ruby-identifier">__send__</span>(<span class="ruby-identifier">:include</span>, <span class="ruby-identifier">class_extension</span>)
441
- <span class="ruby-keyword kw">end</span>
442
- <span class="ruby-keyword kw">end</span>
443
- </pre>
444
- </div>
445
- </div>
446
- </div>
447
- <div class="method">
448
- <div class="title">
449
- <a name="M000314"></a><b>append_features_without_class_extension</b>( base )
450
- </div>
451
- <div class="description">
452
- <p>
453
- Alias for <a href="Module.html#M000280">append_features</a>
454
- </p>
455
- </div>
456
- </div>
457
- <div class="method">
458
- <div class="title">
459
- <a name="M000291"></a><b>attr_accessor!</b>(*args)
460
- </div>
461
- <div class="description">
462
- <p>
463
- Create a toggle attribute. This creates two methods for each given name.
464
- One is a form of tester and the other is used to toggle the value.
465
- </p>
466
- <pre>
467
- attr_accessor! :a
468
- </pre>
469
- <p>
470
- is equivalent to
471
- </p>
472
- <pre>
473
- def a?
474
- @a
475
- end
476
-
477
- def a!(value=true)
478
- @a = value
479
- self
480
- end
481
- </pre>
482
- <p>
483
- CREDIT: Trans
484
- </p>
485
- </div>
486
- <div class="aka">
487
- This method is also aliased as
488
- <a href="Module.html#M000292">attr_switcher</a>
489
- <a href="Module.html#M000293">attr_toggler</a>
490
- </div>
491
- <div class="sourcecode">
492
- <p class="source-link">[ <a href="javascript:toggleSource('M000291_source')" id="l_M000291_source">+</a> ]</p>
493
- <div id="M000291_source" class="dyn-source">
494
- <pre>
495
- <span class="ruby-comment cmt"># File lib/more/facets/attr.rb, line 107</span>
496
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attr_accessor!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
497
- <span class="ruby-identifier">attr_reader!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) <span class="ruby-operator">+</span> <span class="ruby-identifier">attr_writer!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
498
- <span class="ruby-keyword kw">end</span>
499
- </pre>
500
- </div>
501
- </div>
502
- </div>
503
- <div class="method">
504
- <div class="title">
505
- <a name="M000297"></a><b>attr_reader!</b>(*args)
506
- </div>
507
- <div class="description">
508
- <p>
509
- Create an tester attribute. This creates a single method used to test the
510
- attribute for truth.
511
- </p>
512
- <pre>
513
- attr_reader! :a
514
- </pre>
515
- <p>
516
- is equivalent to
517
- </p>
518
- <pre>
519
- def a?
520
- @a ? true : @a
521
- end
522
- </pre>
523
- </div>
524
- <div class="aka">
525
- This method is also aliased as
526
- <a href="Module.html#M000298">attr_reader?</a>
527
- <a href="Module.html#M000299">attr_tester</a>
528
- </div>
529
- <div class="sourcecode">
530
- <p class="source-link">[ <a href="javascript:toggleSource('M000297_source')" id="l_M000297_source">+</a> ]</p>
531
- <div id="M000297_source" class="dyn-source">
532
- <pre>
533
- <span class="ruby-comment cmt"># File lib/more/facets/attr.rb, line 139</span>
534
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attr_reader!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
535
- <span class="ruby-identifier">code</span>, <span class="ruby-identifier">made</span> = <span class="ruby-value str">''</span>, []
536
- <span class="ruby-identifier">args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
537
- <span class="ruby-identifier">code</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">%{
538
- def #{a}?(truth=nil)
539
- @#{a} ? truth || @#{a} : @#{a}
540
- end
541
- }</span>
542
- <span class="ruby-identifier">made</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{a}?&quot;</span>.<span class="ruby-identifier">to_sym</span>
543
- <span class="ruby-keyword kw">end</span>
544
- <span class="ruby-identifier">module_eval</span> <span class="ruby-identifier">code</span>
545
- <span class="ruby-identifier">made</span>
546
- <span class="ruby-keyword kw">end</span>
547
- </pre>
548
- </div>
549
- </div>
550
- </div>
551
- <div class="method">
552
- <div class="title">
553
- <a name="M000298"></a><b>attr_reader?</b>(*args)
554
- </div>
555
- <div class="description">
556
- <p>
557
- Alias for attr_reader!
558
- </p>
559
- </div>
560
- </div>
561
- <div class="method">
562
- <div class="title">
563
- <a name="M000289"></a><b>attr_setter</b>(*args)
564
- </div>
565
- <div class="description">
566
- <p>
567
- Create an attribute method for both getting and <a
568
- href="Module.html#M000305">setting</a> an instance variable.
569
- </p>
570
- <pre>
571
- attr_setter :a
572
- </pre>
573
- <p>
574
- _is equivalent to_
575
- </p>
576
- <pre>
577
- def a(*args)
578
- if args.size &gt; 0
579
- @a = args[0]
580
- self
581
- else
582
- @a
583
- end
584
- end
585
- </pre>
586
- <p>
587
- CREDIT: Trans
588
- </p>
589
- </div>
590
- <div class="sourcecode">
591
- <p class="source-link">[ <a href="javascript:toggleSource('M000289_source')" id="l_M000289_source">+</a> ]</p>
592
- <div id="M000289_source" class="dyn-source">
593
- <pre>
594
- <span class="ruby-comment cmt"># File lib/more/facets/attr.rb, line 53</span>
595
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attr_setter</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
596
- <span class="ruby-identifier">code</span>, <span class="ruby-identifier">made</span> = <span class="ruby-value str">''</span>, []
597
- <span class="ruby-identifier">args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
598
- <span class="ruby-identifier">code</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">%{
599
- def #{a}(*args)
600
- args.size &gt; 0 ? ( @#{a}=args[0] ; self ) : @#{a}
601
- end
602
- }</span>
603
- <span class="ruby-identifier">made</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{a}&quot;</span>.<span class="ruby-identifier">to_sym</span>
604
- <span class="ruby-keyword kw">end</span>
605
- <span class="ruby-identifier">module_eval</span> <span class="ruby-identifier">code</span>
606
- <span class="ruby-identifier">made</span>
607
- <span class="ruby-keyword kw">end</span>
608
- </pre>
609
- </div>
610
- </div>
611
- </div>
612
- <div class="method">
613
- <div class="title">
614
- <a name="M000292"></a><b>attr_switcher</b>(*args)
615
- </div>
616
- <div class="description">
617
- <p>
618
- Alias for attr_accessor!
619
- </p>
620
- </div>
621
- </div>
622
- <div class="method">
623
- <div class="title">
624
- <a name="M000299"></a><b>attr_tester</b>(*args)
625
- </div>
626
- <div class="description">
627
- <p>
628
- Alias for attr_reader!
629
- </p>
630
- </div>
631
- </div>
632
- <div class="method">
633
- <div class="title">
634
- <a name="M000293"></a><b>attr_toggler</b>(*args)
635
- </div>
636
- <div class="description">
637
- <p>
638
- Alias for attr_accessor!
639
- </p>
640
- </div>
641
- </div>
642
- <div class="method">
643
- <div class="title">
644
- <a name="M000287"></a><b>attr_validator</b>(*symbols, &amp;validator)
645
- </div>
646
- <div class="description">
647
- <p>
648
- Like attr_writer, but the writer method validates the <a
649
- href="Module.html#M000305">setting</a> against the given block.
650
- </p>
651
- <p>
652
- CREDIT: ?
653
- </p>
654
- </div>
655
- <div class="sourcecode">
656
- <p class="source-link">[ <a href="javascript:toggleSource('M000287_source')" id="l_M000287_source">+</a> ]</p>
657
- <div id="M000287_source" class="dyn-source">
658
- <pre>
659
- <span class="ruby-comment cmt"># File lib/more/facets/attr.rb, line 8</span>
660
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attr_validator</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">symbols</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">validator</span>)
661
- <span class="ruby-identifier">made</span> = []
662
- <span class="ruby-identifier">symbols</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">symbol</span><span class="ruby-operator">|</span>
663
- <span class="ruby-identifier">define_method</span> <span class="ruby-node">&quot;#{symbol}=&quot;</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">val</span><span class="ruby-operator">|</span>
664
- <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">validator</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">val</span>)
665
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">&quot;Invalid value provided for #{symbol}&quot;</span>
666
- <span class="ruby-keyword kw">end</span>
667
- <span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-node">&quot;@#{symbol}&quot;</span>, <span class="ruby-identifier">val</span>)
668
- <span class="ruby-keyword kw">end</span>
669
- <span class="ruby-identifier">made</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{symbol}=&quot;</span>.<span class="ruby-identifier">to_sym</span>
670
- <span class="ruby-keyword kw">end</span>
671
- <span class="ruby-identifier">made</span>
672
- <span class="ruby-keyword kw">end</span>
673
- </pre>
674
- </div>
675
- </div>
676
- </div>
677
- <div class="method">
678
- <div class="title">
679
- <a name="M000303"></a><b>attr_writer!</b>(*args)
680
- </div>
681
- <div class="description">
682
- <p>
683
- Create a flaggable attribute. This creates a single methods used to set an
684
- attribute to &quot;true&quot;.
685
- </p>
686
- <pre>
687
- attr_writer! :a
688
- </pre>
689
- <p>
690
- is equivalent to
691
- </p>
692
- <pre>
693
- def a!(value=true)
694
- @a = value
695
- self
696
- end
697
- </pre>
698
- </div>
699
- <div class="sourcecode">
700
- <p class="source-link">[ <a href="javascript:toggleSource('M000303_source')" id="l_M000303_source">+</a> ]</p>
701
- <div id="M000303_source" class="dyn-source">
702
- <pre>
703
- <span class="ruby-comment cmt"># File lib/more/facets/attr.rb, line 181</span>
704
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attr_writer!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
705
- <span class="ruby-identifier">code</span>, <span class="ruby-identifier">made</span> = <span class="ruby-value str">''</span>, []
706
- <span class="ruby-identifier">args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
707
- <span class="ruby-identifier">code</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">%{
708
- def #{a}!(value=true)
709
- @#{a} = value
710
- self
711
- end
712
- }</span>
713
- <span class="ruby-identifier">made</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{a}!&quot;</span>.<span class="ruby-identifier">to_sym</span>
714
- <span class="ruby-keyword kw">end</span>
715
- <span class="ruby-identifier">module_eval</span> <span class="ruby-identifier">code</span>
716
- <span class="ruby-identifier">made</span>
717
- <span class="ruby-keyword kw">end</span>
718
- </pre>
719
- </div>
720
- </div>
721
- </div>
722
- <div class="method">
723
- <div class="title">
724
- <a name="M000282"></a><b>class_inherit</b>( &amp;yld )
725
- </div>
726
- <div class="description">
727
- <p>
728
- Alias for <a href="Module.html#M000281">class_methods</a>
729
- </p>
730
- </div>
731
- </div>
732
- <div class="method">
733
- <div class="title">
734
- <a name="M000281"></a><b>class_methods</b>( &amp;yld )
735
- </div>
736
- <div class="aka">
737
- This method is also aliased as
738
- <a href="Module.html#M000282">class_inherit</a>
739
- </div>
740
- <div class="sourcecode">
741
- <p class="source-link">[ <a href="javascript:toggleSource('M000281_source')" id="l_M000281_source">+</a> ]</p>
742
- <div id="M000281_source" class="dyn-source">
743
- <pre>
744
- <span class="ruby-comment cmt"># File lib/more/facets/classmethods.rb, line 180</span>
745
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">class_methods</span>( <span class="ruby-operator">&amp;</span><span class="ruby-identifier">yld</span> )
746
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">const_defined?</span>( <span class="ruby-identifier">:ClassMethods</span> )
747
- <span class="ruby-keyword kw">self</span><span class="ruby-operator">::</span><span class="ruby-constant">ClassMethods</span>.<span class="ruby-identifier">class_eval</span>( <span class="ruby-operator">&amp;</span><span class="ruby-identifier">yld</span> )
748
- <span class="ruby-keyword kw">else</span>
749
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">const_set</span>( <span class="ruby-identifier">:ClassMethods</span>, <span class="ruby-constant">Module</span>.<span class="ruby-identifier">new</span>( <span class="ruby-operator">&amp;</span><span class="ruby-identifier">yld</span> ) )
750
- <span class="ruby-keyword kw">end</span>
751
- <span class="ruby-identifier">extend</span>( <span class="ruby-keyword kw">self</span><span class="ruby-operator">::</span><span class="ruby-constant">ClassMethods</span> )
752
- <span class="ruby-keyword kw">self</span><span class="ruby-operator">::</span><span class="ruby-constant">ClassMethods</span>
753
- <span class="ruby-keyword kw">end</span>
754
- </pre>
755
- </div>
756
- </div>
757
- </div>
758
- <div class="method">
759
- <div class="title">
760
- <a name="M000285"></a><b>define_dependency</b>( name, *deps )
761
- </div>
762
- <div class="sourcecode">
763
- <p class="source-link">[ <a href="javascript:toggleSource('M000285_source')" id="l_M000285_source">+</a> ]</p>
764
- <div id="M000285_source" class="dyn-source">
765
- <pre>
766
- <span class="ruby-comment cmt"># File lib/more/facets/dependency.rb, line 120</span>
767
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">define_dependency</span>( <span class="ruby-identifier">name</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">deps</span> )
768
- <span class="ruby-ivar">@dependency</span> <span class="ruby-operator">||=</span> {}
769
- <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@dependency</span>[<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>]
770
- <span class="ruby-ivar">@dependency</span>[<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">deps</span>
771
- <span class="ruby-keyword kw">else</span>
772
- <span class="ruby-ivar">@dependency</span>[<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">deps</span>
773
- <span class="ruby-identifier">deplist</span> = <span class="ruby-identifier">lambda</span>{ <span class="ruby-identifier">dependencies</span>(<span class="ruby-identifier">name</span>) }
774
- <span class="ruby-identifier">alias_method</span>(<span class="ruby-node">&quot;#{name}:execute&quot;</span>,<span class="ruby-identifier">name</span>)
775
- <span class="ruby-identifier">define_method</span>(<span class="ruby-identifier">name</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-operator">*</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
776
- <span class="ruby-comment cmt"># run dependencies</span>
777
- <span class="ruby-identifier">deplist</span>.<span class="ruby-identifier">call</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">d</span><span class="ruby-operator">|</span>
778
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-node">&quot;#{d}:execute&quot;</span>)
779
- <span class="ruby-identifier">send</span>(<span class="ruby-node">&quot;#{d}:execute&quot;</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>) <span class="ruby-comment cmt">#,&amp;b)</span>
780
- <span class="ruby-keyword kw">else</span>
781
- <span class="ruby-identifier">send</span>(<span class="ruby-identifier">d</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>) <span class="ruby-comment cmt">#,&amp;b)</span>
782
- <span class="ruby-keyword kw">end</span>
783
- <span class="ruby-keyword kw">end</span>
784
- <span class="ruby-comment cmt"># run core method</span>
785
- <span class="ruby-identifier">send</span>(<span class="ruby-node">&quot;#{name}:execute&quot;</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>) <span class="ruby-comment cmt">#,&amp;b)</span>
786
- <span class="ruby-keyword kw">end</span>
787
- <span class="ruby-keyword kw">end</span>
788
- <span class="ruby-keyword kw">end</span>
789
- </pre>
790
- </div>
791
- </div>
792
- </div>
793
- <div class="method">
794
- <div class="title">
795
- <a name="M000283"></a><b>depend</b>( name_and_deps=nil )
796
- </div>
797
- <div class="sourcecode">
798
- <p class="source-link">[ <a href="javascript:toggleSource('M000283_source')" id="l_M000283_source">+</a> ]</p>
799
- <div id="M000283_source" class="dyn-source">
800
- <pre>
801
- <span class="ruby-comment cmt"># File lib/more/facets/dependency.rb, line 90</span>
802
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">depend</span>( <span class="ruby-identifier">name_and_deps</span>=<span class="ruby-keyword kw">nil</span> )
803
- <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Hash</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">name_and_deps</span>
804
- <span class="ruby-identifier">name_and_deps</span>.<span class="ruby-identifier">to_h</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span>, <span class="ruby-identifier">deps</span><span class="ruby-operator">|</span>
805
- <span class="ruby-identifier">deps</span> = [<span class="ruby-identifier">deps</span>].<span class="ruby-identifier">flatten</span>
806
- <span class="ruby-identifier">define_dependency</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">deps</span>)
807
- <span class="ruby-keyword kw">end</span>
808
- <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">name_and_deps</span>
809
- <span class="ruby-ivar">@dependency</span> <span class="ruby-operator">||=</span> {}
810
- <span class="ruby-ivar">@dependency</span>[<span class="ruby-identifier">name_and_deps</span>.<span class="ruby-identifier">to_sym</span>]
811
- <span class="ruby-keyword kw">else</span>
812
- <span class="ruby-ivar">@dependency</span> <span class="ruby-operator">||=</span> {}
813
- <span class="ruby-keyword kw">end</span>
814
- <span class="ruby-keyword kw">end</span>
815
- </pre>
816
- </div>
817
- </div>
818
- </div>
819
- <div class="method">
820
- <div class="title">
821
- <a name="M000284"></a><b>dependencies</b>(name, build=[])
822
- </div>
823
- <div class="description">
824
- <p>
825
- Compile list of all unique prerequisite calls.
826
- </p>
827
- </div>
828
- <div class="sourcecode">
829
- <p class="source-link">[ <a href="javascript:toggleSource('M000284_source')" id="l_M000284_source">+</a> ]</p>
830
- <div id="M000284_source" class="dyn-source">
831
- <pre>
832
- <span class="ruby-comment cmt"># File lib/more/facets/dependency.rb, line 106</span>
833
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dependencies</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">build</span>=[])
834
- <span class="ruby-ivar">@dependency</span> <span class="ruby-operator">||=</span> {}
835
- <span class="ruby-identifier">deps</span> = <span class="ruby-ivar">@dependency</span>[<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>]
836
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">build</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">deps</span>
837
- <span class="ruby-identifier">deps</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">dep</span><span class="ruby-operator">|</span>
838
- <span class="ruby-identifier">build</span>.<span class="ruby-identifier">unshift</span>(<span class="ruby-identifier">dep</span>)
839
- <span class="ruby-identifier">dependencies</span>(<span class="ruby-identifier">dep</span>,<span class="ruby-identifier">build</span>)
840
- <span class="ruby-keyword kw">end</span>
841
- <span class="ruby-identifier">build</span>.<span class="ruby-identifier">uniq!</span>
842
- <span class="ruby-identifier">build</span>
843
- <span class="ruby-keyword kw">end</span>
844
- </pre>
845
- </div>
846
- </div>
847
- </div>
848
- <div class="method">
849
- <div class="title">
850
- <a name="M000310"></a><b>include_as</b>(h)
851
- </div>
852
- <div class="description">
853
- <p>
854
- Include a module via a specified space.
855
- </p>
856
- <pre>
857
- module T
858
- def t ; &quot;HERE&quot; ; end
859
- end
860
-
861
- class X
862
- include_as :test =&gt; T
863
- def t ; test.t ; end
864
- end
865
-
866
- X.new.t #=&gt; &quot;HERE&quot;
867
- </pre>
868
- </div>
869
- <div class="sourcecode">
870
- <p class="source-link">[ <a href="javascript:toggleSource('M000310_source')" id="l_M000310_source">+</a> ]</p>
871
- <div id="M000310_source" class="dyn-source">
872
- <pre>
873
- <span class="ruby-comment cmt"># File lib/more/facets/methodspace.rb, line 103</span>
874
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include_as</span>(<span class="ruby-identifier">h</span>)
875
- <span class="ruby-identifier">h</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">name</span>, <span class="ruby-identifier">mod</span><span class="ruby-operator">|</span> <span class="ruby-identifier">method_space</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">mod</span>) }
876
- <span class="ruby-keyword kw">end</span>
877
- </pre>
878
- </div>
879
- </div>
880
- </div>
881
- <div class="method">
882
- <div class="title">
883
- <a name="M000306"></a><b>instance_method!</b>(s)
884
- </div>
885
- <div class="description">
886
- <p>
887
- Easy access to method as objects, and they retain state!
888
- </p>
889
- <pre>
890
- module K
891
- def hello
892
- puts &quot;Hello World!&quot;
893
- end
894
- end
895
- p K.instance_method!(:hello) #=&gt; &lt;UnboundMethod: #hello&gt;
896
- </pre>
897
- <p>
898
- NOTE: This is limited to the scope of the current module/class.
899
- </p>
900
- </div>
901
- <div class="sourcecode">
902
- <p class="source-link">[ <a href="javascript:toggleSource('M000306_source')" id="l_M000306_source">+</a> ]</p>
903
- <div id="M000306_source" class="dyn-source">
904
- <pre>
905
- <span class="ruby-comment cmt"># File lib/more/facets/1stclassmethod.rb, line 134</span>
906
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_method!</span>(<span class="ruby-identifier">s</span>)
907
- <span class="ruby-comment cmt">#( @@__instance_methods__ ||= {} )[s] ||= instance_method(s) # TODO when fixed</span>
908
- ( <span class="ruby-ivar">@__instance_methods__</span> <span class="ruby-operator">||=</span> {} )[<span class="ruby-identifier">s</span>] <span class="ruby-operator">||=</span> <span class="ruby-identifier">instance_method</span>(<span class="ruby-identifier">s</span>)
909
- <span class="ruby-keyword kw">end</span>
910
- </pre>
911
- </div>
912
- </div>
913
- </div>
914
- <div class="method">
915
- <div class="title">
916
- <a name="M000286"></a><b>memoize</b>(*meths)
917
- </div>
918
- <div class="description">
919
- <p>
920
- Directive for making your functions faster by trading space for time. When
921
- you &quot;<a href="Module.html#M000286">memoize</a>&quot; a method/function
922
- its results are cached so that later calls with the same arguments returns
923
- results in the cache instead of recalculating them.
924
- </p>
925
- <pre>
926
- class T
927
- def initialize(a)
928
- @a = a
929
- end
930
- def a
931
- &quot;#{@a ^ 3 + 4}&quot;
932
- end
933
- memoize :a
934
- end
935
-
936
- t = T.new
937
- t.a.__id__ == t.a.__id__ #=&gt; true
938
- </pre>
939
- </div>
940
- <div class="sourcecode">
941
- <p class="source-link">[ <a href="javascript:toggleSource('M000286_source')" id="l_M000286_source">+</a> ]</p>
942
- <div id="M000286_source" class="dyn-source">
943
- <pre>
944
- <span class="ruby-comment cmt"># File lib/more/facets/memoize.rb, line 64</span>
945
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">memoize</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">meths</span>)
946
- <span class="ruby-identifier">meths</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">meth</span><span class="ruby-operator">|</span>
947
- <span class="ruby-identifier">old</span> = <span class="ruby-identifier">instance_method</span>(<span class="ruby-identifier">meth</span>)
948
- <span class="ruby-identifier">new</span> = <span class="ruby-identifier">proc</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-operator">*</span><span class="ruby-identifier">args</span><span class="ruby-operator">|</span>
949
- <span class="ruby-identifier">mc</span> = ((<span class="ruby-ivar">@_MEMOIZE_CACHE</span> <span class="ruby-operator">||=</span> {})[<span class="ruby-identifier">meth</span>] <span class="ruby-operator">||=</span> {})
950
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">has_key?</span> <span class="ruby-identifier">args</span>
951
- <span class="ruby-identifier">mc</span>[<span class="ruby-identifier">args</span>]
952
- <span class="ruby-keyword kw">else</span>
953
- <span class="ruby-identifier">mc</span>[<span class="ruby-identifier">args</span>] = <span class="ruby-identifier">old</span>.<span class="ruby-identifier">bind</span>(<span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">call</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
954
- <span class="ruby-keyword kw">end</span>
955
- <span class="ruby-keyword kw">end</span>
956
- <span class="ruby-identifier">send</span>(<span class="ruby-identifier">:define_method</span>, <span class="ruby-identifier">meth</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">new</span>)
957
- <span class="ruby-keyword kw">end</span>
958
- <span class="ruby-keyword kw">end</span>
959
- </pre>
960
- </div>
961
- </div>
962
- </div>
963
- <div class="method">
964
- <div class="title">
965
- <a name="M000307"></a><b>method_overloads</b>()
966
- </div>
967
- <div class="sourcecode">
968
- <p class="source-link">[ <a href="javascript:toggleSource('M000307_source')" id="l_M000307_source">+</a> ]</p>
969
- <div id="M000307_source" class="dyn-source">
970
- <pre>
971
- <span class="ruby-comment cmt"># File lib/more/facets/overload.rb, line 25</span>
972
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_overloads</span>
973
- <span class="ruby-ivar">@method_overloads</span> <span class="ruby-operator">||=</span> {}
974
- <span class="ruby-keyword kw">end</span>
975
- </pre>
976
- </div>
977
- </div>
978
- </div>
979
- <div class="method">
980
- <div class="title">
981
- <a name="M000309"></a><b>method_space</b>(name, mod=nil, &amp;blk)
982
- </div>
983
- <div class="description">
984
- <p>
985
- Define a simple method namespace.
986
- </p>
987
- <pre>
988
- class A
989
- attr_writer :x
990
- method_space :inside do
991
- def x; @x; end
992
- end
993
- end
994
-
995
- a = A.new
996
- a.x = 10
997
- a.inside.x #=&gt; 10
998
- a.x # no method error
999
- </pre>
1000
- </div>
1001
- <div class="sourcecode">
1002
- <p class="source-link">[ <a href="javascript:toggleSource('M000309_source')" id="l_M000309_source">+</a> ]</p>
1003
- <div id="M000309_source" class="dyn-source">
1004
- <pre>
1005
- <span class="ruby-comment cmt"># File lib/more/facets/methodspace.rb, line 48</span>
1006
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_space</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">mod</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
1007
-
1008
- <span class="ruby-comment cmt"># If block is given then create a module, otherwise</span>
1009
- <span class="ruby-comment cmt"># get the name of the module.</span>
1010
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
1011
- <span class="ruby-identifier">name</span> = <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>
1012
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">mod</span>
1013
- <span class="ruby-identifier">mod</span> = <span class="ruby-constant">Module</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
1014
- <span class="ruby-keyword kw">else</span>
1015
- <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Module</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">name</span>
1016
- <span class="ruby-identifier">mod</span> = <span class="ruby-identifier">name</span>
1017
- <span class="ruby-identifier">name</span> = <span class="ruby-identifier">mod</span>.<span class="ruby-identifier">basename</span>.<span class="ruby-identifier">downcase</span>
1018
- <span class="ruby-keyword kw">end</span>
1019
- <span class="ruby-identifier">mod</span> = <span class="ruby-identifier">mod</span>.<span class="ruby-identifier">dup</span>
1020
- <span class="ruby-keyword kw">end</span>
1021
-
1022
- <span class="ruby-comment cmt"># Include the module. This is neccessary, otherwise</span>
1023
- <span class="ruby-comment cmt"># Ruby won't let us bind the instance methods.</span>
1024
- <span class="ruby-identifier">include</span> <span class="ruby-identifier">mod</span>
1025
-
1026
- <span class="ruby-comment cmt"># Save the instance methods of the module and</span>
1027
- <span class="ruby-comment cmt"># replace them with a &quot;transparent&quot; version.</span>
1028
- <span class="ruby-identifier">methods</span> = {}
1029
- <span class="ruby-identifier">mod</span>.<span class="ruby-identifier">instance_methods</span>(<span class="ruby-keyword kw">false</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span>
1030
- <span class="ruby-identifier">methods</span>[<span class="ruby-identifier">m</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">mod</span>.<span class="ruby-identifier">instance_method</span>(<span class="ruby-identifier">m</span>)
1031
- <span class="ruby-identifier">mod</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-keyword kw">do</span>
1032
- <span class="ruby-identifier">define_method</span>(<span class="ruby-identifier">m</span>) <span class="ruby-keyword kw">do</span>
1033
- <span class="ruby-keyword kw">super</span>
1034
- <span class="ruby-keyword kw">end</span>
1035
- <span class="ruby-keyword kw">end</span>
1036
- <span class="ruby-keyword kw">end</span>
1037
-
1038
- <span class="ruby-comment cmt"># Add a method for the namespace that delegates</span>
1039
- <span class="ruby-comment cmt"># via the Functor to the saved instance methods.</span>
1040
- <span class="ruby-identifier">define_method</span>(<span class="ruby-identifier">name</span>) <span class="ruby-keyword kw">do</span>
1041
- <span class="ruby-identifier">mtab</span> = <span class="ruby-identifier">methods</span>
1042
- <span class="ruby-constant">Functor</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">op</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span><span class="ruby-operator">|</span>
1043
- <span class="ruby-identifier">mtab</span>[<span class="ruby-identifier">op</span>].<span class="ruby-identifier">bind</span>(<span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">call</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
1044
- <span class="ruby-keyword kw">end</span>
1045
- <span class="ruby-keyword kw">end</span>
1046
- <span class="ruby-keyword kw">end</span>
1047
- </pre>
1048
- </div>
1049
- </div>
1050
- </div>
1051
- <div class="method">
1052
- <div class="title">
1053
- <a name="M000312"></a><b>mixin_parameters</b>()
1054
- </div>
1055
- <div class="description">
1056
- <p>
1057
- Store for parametric mixin parameters.
1058
- </p>
1059
- <p>
1060
- Returns a hash, the keys of which are the parametric mixin module and the
1061
- values are the parameters associacted with this module/class.
1062
- </p>
1063
- <pre>
1064
- class C
1065
- include P(:x=&gt;1)
1066
- end
1067
-
1068
- C.mixin_parameters[P] #=&gt; {:x=&gt;1}
1069
- </pre>
1070
- </div>
1071
- <div class="aka">
1072
- This method is also aliased as
1073
- <a href="Module.html#M000313">mixin_params</a>
1074
- </div>
1075
- <div class="sourcecode">
1076
- <p class="source-link">[ <a href="javascript:toggleSource('M000312_source')" id="l_M000312_source">+</a> ]</p>
1077
- <div id="M000312_source" class="dyn-source">
1078
- <pre>
1079
- <span class="ruby-comment cmt"># File lib/more/facets/paramix.rb, line 196</span>
1080
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mixin_parameters</span>
1081
- <span class="ruby-ivar">@mixin_parameters</span> <span class="ruby-operator">||=</span> {}
1082
- <span class="ruby-keyword kw">end</span>
1083
- </pre>
1084
- </div>
1085
- </div>
1086
- </div>
1087
- <div class="method">
1088
- <div class="title">
1089
- <a name="M000313"></a><b>mixin_params</b>()
1090
- </div>
1091
- <div class="description">
1092
- <p>
1093
- Alias for <a href="Module.html#M000312">mixin_parameters</a>
1094
- </p>
1095
- </div>
1096
- </div>
1097
- <div class="method">
1098
- <div class="title">
1099
- <a name="M000308"></a><b>overload</b>( name, *signiture, &amp;block )
1100
- </div>
1101
- <div class="description">
1102
- <p>
1103
- Overload methods.
1104
- </p>
1105
- <pre>
1106
- class X
1107
- def x
1108
- &quot;hello&quot;
1109
- end
1110
-
1111
- overload :x, Integer do |i|
1112
- i
1113
- end
1114
-
1115
- overload :x, String, String do |s1, s2|
1116
- [s1, s2]
1117
- end
1118
- end
1119
- </pre>
1120
- </div>
1121
- <div class="sourcecode">
1122
- <p class="source-link">[ <a href="javascript:toggleSource('M000308_source')" id="l_M000308_source">+</a> ]</p>
1123
- <div id="M000308_source" class="dyn-source">
1124
- <pre>
1125
- <span class="ruby-comment cmt"># File lib/more/facets/overload.rb, line 45</span>
1126
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">overload</span>( <span class="ruby-identifier">name</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">signiture</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span> )
1127
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">signiture</span>.<span class="ruby-identifier">all?</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">Class</span>)}
1128
-
1129
- <span class="ruby-identifier">name</span> = <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>
1130
-
1131
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">method_overloads</span>.<span class="ruby-identifier">key?</span>( <span class="ruby-identifier">name</span> )
1132
- <span class="ruby-identifier">method_overloads</span>[<span class="ruby-identifier">name</span>][<span class="ruby-identifier">signiture</span>] = <span class="ruby-identifier">block</span>
1133
-
1134
- <span class="ruby-keyword kw">else</span>
1135
- <span class="ruby-identifier">method_overloads</span>[<span class="ruby-identifier">name</span>] = {}
1136
- <span class="ruby-identifier">method_overloads</span>[<span class="ruby-identifier">name</span>][<span class="ruby-identifier">signiture</span>] = <span class="ruby-identifier">block</span>
1137
-
1138
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">method_defined?</span>( <span class="ruby-identifier">name</span> )
1139
- <span class="ruby-comment cmt">#method_overloads[name][nil] = instance_method( name ) #true</span>
1140
- <span class="ruby-identifier">alias_method</span>( <span class="ruby-node">&quot;#{name}Generic&quot;</span>, <span class="ruby-identifier">name</span> )
1141
- <span class="ruby-identifier">has_generic</span> = <span class="ruby-keyword kw">true</span>
1142
- <span class="ruby-keyword kw">else</span>
1143
- <span class="ruby-identifier">has_generic</span> = <span class="ruby-keyword kw">false</span>
1144
- <span class="ruby-keyword kw">end</span>
1145
-
1146
- <span class="ruby-identifier">define_method</span>( <span class="ruby-identifier">name</span> ) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-operator">*</span><span class="ruby-identifier">args</span><span class="ruby-operator">|</span>
1147
- <span class="ruby-identifier">ovr</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">method_overloads</span>[<span class="ruby-node">&quot;#{name}&quot;</span>.<span class="ruby-identifier">to_sym</span>]
1148
- <span class="ruby-identifier">sig</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">collect</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">class</span> }
1149
- <span class="ruby-identifier">hit</span> = <span class="ruby-keyword kw">nil</span>
1150
- <span class="ruby-identifier">faces</span> = <span class="ruby-identifier">ovr</span>.<span class="ruby-identifier">keys</span> <span class="ruby-comment cmt">#.sort { |a,b| b.size &lt;=&gt; a.size }</span>
1151
- <span class="ruby-identifier">faces</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">cmp</span><span class="ruby-operator">|</span>
1152
- <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">cmp</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">sig</span>.<span class="ruby-identifier">size</span>
1153
- <span class="ruby-keyword kw">if</span> (<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">cmp</span>.<span class="ruby-identifier">size</span>).<span class="ruby-identifier">all?</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">cmp</span>[<span class="ruby-identifier">i</span>] <span class="ruby-operator">&gt;=</span> <span class="ruby-identifier">sig</span>[<span class="ruby-identifier">i</span>] }
1154
- <span class="ruby-keyword kw">break</span> <span class="ruby-identifier">hit</span> = <span class="ruby-identifier">cmp</span>
1155
- <span class="ruby-keyword kw">end</span>
1156
- <span class="ruby-keyword kw">end</span>
1157
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">hit</span>
1158
- <span class="ruby-identifier">ovr</span>[<span class="ruby-identifier">hit</span>].<span class="ruby-identifier">call</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
1159
- <span class="ruby-keyword kw">else</span>
1160
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">has_generic</span> <span class="ruby-comment cmt">#ovr[nil]</span>
1161
- <span class="ruby-identifier">send</span>( <span class="ruby-node">&quot;#{name}Generic&quot;</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span> )
1162
- <span class="ruby-comment cmt">#ovr[nil].bind(self).call(*args)</span>
1163
- <span class="ruby-keyword kw">else</span>
1164
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">NoMethodError</span>
1165
- <span class="ruby-keyword kw">end</span>
1166
- <span class="ruby-keyword kw">end</span>
1167
-
1168
- <span class="ruby-keyword kw">end</span>
1169
-
1170
- <span class="ruby-keyword kw">end</span>
1171
-
1172
- <span class="ruby-keyword kw">end</span>
1173
- </pre>
1174
- </div>
1175
- </div>
1176
- </div>
1177
- <div class="method">
1178
- <div class="title">
1179
- <a name="M000305"></a><b>setting</b>(sym, options = {})
1180
- </div>
1181
- <div class="description">
1182
- <p>
1183
- Defines a configuration <a href="Module.html#M000305">setting</a> for the
1184
- enclosing class.
1185
- </p>
1186
- <h3>Example</h3>
1187
- <p>
1188
- class Compiler
1189
- </p>
1190
- <pre>
1191
- setting :template_root, :default =&gt; 'src/template', :doc =&gt; 'The template root dir'
1192
- </pre>
1193
- <p>
1194
- end
1195
- </p>
1196
- </div>
1197
- <div class="sourcecode">
1198
- <p class="source-link">[ <a href="javascript:toggleSource('M000305_source')" id="l_M000305_source">+</a> ]</p>
1199
- <div id="M000305_source" class="dyn-source">
1200
- <pre>
1201
- <span class="ruby-comment cmt"># File lib/more/facets/settings.rb, line 233</span>
1202
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setting</span>(<span class="ruby-identifier">sym</span>, <span class="ruby-identifier">options</span> = {})
1203
- <span class="ruby-constant">Settings</span>.<span class="ruby-identifier">add_setting</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">sym</span>, <span class="ruby-identifier">options</span>)
1204
-
1205
- <span class="ruby-identifier">module_eval</span> <span class="ruby-node">%{
1206
- def self.#{sym}
1207
- Settings[#{self}][:#{sym}].value
1208
- end
1209
-
1210
- def self.#{sym}=(obj)
1211
- Settings.setting #{self}, :#{sym}, :value =&gt; obj
1212
- end
1213
- }</span>
1214
- <span class="ruby-keyword kw">end</span>
1215
- </pre>
1216
- </div>
1217
- </div>
1218
- </div>
1219
- </div>
1220
-
1221
- </div>
1222
-
1223
- </body>
1224
- </html>