facets 2.4.5 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +6 -2
- data/CHANGES +46 -52
- data/MANIFEST +680 -642
- data/README +3 -10
- data/RELEASE +82 -36
- data/VERSION +1 -1
- data/doc/archive/{changelog-0.rdoc → CHANGELOG-0.10.30} +0 -0
- data/doc/archive/{changelog-1.rdoc → CHANGELOG-1.8.54} +0 -0
- data/doc/archive/CHANGELOG-2.4.5 +1654 -0
- data/doc/{news → archive}/RELEASE-2.0.5 +0 -0
- data/doc/{news → archive}/RELEASE-2.1.0 +0 -0
- data/doc/{news → archive}/RELEASE-2.1.1 +0 -0
- data/doc/{news → archive}/RELEASE-2.1.2 +0 -0
- data/doc/{news → archive}/RELEASE-2.1.3 +0 -0
- data/doc/{news → archive}/RELEASE-2.2.0 +0 -0
- data/doc/{news → archive}/RELEASE-2.2.1 +0 -0
- data/doc/{news → archive}/RELEASE-2.3.0 +0 -0
- data/doc/{news → archive}/RELEASE-2.4.0 +0 -0
- data/doc/{news → archive}/RELEASE-2.4.1 +0 -0
- data/doc/{news → archive}/RELEASE-2.4.2 +0 -0
- data/doc/{news → archive}/RELEASE-2.4.3 +0 -0
- data/doc/{news → archive}/RELEASE-2.4.4 +0 -0
- data/doc/archive/RELEASE-2.4.5 +37 -0
- data/doc/{book/history.rdoc → guide/notes.rd} +62 -4
- data/doc/log/basic_stats/index.html +39 -0
- data/doc/log/bstats/stats.html +39 -0
- data/doc/log/changelog.html +141 -0
- data/doc/log/changelog.txt +1609 -0
- data/doc/log/stats.html +25 -0
- data/doc/log/testlog.txt +278 -0
- data/doc/rdoc/core/classes/Array.html +158 -147
- data/doc/rdoc/core/classes/Binding.html +54 -54
- data/doc/rdoc/core/classes/Class.html +59 -57
- data/doc/rdoc/core/classes/Comparable.html +67 -76
- data/doc/rdoc/core/classes/Dir.html +47 -47
- data/doc/rdoc/core/classes/Enumerable.html +232 -192
- data/doc/rdoc/core/classes/Exception.html +15 -16
- data/doc/rdoc/core/classes/File.html +128 -85
- data/doc/rdoc/core/classes/FileTest.html +7 -7
- data/doc/rdoc/core/classes/Float.html +16 -14
- data/doc/rdoc/core/classes/Functor.html +12 -12
- data/doc/rdoc/core/classes/Hash.html +490 -319
- data/doc/rdoc/core/classes/Indexable.html +110 -110
- data/doc/rdoc/core/classes/InstanceVariables.html +44 -44
- data/doc/rdoc/core/classes/Integer.html +122 -116
- data/doc/rdoc/core/classes/Kernel.html +415 -401
- data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
- data/doc/rdoc/core/classes/MatchData.html +24 -21
- data/doc/rdoc/core/classes/Module.html +230 -229
- data/doc/rdoc/core/classes/NilClass.html +28 -26
- data/doc/rdoc/core/classes/Numeric.html +30 -30
- data/doc/rdoc/core/classes/Object.html +8 -8
- data/doc/rdoc/core/classes/{Friend.html → ObjectSpace.html} +25 -48
- data/doc/rdoc/core/classes/Proc.html +29 -27
- data/doc/rdoc/core/classes/Range.html +17 -15
- data/doc/rdoc/core/classes/Regexp.html +17 -17
- data/doc/rdoc/core/classes/Stackable.html +31 -31
- data/doc/rdoc/core/classes/String.html +445 -401
- data/doc/rdoc/{more/classes/CLI/NoOptionError.html → core/classes/Struct.html} +24 -21
- data/doc/rdoc/core/classes/Symbol.html +73 -65
- data/doc/rdoc/core/classes/Time.html +87 -86
- data/doc/rdoc/core/classes/TrueClass.html +8 -8
- data/doc/rdoc/core/classes/UnboundMethod.html +17 -16
- data/doc/rdoc/core/created.rid +1 -1
- data/doc/rdoc/core/files/README.html +10 -16
- data/doc/rdoc/core/files/lib/core/facets/array/combination_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/conjoin_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/delete_rb.html +10 -1
- data/doc/rdoc/core/files/lib/core/facets/array/delete_unless_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/delete_values_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/index_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/indexable_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/merge_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/only_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/pad_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/permutation_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/product_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/rotate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/select_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/splice_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/stackable_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/binding/caller_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/binding/callstack_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/binding/defined_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/bitmask_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/class/cattr_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/class/descendents_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/class/prepend_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/class/to_proc_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/comparable/at_least_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/comparable/at_most_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/comparable/bound_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/comparable/cap_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/comparable/clip_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/comparable/cmp_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/comparable/comparable_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/dir/ascend_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/dir/multiglob_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/dir/recurse_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/accumulate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/cluster_by_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/collect_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/commonality_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/count_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/divide_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/duplicates_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/each_by_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/entropy_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/frequency_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/graph_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/group_by_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/inject_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/map_send_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/mash_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/mode_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/modulate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/none_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/occur_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/one_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/probability_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/sum_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/take_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/uniq_by_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/exception/detail_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/exception/suppress_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/append_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/create_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/null_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/read_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/rewrite_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/rootname_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/split_all_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/file/split_root_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/write_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/writelines_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/filetest/root_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/alias_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/autonew_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/collate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/delete_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/insert_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/inverse_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/join_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/keys_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_add_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_and_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_mul_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_or_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_push_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_sub_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/rekey_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/replace_each_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/select_rb.html +1 -1
- data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/hash/stringify_keys_rb.html +1 -1
- data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/hash/symbolize_keys_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/to_options_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/to_struct_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/traverse_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/update_each_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/update_keys_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/update_rb.html +8 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/update_values_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/weave_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/zipnew_rb.html +1 -5
- data/doc/rdoc/core/files/lib/core/facets/integer/factorial_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/integer/multiple_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/integer/odd_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/__here___rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/as_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/ask_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/attr_singleton_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/callstack_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/complete_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/constant_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/d_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/demo_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/ergo_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_class_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_variables_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/not_nil_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/object_send_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/p_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/populate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/qua_class_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/resc_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/respond_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/returning_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/silence_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/try_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/matchdata/match_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/matchdata/matchset_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/metaid_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/abstract_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/alias_accessor_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/alias_method_chain_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/alias_module_function_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/ancestor_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/basename_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/conflict_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/include_function_module_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/instance_methods_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/is_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/methodize_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/modspace_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/module_load_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/nesting_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/op_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/prepend_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/redefine_method_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/rename_method_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/revise_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/spacename_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/wrap_method_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/nilclass/to_f_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/numeric/approx_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/numeric/distance_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/numeric/round_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/objectspace/classes_rb.html +92 -0
- data/doc/rdoc/{more/files/lib/more/facets/dictionarymatcher_rb.html → core/files/lib/core/facets/objectspace_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/proc/bind_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/proc/compose_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/proc/to_method_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/proc/update_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/range/combine_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/range/overlap_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/range/within_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/regexp/arity_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/align_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/bracket_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/camelcase_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/capitalized_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/chars_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/chomp_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/cleave_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/compress_lines_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/contains_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/divide_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/expand_tab_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/fold_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/indent_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/interpolate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/line_wrap_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/lines_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/margin_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/methodize_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/mscan_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/natcmp_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/nchar_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/op_sub_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/outdent_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/string/range_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/rewrite_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/shatter_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/snakecase_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/splice_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/start_with_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/tab_rb.html +8 -1
- data/doc/rdoc/core/files/lib/core/facets/string/tabto_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/string/titlecase_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/to_re_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/word_wrap_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/struct/attributes_rb.html +92 -0
- data/doc/rdoc/{more/files/lib/more/facets/bytes_rb.html → core/files/lib/core/facets/struct_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/symbol/chomp_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/symbol/generate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/symbol/not_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/symbol/succ_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/symbol/to_proc_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/advance_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/change_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/elapse_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/hence_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/stamp_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod/arguments_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod/name_rb.html +1 -1
- data/doc/rdoc/core/fr_class_index.html +2 -1
- data/doc/rdoc/core/fr_file_index.html +30 -1
- data/doc/rdoc/core/fr_method_index.html +430 -423
- data/doc/rdoc/lore/classes/Date.html +6 -5
- data/doc/rdoc/{more/classes/CLI/Command/UniversalOptions.html → lore/classes/Enumerable.html} +7 -9
- data/doc/rdoc/lore/classes/Enumerable/Enumerator.html +147 -0
- data/doc/rdoc/lore/classes/OpenStruct.html +13 -15
- data/doc/rdoc/lore/created.rid +1 -1
- data/doc/rdoc/lore/files/README.html +10 -16
- data/doc/rdoc/lore/files/lib/lore/facets/date_rb.html +1 -1
- data/doc/rdoc/lore/files/lib/lore/facets/enumerator_rb.html +111 -0
- data/doc/rdoc/lore/files/lib/lore/facets/ostruct_rb.html +1 -1
- data/doc/rdoc/lore/fr_class_index.html +2 -0
- data/doc/rdoc/lore/fr_file_index.html +1 -0
- data/doc/rdoc/lore/fr_method_index.html +13 -12
- data/doc/rdoc/more/classes/ANSICode.html +66 -66
- data/doc/rdoc/more/classes/Advisable.html +37 -37
- data/doc/rdoc/more/classes/Advisable/Method.html +20 -20
- data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +27 -27
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +28 -28
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +19 -19
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +31 -31
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +33 -33
- data/doc/rdoc/more/classes/Argvector.html +76 -76
- data/doc/rdoc/more/classes/Association.html +28 -28
- data/doc/rdoc/more/classes/Association/Kernel.html +8 -8
- data/doc/rdoc/more/classes/Autoarray.html +12 -12
- data/doc/rdoc/more/classes/BBCode.html +34 -34
- data/doc/rdoc/more/classes/BaseX.html +16 -16
- data/doc/rdoc/more/classes/BiCrypt.html +67 -67
- data/doc/rdoc/more/classes/BinReadable.html +85 -85
- data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +25 -25
- data/doc/rdoc/more/classes/Binding.html +8 -8
- data/doc/rdoc/more/classes/BlankSlate.html +5 -5
- data/doc/rdoc/more/classes/Buildable.html +4 -4
- data/doc/rdoc/more/classes/BuildingBlock.html +32 -32
- data/doc/rdoc/more/classes/Capsule.html +41 -41
- data/doc/rdoc/more/classes/Cloneable.html +4 -4
- data/doc/rdoc/more/classes/ConsoleUtils.html +22 -22
- data/doc/rdoc/more/classes/Coroutine.html +28 -28
- data/doc/rdoc/more/classes/Crypt.html +16 -16
- data/doc/rdoc/more/classes/CssFilter.html +45 -45
- data/doc/rdoc/more/classes/CssTree.html +8 -8
- data/doc/rdoc/more/classes/Dictionary.html +228 -228
- data/doc/rdoc/more/classes/Downloader.html +56 -56
- data/doc/rdoc/more/classes/Duration.html +369 -445
- data/doc/rdoc/more/classes/Duration/Numeric.html +389 -0
- data/doc/rdoc/more/classes/{CLI/NoCommandError.html → Duration/Time.html} +30 -17
- data/doc/rdoc/more/classes/Enumerable.html +114 -51
- data/doc/rdoc/more/classes/Enumerable/Elementor.html +16 -16
- data/doc/rdoc/more/classes/Enumerable/Enumerator.html +4 -4
- data/doc/rdoc/more/classes/Enumerable/Filterable.html +246 -0
- data/doc/rdoc/more/classes/EnumerablePass.html +17 -17
- data/doc/rdoc/more/classes/{RecursiveDependency.html → Enumerator.html} +7 -4
- data/doc/rdoc/more/classes/{CLI.html → Enumerator/Filter.html} +22 -26
- data/doc/rdoc/more/classes/Equatable.html +16 -16
- data/doc/rdoc/more/classes/Expirable.html +17 -17
- data/doc/rdoc/more/classes/FileList.html +125 -125
- data/doc/rdoc/more/classes/Fileable.html +14 -14
- data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
- data/doc/rdoc/more/classes/Hash.html +16 -162
- data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
- data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
- data/doc/rdoc/more/classes/IORedirect.html +19 -19
- data/doc/rdoc/more/classes/InfinityClass.html +36 -36
- data/doc/rdoc/more/classes/InfinityClass/Numeric.html +23 -23
- data/doc/rdoc/more/classes/Ini.html +37 -37
- data/doc/rdoc/more/classes/Instantiable.html +9 -9
- data/doc/rdoc/more/classes/Instantize.html +8 -8
- data/doc/rdoc/more/classes/Interval.html +187 -187
- data/doc/rdoc/more/classes/It.html +12 -12
- data/doc/rdoc/more/classes/LRUCache.html +38 -38
- data/doc/rdoc/more/classes/LinkedList.html +68 -68
- data/doc/rdoc/more/classes/LinkedList/Node.html +4 -4
- data/doc/rdoc/more/classes/{DictionaryMatcher.html → Matcher.html} +66 -68
- data/doc/rdoc/more/classes/{DictionaryMatcher → Matcher}/MatchData.html +8 -8
- data/doc/rdoc/more/classes/{CacheDecorator.html → Memoizer.html} +64 -46
- data/doc/rdoc/more/classes/Module.html +182 -361
- data/doc/rdoc/more/classes/Multiton.html +12 -12
- data/doc/rdoc/more/classes/Multiton/MetaMethods.html +28 -28
- data/doc/rdoc/more/classes/Net/SMTP.html +8 -8
- data/doc/rdoc/more/classes/NullClass.html +24 -24
- data/doc/rdoc/more/classes/Numeric/Multipliers.html +456 -0
- data/doc/rdoc/more/classes/ObjectReflection.html +12 -12
- data/doc/rdoc/more/classes/OpEsc.html +8 -7
- data/doc/rdoc/more/classes/OpenCascade.html +4 -4
- data/doc/rdoc/more/classes/OpenCollection.html +8 -8
- data/doc/rdoc/more/classes/OpenHash.html +9 -9
- data/doc/rdoc/more/classes/{EventHook.html → OpenModule.html} +24 -63
- data/doc/rdoc/more/classes/OpenObject.html +95 -95
- data/doc/rdoc/more/classes/OpenStructable.html +326 -0
- data/doc/rdoc/more/classes/PQueue.html +84 -84
- data/doc/rdoc/more/classes/Paramix.html +11 -11
- data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
- data/doc/rdoc/more/classes/PathList.html +8 -8
- data/doc/rdoc/more/classes/PathList/Finder.html +8 -8
- data/doc/rdoc/more/classes/Platform.html +46 -46
- data/doc/rdoc/more/classes/Pool.html +18 -18
- data/doc/rdoc/more/classes/Proc.html +9 -9
- data/doc/rdoc/more/classes/ProgressBar.html +52 -52
- data/doc/rdoc/more/classes/Prototype.html +28 -28
- data/doc/rdoc/more/classes/RWDelegator.html +16 -16
- data/doc/rdoc/more/classes/Random.html +5 -5
- data/doc/rdoc/more/classes/Random/Array.html +37 -37
- data/doc/rdoc/more/classes/Random/Hash.html +52 -52
- data/doc/rdoc/more/classes/Random/Object.html +4 -4
- data/doc/rdoc/more/classes/Random/String.html +34 -34
- data/doc/rdoc/more/classes/Random/String/Self.html +9 -9
- data/doc/rdoc/more/classes/Recorder.html +16 -16
- data/doc/rdoc/more/classes/Reference.html +19 -19
- data/doc/rdoc/more/classes/Registerable.html +13 -13
- data/doc/rdoc/more/classes/Semaphore.html +36 -36
- data/doc/rdoc/more/classes/Settings.html +28 -28
- data/doc/rdoc/more/classes/Settings/Setting.html +13 -13
- data/doc/rdoc/more/classes/Settings/SettingCollection.html +4 -4
- data/doc/rdoc/more/classes/SimpleStringIO.html +8 -8
- data/doc/rdoc/more/classes/Snapshot.html +16 -16
- data/doc/rdoc/more/classes/Snapshot/ValueHolder.html +12 -12
- data/doc/rdoc/more/classes/SparseArray.html +1397 -0
- data/doc/rdoc/more/classes/Stash.html +232 -0
- data/doc/rdoc/more/classes/String/Mask.html +72 -72
- data/doc/rdoc/more/classes/String/Words.html +49 -49
- data/doc/rdoc/more/classes/Struct.html +8 -8
- data/doc/rdoc/more/classes/SyncArray.html +4 -4
- data/doc/rdoc/more/classes/SyncHash.html +4 -4
- data/doc/rdoc/more/classes/SyncHash/Delegator.html +28 -28
- data/doc/rdoc/more/classes/SyncHash/Inheritor.html +28 -28
- data/doc/rdoc/more/classes/System.html +253 -253
- data/doc/rdoc/more/classes/Timer.html +48 -48
- data/doc/rdoc/more/classes/Timer/Dummy.html +9 -9
- data/doc/rdoc/more/classes/TracePoint.html +58 -58
- data/doc/rdoc/more/classes/Tuple.html +170 -170
- data/doc/rdoc/more/classes/TypeCast/Class.html +4 -4
- data/doc/rdoc/more/classes/TypeCast/Object.html +4 -4
- data/doc/rdoc/more/classes/Uninheritable.html +6 -6
- data/doc/rdoc/more/classes/VersionNumber.html +57 -57
- data/doc/rdoc/more/classes/XOXO.html +9 -9
- data/doc/rdoc/more/classes/ZipUtils.html +251 -118
- data/doc/rdoc/more/classes/ZipUtils/DryRun.html +203 -35
- data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +203 -35
- data/doc/rdoc/more/classes/ZipUtils/Verbose.html +173 -35
- data/doc/rdoc/more/created.rid +1 -1
- data/doc/rdoc/more/files/README.html +10 -16
- data/doc/rdoc/more/files/lib/more/facets/attr_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/buildable_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/consoleutils_rb.html +1 -18
- data/doc/rdoc/more/files/lib/more/facets/dependency_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/duration_rb.html +1 -41
- data/doc/rdoc/more/files/lib/more/facets/elementor_rb.html +2 -1
- data/doc/rdoc/more/files/lib/more/facets/enumerablepass_rb.html +2 -1
- data/doc/rdoc/more/files/lib/more/facets/{fileshell_rb.html → filter_rb.html} +6 -5
- data/doc/rdoc/more/files/lib/more/facets/inheritor_rb.html +3 -28
- data/doc/rdoc/more/files/lib/more/facets/iteration_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/kernel/meta_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/matcher_rb.html +97 -0
- data/doc/rdoc/more/files/lib/more/facets/memoize_rb.html +7 -4
- data/doc/rdoc/more/files/lib/more/facets/{cachedecorator_rb.html → memoizer_rb.html} +23 -49
- data/doc/rdoc/more/files/lib/more/facets/multipliers_rb.html +2 -18
- data/doc/rdoc/more/files/lib/more/facets/nilstatus_rb.html +1 -1
- data/doc/rdoc/{core/files/lib/core/facets/callstack_rb.html → more/files/lib/more/facets/openmodule_rb.html} +4 -4
- data/doc/rdoc/more/files/lib/more/facets/opesc_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/ostructable_rb.html +92 -0
- data/doc/rdoc/more/files/lib/more/facets/pathlist_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/snapshot_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/sparse_array_rb.html +92 -0
- data/doc/rdoc/more/files/lib/more/facets/stash_rb.html +166 -0
- data/doc/rdoc/more/files/lib/more/facets/string/words_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/succ_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/thread_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/ziputils_rb.html +6 -34
- data/doc/rdoc/more/fr_class_index.html +13 -17
- data/doc/rdoc/more/fr_file_index.html +7 -15
- data/doc/rdoc/more/fr_method_index.html +1079 -1003
- data/doc/rdoc/more/index.html +1 -1
- data/lib/core/facets/array/conjoin.rb +1 -1
- data/lib/core/facets/array/delete.rb +3 -60
- data/lib/core/facets/array/delete_unless.rb +15 -0
- data/lib/core/facets/array/delete_values.rb +50 -0
- data/lib/core/facets/array/index.rb +0 -26
- data/lib/core/facets/array/indexable.rb +2 -2
- data/lib/core/facets/array/merge.rb +1 -1
- data/lib/core/facets/array/only.rb +1 -2
- data/lib/core/facets/array/pad.rb +2 -2
- data/lib/core/facets/array/permutation.rb +1 -1
- data/lib/core/facets/array/product.rb +2 -2
- data/lib/core/facets/array/rotate.rb +2 -4
- data/lib/core/facets/array/select.rb +1 -1
- data/lib/core/facets/array/splice.rb +1 -1
- data/lib/core/facets/array/stackable.rb +2 -2
- data/lib/core/facets/binding/caller.rb +2 -7
- data/lib/core/facets/binding/callstack.rb +1 -0
- data/lib/core/facets/binding/defined.rb +0 -1
- data/lib/core/facets/bitmask.rb +6 -9
- data/lib/core/facets/class/cattr.rb +6 -9
- data/lib/core/facets/class/descendents.rb +0 -2
- data/lib/core/facets/class/prepend.rb +3 -4
- data/lib/core/facets/class/to_proc.rb +0 -20
- data/lib/core/facets/comparable/at_least.rb +1 -0
- data/lib/core/facets/comparable/at_most.rb +1 -0
- data/lib/core/facets/comparable/bound.rb +1 -65
- data/lib/core/facets/comparable/cap.rb +34 -0
- data/lib/core/facets/comparable/clip.rb +38 -0
- data/lib/core/facets/comparable/cmp.rb +3 -3
- data/lib/core/facets/comparable/comparable.rb +1 -1
- data/lib/core/facets/dir/ascend.rb +2 -5
- data/lib/core/facets/dir/multiglob.rb +0 -2
- data/lib/core/facets/dir/recurse.rb +1 -2
- data/lib/core/facets/enumerable/accumulate.rb +2 -0
- data/lib/core/facets/enumerable/cluster_by.rb +1 -1
- data/lib/core/facets/enumerable/collect.rb +2 -2
- data/lib/core/facets/enumerable/commonality.rb +1 -1
- data/lib/core/facets/enumerable/count.rb +1 -1
- data/lib/core/facets/enumerable/divide.rb +1 -1
- data/lib/core/facets/enumerable/duplicates.rb +2 -2
- data/lib/core/facets/enumerable/each_by.rb +1 -1
- data/lib/core/facets/enumerable/entropy.rb +2 -2
- data/lib/core/facets/enumerable/frequency.rb +1 -1
- data/lib/core/facets/enumerable/graph.rb +1 -0
- data/lib/core/facets/enumerable/group_by.rb +1 -1
- data/lib/core/facets/enumerable/inject.rb +2 -3
- data/lib/core/facets/enumerable/map_send.rb +15 -3
- data/lib/core/facets/enumerable/mash.rb +4 -5
- data/lib/core/facets/enumerable/mode.rb +1 -1
- data/lib/core/facets/enumerable/modulate.rb +2 -2
- data/lib/core/facets/enumerable/none.rb +1 -1
- data/lib/core/facets/enumerable/occur.rb +0 -2
- data/lib/core/facets/enumerable/one.rb +1 -1
- data/lib/core/facets/enumerable/probability.rb +1 -1
- data/lib/core/facets/enumerable/sum.rb +1 -1
- data/lib/core/facets/enumerable/take.rb +20 -0
- data/lib/core/facets/enumerable/uniq_by.rb +0 -2
- data/lib/core/facets/exception/detail.rb +1 -1
- data/lib/core/facets/exception/suppress.rb +1 -2
- data/lib/core/facets/file/append.rb +1 -1
- data/lib/core/facets/file/create.rb +1 -1
- data/lib/core/facets/file/null.rb +1 -1
- data/lib/core/facets/file/read.rb +3 -3
- data/lib/core/facets/file/rewrite.rb +1 -1
- data/lib/core/facets/file/rootname.rb +1 -1
- data/lib/core/facets/file/split_all.rb +19 -0
- data/lib/core/facets/file/split_root.rb +3 -0
- data/lib/core/facets/file/write.rb +1 -1
- data/lib/core/facets/file/writelines.rb +1 -2
- data/lib/core/facets/filetest/root.rb +1 -1
- data/lib/core/facets/hash/alias.rb +1 -1
- data/lib/core/facets/hash/autonew.rb +1 -17
- data/lib/core/facets/hash/collate.rb +1 -1
- data/lib/core/facets/hash/delete.rb +3 -3
- data/lib/core/facets/hash/insert.rb +1 -1
- data/lib/core/facets/hash/inverse.rb +1 -1
- data/lib/core/facets/hash/join.rb +1 -1
- data/lib/core/facets/hash/keys.rb +3 -3
- data/lib/core/facets/hash/op_add.rb +1 -1
- data/lib/core/facets/hash/op_and.rb +1 -1
- data/lib/core/facets/hash/op_mul.rb +1 -1
- data/lib/core/facets/hash/op_or.rb +1 -1
- data/lib/core/facets/hash/op_push.rb +1 -1
- data/lib/core/facets/hash/op_sub.rb +1 -1
- data/lib/core/facets/hash/rekey.rb +11 -7
- data/lib/core/facets/hash/replace_each.rb +16 -0
- data/lib/core/facets/hash/select.rb +1 -2
- data/lib/{more → core}/facets/hash/stringify_keys.rb +0 -0
- data/lib/core/facets/hash/symbolize_keys.rb +94 -0
- data/lib/core/facets/hash/to_options.rb +1 -0
- data/lib/core/facets/hash/to_struct.rb +1 -1
- data/lib/core/facets/hash/traverse.rb +2 -2
- data/lib/core/facets/hash/update.rb +5 -80
- data/lib/core/facets/hash/update_each.rb +18 -0
- data/lib/core/facets/hash/update_keys.rb +20 -0
- data/lib/core/facets/hash/update_values.rb +20 -0
- data/lib/core/facets/hash/weave.rb +1 -1
- data/lib/core/facets/hash/zipnew.rb +17 -1
- data/lib/core/facets/integer/factorial.rb +1 -1
- data/lib/core/facets/integer/multiple.rb +1 -1
- data/lib/core/facets/integer/odd.rb +2 -2
- data/lib/core/facets/kernel/__here__.rb +8 -0
- data/lib/core/facets/kernel/as.rb +2 -2
- data/lib/core/facets/kernel/attr_singleton.rb +5 -5
- data/lib/core/facets/{callstack.rb → kernel/callstack.rb} +1 -1
- data/lib/core/facets/kernel/complete.rb +1 -1
- data/lib/core/facets/kernel/constant.rb +1 -1
- data/lib/core/facets/kernel/d.rb +1 -5
- data/lib/core/facets/kernel/demo.rb +2 -2
- data/lib/core/facets/kernel/ergo.rb +2 -2
- data/lib/core/facets/kernel/instance_class.rb +1 -1
- data/lib/core/facets/kernel/instance_variables.rb +2 -4
- data/lib/core/facets/kernel/not_nil.rb +1 -1
- data/lib/core/facets/kernel/object_send.rb +1 -1
- data/lib/core/facets/kernel/p.rb +1 -1
- data/lib/core/facets/kernel/populate.rb +2 -2
- data/lib/core/facets/kernel/qua_class.rb +2 -2
- data/lib/core/facets/kernel/resc.rb +1 -1
- data/lib/core/facets/kernel/respond.rb +1 -1
- data/lib/core/facets/kernel/returning.rb +1 -1
- data/lib/core/facets/kernel/silence.rb +4 -4
- data/lib/core/facets/kernel/try.rb +5 -3
- data/lib/core/facets/matchdata/match.rb +1 -1
- data/lib/core/facets/matchdata/matchset.rb +2 -2
- data/lib/core/facets/metaid.rb +5 -5
- data/lib/core/facets/module/abstract.rb +1 -1
- data/lib/core/facets/module/alias_accessor.rb +3 -3
- data/lib/core/facets/module/alias_method_chain.rb +1 -2
- data/lib/core/facets/module/alias_module_function.rb +1 -1
- data/lib/core/facets/module/ancestor.rb +1 -1
- data/lib/core/facets/module/basename.rb +1 -1
- data/lib/core/facets/module/conflict.rb +1 -2
- data/lib/core/facets/module/include_function_module.rb +1 -1
- data/lib/core/facets/module/instance_methods.rb +4 -6
- data/lib/core/facets/module/is.rb +2 -2
- data/lib/core/facets/module/modspace.rb +1 -1
- data/lib/core/facets/module/module_load.rb +2 -2
- data/lib/core/facets/module/nesting.rb +1 -1
- data/lib/core/facets/module/op.rb +3 -6
- data/lib/core/facets/module/prepend.rb +1 -1
- data/lib/core/facets/module/redefine_method.rb +1 -1
- data/lib/core/facets/module/rename_method.rb +1 -1
- data/lib/core/facets/module/revise.rb +2 -2
- data/lib/core/facets/module/spacename.rb +1 -1
- data/lib/core/facets/module/wrap_method.rb +1 -1
- data/lib/core/facets/nilclass/to_f.rb +1 -1
- data/lib/core/facets/numeric/approx.rb +1 -1
- data/lib/core/facets/numeric/distance.rb +1 -1
- data/lib/core/facets/numeric/round.rb +3 -6
- data/lib/core/facets/objectspace.rb +6 -0
- data/lib/core/facets/objectspace/classes.rb +11 -0
- data/lib/core/facets/proc/bind.rb +1 -1
- data/lib/core/facets/proc/compose.rb +2 -2
- data/lib/core/facets/proc/to_method.rb +1 -1
- data/lib/core/facets/proc/update.rb +1 -1
- data/lib/core/facets/range/combine.rb +2 -2
- data/lib/core/facets/range/overlap.rb +1 -2
- data/lib/core/facets/range/within.rb +2 -4
- data/lib/core/facets/regexp/arity.rb +1 -1
- data/lib/core/facets/string/align.rb +3 -3
- data/lib/core/facets/string/bracket.rb +6 -6
- data/lib/core/facets/string/camelcase.rb +1 -1
- data/lib/core/facets/string/capitalized.rb +3 -3
- data/lib/core/facets/string/chars.rb +1 -1
- data/lib/core/facets/string/chomp.rb +2 -2
- data/lib/core/facets/string/cleave.rb +1 -1
- data/lib/core/facets/string/compress_lines.rb +17 -0
- data/lib/core/facets/string/contains.rb +7 -0
- data/lib/core/facets/string/divide.rb +1 -1
- data/lib/core/facets/string/expand_tab.rb +35 -0
- data/lib/core/facets/string/fold.rb +1 -1
- data/lib/core/facets/string/indent.rb +25 -0
- data/lib/core/facets/string/interpolate.rb +1 -1
- data/lib/core/facets/string/line_wrap.rb +1 -1
- data/lib/core/facets/string/lines.rb +1 -2
- data/lib/core/facets/string/margin.rb +30 -0
- data/lib/core/facets/string/methodize.rb +1 -1
- data/lib/core/facets/string/mscan.rb +1 -1
- data/lib/core/facets/string/natcmp.rb +1 -2
- data/lib/core/facets/string/nchar.rb +0 -2
- data/lib/core/facets/string/op_sub.rb +1 -1
- data/lib/core/facets/string/outdent.rb +1 -0
- data/lib/core/facets/string/range.rb +4 -5
- data/lib/core/facets/string/rewrite.rb +1 -1
- data/lib/core/facets/string/shatter.rb +1 -1
- data/lib/core/facets/string/snakecase.rb +1 -1
- data/lib/core/facets/string/splice.rb +2 -2
- data/lib/core/facets/string/start_with.rb +2 -4
- data/lib/core/facets/string/tab.rb +9 -92
- data/lib/core/facets/string/tabto.rb +19 -0
- data/lib/core/facets/string/titlecase.rb +1 -1
- data/lib/core/facets/string/to_re.rb +2 -2
- data/lib/core/facets/string/word_wrap.rb +2 -4
- data/lib/core/facets/struct.rb +6 -0
- data/lib/core/facets/struct/attributes.rb +11 -0
- data/lib/core/facets/symbol/chomp.rb +2 -2
- data/lib/core/facets/symbol/generate.rb +1 -1
- data/lib/core/facets/symbol/not.rb +2 -2
- data/lib/core/facets/symbol/succ.rb +1 -1
- data/lib/core/facets/symbol/to_proc.rb +2 -3
- data/lib/core/facets/time/advance.rb +2 -1
- data/lib/core/facets/time/elapse.rb +1 -1
- data/lib/core/facets/time/hence.rb +16 -13
- data/lib/core/facets/time/stamp.rb +2 -2
- data/lib/core/facets/to_hash.rb +1 -1
- data/lib/core/facets/unboundmethod/arguments.rb +1 -1
- data/lib/core/facets/unboundmethod/name.rb +1 -1
- data/lib/lore/facets/date.rb +2 -2
- data/lib/lore/facets/enumerator.rb +67 -0
- data/lib/lore/facets/ostruct.rb +3 -7
- data/lib/more/facets/attr.rb +10 -9
- data/lib/more/facets/consoleutils.rb +1 -15
- data/lib/more/facets/dependency.rb +1 -1
- data/lib/more/facets/duration.rb +271 -525
- data/lib/more/facets/filter.rb +121 -0
- data/lib/more/facets/inheritor.rb +37 -58
- data/lib/more/facets/iteration.rb +1 -1
- data/lib/more/facets/kernel/meta.rb +1 -1
- data/lib/more/facets/{dictionarymatcher.rb → matcher.rb} +15 -11
- data/lib/more/facets/memoize.rb +9 -12
- data/lib/more/facets/memoizer.rb +74 -0
- data/lib/more/facets/multipliers.rb +54 -66
- data/lib/more/facets/nilstatus.rb +3 -2
- data/lib/more/facets/openmodule.rb +15 -0
- data/lib/more/facets/opesc.rb +1 -1
- data/lib/more/facets/ostructable.rb +212 -0
- data/lib/more/facets/pathlist.rb +1 -0
- data/lib/more/facets/sparse_array.rb +809 -0
- data/lib/more/facets/stash.rb +66 -0
- data/lib/more/facets/string/words.rb +8 -11
- data/lib/more/facets/succ.rb +3 -3
- data/lib/more/facets/thread.rb +2 -2
- data/lib/more/facets/ziputils.rb +238 -97
- data/test/core/array/test_index.rb +17 -0
- data/test/core/class/test_cattr.rb +1 -1
- data/test/core/class/test_to_proc.rb +13 -0
- data/test/core/comparable/test_cap.rb +25 -0
- data/test/core/comparable/{test_bound.rb → test_clip.rb} +1 -20
- data/test/core/file/test_split_all.rb +32 -0
- data/test/core/hash/test_op_mul.rb +1 -1
- data/test/core/hash/test_op_push.rb +7 -0
- data/test/core/hash/test_replace_each.rb +14 -0
- data/test/core/hash/test_update_each.rb +13 -0
- data/test/core/hash/test_update_keys.rb +18 -0
- data/test/core/hash/test_update_values.rb +12 -0
- data/test/core/kernel/test_callstack.rb +1 -1
- data/test/core/string/test_indent.rb +13 -0
- data/test/core/string/test_margin.rb +100 -0
- data/test/core/string/test_outdent.rb +65 -0
- data/test/core/string/test_tab.rb +1 -162
- data/test/core/string/test_tabto.rb +13 -0
- data/test/{more → core}/test_metaid.rb +8 -8
- data/test/core/time/test_hence.rb +118 -4
- data/test/core/unboundmethod/test_name.rb +1 -1
- data/test/more/{test_arguments.rb → test_argvector.rb} +8 -12
- data/test/more/test_filter.rb +87 -0
- data/test/more/test_memoize.rb +11 -9
- data/test/more/test_sparsearray.rb +279 -0
- metadata +741 -725
- data/demo/bench/bench_load.rb +0 -56
- data/demo/bench/enumerable/bench_collect.rb +0 -84
- data/demo/bench/enumerable/bench_count.rb +0 -58
- data/demo/bench/general/bench_calls.rb +0 -74
- data/demo/bench/general/bench_includes.rb +0 -25
- data/demo/bench/general/bench_methods.rb +0 -17
- data/demo/bench/general/bench_pathname.rb +0 -24
- data/demo/bench/general/bench_range.rb +0 -64
- data/demo/bench/general/bench_return.rb +0 -56
- data/demo/bench/general/bench_yeild.rb +0 -75
- data/demo/bench/general/comment_loading/bench.rb +0 -46
- data/demo/bench/general/comment_loading/comments_begin.rb +0 -109
- data/demo/bench/general/comment_loading/comments_end.rb +0 -127
- data/demo/bench/general/comment_loading/comments_none.rb +0 -1
- data/demo/bench/general/comment_loading/comments_sharp.rb +0 -125
- data/demo/bench/integer/bench_factorial.rb +0 -31
- data/demo/sample/annotations/annotations1.rb +0 -22
- data/demo/sample/ansicolor/cdiff.rb +0 -20
- data/demo/sample/ansicolor/example.rb +0 -82
- data/doc/book/notes.rdoc +0 -9
- data/doc/rdoc/more/classes/BigDuration.html +0 -323
- data/doc/rdoc/more/classes/CLI/Arguments.html +0 -488
- data/doc/rdoc/more/classes/CLI/Command.html +0 -316
- data/doc/rdoc/more/classes/Chain.html +0 -206
- data/doc/rdoc/more/classes/FileShell.html +0 -743
- data/doc/rdoc/more/classes/TagIterator.html +0 -581
- data/doc/rdoc/more/classes/UploadUtils.html +0 -497
- data/doc/rdoc/more/classes/Weekdays.html +0 -218
- data/doc/rdoc/more/files/lib/more/facets/annotations_rb.html +0 -180
- data/doc/rdoc/more/files/lib/more/facets/arguments_rb.html +0 -142
- data/doc/rdoc/more/files/lib/more/facets/cattr_rb.html +0 -125
- data/doc/rdoc/more/files/lib/more/facets/chain_rb.html +0 -114
- data/doc/rdoc/more/files/lib/more/facets/command_rb.html +0 -170
- data/doc/rdoc/more/files/lib/more/facets/eventhook_rb.html +0 -141
- data/doc/rdoc/more/files/lib/more/facets/tagiterator_rb.html +0 -111
- data/doc/rdoc/more/files/lib/more/facets/times_rb.html +0 -163
- data/doc/rdoc/more/files/lib/more/facets/uploadutils_rb.html +0 -176
- data/lib/more/facets/annotations.rb +0 -302
- data/lib/more/facets/arguments.rb +0 -365
- data/lib/more/facets/bytes.rb +0 -175
- data/lib/more/facets/cachedecorator.rb +0 -117
- data/lib/more/facets/chain.rb +0 -58
- data/lib/more/facets/command.rb +0 -439
- data/lib/more/facets/eventhook.rb +0 -132
- data/lib/more/facets/fileshell.rb +0 -202
- data/lib/more/facets/hash/symbolize_keys.rb +0 -94
- data/lib/more/facets/tagiter.rb +0 -366
- data/lib/more/facets/times.rb +0 -431
- data/lib/more/facets/uploadutils.rb +0 -464
- data/test/core/hash/test_update.rb +0 -46
- data/test/more/test_annotations.rb +0 -120
- data/test/more/test_bytes.rb +0 -71
- data/test/more/test_command.rb +0 -69
- data/test/more/test_times.rb +0 -89
@@ -86,7 +86,7 @@ look true to Ruby, even if the actual result object is nil or false.
|
|
86
86
|
</p>
|
87
87
|
<p>
|
88
88
|
If you want to test the result for truth, get the unwrapped result object
|
89
|
-
via <a href="../Kernel.html#
|
89
|
+
via <a href="../Kernel.html#M000350">Kernel.demand</a>.
|
90
90
|
</p>
|
91
91
|
</div>
|
92
92
|
|
@@ -82,9 +82,9 @@ Object
|
|
82
82
|
|
83
83
|
|
84
84
|
<div class="sectiontitle">Methods</div>
|
85
|
-
<span style="padding-right: 5px;"><a href="#
|
86
|
-
<span style="padding-right: 5px;"><a href="#
|
87
|
-
<span style="padding-right: 5px;"><a href="#
|
85
|
+
<span style="padding-right: 5px;"><a href="#M000155">match</a></span>
|
86
|
+
<span style="padding-right: 5px;"><a href="#M000156">matchset</a></span>
|
87
|
+
<span style="padding-right: 5px;"><a href="#M000157">matchtree</a></span>
|
88
88
|
|
89
89
|
|
90
90
|
|
@@ -94,23 +94,24 @@ Object
|
|
94
94
|
<div class="sectiontitle">Public Instance methods</div>
|
95
95
|
<div class="method">
|
96
96
|
<div class="title">
|
97
|
-
<a name="
|
97
|
+
<a name="M000155"></a><b>match</b>(index=0)
|
98
98
|
</div>
|
99
99
|
<div class="description">
|
100
100
|
<p>
|
101
|
-
Return the primary <a href="MatchData.html#
|
101
|
+
Return the primary <a href="MatchData.html#M000155">match</a> string. This
|
102
102
|
is equivalent to +md[0]+.
|
103
103
|
</p>
|
104
104
|
<pre>
|
105
105
|
md = /123/.match "123456"
|
106
106
|
md.match #=> "123"
|
107
|
-
|
108
|
-
CREDIT: Martin DeMello
|
109
107
|
</pre>
|
108
|
+
<p>
|
109
|
+
CREDIT: Martin DeMello
|
110
|
+
</p>
|
110
111
|
</div>
|
111
112
|
<div class="sourcecode">
|
112
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
113
|
-
<div id="
|
113
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000155_source')" id="l_M000155_source">+</a> ]</p>
|
114
|
+
<div id="M000155_source" class="dyn-source">
|
114
115
|
<pre>
|
115
116
|
<span class="ruby-comment cmt"># File lib/core/facets/matchdata/match.rb, line 10</span>
|
116
117
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">match</span>(<span class="ruby-identifier">index</span>=<span class="ruby-value">0</span>)
|
@@ -122,24 +123,25 @@ is equivalent to +md[0]+.
|
|
122
123
|
</div>
|
123
124
|
<div class="method">
|
124
125
|
<div class="title">
|
125
|
-
<a name="
|
126
|
+
<a name="M000156"></a><b>matchset</b>()
|
126
127
|
</div>
|
127
128
|
<div class="description">
|
128
129
|
<p>
|
129
|
-
Returns [ pre_match, <a href="MatchData.html#
|
130
|
-
post_match ]. (see <a href="MatchData.html#
|
130
|
+
Returns [ pre_match, <a href="MatchData.html#M000157">matchtree</a>,
|
131
|
+
post_match ]. (see <a href="MatchData.html#M000157">matchtree</a>)
|
131
132
|
</p>
|
132
133
|
<pre>
|
133
134
|
md = /(bb)(cc(dd))(ee)/.match "XXaabbccddeeffXX"
|
134
135
|
md.to_a #=> ["XXaabbccddeeffXX", "bb", "ccdd", "dd", "ee"]
|
135
136
|
md.matchset #=> ["XXaa", [["bb"], ["cc", ["dd"]], "ee"], "ffXX"]
|
136
|
-
|
137
|
-
CREDIT: Trans
|
138
137
|
</pre>
|
138
|
+
<p>
|
139
|
+
CREDIT: Trans
|
140
|
+
</p>
|
139
141
|
</div>
|
140
142
|
<div class="sourcecode">
|
141
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
142
|
-
<div id="
|
143
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000156_source')" id="l_M000156_source">+</a> ]</p>
|
144
|
+
<div id="M000156_source" class="dyn-source">
|
143
145
|
<pre>
|
144
146
|
<span class="ruby-comment cmt"># File lib/core/facets/matchdata/matchset.rb, line 11</span>
|
145
147
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">matchset</span>
|
@@ -151,7 +153,7 @@ post_match ]. (see <a href="MatchData.html#M000153">matchtree</a>)
|
|
151
153
|
</div>
|
152
154
|
<div class="method">
|
153
155
|
<div class="title">
|
154
|
-
<a name="
|
156
|
+
<a name="M000157"></a><b>matchtree</b>(index=0)
|
155
157
|
</div>
|
156
158
|
<div class="description">
|
157
159
|
<p>
|
@@ -162,13 +164,14 @@ the regular expression.
|
|
162
164
|
md = /(bb)(cc(dd))(ee)/.match "XXaabbccddeeffXX"
|
163
165
|
md.to_a #=> ["XXaabbccddeeffXX", "bb", "ccdd", "dd", "ee"]
|
164
166
|
md.matchtree #=> [["bb"], ["cc", ["dd"]], "ee"]
|
165
|
-
|
166
|
-
CREDIT: Trans
|
167
167
|
</pre>
|
168
|
+
<p>
|
169
|
+
CREDIT: Trans
|
170
|
+
</p>
|
168
171
|
</div>
|
169
172
|
<div class="sourcecode">
|
170
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
171
|
-
<div id="
|
173
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000157_source')" id="l_M000157_source">+</a> ]</p>
|
174
|
+
<div id="M000157_source" class="dyn-source">
|
172
175
|
<pre>
|
173
176
|
<span class="ruby-comment cmt"># File lib/core/facets/matchdata/matchset.rb, line 24</span>
|
174
177
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">matchtree</span>(<span class="ruby-identifier">index</span>=<span class="ruby-value">0</span>)
|
@@ -105,7 +105,7 @@ Object
|
|
105
105
|
|
106
106
|
<div class="description"><p>
|
107
107
|
It would nice if we could the following. Then the middle portion of the <a
|
108
|
-
href="Module.html#
|
108
|
+
href="Module.html#M000164">Comparable</a> method would not be needed. But I
|
109
109
|
fear it might break others code.
|
110
110
|
</p>
|
111
111
|
<pre>
|
@@ -124,40 +124,40 @@ fear it might break others code.
|
|
124
124
|
|
125
125
|
|
126
126
|
<div class="sectiontitle">Methods</div>
|
127
|
-
<span style="padding-right: 5px;"><a href="#
|
128
|
-
<span style="padding-right: 5px;"><a href="#
|
129
|
-
<span style="padding-right: 5px;"><a href="#
|
130
|
-
<span style="padding-right: 5px;"><a href="#
|
131
|
-
<span style="padding-right: 5px;"><a href="#
|
132
|
-
<span style="padding-right: 5px;"><a href="#
|
133
|
-
<span style="padding-right: 5px;"><a href="#
|
134
|
-
<span style="padding-right: 5px;"><a href="#
|
135
|
-
<span style="padding-right: 5px;"><a href="#
|
136
|
-
<span style="padding-right: 5px;"><a href="#
|
137
|
-
<span style="padding-right: 5px;"><a href="#
|
138
|
-
<span style="padding-right: 5px;"><a href="#
|
139
|
-
<span style="padding-right: 5px;"><a href="#
|
140
|
-
<span style="padding-right: 5px;"><a href="#
|
141
|
-
<span style="padding-right: 5px;"><a href="#
|
142
|
-
<span style="padding-right: 5px;"><a href="#
|
143
|
-
<span style="padding-right: 5px;"><a href="#
|
144
|
-
<span style="padding-right: 5px;"><a href="#
|
145
|
-
<span style="padding-right: 5px;"><a href="#
|
146
|
-
<span style="padding-right: 5px;"><a href="#
|
147
|
-
<span style="padding-right: 5px;"><a href="#
|
148
|
-
<span style="padding-right: 5px;"><a href="#
|
149
|
-
<span style="padding-right: 5px;"><a href="#
|
150
|
-
<span style="padding-right: 5px;"><a href="#
|
151
|
-
<span style="padding-right: 5px;"><a href="#
|
152
|
-
<span style="padding-right: 5px;"><a href="#
|
153
|
-
<span style="padding-right: 5px;"><a href="#
|
154
|
-
<span style="padding-right: 5px;"><a href="#
|
155
|
-
<span style="padding-right: 5px;"><a href="#
|
156
|
-
<span style="padding-right: 5px;"><a href="#
|
157
|
-
<span style="padding-right: 5px;"><a href="#
|
158
|
-
<span style="padding-right: 5px;"><a href="#
|
159
|
-
<span style="padding-right: 5px;"><a href="#
|
160
|
-
<span style="padding-right: 5px;"><a href="#
|
127
|
+
<span style="padding-right: 5px;"><a href="#M000174">*</a></span>
|
128
|
+
<span style="padding-right: 5px;"><a href="#M000172">+</a></span>
|
129
|
+
<span style="padding-right: 5px;"><a href="#M000173">-</a></span>
|
130
|
+
<span style="padding-right: 5px;"><a href="#M000164">Comparable</a></span>
|
131
|
+
<span style="padding-right: 5px;"><a href="#M000188">abstract</a></span>
|
132
|
+
<span style="padding-right: 5px;"><a href="#M000189">alias_method_chain</a></span>
|
133
|
+
<span style="padding-right: 5px;"><a href="#M000176">all_instance_methods</a></span>
|
134
|
+
<span style="padding-right: 5px;"><a href="#M000166">ancestor?</a></span>
|
135
|
+
<span style="padding-right: 5px;"><a href="#M000196">basename</a></span>
|
136
|
+
<span style="padding-right: 5px;"><a href="#M000163">class_def</a></span>
|
137
|
+
<span style="padding-right: 5px;"><a href="#M000183">class_load</a></span>
|
138
|
+
<span style="padding-right: 5px;"><a href="#M000182">class_require</a></span>
|
139
|
+
<span style="padding-right: 5px;"><a href="#M000168">conflict?</a></span>
|
140
|
+
<span style="padding-right: 5px;"><a href="#M000177">instance_method_defined?</a></span>
|
141
|
+
<span style="padding-right: 5px;"><a href="#M000192">integrate</a></span>
|
142
|
+
<span style="padding-right: 5px;"><a href="#M000185">is</a></span>
|
143
|
+
<span style="padding-right: 5px;"><a href="#M000184">is?</a></span>
|
144
|
+
<span style="padding-right: 5px;"><a href="#M000167">methodize</a></span>
|
145
|
+
<span style="padding-right: 5px;"><a href="#M000187">modspace</a></span>
|
146
|
+
<span style="padding-right: 5px;"><a href="#M000180">module_load</a></span>
|
147
|
+
<span style="padding-right: 5px;"><a href="#M000179">module_method_defined?</a></span>
|
148
|
+
<span style="padding-right: 5px;"><a href="#M000181">module_require</a></span>
|
149
|
+
<span style="padding-right: 5px;"><a href="#M000186">nesting</a></span>
|
150
|
+
<span style="padding-right: 5px;"><a href="#M000175">pathize</a></span>
|
151
|
+
<span style="padding-right: 5px;"><a href="#M000165">prepend</a></span>
|
152
|
+
<span style="padding-right: 5px;"><a href="#M000170">private_conflict?</a></span>
|
153
|
+
<span style="padding-right: 5px;"><a href="#M000171">protected_conflict?</a></span>
|
154
|
+
<span style="padding-right: 5px;"><a href="#M000169">public_conflict?</a></span>
|
155
|
+
<span style="padding-right: 5px;"><a href="#M000191">revisal</a></span>
|
156
|
+
<span style="padding-right: 5px;"><a href="#M000190">revise</a></span>
|
157
|
+
<span style="padding-right: 5px;"><a href="#M000178">singleton_method_defined?</a></span>
|
158
|
+
<span style="padding-right: 5px;"><a href="#M000193">spacename</a></span>
|
159
|
+
<span style="padding-right: 5px;"><a href="#M000195">wrap</a></span>
|
160
|
+
<span style="padding-right: 5px;"><a href="#M000194">wrap_method</a></span>
|
161
161
|
|
162
162
|
|
163
163
|
|
@@ -167,7 +167,7 @@ fear it might break others code.
|
|
167
167
|
<div class="sectiontitle">Public Instance methods</div>
|
168
168
|
<div class="method">
|
169
169
|
<div class="title">
|
170
|
-
<a name="
|
170
|
+
<a name="M000174"></a><b>*</b>(rename_map)
|
171
171
|
</div>
|
172
172
|
<div class="description">
|
173
173
|
<p>
|
@@ -183,16 +183,16 @@ Rename methods.
|
|
183
183
|
class X; include B; end
|
184
184
|
|
185
185
|
X.new.b #=> "a"
|
186
|
-
|
187
|
-
CREDIT: Thomas Sawyer
|
188
|
-
CREDIT: Robert Dober
|
189
186
|
</pre>
|
187
|
+
<p>
|
188
|
+
Thomas Sawyer, Robert Dober
|
189
|
+
</p>
|
190
190
|
</div>
|
191
191
|
<div class="sourcecode">
|
192
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
193
|
-
<div id="
|
192
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000174_source')" id="l_M000174_source">+</a> ]</p>
|
193
|
+
<div id="M000174_source" class="dyn-source">
|
194
194
|
<pre>
|
195
|
-
<span class="ruby-comment cmt"># File lib/core/facets/module/op.rb, line
|
195
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/op.rb, line 80</span>
|
196
196
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">*</span>(<span class="ruby-identifier">rename_map</span>)
|
197
197
|
<span class="ruby-identifier">base</span> = <span class="ruby-keyword kw">self</span>
|
198
198
|
<span class="ruby-constant">Module</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span>
|
@@ -209,7 +209,7 @@ Rename methods.
|
|
209
209
|
</div>
|
210
210
|
<div class="method">
|
211
211
|
<div class="title">
|
212
|
-
<a name="
|
212
|
+
<a name="M000172"></a><b>+</b>(other)
|
213
213
|
</div>
|
214
214
|
<div class="description">
|
215
215
|
<p>
|
@@ -246,16 +246,15 @@ their copies. Eg.
|
|
246
246
|
Later it was realized that this thwarted the main benefit that Ruby‘s
|
247
247
|
concept of modules has over traditional traits, inheritance.
|
248
248
|
</p>
|
249
|
-
<
|
250
|
-
|
251
|
-
|
252
|
-
</pre>
|
249
|
+
<p>
|
250
|
+
CREDIT: Thomas Sawyer, Robert Dober
|
251
|
+
</p>
|
253
252
|
</div>
|
254
253
|
<div class="sourcecode">
|
255
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
256
|
-
<div id="
|
254
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000172_source')" id="l_M000172_source">+</a> ]</p>
|
255
|
+
<div id="M000172_source" class="dyn-source">
|
257
256
|
<pre>
|
258
|
-
<span class="ruby-comment cmt"># File lib/core/facets/module/op.rb, line
|
257
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/op.rb, line 35</span>
|
259
258
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</span>(<span class="ruby-identifier">other</span>)
|
260
259
|
<span class="ruby-identifier">base</span> = <span class="ruby-keyword kw">self</span>
|
261
260
|
<span class="ruby-constant">Module</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span>
|
@@ -269,7 +268,7 @@ concept of modules has over traditional traits, inheritance.
|
|
269
268
|
</div>
|
270
269
|
<div class="method">
|
271
270
|
<div class="title">
|
272
|
-
<a name="
|
271
|
+
<a name="M000173"></a><b>-</b>(other)
|
273
272
|
</div>
|
274
273
|
<div class="description">
|
275
274
|
<p>
|
@@ -277,16 +276,16 @@ Subtract modules.
|
|
277
276
|
</p>
|
278
277
|
<pre>
|
279
278
|
TODO: Should this use all instance_methods, not just public?
|
280
|
-
|
281
|
-
CREDIT: Thomas Sawyer
|
282
|
-
CREDIT: Robert Dober
|
283
279
|
</pre>
|
280
|
+
<p>
|
281
|
+
CREDIT: Thomas Sawyer, Robert Dober
|
282
|
+
</p>
|
284
283
|
</div>
|
285
284
|
<div class="sourcecode">
|
286
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
287
|
-
<div id="
|
285
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000173_source')" id="l_M000173_source">+</a> ]</p>
|
286
|
+
<div id="M000173_source" class="dyn-source">
|
288
287
|
<pre>
|
289
|
-
<span class="ruby-comment cmt"># File lib/core/facets/module/op.rb, line
|
288
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/op.rb, line 49</span>
|
290
289
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">other</span>)
|
291
290
|
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">other</span>
|
292
291
|
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">Array</span>
|
@@ -308,7 +307,7 @@ Subtract modules.
|
|
308
307
|
</div>
|
309
308
|
<div class="method">
|
310
309
|
<div class="title">
|
311
|
-
<a name="
|
310
|
+
<a name="M000164"></a><b>Comparable</b>(*accessors)
|
312
311
|
</div>
|
313
312
|
<div class="description">
|
314
313
|
<p>
|
@@ -318,7 +317,7 @@ Automatically generate sorting defintions base on attribute fields.
|
|
318
317
|
include SortOn(:a, :b)
|
319
318
|
</pre>
|
320
319
|
<p>
|
321
|
-
<a href="Module.html#
|
320
|
+
<a href="Module.html#M000185">is</a> equivalent to including a module
|
322
321
|
containing:
|
323
322
|
</p>
|
324
323
|
<pre>
|
@@ -330,8 +329,8 @@ containing:
|
|
330
329
|
</pre>
|
331
330
|
</div>
|
332
331
|
<div class="sourcecode">
|
333
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
334
|
-
<div id="
|
332
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000164_source')" id="l_M000164_source">+</a> ]</p>
|
333
|
+
<div id="M000164_source" class="dyn-source">
|
335
334
|
<pre>
|
336
335
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/comparable.rb, line 28</span>
|
337
336
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Comparable</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">accessors</span>)
|
@@ -352,12 +351,12 @@ containing:
|
|
352
351
|
</div>
|
353
352
|
<div class="method">
|
354
353
|
<div class="title">
|
355
|
-
<a name="
|
354
|
+
<a name="M000188"></a><b>abstract</b>( *sym )
|
356
355
|
</div>
|
357
356
|
<div class="description">
|
358
357
|
<p>
|
359
|
-
Create an <a href="Module.html#
|
360
|
-
href="Module.html#
|
358
|
+
Create an <a href="Module.html#M000188">abstract</a> method. If it <a
|
359
|
+
href="Module.html#M000185">is</a> not overridden, it will raise a TypeError
|
361
360
|
when called.
|
362
361
|
</p>
|
363
362
|
<pre>
|
@@ -367,13 +366,14 @@ when called.
|
|
367
366
|
|
368
367
|
c = C.new
|
369
368
|
c.a #=> Error: undefined abstraction #a
|
370
|
-
|
371
|
-
CREDIT: Trans
|
372
369
|
</pre>
|
370
|
+
<p>
|
371
|
+
CREDIT: Trans
|
372
|
+
</p>
|
373
373
|
</div>
|
374
374
|
<div class="sourcecode">
|
375
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
376
|
-
<div id="
|
375
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000188_source')" id="l_M000188_source">+</a> ]</p>
|
376
|
+
<div id="M000188_source" class="dyn-source">
|
377
377
|
<pre>
|
378
378
|
<span class="ruby-comment cmt"># File lib/core/facets/module/abstract.rb, line 15</span>
|
379
379
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">abstract</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">sym</span> )
|
@@ -387,7 +387,7 @@ when called.
|
|
387
387
|
</div>
|
388
388
|
<div class="method">
|
389
389
|
<div class="title">
|
390
|
-
<a name="
|
390
|
+
<a name="M000189"></a><b>alias_method_chain</b>(target, feature) {|aliased_target, punctuation| ...}
|
391
391
|
</div>
|
392
392
|
<div class="description">
|
393
393
|
<p>
|
@@ -413,7 +413,7 @@ Query and bang methods (foo?, foo!) keep the same punctuation:
|
|
413
413
|
alias_method_chain :foo?, :feature
|
414
414
|
</pre>
|
415
415
|
<p>
|
416
|
-
<a href="Module.html#
|
416
|
+
<a href="Module.html#M000185">is</a> equivalent to
|
417
417
|
</p>
|
418
418
|
<pre>
|
419
419
|
alias_method :foo_without_feature?, :foo?
|
@@ -422,16 +422,15 @@ Query and bang methods (foo?, foo!) keep the same punctuation:
|
|
422
422
|
<p>
|
423
423
|
so you can safely chain foo, foo?, and foo! with the same feature.
|
424
424
|
</p>
|
425
|
-
<
|
426
|
-
|
427
|
-
|
428
|
-
</pre>
|
425
|
+
<p>
|
426
|
+
CREDIT: Bitsweat, Rails Team
|
427
|
+
</p>
|
429
428
|
</div>
|
430
429
|
<div class="sourcecode">
|
431
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
432
|
-
<div id="
|
430
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000189_source')" id="l_M000189_source">+</a> ]</p>
|
431
|
+
<div id="M000189_source" class="dyn-source">
|
433
432
|
<pre>
|
434
|
-
<span class="ruby-comment cmt"># File lib/core/facets/module/alias_method_chain.rb, line
|
433
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/alias_method_chain.rb, line 27</span>
|
435
434
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alias_method_chain</span>(<span class="ruby-identifier">target</span>, <span class="ruby-identifier">feature</span>)
|
436
435
|
<span class="ruby-comment cmt"># Strip out punctuation on predicates or bang methods since</span>
|
437
436
|
<span class="ruby-comment cmt"># e.g. target?_without_feature is not a valid method name.</span>
|
@@ -458,7 +457,7 @@ so you can safely chain foo, foo?, and foo! with the same feature.
|
|
458
457
|
</div>
|
459
458
|
<div class="method">
|
460
459
|
<div class="title">
|
461
|
-
<a name="
|
460
|
+
<a name="M000176"></a><b>all_instance_methods</b>(include_super=true)
|
462
461
|
</div>
|
463
462
|
<div class="description">
|
464
463
|
<p>
|
@@ -471,15 +470,15 @@ List all instance methods, equivalent to
|
|
471
470
|
</pre>
|
472
471
|
<p>
|
473
472
|
TODO: Better name for <a
|
474
|
-
href="Module.html#
|
473
|
+
href="Module.html#M000176">all_instance_methods</a>?
|
474
|
+
</p>
|
475
|
+
<p>
|
476
|
+
CREDIT: Trans
|
475
477
|
</p>
|
476
|
-
<pre>
|
477
|
-
CREDIT: Trans
|
478
|
-
</pre>
|
479
478
|
</div>
|
480
479
|
<div class="sourcecode">
|
481
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
482
|
-
<div id="
|
480
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000176_source')" id="l_M000176_source">+</a> ]</p>
|
481
|
+
<div id="M000176_source" class="dyn-source">
|
483
482
|
<pre>
|
484
483
|
<span class="ruby-comment cmt"># File lib/core/facets/module/instance_methods.rb, line 13</span>
|
485
484
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">all_instance_methods</span>(<span class="ruby-identifier">include_super</span>=<span class="ruby-keyword kw">true</span>)
|
@@ -493,7 +492,7 @@ href="Module.html#M000172">all_instance_methods</a>?
|
|
493
492
|
</div>
|
494
493
|
<div class="method">
|
495
494
|
<div class="title">
|
496
|
-
<a name="
|
495
|
+
<a name="M000166"></a><b>ancestor?</b>( mod )
|
497
496
|
</div>
|
498
497
|
<div class="description">
|
499
498
|
<p>
|
@@ -507,8 +506,8 @@ Is a given class or module an ancestor of this class or module?
|
|
507
506
|
</pre>
|
508
507
|
</div>
|
509
508
|
<div class="sourcecode">
|
510
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
511
|
-
<div id="
|
509
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000166_source')" id="l_M000166_source">+</a> ]</p>
|
510
|
+
<div id="M000166_source" class="dyn-source">
|
512
511
|
<pre>
|
513
512
|
<span class="ruby-comment cmt"># File lib/core/facets/module/ancestor.rb, line 11</span>
|
514
513
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ancestor?</span>( <span class="ruby-identifier">mod</span> )
|
@@ -520,7 +519,7 @@ Is a given class or module an ancestor of this class or module?
|
|
520
519
|
</div>
|
521
520
|
<div class="method">
|
522
521
|
<div class="title">
|
523
|
-
<a name="
|
522
|
+
<a name="M000196"></a><b>basename</b>()
|
524
523
|
</div>
|
525
524
|
<div class="description">
|
526
525
|
<p>
|
@@ -537,19 +536,20 @@ Returns the root name of the module/class.
|
|
537
536
|
</pre>
|
538
537
|
<p>
|
539
538
|
For anonymous modules this will provide a <a
|
540
|
-
href="Module.html#
|
539
|
+
href="Module.html#M000196">basename</a> based on Module#inspect.
|
541
540
|
</p>
|
542
541
|
<pre>
|
543
542
|
m = Module.new
|
544
543
|
m.inspect #=> "#<Module:0xb7bb0434>"
|
545
544
|
m.basename #=> "Module_0xb7bb0434"
|
546
|
-
|
547
|
-
CREDIT: Trans
|
548
545
|
</pre>
|
546
|
+
<p>
|
547
|
+
CREDIT: Trans
|
548
|
+
</p>
|
549
549
|
</div>
|
550
550
|
<div class="sourcecode">
|
551
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
552
|
-
<div id="
|
551
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000196_source')" id="l_M000196_source">+</a> ]</p>
|
552
|
+
<div id="M000196_source" class="dyn-source">
|
553
553
|
<pre>
|
554
554
|
<span class="ruby-comment cmt"># File lib/core/facets/module/basename.rb, line 22</span>
|
555
555
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">basename</span>
|
@@ -565,19 +565,19 @@ href="Module.html#M000192">basename</a> based on Module#inspect.
|
|
565
565
|
</div>
|
566
566
|
<div class="method">
|
567
567
|
<div class="title">
|
568
|
-
<a name="
|
568
|
+
<a name="M000163"></a><b>class_def</b>(name, &blk)
|
569
569
|
</div>
|
570
570
|
<div class="description">
|
571
571
|
<p>
|
572
572
|
Defines an instance method within a class.
|
573
573
|
</p>
|
574
|
-
<
|
575
|
-
|
576
|
-
</
|
574
|
+
<p>
|
575
|
+
CREDIT: WhyTheLuckyStiff
|
576
|
+
</p>
|
577
577
|
</div>
|
578
578
|
<div class="sourcecode">
|
579
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
580
|
-
<div id="
|
579
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000163_source')" id="l_M000163_source">+</a> ]</p>
|
580
|
+
<div id="M000163_source" class="dyn-source">
|
581
581
|
<pre>
|
582
582
|
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 82</span>
|
583
583
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">class_def</span> <span class="ruby-identifier">name</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>
|
@@ -589,27 +589,27 @@ Defines an instance method within a class.
|
|
589
589
|
</div>
|
590
590
|
<div class="method">
|
591
591
|
<div class="title">
|
592
|
-
<a name="
|
592
|
+
<a name="M000183"></a><b>class_load</b>( path )
|
593
593
|
</div>
|
594
594
|
<div class="description">
|
595
595
|
<p>
|
596
|
-
Alias for <a href="Module.html#
|
596
|
+
Alias for <a href="Module.html#M000180">module_load</a>
|
597
597
|
</p>
|
598
598
|
</div>
|
599
599
|
</div>
|
600
600
|
<div class="method">
|
601
601
|
<div class="title">
|
602
|
-
<a name="
|
602
|
+
<a name="M000182"></a><b>class_require</b>( path )
|
603
603
|
</div>
|
604
604
|
<div class="description">
|
605
605
|
<p>
|
606
|
-
Alias for <a href="Module.html#
|
606
|
+
Alias for <a href="Module.html#M000181">module_require</a>
|
607
607
|
</p>
|
608
608
|
</div>
|
609
609
|
</div>
|
610
610
|
<div class="method">
|
611
611
|
<div class="title">
|
612
|
-
<a name="
|
612
|
+
<a name="M000168"></a><b>conflict?</b>(other)
|
613
613
|
</div>
|
614
614
|
<div class="description">
|
615
615
|
<p>
|
@@ -627,16 +627,16 @@ Detect conflicts.
|
|
627
627
|
A.conflict?(B) #=> ["c"]
|
628
628
|
|
629
629
|
TODO: All instance methods, or just public?
|
630
|
-
|
631
|
-
CREDIT: Thomas Sawyer
|
632
|
-
CREDIT: Robert Dober
|
633
630
|
</pre>
|
631
|
+
<p>
|
632
|
+
CREDIT: Thomas Sawyer, Robert Dober
|
633
|
+
</p>
|
634
634
|
</div>
|
635
635
|
<div class="sourcecode">
|
636
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
637
|
-
<div id="
|
636
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000168_source')" id="l_M000168_source">+</a> ]</p>
|
637
|
+
<div id="M000168_source" class="dyn-source">
|
638
638
|
<pre>
|
639
|
-
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line
|
639
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line 20</span>
|
640
640
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">conflict?</span>(<span class="ruby-identifier">other</span>)
|
641
641
|
<span class="ruby-identifier">common_ancestor</span> = (<span class="ruby-identifier">ancestors</span> <span class="ruby-operator">&</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">ancestors</span>).<span class="ruby-identifier">first</span>
|
642
642
|
<span class="ruby-identifier">c</span> = []
|
@@ -654,23 +654,22 @@ Detect conflicts.
|
|
654
654
|
</div>
|
655
655
|
<div class="method">
|
656
656
|
<div class="title">
|
657
|
-
<a name="
|
657
|
+
<a name="M000177"></a><b>instance_method_defined?</b>(meth)
|
658
658
|
</div>
|
659
659
|
<div class="description">
|
660
660
|
<p>
|
661
|
-
Query whether a public instance method <a href="Module.html#
|
661
|
+
Query whether a public instance method <a href="Module.html#M000185">is</a>
|
662
662
|
defined for the module.
|
663
663
|
</p>
|
664
|
-
<
|
665
|
-
|
666
|
-
|
667
|
-
</pre>
|
664
|
+
<p>
|
665
|
+
CREDIT: Gavin Sinclair, Noah Gibbs
|
666
|
+
</p>
|
668
667
|
</div>
|
669
668
|
<div class="sourcecode">
|
670
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
671
|
-
<div id="
|
669
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000177_source')" id="l_M000177_source">+</a> ]</p>
|
670
|
+
<div id="M000177_source" class="dyn-source">
|
672
671
|
<pre>
|
673
|
-
<span class="ruby-comment cmt"># File lib/core/facets/module/instance_methods.rb, line
|
672
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/instance_methods.rb, line 23</span>
|
674
673
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_method_defined?</span>(<span class="ruby-identifier">meth</span>)
|
675
674
|
<span class="ruby-identifier">instance_methods</span>(<span class="ruby-keyword kw">true</span>).<span class="ruby-identifier">find</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span> <span class="ruby-identifier">m</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">meth</span>.<span class="ruby-identifier">to_s</span> }
|
676
675
|
<span class="ruby-keyword kw">end</span>
|
@@ -680,18 +679,18 @@ defined for the module.
|
|
680
679
|
</div>
|
681
680
|
<div class="method">
|
682
681
|
<div class="title">
|
683
|
-
<a name="
|
682
|
+
<a name="M000192"></a><b>integrate</b>(mod, &block)
|
684
683
|
</div>
|
685
684
|
<div class="description">
|
686
685
|
<p>
|
687
|
-
Using <a href="Module.html#
|
688
|
-
href="Module.html#
|
689
|
-
included <a href="Module.html#
|
686
|
+
Using <a href="Module.html#M000192">integrate</a> <a
|
687
|
+
href="Module.html#M000185">is</a> just like using include except the module
|
688
|
+
included <a href="Module.html#M000185">is</a> a reconstruction of the one
|
690
689
|
given altered by the commands given in the block.
|
691
690
|
</p>
|
692
691
|
<p>
|
693
692
|
Convenient commands available are: rename, redef, remove, nodef and <a
|
694
|
-
href="Module.html#
|
693
|
+
href="Module.html#M000195">wrap</a>. But any module method can be used.
|
695
694
|
</p>
|
696
695
|
<pre>
|
697
696
|
module W
|
@@ -710,18 +709,18 @@ href="Module.html#M000191">wrap</a>. But any module method can be used.
|
|
710
709
|
x.y #=> missing method error
|
711
710
|
</pre>
|
712
711
|
<p>
|
713
|
-
This <a href="Module.html#
|
714
|
-
href="Module.html#
|
715
|
-
href="Module.html#
|
712
|
+
This <a href="Module.html#M000185">is</a> like <a
|
713
|
+
href="Module.html#M000191">revisal</a>, but <a
|
714
|
+
href="Module.html#M000191">revisal</a> only returns the reconstructred
|
716
715
|
module. It does not include it.
|
717
716
|
</p>
|
718
|
-
<
|
719
|
-
|
720
|
-
</
|
717
|
+
<p>
|
718
|
+
CREDIT: Trans
|
719
|
+
</p>
|
721
720
|
</div>
|
722
721
|
<div class="sourcecode">
|
723
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
724
|
-
<div id="
|
722
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000192_source')" id="l_M000192_source">+</a> ]</p>
|
723
|
+
<div id="M000192_source" class="dyn-source">
|
725
724
|
<pre>
|
726
725
|
<span class="ruby-comment cmt"># File lib/core/facets/module/revise.rb, line 51</span>
|
727
726
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">integrate</span>(<span class="ruby-identifier">mod</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -736,16 +735,16 @@ module. It does not include it.
|
|
736
735
|
</div>
|
737
736
|
<div class="method">
|
738
737
|
<div class="title">
|
739
|
-
<a name="
|
738
|
+
<a name="M000185"></a><b>is</b>(*mods)
|
740
739
|
</div>
|
741
740
|
<div class="description">
|
742
741
|
<p>
|
743
|
-
alias_method :<a href="Module.html#
|
742
|
+
alias_method :<a href="Module.html#M000185">is</a>, :include
|
744
743
|
</p>
|
745
744
|
</div>
|
746
745
|
<div class="sourcecode">
|
747
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
748
|
-
<div id="
|
746
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000185_source')" id="l_M000185_source">+</a> ]</p>
|
747
|
+
<div id="M000185_source" class="dyn-source">
|
749
748
|
<pre>
|
750
749
|
<span class="ruby-comment cmt"># File lib/core/facets/module/is.rb, line 27</span>
|
751
750
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">mods</span>)
|
@@ -767,7 +766,7 @@ alias_method :<a href="Module.html#M000181">is</a>, :include
|
|
767
766
|
</div>
|
768
767
|
<div class="method">
|
769
768
|
<div class="title">
|
770
|
-
<a name="
|
769
|
+
<a name="M000184"></a><b>is?</b>(base)
|
771
770
|
</div>
|
772
771
|
<div class="description">
|
773
772
|
<p>
|
@@ -778,13 +777,14 @@ Is a given class or module an ancestor of this class or module?
|
|
778
777
|
class Y < X ; end
|
779
778
|
|
780
779
|
Y.is?(X) #=> true
|
781
|
-
|
782
|
-
CREDIT: Trans
|
783
780
|
</pre>
|
781
|
+
<p>
|
782
|
+
CREDIT: Trans
|
783
|
+
</p>
|
784
784
|
</div>
|
785
785
|
<div class="sourcecode">
|
786
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
787
|
-
<div id="
|
786
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000184_source')" id="l_M000184_source">+</a> ]</p>
|
787
|
+
<div id="M000184_source" class="dyn-source">
|
788
788
|
<pre>
|
789
789
|
<span class="ruby-comment cmt"># File lib/core/facets/module/is.rb, line 13</span>
|
790
790
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is?</span>(<span class="ruby-identifier">base</span>)
|
@@ -796,7 +796,7 @@ Is a given class or module an ancestor of this class or module?
|
|
796
796
|
</div>
|
797
797
|
<div class="method">
|
798
798
|
<div class="title">
|
799
|
-
<a name="
|
799
|
+
<a name="M000167"></a><b>methodize</b>()
|
800
800
|
</div>
|
801
801
|
<div class="description">
|
802
802
|
<p>
|
@@ -807,8 +807,8 @@ Translate a module name to a suitable method name.
|
|
807
807
|
</pre>
|
808
808
|
</div>
|
809
809
|
<div class="sourcecode">
|
810
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
811
|
-
<div id="
|
810
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000167_source')" id="l_M000167_source">+</a> ]</p>
|
811
|
+
<div id="M000167_source" class="dyn-source">
|
812
812
|
<pre>
|
813
813
|
<span class="ruby-comment cmt"># File lib/core/facets/module/methodize.rb, line 9</span>
|
814
814
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">methodize</span>
|
@@ -820,7 +820,7 @@ Translate a module name to a suitable method name.
|
|
820
820
|
</div>
|
821
821
|
<div class="method">
|
822
822
|
<div class="title">
|
823
|
-
<a name="
|
823
|
+
<a name="M000187"></a><b>modspace</b>()
|
824
824
|
</div>
|
825
825
|
<div class="description">
|
826
826
|
<p>
|
@@ -835,15 +835,15 @@ Returns the module‘s container module.
|
|
835
835
|
Example::Demo.modspace #=> Example
|
836
836
|
</pre>
|
837
837
|
<p>
|
838
|
-
See also <a href="Module.html#
|
838
|
+
See also <a href="Module.html#M000196">Module#basename</a>.
|
839
|
+
</p>
|
840
|
+
<p>
|
841
|
+
CREDIT: Trans
|
839
842
|
</p>
|
840
|
-
<pre>
|
841
|
-
CREDIT: Trans
|
842
|
-
</pre>
|
843
843
|
</div>
|
844
844
|
<div class="sourcecode">
|
845
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
846
|
-
<div id="
|
845
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000187_source')" id="l_M000187_source">+</a> ]</p>
|
846
|
+
<div id="M000187_source" class="dyn-source">
|
847
847
|
<pre>
|
848
848
|
<span class="ruby-comment cmt"># File lib/core/facets/module/modspace.rb, line 16</span>
|
849
849
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">modspace</span>
|
@@ -856,23 +856,23 @@ See also <a href="Module.html#M000192">Module#basename</a>.
|
|
856
856
|
</div>
|
857
857
|
<div class="method">
|
858
858
|
<div class="title">
|
859
|
-
<a name="
|
859
|
+
<a name="M000180"></a><b>module_load</b>( path )
|
860
860
|
</div>
|
861
861
|
<div class="description">
|
862
862
|
<p>
|
863
863
|
Load file into module/class namespace.
|
864
864
|
</p>
|
865
|
-
<
|
866
|
-
|
867
|
-
</
|
865
|
+
<p>
|
866
|
+
CREDIT: Trans
|
867
|
+
</p>
|
868
868
|
</div>
|
869
869
|
<div class="aka">
|
870
870
|
This method is also aliased as
|
871
|
-
<a href="Module.html#
|
871
|
+
<a href="Module.html#M000183">class_load</a>
|
872
872
|
</div>
|
873
873
|
<div class="sourcecode">
|
874
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
875
|
-
<div id="
|
874
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000180_source')" id="l_M000180_source">+</a> ]</p>
|
875
|
+
<div id="M000180_source" class="dyn-source">
|
876
876
|
<pre>
|
877
877
|
<span class="ruby-comment cmt"># File lib/core/facets/module/module_load.rb, line 9</span>
|
878
878
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">module_load</span>( <span class="ruby-identifier">path</span> )
|
@@ -894,7 +894,7 @@ Load file into module/class namespace.
|
|
894
894
|
</div>
|
895
895
|
<div class="method">
|
896
896
|
<div class="title">
|
897
|
-
<a name="
|
897
|
+
<a name="M000179"></a><b>module_method_defined?</b>(meth)
|
898
898
|
</div>
|
899
899
|
<div class="description">
|
900
900
|
<p>
|
@@ -904,23 +904,23 @@ Alias for singleton_method_defined?
|
|
904
904
|
</div>
|
905
905
|
<div class="method">
|
906
906
|
<div class="title">
|
907
|
-
<a name="
|
907
|
+
<a name="M000181"></a><b>module_require</b>( path )
|
908
908
|
</div>
|
909
909
|
<div class="description">
|
910
910
|
<p>
|
911
911
|
Require file into module/class namespace.
|
912
912
|
</p>
|
913
|
-
<
|
914
|
-
|
915
|
-
</
|
913
|
+
<p>
|
914
|
+
CREDIT: Trans
|
915
|
+
</p>
|
916
916
|
</div>
|
917
917
|
<div class="aka">
|
918
918
|
This method is also aliased as
|
919
|
-
<a href="Module.html#
|
919
|
+
<a href="Module.html#M000182">class_require</a>
|
920
920
|
</div>
|
921
921
|
<div class="sourcecode">
|
922
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
923
|
-
<div id="
|
922
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000181_source')" id="l_M000181_source">+</a> ]</p>
|
923
|
+
<div id="M000181_source" class="dyn-source">
|
924
924
|
<pre>
|
925
925
|
<span class="ruby-comment cmt"># File lib/core/facets/module/module_load.rb, line 27</span>
|
926
926
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">module_require</span>( <span class="ruby-identifier">path</span> )
|
@@ -952,22 +952,23 @@ Require file into module/class namespace.
|
|
952
952
|
</div>
|
953
953
|
<div class="method">
|
954
954
|
<div class="title">
|
955
|
-
<a name="
|
955
|
+
<a name="M000186"></a><b>nesting</b>()
|
956
956
|
</div>
|
957
957
|
<div class="description">
|
958
958
|
<p>
|
959
|
-
Show a modules <a href="Module.html#
|
959
|
+
Show a modules <a href="Module.html#M000186">nesting</a> in module
|
960
960
|
namespaces.
|
961
961
|
</p>
|
962
962
|
<pre>
|
963
963
|
A::B::C.nesting #=> [ A, A::B ]
|
964
|
-
|
965
|
-
CREDIT: Trans
|
966
964
|
</pre>
|
965
|
+
<p>
|
966
|
+
CREDIT: Trans
|
967
|
+
</p>
|
967
968
|
</div>
|
968
969
|
<div class="sourcecode">
|
969
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
970
|
-
<div id="
|
970
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000186_source')" id="l_M000186_source">+</a> ]</p>
|
971
|
+
<div id="M000186_source" class="dyn-source">
|
971
972
|
<pre>
|
972
973
|
<span class="ruby-comment cmt"># File lib/core/facets/module/nesting.rb, line 9</span>
|
973
974
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nesting</span>
|
@@ -983,7 +984,7 @@ namespaces.
|
|
983
984
|
</div>
|
984
985
|
<div class="method">
|
985
986
|
<div class="title">
|
986
|
-
<a name="
|
987
|
+
<a name="M000175"></a><b>pathize</b>()
|
987
988
|
</div>
|
988
989
|
<div class="description">
|
989
990
|
<p>
|
@@ -998,8 +999,8 @@ Examples
|
|
998
999
|
</pre>
|
999
1000
|
</div>
|
1000
1001
|
<div class="sourcecode">
|
1001
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1002
|
-
<div id="
|
1002
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000175_source')" id="l_M000175_source">+</a> ]</p>
|
1003
|
+
<div id="M000175_source" class="dyn-source">
|
1003
1004
|
<pre>
|
1004
1005
|
<span class="ruby-comment cmt"># File lib/core/facets/module/pathize.rb, line 11</span>
|
1005
1006
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pathize</span>
|
@@ -1017,7 +1018,7 @@ Examples
|
|
1017
1018
|
</div>
|
1018
1019
|
<div class="method">
|
1019
1020
|
<div class="title">
|
1020
|
-
<a name="
|
1021
|
+
<a name="M000165"></a><b>prepend</b>(aspect)
|
1021
1022
|
</div>
|
1022
1023
|
<div class="description">
|
1023
1024
|
<p>
|
@@ -1036,13 +1037,14 @@ module level.
|
|
1036
1037
|
X.prepend U
|
1037
1038
|
|
1038
1039
|
X.x # => "{x}"
|
1039
|
-
|
1040
|
-
CREDIT Trans
|
1041
1040
|
</pre>
|
1041
|
+
<p>
|
1042
|
+
CREDIT Trans
|
1043
|
+
</p>
|
1042
1044
|
</div>
|
1043
1045
|
<div class="sourcecode">
|
1044
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1045
|
-
<div id="
|
1046
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000165_source')" id="l_M000165_source">+</a> ]</p>
|
1047
|
+
<div id="M000165_source" class="dyn-source">
|
1046
1048
|
<pre>
|
1047
1049
|
<span class="ruby-comment cmt"># File lib/core/facets/module/prepend.rb, line 20</span>
|
1048
1050
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">prepend</span>(<span class="ruby-identifier">aspect</span>)
|
@@ -1055,7 +1057,7 @@ module level.
|
|
1055
1057
|
</div>
|
1056
1058
|
<div class="method">
|
1057
1059
|
<div class="title">
|
1058
|
-
<a name="
|
1060
|
+
<a name="M000170"></a><b>private_conflict?</b>(other)
|
1059
1061
|
</div>
|
1060
1062
|
<div class="description">
|
1061
1063
|
<p>
|
@@ -1063,10 +1065,10 @@ Like conflict?, but checks only private methods.
|
|
1063
1065
|
</p>
|
1064
1066
|
</div>
|
1065
1067
|
<div class="sourcecode">
|
1066
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1067
|
-
<div id="
|
1068
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000170_source')" id="l_M000170_source">+</a> ]</p>
|
1069
|
+
<div id="M000170_source" class="dyn-source">
|
1068
1070
|
<pre>
|
1069
|
-
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line
|
1071
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line 46</span>
|
1070
1072
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">private_conflict?</span>(<span class="ruby-identifier">other</span>)
|
1071
1073
|
<span class="ruby-identifier">common_ancestor</span> = (<span class="ruby-identifier">ancestors</span> <span class="ruby-operator">&</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">ancestors</span>).<span class="ruby-identifier">first</span>
|
1072
1074
|
<span class="ruby-identifier">c</span> = <span class="ruby-identifier">private_instance_methods</span>(<span class="ruby-keyword kw">true</span>) <span class="ruby-operator">&</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">private_instance_methods</span>(<span class="ruby-keyword kw">true</span>)
|
@@ -1079,7 +1081,7 @@ Like conflict?, but checks only private methods.
|
|
1079
1081
|
</div>
|
1080
1082
|
<div class="method">
|
1081
1083
|
<div class="title">
|
1082
|
-
<a name="
|
1084
|
+
<a name="M000171"></a><b>protected_conflict?</b>(other)
|
1083
1085
|
</div>
|
1084
1086
|
<div class="description">
|
1085
1087
|
<p>
|
@@ -1087,10 +1089,10 @@ Like conflict?, but checks only protected methods.
|
|
1087
1089
|
</p>
|
1088
1090
|
</div>
|
1089
1091
|
<div class="sourcecode">
|
1090
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1091
|
-
<div id="
|
1092
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000171_source')" id="l_M000171_source">+</a> ]</p>
|
1093
|
+
<div id="M000171_source" class="dyn-source">
|
1092
1094
|
<pre>
|
1093
|
-
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line
|
1095
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line 54</span>
|
1094
1096
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">protected_conflict?</span>(<span class="ruby-identifier">other</span>)
|
1095
1097
|
<span class="ruby-identifier">common_ancestor</span> = (<span class="ruby-identifier">ancestors</span> <span class="ruby-operator">&</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">ancestors</span>).<span class="ruby-identifier">first</span>
|
1096
1098
|
<span class="ruby-identifier">c</span> = <span class="ruby-identifier">protected_instance_methods</span>(<span class="ruby-keyword kw">true</span>) <span class="ruby-operator">&</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">protected_instance_methods</span>(<span class="ruby-keyword kw">true</span>)
|
@@ -1103,7 +1105,7 @@ Like conflict?, but checks only protected methods.
|
|
1103
1105
|
</div>
|
1104
1106
|
<div class="method">
|
1105
1107
|
<div class="title">
|
1106
|
-
<a name="
|
1108
|
+
<a name="M000169"></a><b>public_conflict?</b>(other)
|
1107
1109
|
</div>
|
1108
1110
|
<div class="description">
|
1109
1111
|
<p>
|
@@ -1111,10 +1113,10 @@ Like conflict?, but checks only public methods.
|
|
1111
1113
|
</p>
|
1112
1114
|
</div>
|
1113
1115
|
<div class="sourcecode">
|
1114
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1115
|
-
<div id="
|
1116
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000169_source')" id="l_M000169_source">+</a> ]</p>
|
1117
|
+
<div id="M000169_source" class="dyn-source">
|
1116
1118
|
<pre>
|
1117
|
-
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line
|
1119
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line 38</span>
|
1118
1120
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">public_conflict?</span>(<span class="ruby-identifier">other</span>)
|
1119
1121
|
<span class="ruby-identifier">common_ancestor</span> = (<span class="ruby-identifier">ancestors</span> <span class="ruby-operator">&</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">ancestors</span>).<span class="ruby-identifier">first</span>
|
1120
1122
|
<span class="ruby-identifier">c</span> = <span class="ruby-identifier">public_instance_methods</span>(<span class="ruby-keyword kw">true</span>) <span class="ruby-operator">&</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">public_instance_methods</span>(<span class="ruby-keyword kw">true</span>)
|
@@ -1127,34 +1129,34 @@ Like conflict?, but checks only public methods.
|
|
1127
1129
|
</div>
|
1128
1130
|
<div class="method">
|
1129
1131
|
<div class="title">
|
1130
|
-
<a name="
|
1132
|
+
<a name="M000191"></a><b>revisal</b>(&blk)
|
1131
1133
|
</div>
|
1132
1134
|
<div class="description">
|
1133
1135
|
<p>
|
1134
|
-
Alias for <a href="Module.html#
|
1136
|
+
Alias for <a href="Module.html#M000190">revise</a>
|
1135
1137
|
</p>
|
1136
1138
|
</div>
|
1137
1139
|
</div>
|
1138
1140
|
<div class="method">
|
1139
1141
|
<div class="title">
|
1140
|
-
<a name="
|
1142
|
+
<a name="M000190"></a><b>revise</b>(&blk)
|
1141
1143
|
</div>
|
1142
1144
|
<div class="description">
|
1143
1145
|
<p>
|
1144
1146
|
Return a new module based on another. This includes the original module
|
1145
1147
|
into the new one.
|
1146
1148
|
</p>
|
1147
|
-
<
|
1148
|
-
|
1149
|
-
</
|
1149
|
+
<p>
|
1150
|
+
CREDIT: Trans
|
1151
|
+
</p>
|
1150
1152
|
</div>
|
1151
1153
|
<div class="aka">
|
1152
1154
|
This method is also aliased as
|
1153
|
-
<a href="Module.html#
|
1155
|
+
<a href="Module.html#M000191">revisal</a>
|
1154
1156
|
</div>
|
1155
1157
|
<div class="sourcecode">
|
1156
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1157
|
-
<div id="
|
1158
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000190_source')" id="l_M000190_source">+</a> ]</p>
|
1159
|
+
<div id="M000190_source" class="dyn-source">
|
1158
1160
|
<pre>
|
1159
1161
|
<span class="ruby-comment cmt"># File lib/core/facets/module/revise.rb, line 13</span>
|
1160
1162
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">revise</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -1169,27 +1171,26 @@ into the new one.
|
|
1169
1171
|
</div>
|
1170
1172
|
<div class="method">
|
1171
1173
|
<div class="title">
|
1172
|
-
<a name="
|
1174
|
+
<a name="M000178"></a><b>singleton_method_defined?</b>(meth)
|
1173
1175
|
</div>
|
1174
1176
|
<div class="description">
|
1175
1177
|
<p>
|
1176
1178
|
Query whether a normal (singleton) method <a
|
1177
|
-
href="Module.html#
|
1179
|
+
href="Module.html#M000185">is</a> defined for the module.
|
1180
|
+
</p>
|
1181
|
+
<p>
|
1182
|
+
CREDIT: Gavin Sinclair, Noah Gibbs
|
1178
1183
|
</p>
|
1179
|
-
<pre>
|
1180
|
-
CREDIT: Gavin Sinclair
|
1181
|
-
CREDIT: Noah Gibbs
|
1182
|
-
</pre>
|
1183
1184
|
</div>
|
1184
1185
|
<div class="aka">
|
1185
1186
|
This method is also aliased as
|
1186
|
-
<a href="Module.html#
|
1187
|
+
<a href="Module.html#M000179">module_method_defined?</a>
|
1187
1188
|
</div>
|
1188
1189
|
<div class="sourcecode">
|
1189
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1190
|
-
<div id="
|
1190
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000178_source')" id="l_M000178_source">+</a> ]</p>
|
1191
|
+
<div id="M000178_source" class="dyn-source">
|
1191
1192
|
<pre>
|
1192
|
-
<span class="ruby-comment cmt"># File lib/core/facets/module/instance_methods.rb, line
|
1193
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/instance_methods.rb, line 31</span>
|
1193
1194
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singleton_method_defined?</span>(<span class="ruby-identifier">meth</span>)
|
1194
1195
|
<span class="ruby-identifier">singleton_methods</span>(<span class="ruby-keyword kw">true</span>).<span class="ruby-identifier">find</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span> <span class="ruby-identifier">m</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">meth</span>.<span class="ruby-identifier">to_s</span> }
|
1195
1196
|
<span class="ruby-keyword kw">end</span>
|
@@ -1199,7 +1200,7 @@ href="Module.html#M000181">is</a> defined for the module.
|
|
1199
1200
|
</div>
|
1200
1201
|
<div class="method">
|
1201
1202
|
<div class="title">
|
1202
|
-
<a name="
|
1203
|
+
<a name="M000193"></a><b>spacename</b>()
|
1203
1204
|
</div>
|
1204
1205
|
<div class="description">
|
1205
1206
|
<p>
|
@@ -1218,15 +1219,15 @@ Returns the name of module‘s container module.
|
|
1218
1219
|
This used to be called <tt>dirname</tt>.
|
1219
1220
|
</p>
|
1220
1221
|
<p>
|
1221
|
-
See also <a href="Module.html#
|
1222
|
+
See also <a href="Module.html#M000196">Module#basename</a>.
|
1223
|
+
</p>
|
1224
|
+
<p>
|
1225
|
+
CREDIT: Trans
|
1222
1226
|
</p>
|
1223
|
-
<pre>
|
1224
|
-
CREDIT: Trans
|
1225
|
-
</pre>
|
1226
1227
|
</div>
|
1227
1228
|
<div class="sourcecode">
|
1228
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1229
|
-
<div id="
|
1229
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000193_source')" id="l_M000193_source">+</a> ]</p>
|
1230
|
+
<div id="M000193_source" class="dyn-source">
|
1230
1231
|
<pre>
|
1231
1232
|
<span class="ruby-comment cmt"># File lib/core/facets/module/spacename.rb, line 19</span>
|
1232
1233
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">spacename</span>
|
@@ -1239,22 +1240,22 @@ See also <a href="Module.html#M000192">Module#basename</a>.
|
|
1239
1240
|
</div>
|
1240
1241
|
<div class="method">
|
1241
1242
|
<div class="title">
|
1242
|
-
<a name="
|
1243
|
+
<a name="M000195"></a><b>wrap</b>( sym, &blk )
|
1243
1244
|
</div>
|
1244
1245
|
<div class="description">
|
1245
1246
|
<p>
|
1246
|
-
Alias for <a href="Module.html#
|
1247
|
+
Alias for <a href="Module.html#M000194">wrap_method</a>
|
1247
1248
|
</p>
|
1248
1249
|
</div>
|
1249
1250
|
</div>
|
1250
1251
|
<div class="method">
|
1251
1252
|
<div class="title">
|
1252
|
-
<a name="
|
1253
|
+
<a name="M000194"></a><b>wrap_method</b>( sym, &blk )
|
1253
1254
|
</div>
|
1254
1255
|
<div class="description">
|
1255
1256
|
<p>
|
1256
1257
|
Creates a new method wrapping the previous of the same name. Reference to
|
1257
|
-
the old method <a href="Module.html#
|
1258
|
+
the old method <a href="Module.html#M000185">is</a> passed into the new
|
1258
1259
|
definition block as the first parameter.
|
1259
1260
|
</p>
|
1260
1261
|
<pre>
|
@@ -1265,19 +1266,19 @@ definition block as the first parameter.
|
|
1265
1266
|
</pre>
|
1266
1267
|
<p>
|
1267
1268
|
Keep in mind that this can not be used to <a
|
1268
|
-
href="Module.html#
|
1269
|
+
href="Module.html#M000195">wrap</a> methods that take a block.
|
1270
|
+
</p>
|
1271
|
+
<p>
|
1272
|
+
CREDIT: Trans
|
1269
1273
|
</p>
|
1270
|
-
<pre>
|
1271
|
-
CREDIT: Trans
|
1272
|
-
</pre>
|
1273
1274
|
</div>
|
1274
1275
|
<div class="aka">
|
1275
1276
|
This method is also aliased as
|
1276
|
-
<a href="Module.html#
|
1277
|
+
<a href="Module.html#M000195">wrap</a>
|
1277
1278
|
</div>
|
1278
1279
|
<div class="sourcecode">
|
1279
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1280
|
-
<div id="
|
1280
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000194_source')" id="l_M000194_source">+</a> ]</p>
|
1281
|
+
<div id="M000194_source" class="dyn-source">
|
1281
1282
|
<pre>
|
1282
1283
|
<span class="ruby-comment cmt"># File lib/core/facets/module/wrap_method.rb, line 20</span>
|
1283
1284
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">wrap_method</span>( <span class="ruby-identifier">sym</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span> )
|