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
data/doc/log/stats.html
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
<html><head>
|
2
|
+
<title>Facets Code Statistics</title>
|
3
|
+
<link rel="stylesheet" type="text/css" href="log.css"/>
|
4
|
+
</head><body>
|
5
|
+
<div class="basic_statistics">
|
6
|
+
<h1>Facets -- Basic Code Statistics</h1>
|
7
|
+
<table class="counts" border="1">
|
8
|
+
<tr><th colspan="9"><h2>Code Counts</h2></th></tr>
|
9
|
+
<tr><th>TYPE</th><th>Total</th><th>Code</th><th>-%-</th><th>Docs</th><th>-%-</th><th>Blank</th><th>-%-</th><th>Files</th></tr>
|
10
|
+
<tr><th>Source</th><td>32728</td><td>13167</td><td>40%</td><td>14390</td><td>43%</td><td>5016</td><td>15%</td><td>436</td></tr>
|
11
|
+
<tr><th>Test</th><td>8815</td><td>6243</td><td>19%</td><td>537</td><td>1%</td><td>2035</td><td>6%</td><td>264</td></tr>
|
12
|
+
<tr><th>Total</th><td>41543</td><td>19410</td><td>46%</td><td>14927</td><td>35%</td><td>7051</td><td>16%</td><td>700</td></tr>
|
13
|
+
</table>
|
14
|
+
<table class="ratios" border="1">
|
15
|
+
<tr><th colspan="6"><h2>Code Ratios</h2></th></tr>
|
16
|
+
<tr><th>RATIO</th><th>Code</th><th>Docs</th><th>Blank</th><th>Test</th><th>Total</th></tr>
|
17
|
+
<tr><th>Code</th><td> 1.0</td><td> -</td><td> 2.6</td><td> 1.5</td><td> -</td></tr>
|
18
|
+
<tr><th>Docs</th><td> 1.1</td><td> 1.0</td><td> 2.9</td><td> 1.6</td><td> -</td></tr>
|
19
|
+
<tr><th>Blank</th><td> -</td><td> -</td><td> 1.0</td><td> -</td><td> -</td></tr>
|
20
|
+
<tr><th>Test</th><td> -</td><td> -</td><td> 1.8</td><td> 1.0</td><td> -</td></tr>
|
21
|
+
<tr><th>Total</th><td> 2.5</td><td> 2.3</td><td> 6.5</td><td> 3.7</td><td> 1.0</td></tr>
|
22
|
+
</table>
|
23
|
+
<div class="date">Fri Oct 03 14:17:11 -0400 2008</div>
|
24
|
+
</div>
|
25
|
+
</body></html>
|
data/doc/log/testlog.txt
ADDED
@@ -0,0 +1,278 @@
|
|
1
|
+
= Solo Test @ Wed Sep 24 12:27:29 -0400 2008
|
2
|
+
|
3
|
+
TEST FILE TESTS ASSERTIONS FAILURES ERRORS
|
4
|
+
test/test_facets.rb 1 1 0 0 [[32mPASS[0m]
|
5
|
+
test/lore/test_basicobject.rb 3 4 0 0 [[32mPASS[0m]
|
6
|
+
test/lore/test_continuation.rb 1 1 0 0 [[32mPASS[0m]
|
7
|
+
test/lore/test_ostruct.rb 17 48 0 0 [[32mPASS[0m]
|
8
|
+
test/lore/test_date.rb 10 12 0 0 [[32mPASS[0m]
|
9
|
+
test/core/integer/test_of.rb 2 2 0 0 [[32mPASS[0m]
|
10
|
+
test/core/integer/test_factorial.rb 1 5 0 0 [[32mPASS[0m]
|
11
|
+
test/core/integer/test_even.rb 2 0 0 2 [[31mFAIL[0m]
|
12
|
+
test/core/integer/test_ordinal.rb 1 4 0 0 [[32mPASS[0m]
|
13
|
+
test/core/integer/test_bitmask.rb 6 21 0 0 [[32mPASS[0m]
|
14
|
+
test/core/integer/test_multiple.rb 1 4 0 0 [[32mPASS[0m]
|
15
|
+
test/core/symbol/test_generate.rb 2 4 0 0 [[32mPASS[0m]
|
16
|
+
test/core/symbol/test_chomp.rb 2 2 0 0 [[32mPASS[0m]
|
17
|
+
test/core/symbol/test_not.rb 1 2 0 0 [[32mPASS[0m]
|
18
|
+
test/core/symbol/test_succ.rb 1 3 0 0 [[32mPASS[0m]
|
19
|
+
test/core/symbol/test_to_proc.rb 3 7 0 0 [[32mPASS[0m]
|
20
|
+
test/core/nilclass/test_to_f.rb 1 1 0 0 [[32mPASS[0m]
|
21
|
+
test/core/numeric/test_distance.rb 1 3 0 0 [[32mPASS[0m]
|
22
|
+
test/core/numeric/test_round.rb 4 8 0 0 [[32mPASS[0m]
|
23
|
+
test/core/numeric/test_approx.rb 1 3 0 0 [[32mPASS[0m]
|
24
|
+
test/core/binding/test_defined.rb 1 1 0 0 [[32mPASS[0m]
|
25
|
+
test/core/binding/test_self.rb 1 1 0 0 [[32mPASS[0m]
|
26
|
+
test/core/binding/test_eval.rb 1 1 0 0 [[32mPASS[0m]
|
27
|
+
test/core/binding/test_caller.rb 7 7 0 0 [[32mPASS[0m]
|
28
|
+
test/core/binding/test_local_variables.rb 1 1 0 0 [[32mPASS[0m]
|
29
|
+
test/core/binding/test_opvars.rb 2 3 0 0 [[32mPASS[0m]
|
30
|
+
test/core/proc/test_bind.rb 1 100 0 0 [[32mPASS[0m]
|
31
|
+
test/core/proc/test_to_method.rb 2 6 0 0 [[32mPASS[0m]
|
32
|
+
test/core/proc/test_curry.rb 2 3 0 0 [[32mPASS[0m]
|
33
|
+
test/core/proc/test_compose.rb 2 4 0 0 [[32mPASS[0m]
|
34
|
+
test/core/range/test_overlap.rb 2 2 0 0 [[32mPASS[0m]
|
35
|
+
test/core/range/test_combine.rb 2 2 0 0 [[32mPASS[0m]
|
36
|
+
test/core/range/test_to_r.rb 2 2 0 0 [[32mPASS[0m]
|
37
|
+
test/core/range/test_within.rb 5 15 0 0 [[32mPASS[0m]
|
38
|
+
test/core/file/test_file.rb 9 9 0 0 [[32mPASS[0m]
|
39
|
+
test/core/hash/test_collate.rb 2 12 0 0 [[32mPASS[0m]
|
40
|
+
test/core/hash/test_keys.rb 3 5 0 0 [[32mPASS[0m]
|
41
|
+
test/core/hash/test_inverse.rb 1 3 0 0 [[32mPASS[0m]
|
42
|
+
test/core/hash/test_stringify_keys.rb 2 4 0 0 [[32mPASS[0m]
|
43
|
+
test/core/hash/test_delete.rb 3 3 0 0 [[32mPASS[0m]
|
44
|
+
test/core/hash/test_slice.rb 2 3 0 0 [[32mPASS[0m]
|
45
|
+
test/core/hash/test_symbolize_keys.rb 2 4 0 0 [[32mPASS[0m]
|
46
|
+
test/core/hash/test_weave.rb 1 1 0 0 [[32mPASS[0m]
|
47
|
+
test/core/hash/test_alias.rb 1 3 0 0 [[32mPASS[0m]
|
48
|
+
test/core/hash/test_update.rb 6 6 0 0 [[32mPASS[0m]
|
49
|
+
test/core/hash/test_swap.rb 1 1 0 0 [[32mPASS[0m]
|
50
|
+
test/core/hash/test_at.rb 1 2 0 0 [[32mPASS[0m]
|
51
|
+
test/core/hash/test_op.rb 5 5 0 0 [[32mPASS[0m]
|
52
|
+
test/core/hash/test_select.rb 1 12 0 0 [[32mPASS[0m]
|
53
|
+
test/core/hash/test_autonew.rb 1 0 0 0 [[32mPASS[0m]
|
54
|
+
test/core/hash/test_insert.rb 1 2 0 0 [[32mPASS[0m]
|
55
|
+
test/core/hash/test_traverse.rb 2 3 0 0 [[32mPASS[0m]
|
56
|
+
test/core/hash/test_zipnew.rb 1 1 0 0 [[32mPASS[0m]
|
57
|
+
test/core/hash/test_mash.rb 2 2 0 0 [[32mPASS[0m]
|
58
|
+
test/core/hash/test_merge.rb 1 1 0 0 [[32mPASS[0m]
|
59
|
+
test/core/hash/test_rekey.rb 9 24 0 0 [[32mPASS[0m]
|
60
|
+
test/core/kernel/test_val.rb 3 6 0 0 [[32mPASS[0m]
|
61
|
+
test/core/kernel/test_not_nil.rb 1 4 0 0 [[32mPASS[0m]
|
62
|
+
test/core/kernel/test_resc.rb 1 2 0 0 [[32mPASS[0m]
|
63
|
+
test/core/kernel/test_attr_singleton.rb 3 8 0 0 [[32mPASS[0m]
|
64
|
+
test/core/kernel/test_constant.rb 1 4 0 0 [[32mPASS[0m]
|
65
|
+
test/core/kernel/test_populate.rb 3 9 0 0 [[32mPASS[0m]
|
66
|
+
test/core/kernel/test_callstack.rb 1 1 0 0 [[32mPASS[0m]
|
67
|
+
test/core/kernel/test_instance_class.rb 1 1 0 0 [[32mPASS[0m]
|
68
|
+
test/core/kernel/test_silence.rb 1 1 0 0 [[32mPASS[0m]
|
69
|
+
test/core/kernel/test_object_hexid.rb 1 1 0 0 [[32mPASS[0m]
|
70
|
+
test/core/kernel/test_in.rb 1 2 0 0 [[32mPASS[0m]
|
71
|
+
test/core/kernel/test_instance_assign.rb 1 3 0 0 [[32mPASS[0m]
|
72
|
+
test/core/kernel/test_object_class.rb 2 2 0 0 [[32mPASS[0m]
|
73
|
+
test/core/kernel/test_tap.rb 2 2 0 0 [[32mPASS[0m]
|
74
|
+
test/core/kernel/test_returning.rb 1 1 0 0 [[32mPASS[0m]
|
75
|
+
test/core/kernel/test_here.rb 1 1 0 0 [[32mPASS[0m]
|
76
|
+
test/core/kernel/test_deepcopy.rb 1 1 0 0 [[32mPASS[0m]
|
77
|
+
test/core/kernel/test_as.rb 4 5 0 0 [[32mPASS[0m]
|
78
|
+
test/core/comparable/test_cmp.rb 3 11 0 0 [[32mPASS[0m]
|
79
|
+
test/core/comparable/test_comparable.rb 1 5 0 0 [[32mPASS[0m]
|
80
|
+
test/core/comparable/test_bound.rb 4 22 0 0 [[32mPASS[0m]
|
81
|
+
test/core/enumerable/test_uniq_by.rb 1 1 0 0 [[32mPASS[0m]
|
82
|
+
test/core/enumerable/test_none.rb 1 4 0 0 [[32mPASS[0m]
|
83
|
+
test/core/enumerable/test_frequency.rb 1 2 0 0 [[32mPASS[0m]
|
84
|
+
test/core/enumerable/test_occur.rb 1 4 0 0 [[32mPASS[0m]
|
85
|
+
test/core/enumerable/test_inject.rb 2 2 0 0 [[32mPASS[0m]
|
86
|
+
test/core/enumerable/test_entropy.rb 2 3 0 0 [[32mPASS[0m]
|
87
|
+
test/core/enumerable/test_modulate.rb 1 1 0 0 [[32mPASS[0m]
|
88
|
+
test/core/enumerable/test_probability.rb 1 2 0 0 [[32mPASS[0m]
|
89
|
+
test/core/enumerable/test_cluster_by.rb 2 3 0 0 [[32mPASS[0m]
|
90
|
+
test/core/enumerable/test_group_by.rb 4 4 0 0 [[32mPASS[0m]
|
91
|
+
test/core/enumerable/test_commonality.rb 1 2 0 0 [[32mPASS[0m]
|
92
|
+
test/core/enumerable/test_count.rb 3 4 0 0 [[32mPASS[0m]
|
93
|
+
test/core/enumerable/test_each_by.rb 7 7 0 0 [[32mPASS[0m]
|
94
|
+
test/core/enumerable/test_collect.rb 2 2 0 0 [[32mPASS[0m]
|
95
|
+
test/core/enumerable/test_one.rb 1 5 0 0 [[32mPASS[0m]
|
96
|
+
test/core/enumerable/test_mash.rb 5 5 0 0 [[32mPASS[0m]
|
97
|
+
test/core/string/test_subtract.rb 1 3 0 0 [[32mPASS[0m]
|
98
|
+
test/core/string/test_natcmp.rb 1 5 0 0 [[32mPASS[0m]
|
99
|
+
test/core/string/test_words.rb 3 3 0 0 [[32mPASS[0m]
|
100
|
+
test/core/string/test_bytes.rb 1 1 0 0 [[32mPASS[0m]
|
101
|
+
test/core/string/test_each_char.rb 1 1 0 0 [[32mPASS[0m]
|
102
|
+
test/core/string/test_camelcase.rb 3 7 0 0 [[32mPASS[0m]
|
103
|
+
test/core/string/test_nchar.rb 1 4 0 0 [[32mPASS[0m]
|
104
|
+
test/core/string/test_cleave.rb 4 9 0 0 [[32mPASS[0m]
|
105
|
+
test/core/string/test_capitalized.rb 3 3 0 0 [[32mPASS[0m]
|
106
|
+
test/core/string/test_titlecase.rb 1 1 0 0 [[32mPASS[0m]
|
107
|
+
test/core/string/test_fold.rb 2 2 0 0 [[32mPASS[0m]
|
108
|
+
test/core/string/test_line_wrap.rb 1 2 0 0 [[32mPASS[0m]
|
109
|
+
test/core/string/test_to_re.rb 3 9 0 0 [[32mPASS[0m]
|
110
|
+
test/core/string/test_range.rb 3 5 0 0 [[32mPASS[0m]
|
111
|
+
test/core/string/test_chars.rb 1 2 0 0 [[32mPASS[0m]
|
112
|
+
test/core/string/test_align.rb 3 3 0 0 [[32mPASS[0m]
|
113
|
+
test/core/string/test_lines.rb 1 1 0 0 [[32mPASS[0m]
|
114
|
+
test/core/string/test_word_wrap.rb 2 10 0 0 [[32mPASS[0m]
|
115
|
+
test/core/string/test_xor.rb 1 1 0 0 [[32mPASS[0m]
|
116
|
+
test/core/string/test_divide.rb 1 1 0 0 [[32mPASS[0m]
|
117
|
+
test/core/string/test_snakecase.rb 1 4 0 0 [[32mPASS[0m]
|
118
|
+
test/core/string/test_shatter.rb 1 1 0 0 [[32mPASS[0m]
|
119
|
+
test/core/string/test_interpolate.rb 1 1 0 0 [[32mPASS[0m]
|
120
|
+
test/core/string/test_tab.rb 15 129 0 0 [[32mPASS[0m]
|
121
|
+
test/core/string/test_mscan.rb 1 4 0 0 [[32mPASS[0m]
|
122
|
+
test/core/string/test_each_word.rb 1 1 0 0 [[32mPASS[0m]
|
123
|
+
test/core/string/test_bracket.rb 7 22 0 0 [[32mPASS[0m]
|
124
|
+
test/core/module/test_spacename.rb 1 4 0 0 [[32mPASS[0m]
|
125
|
+
test/core/module/test_basename.rb 1 1 0 0 [[32mPASS[0m]
|
126
|
+
test/core/module/test_nesting.rb 1 1 0 0 [[32mPASS[0m]
|
127
|
+
test/core/module/test_ancestor.rb 1 1 0 0 [[32mPASS[0m]
|
128
|
+
test/core/module/test_modspace.rb 1 3 0 0 [[32mPASS[0m]
|
129
|
+
test/core/module/test_alias.rb 2 2 0 0 [[32mPASS[0m]
|
130
|
+
test/core/module/test_op.rb 3 11 0 0 [[32mPASS[0m]
|
131
|
+
test/core/module/test_revise.rb 12 16 0 0 [[32mPASS[0m]
|
132
|
+
test/core/module/test_abstract.rb 2 2 0 0 [[32mPASS[0m]
|
133
|
+
test/core/module/test_pathize.rb 1 1 0 0 [[32mPASS[0m]
|
134
|
+
test/core/time/test_to_time.rb 1 1 0 0 [[32mPASS[0m]
|
135
|
+
test/core/time/test_hence.rb 1 1 0 0 [[32mPASS[0m]
|
136
|
+
test/core/time/test_trunc.rb 4 4 0 0 [[32mPASS[0m]
|
137
|
+
test/core/time/test_round.rb 4 4 0 0 [[32mPASS[0m]
|
138
|
+
test/core/time/test_stamp.rb 2 2 0 0 [[32mPASS[0m]
|
139
|
+
test/core/time/test_change.rb 1 1 0 0 [[32mPASS[0m]
|
140
|
+
test/core/time/test_elapse.rb 1 1 0 0 [[32mPASS[0m]
|
141
|
+
test/core/dir/test_descend.rb 1 4 0 0 [[32mPASS[0m]
|
142
|
+
test/core/dir/test_ascend.rb 2 7 0 0 [[32mPASS[0m]
|
143
|
+
test/core/dir/test_multiglob.rb 2 2 0 0 [[32mPASS[0m]
|
144
|
+
test/core/dir/test_parent.rb 1 1 0 0 [[32mPASS[0m]
|
145
|
+
test/core/dir/test_recurse.rb 2 2 0 0 [[32mPASS[0m]
|
146
|
+
test/core/filetest/test_filetest.rb 1 1 0 0 [[32mPASS[0m]
|
147
|
+
test/core/class/test_descendents.rb 1 1 0 0 [[32mPASS[0m]
|
148
|
+
test/core/array/test_combination.rb 2 2 0 0 [[32mPASS[0m]
|
149
|
+
test/core/array/test_product.rb 4 4 0 0 [[32mPASS[0m]
|
150
|
+
test/core/array/test_delete.rb 3 7 0 0 [[32mPASS[0m]
|
151
|
+
test/core/array/test_stackable.rb 2 4 0 0 [[32mPASS[0m]
|
152
|
+
test/core/array/test_select.rb 1 1 0 0 [[32mPASS[0m]
|
153
|
+
test/core/array/test_only.rb 1 4 0 0 [[32mPASS[0m]
|
154
|
+
test/core/array/test_indexable.rb 14 28 0 0 [[32mPASS[0m]
|
155
|
+
test/core/array/test_permutation.rb 1 1 0 0 [[32mPASS[0m]
|
156
|
+
test/core/array/test_pad.rb 4 4 0 0 [[32mPASS[0m]
|
157
|
+
test/core/array/test_merge.rb 2 2 0 0 [[32mPASS[0m]
|
158
|
+
test/core/array/test_rotate.rb 2 4 0 0 [[32mPASS[0m]
|
159
|
+
test/core/regexp/test_to_re.rb 2 2 0 0 [[32mPASS[0m]
|
160
|
+
test/core/regexp/test_arity.rb 1 4 0 0 [[32mPASS[0m]
|
161
|
+
test/core/matchdata/test_matchset.rb 3 3 0 0 [[32mPASS[0m]
|
162
|
+
test/core/matchdata/test_match.rb 1 1 0 0 [[32mPASS[0m]
|
163
|
+
test/core/exception/test_exception.rb 1 1 0 0 [[32mPASS[0m]
|
164
|
+
test/more/test_syncarray.rb 1 1 0 0 [[32mPASS[0m]
|
165
|
+
test/more/test_crypt.rb 2 8 0 0 [[32mPASS[0m]
|
166
|
+
test/more/test_metaid.rb 4 2 0 2 [[31mFAIL[0m]
|
167
|
+
test/more/test_bytes.rb 12 18 0 0 [[32mPASS[0m]
|
168
|
+
test/more/test_infinity.rb 4 16 0 0 [[32mPASS[0m]
|
169
|
+
test/more/test_1stclassmethod.rb 2 3 0 0 [[32mPASS[0m]
|
170
|
+
test/more/test_typecast.rb 1 0 0 1 [[31mFAIL[0m]
|
171
|
+
test/more/test_buildable.rb 2 2 0 0 [[32mPASS[0m]
|
172
|
+
test/more/test_instantise.rb 2 2 0 0 [[32mPASS[0m]
|
173
|
+
test/more/test_openobject.rb 13 29 0 0 [[32mPASS[0m]
|
174
|
+
test/more/test_equatable.rb 1 3 0 0 [[32mPASS[0m]
|
175
|
+
test/more/test_uri.rb 4 4 0 0 [[32mPASS[0m]
|
176
|
+
test/more/test_opencascade.rb 7 108 0 1 [[31mFAIL[0m]
|
177
|
+
test/more/test_multipliers.rb 22 22 0 0 [[32mPASS[0m]
|
178
|
+
test/more/test_autoarray.rb 0 0 0 0 [[32mPASS[0m]
|
179
|
+
test/more/test_random.rb 21 261 0 0 [[32mPASS[0m]
|
180
|
+
test/more/test_boolean.rb 8 35 0 0 [[32mPASS[0m]
|
181
|
+
test/more/test_prototype.rb 2 4 0 0 [[32mPASS[0m]
|
182
|
+
test/more/test_elementwise.rb 2 8 0 0 [[32mPASS[0m]
|
183
|
+
test/more/test_class_extension.rb 5 9 0 0 [[32mPASS[0m]
|
184
|
+
test/more/test_thread.rb 3 3 0 0 [[32mPASS[0m]
|
185
|
+
test/more/test_dependency.rb 4 4 0 0 [[32mPASS[0m]
|
186
|
+
test/more/test_times.rb 13 13 0 0 [[32mPASS[0m]
|
187
|
+
test/more/test_binreadable.rb 4 13 0 0 [[32mPASS[0m]
|
188
|
+
test/more/test_cloneable.rb 2 6 0 0 [[32mPASS[0m]
|
189
|
+
test/more/test_inheritor.rb 20 23 0 0 [[32mPASS[0m]
|
190
|
+
test/more/test_uninheritable.rb 1 2 0 0 [[32mPASS[0m]
|
191
|
+
test/more/test_timer.rb 3 8 0 0 [[32mPASS[0m]
|
192
|
+
test/more/test_annotations.rb 16 22 0 0 [[32mPASS[0m]
|
193
|
+
test/more/test_recorder.rb 1 1 0 0 [[32mPASS[0m]
|
194
|
+
test/more/test_tuple.rb 6 11 0 0 [[32mPASS[0m]
|
195
|
+
test/more/test_classmethods.rb 5 9 0 0 [[32mPASS[0m]
|
196
|
+
test/more/test_association.rb 3 4 0 0 [[32mPASS[0m]
|
197
|
+
test/more/test_blank.rb 1 2 0 0 [[32mPASS[0m]
|
198
|
+
test/more/test_command.rb 3 3 0 0 [[32mPASS[0m]
|
199
|
+
test/more/test_bbcode.rb 2 2 0 0 [[32mPASS[0m]
|
200
|
+
test/more/test_memoize.rb 3 3 0 0 [[32mPASS[0m]
|
201
|
+
test/more/test_interval.rb 38 38 0 0 [[32mPASS[0m]
|
202
|
+
test/more/test_getoptlong.rb 1 2 0 0 [[32mPASS[0m]
|
203
|
+
test/more/test_snapshot.rb 1 3 0 0 [[32mPASS[0m]
|
204
|
+
test/more/test_succ.rb 3 16 0 0 [[32mPASS[0m]
|
205
|
+
test/more/test_style.rb 1 0 0 1 [[31mFAIL[0m]
|
206
|
+
test/more/test_coroutine.rb 1 1 0 0 [[32mPASS[0m]
|
207
|
+
test/more/test_overload.rb 13 15 0 0 [[32mPASS[0m]
|
208
|
+
test/more/test_elementor.rb 5 8 0 0 [[32mPASS[0m]
|
209
|
+
test/more/test_to_hash.rb 5 5 0 0 [[32mPASS[0m]
|
210
|
+
test/more/test_enumerablepass.rb 8 7 0 0 [[32mPASS[0m]
|
211
|
+
test/more/test_ansicode.rb 2 2 0 0 [[32mPASS[0m]
|
212
|
+
test/more/test_dictionary.rb 14 40 0 0 [[32mPASS[0m]
|
213
|
+
test/more/test_lrucache.rb 1 0 0 0 [[32mPASS[0m]
|
214
|
+
test/more/test_xoxo.rb 26 28 0 0 [[32mPASS[0m]
|
215
|
+
test/more/test_instantiable.rb 2 2 0 0 [[32mPASS[0m]
|
216
|
+
test/more/test_functor.rb 2 9 0 0 [[32mPASS[0m]
|
217
|
+
test/more/test_linkedlist.rb 1 20 0 0 [[32mPASS[0m]
|
218
|
+
test/more/test_partial.rb 3 3 0 0 [[32mPASS[0m]
|
219
|
+
test/more/test_methodspace.rb 6 6 0 0 [[32mPASS[0m]
|
220
|
+
test/more/test_synchash.rb 1 1 0 0 [[32mPASS[0m]
|
221
|
+
test/more/test_arguments.rb 6 10 0 0 [[32mPASS[0m]
|
222
|
+
test/more/test_paramix.rb 13 26 0 0 [[32mPASS[0m]
|
223
|
+
test/more/test_multiton.rb 6 16 0 0 [[32mPASS[0m]
|
224
|
+
test/more/test_advisable.rb 2 4 0 0 [[32mPASS[0m]
|
225
|
+
test/more/test_cattr.rb 4 8 0 0 [[32mPASS[0m]
|
226
|
+
TOTAL 748 1847 0 7
|
227
|
+
|
228
|
+
-- Failures and Errors --
|
229
|
+
|
230
|
+
Loaded suite test/core/integer/test_even
|
231
|
+
Started
|
232
|
+
EE
|
233
|
+
Finished in 0.000703 seconds.
|
234
|
+
|
235
|
+
1) Error:
|
236
|
+
test_even?(TC_Integer):
|
237
|
+
NoMethodError: undefined method `even?' for -100:Fixnum
|
238
|
+
test/core/integer/test_even.rb:8:in `test_even?'
|
239
|
+
test/core/integer/test_even.rb:7:in `step'
|
240
|
+
test/core/integer/test_even.rb:7:in `test_even?'
|
241
|
+
|
242
|
+
2) Error:
|
243
|
+
test_odd?(TC_Integer):
|
244
|
+
NoMethodError: undefined method `odd?' for -101:Fixnum
|
245
|
+
test/core/integer/test_even.rb:17:in `test_odd?'
|
246
|
+
test/core/integer/test_even.rb:16:in `step'
|
247
|
+
test/core/integer/test_even.rb:16:in `test_odd?'
|
248
|
+
|
249
|
+
2 tests, 0 assertions, 0 failures, 2 errors
|
250
|
+
Loaded suite test/more/test_metaid
|
251
|
+
Started
|
252
|
+
..EE
|
253
|
+
Finished in 0.000881 seconds.
|
254
|
+
|
255
|
+
1) Error:
|
256
|
+
test_singleton(TestMetaid):
|
257
|
+
NoMethodError: undefined method `singleton' for #<Object:0x7f091f178bd8>
|
258
|
+
test/more/test_metaid.rb:18:in `test_singleton'
|
259
|
+
|
260
|
+
2) Error:
|
261
|
+
test_singleton_class(TestMetaid):
|
262
|
+
NoMethodError: undefined method `singleton_class' for #<Object:0x7f091f175ca8>
|
263
|
+
test/more/test_metaid.rb:36:in `test_singleton_class'
|
264
|
+
|
265
|
+
4 tests, 2 assertions, 0 failures, 2 errors
|
266
|
+
Loaded suite test/more/test_opencascade
|
267
|
+
Started
|
268
|
+
.E.....
|
269
|
+
Finished in 0.011009 seconds.
|
270
|
+
|
271
|
+
1) Error:
|
272
|
+
test_1_02(TestOpenCascade1):
|
273
|
+
NoMethodError: undefined method `x' for {:x=>9}:Hash
|
274
|
+
test/more/test_opencascade.rb:16:in `test_1_02'
|
275
|
+
|
276
|
+
7 tests, 108 assertions, 0 failures, 1 errors
|
277
|
+
|
278
|
+
|
@@ -59,9 +59,11 @@
|
|
59
59
|
<td>
|
60
60
|
<a href="../files/lib/core/facets/to_hash_rb.html">lib/core/facets/to_hash.rb</a>
|
61
61
|
<a href="../files/lib/core/facets/boolean_rb.html">lib/core/facets/boolean.rb</a>
|
62
|
+
<a href="../files/lib/core/facets/string/contains_rb.html">lib/core/facets/string/contains.rb</a>
|
62
63
|
<a href="../files/lib/core/facets/array/product_rb.html">lib/core/facets/array/product.rb</a>
|
63
64
|
<a href="../files/lib/core/facets/array/recursively_rb.html">lib/core/facets/array/recursively.rb</a>
|
64
65
|
<a href="../files/lib/core/facets/array/not_empty_rb.html">lib/core/facets/array/not_empty.rb</a>
|
66
|
+
<a href="../files/lib/core/facets/array/delete_unless_rb.html">lib/core/facets/array/delete_unless.rb</a>
|
65
67
|
<a href="../files/lib/core/facets/array/rotate_rb.html">lib/core/facets/array/rotate.rb</a>
|
66
68
|
<a href="../files/lib/core/facets/array/conjoin_rb.html">lib/core/facets/array/conjoin.rb</a>
|
67
69
|
<a href="../files/lib/core/facets/array/indexable_rb.html">lib/core/facets/array/indexable.rb</a>
|
@@ -71,8 +73,8 @@
|
|
71
73
|
<a href="../files/lib/core/facets/array/select_rb.html">lib/core/facets/array/select.rb</a>
|
72
74
|
<a href="../files/lib/core/facets/array/index_rb.html">lib/core/facets/array/index.rb</a>
|
73
75
|
<a href="../files/lib/core/facets/array/only_rb.html">lib/core/facets/array/only.rb</a>
|
74
|
-
<a href="../files/lib/core/facets/array/delete_rb.html">lib/core/facets/array/delete.rb</a>
|
75
76
|
<a href="../files/lib/core/facets/array/combination_rb.html">lib/core/facets/array/combination.rb</a>
|
77
|
+
<a href="../files/lib/core/facets/array/delete_values_rb.html">lib/core/facets/array/delete_values.rb</a>
|
76
78
|
<a href="../files/lib/core/facets/array/splice_rb.html">lib/core/facets/array/splice.rb</a>
|
77
79
|
<a href="../files/lib/core/facets/array/stackable_rb.html">lib/core/facets/array/stackable.rb</a>
|
78
80
|
<a href="../files/lib/core/facets/array/pad_rb.html">lib/core/facets/array/pad.rb</a>
|
@@ -100,30 +102,30 @@ Object
|
|
100
102
|
|
101
103
|
|
102
104
|
<div class="sectiontitle">Methods</div>
|
103
|
-
<span style="padding-right: 5px;"><a href="#
|
104
|
-
<span style="padding-right: 5px;"><a href="#
|
105
|
-
<span style="padding-right: 5px;"><a href="#
|
106
|
-
<span style="padding-right: 5px;"><a href="#
|
107
|
-
<span style="padding-right: 5px;"><a href="#
|
108
|
-
<span style="padding-right: 5px;"><a href="#
|
109
|
-
<span style="padding-right: 5px;"><a href="#
|
110
|
-
<span style="padding-right: 5px;"><a href="#
|
111
|
-
<span style="padding-right: 5px;"><a href="#
|
112
|
-
<span style="padding-right: 5px;"><a href="#
|
113
|
-
<span style="padding-right: 5px;"><a href="#
|
114
|
-
<span style="padding-right: 5px;"><a href="#
|
115
|
-
<span style="padding-right: 5px;"><a href="#
|
116
|
-
<span style="padding-right: 5px;"><a href="#
|
117
|
-
<span style="padding-right: 5px;"><a href="#
|
118
|
-
<span style="padding-right: 5px;"><a href="#
|
119
|
-
<span style="padding-right: 5px;"><a href="#
|
120
|
-
<span style="padding-right: 5px;"><a href="#
|
121
|
-
<span style="padding-right: 5px;"><a href="#
|
122
|
-
<span style="padding-right: 5px;"><a href="#
|
123
|
-
<span style="padding-right: 5px;"><a href="#
|
124
|
-
<span style="padding-right: 5px;"><a href="#
|
125
|
-
<span style="padding-right: 5px;"><a href="#
|
126
|
-
<span style="padding-right: 5px;"><a href="#
|
105
|
+
<span style="padding-right: 5px;"><a href="#M000134">**</a></span>
|
106
|
+
<span style="padding-right: 5px;"><a href="#M000149">combination</a></span>
|
107
|
+
<span style="padding-right: 5px;"><a href="#M000141">conjoin</a></span>
|
108
|
+
<span style="padding-right: 5px;"><a href="#M000138">delete_unless</a></span>
|
109
|
+
<span style="padding-right: 5px;"><a href="#M000150">delete_values</a></span>
|
110
|
+
<span style="padding-right: 5px;"><a href="#M000151">delete_values_at</a></span>
|
111
|
+
<span style="padding-right: 5px;"><a href="#M000147">index</a></span>
|
112
|
+
<span style="padding-right: 5px;"><a href="#M000142">merge!</a></span>
|
113
|
+
<span style="padding-right: 5px;"><a href="#M000137">not_empty?</a></span>
|
114
|
+
<span style="padding-right: 5px;"><a href="#M000148">only</a></span>
|
115
|
+
<span style="padding-right: 5px;"><a href="#M000153">pad</a></span>
|
116
|
+
<span style="padding-right: 5px;"><a href="#M000154">pad!</a></span>
|
117
|
+
<span style="padding-right: 5px;"><a href="#M000145">permutation</a></span>
|
118
|
+
<span style="padding-right: 5px;"><a href="#M000133">product</a></span>
|
119
|
+
<span style="padding-right: 5px;"><a href="#M000135">recursively</a></span>
|
120
|
+
<span style="padding-right: 5px;"><a href="#M000136">recursively!</a></span>
|
121
|
+
<span style="padding-right: 5px;"><a href="#M000139">rotate</a></span>
|
122
|
+
<span style="padding-right: 5px;"><a href="#M000140">rotate!</a></span>
|
123
|
+
<span style="padding-right: 5px;"><a href="#M000146">select!</a></span>
|
124
|
+
<span style="padding-right: 5px;"><a href="#M000152">splice</a></span>
|
125
|
+
<span style="padding-right: 5px;"><a href="#M000132">to_b</a></span>
|
126
|
+
<span style="padding-right: 5px;"><a href="#M000131">to_h</a></span>
|
127
|
+
<span style="padding-right: 5px;"><a href="#M000143">traverse</a></span>
|
128
|
+
<span style="padding-right: 5px;"><a href="#M000144">traverse!</a></span>
|
127
129
|
|
128
130
|
<div class="sectiontitle">Included Modules</div>
|
129
131
|
<ul>
|
@@ -138,22 +140,22 @@ Object
|
|
138
140
|
<div class="sectiontitle">Public Instance methods</div>
|
139
141
|
<div class="method">
|
140
142
|
<div class="title">
|
141
|
-
<a name="
|
143
|
+
<a name="M000134"></a><b>**</b>(*enums, &block)
|
142
144
|
</div>
|
143
145
|
<div class="description">
|
144
146
|
<p>
|
145
|
-
Alias for <a href="Array.html#
|
147
|
+
Alias for <a href="Array.html#M000133">product</a>
|
146
148
|
</p>
|
147
149
|
</div>
|
148
150
|
</div>
|
149
151
|
<div class="method">
|
150
152
|
<div class="title">
|
151
|
-
<a name="
|
153
|
+
<a name="M000149"></a><b>combination</b>(k=2) {|s.values_at(*idx)| ...}
|
152
154
|
</div>
|
153
155
|
<div class="description">
|
154
156
|
<p>
|
155
157
|
Yields the block to each unique <a
|
156
|
-
href="Array.html#
|
158
|
+
href="Array.html#M000149">combination</a> of <em>n</em> elements.
|
157
159
|
</p>
|
158
160
|
<pre>
|
159
161
|
a = %w|a b c d|
|
@@ -173,8 +175,8 @@ CREDIT: Florian Gross
|
|
173
175
|
</p>
|
174
176
|
</div>
|
175
177
|
<div class="sourcecode">
|
176
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
177
|
-
<div id="
|
178
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000149_source')" id="l_M000149_source">+</a> ]</p>
|
179
|
+
<div id="M000149_source" class="dyn-source">
|
178
180
|
<pre>
|
179
181
|
<span class="ruby-comment cmt"># File lib/core/facets/array/combination.rb, line 21</span>
|
180
182
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">combination</span>(<span class="ruby-identifier">k</span>=<span class="ruby-value">2</span>)
|
@@ -201,7 +203,7 @@ CREDIT: Florian Gross
|
|
201
203
|
</div>
|
202
204
|
<div class="method">
|
203
205
|
<div class="title">
|
204
|
-
<a name="
|
206
|
+
<a name="M000141"></a><b>conjoin</b>(*args) {|i, *slice(i,2)| ...}
|
205
207
|
</div>
|
206
208
|
<div class="description">
|
207
209
|
<p>
|
@@ -231,13 +233,14 @@ no longer the case. You must specifically provide these parameters.
|
|
231
233
|
|
232
234
|
[1,1,2,2].conjoin{ |i, a, b| a == b ? '=' : '!=' }
|
233
235
|
=> "1=1!=2=2"
|
234
|
-
|
235
|
-
CREDIT: Trans
|
236
236
|
</pre>
|
237
|
+
<p>
|
238
|
+
CREDIT: Trans
|
239
|
+
</p>
|
237
240
|
</div>
|
238
241
|
<div class="sourcecode">
|
239
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
240
|
-
<div id="
|
242
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000141_source')" id="l_M000141_source">+</a> ]</p>
|
243
|
+
<div id="M000141_source" class="dyn-source">
|
241
244
|
<pre>
|
242
245
|
<span class="ruby-comment cmt"># File lib/core/facets/array/conjoin.rb, line 30</span>
|
243
246
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">conjoin</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -272,7 +275,7 @@ no longer the case. You must specifically provide these parameters.
|
|
272
275
|
</div>
|
273
276
|
<div class="method">
|
274
277
|
<div class="title">
|
275
|
-
<a name="
|
278
|
+
<a name="M000138"></a><b>delete_unless</b>(&block)
|
276
279
|
</div>
|
277
280
|
<div class="description">
|
278
281
|
<p>
|
@@ -281,15 +284,16 @@ Inverse of delete_if.
|
|
281
284
|
<pre>
|
282
285
|
[1,2,3].delete_unless{ |x| x < 2 }
|
283
286
|
=> [1,2]
|
284
|
-
|
285
|
-
CREDIT: Daniel Schierbeck
|
286
287
|
</pre>
|
288
|
+
<p>
|
289
|
+
CREDIT: Daniel Schierbeck
|
290
|
+
</p>
|
287
291
|
</div>
|
288
292
|
<div class="sourcecode">
|
289
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
290
|
-
<div id="
|
293
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000138_source')" id="l_M000138_source">+</a> ]</p>
|
294
|
+
<div id="M000138_source" class="dyn-source">
|
291
295
|
<pre>
|
292
|
-
<span class="ruby-comment cmt"># File lib/core/facets/array/
|
296
|
+
<span class="ruby-comment cmt"># File lib/core/facets/array/delete_unless.rb, line 10</span>
|
293
297
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_unless</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
294
298
|
<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">element</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">block</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">element</span>) }
|
295
299
|
<span class="ruby-keyword kw">end</span>
|
@@ -299,7 +303,7 @@ Inverse of delete_if.
|
|
299
303
|
</div>
|
300
304
|
<div class="method">
|
301
305
|
<div class="title">
|
302
|
-
<a name="
|
306
|
+
<a name="M000150"></a><b>delete_values</b>(*values)
|
303
307
|
</div>
|
304
308
|
<div class="description">
|
305
309
|
<p>
|
@@ -315,10 +319,10 @@ CREDIT: Trans
|
|
315
319
|
</p>
|
316
320
|
</div>
|
317
321
|
<div class="sourcecode">
|
318
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
319
|
-
<div id="
|
322
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000150_source')" id="l_M000150_source">+</a> ]</p>
|
323
|
+
<div id="M000150_source" class="dyn-source">
|
320
324
|
<pre>
|
321
|
-
<span class="ruby-comment cmt"># File lib/core/facets/array/
|
325
|
+
<span class="ruby-comment cmt"># File lib/core/facets/array/delete_values.rb, line 11</span>
|
322
326
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_values</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">values</span>)
|
323
327
|
<span class="ruby-identifier">d</span> = []
|
324
328
|
<span class="ruby-identifier">values</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">d</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">v</span>) }
|
@@ -330,12 +334,12 @@ CREDIT: Trans
|
|
330
334
|
</div>
|
331
335
|
<div class="method">
|
332
336
|
<div class="title">
|
333
|
-
<a name="
|
337
|
+
<a name="M000151"></a><b>delete_values_at</b>(*selectors)
|
334
338
|
</div>
|
335
339
|
<div class="description">
|
336
340
|
<p>
|
337
341
|
Delete multiple values from array given indexes or <a
|
338
|
-
href="Array.html#
|
342
|
+
href="Array.html#M000147">index</a> range.
|
339
343
|
</p>
|
340
344
|
<pre>
|
341
345
|
a = [1,2,3,4]
|
@@ -348,15 +352,15 @@ href="Array.html#M000142">index</a> range.
|
|
348
352
|
<p>
|
349
353
|
NOTE: It would be nice to see delete_at incorporate this funcitonaility.
|
350
354
|
</p>
|
351
|
-
<
|
352
|
-
|
353
|
-
</
|
355
|
+
<p>
|
356
|
+
CREDIT: Trans
|
357
|
+
</p>
|
354
358
|
</div>
|
355
359
|
<div class="sourcecode">
|
356
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
357
|
-
<div id="
|
360
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000151_source')" id="l_M000151_source">+</a> ]</p>
|
361
|
+
<div id="M000151_source" class="dyn-source">
|
358
362
|
<pre>
|
359
|
-
<span class="ruby-comment cmt"># File lib/core/facets/array/
|
363
|
+
<span class="ruby-comment cmt"># File lib/core/facets/array/delete_values.rb, line 32</span>
|
360
364
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">selectors</span>)
|
361
365
|
<span class="ruby-identifier">idx</span> = []
|
362
366
|
<span class="ruby-identifier">selectors</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
|
@@ -379,19 +383,19 @@ NOTE: It would be nice to see delete_at incorporate this funcitonaility.
|
|
379
383
|
</div>
|
380
384
|
<div class="method">
|
381
385
|
<div class="title">
|
382
|
-
<a name="
|
386
|
+
<a name="M000147"></a><b>index</b>(obj=nil, &block)
|
383
387
|
</div>
|
384
388
|
<div class="description">
|
385
389
|
<p>
|
386
|
-
Allows <a href="Array.html#
|
390
|
+
Allows <a href="Array.html#M000147">index</a> to accept a block.
|
387
391
|
</p>
|
388
392
|
<p>
|
389
393
|
OVERRIDE! This is one of the bery few core overrides in Facets.
|
390
394
|
</p>
|
391
395
|
</div>
|
392
396
|
<div class="sourcecode">
|
393
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
394
|
-
<div id="
|
397
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000147_source')" id="l_M000147_source">+</a> ]</p>
|
398
|
+
<div id="M000147_source" class="dyn-source">
|
395
399
|
<pre>
|
396
400
|
<span class="ruby-comment cmt"># File lib/core/facets/array/index.rb, line 12</span>
|
397
401
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>(<span class="ruby-identifier">obj</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -407,7 +411,7 @@ OVERRIDE! This is one of the bery few core overrides in Facets.
|
|
407
411
|
</div>
|
408
412
|
<div class="method">
|
409
413
|
<div class="title">
|
410
|
-
<a name="
|
414
|
+
<a name="M000142"></a><b>merge!</b>( other )
|
411
415
|
</div>
|
412
416
|
<div class="description">
|
413
417
|
<p>
|
@@ -417,13 +421,14 @@ In place merge.
|
|
417
421
|
a = [1,2]
|
418
422
|
a.merge! [2,3]
|
419
423
|
a => [1,2,3]
|
420
|
-
|
421
|
-
CREDIT: Trans
|
422
424
|
</pre>
|
425
|
+
<p>
|
426
|
+
CREDIT: Trans
|
427
|
+
</p>
|
423
428
|
</div>
|
424
429
|
<div class="sourcecode">
|
425
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
426
|
-
<div id="
|
430
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000142_source')" id="l_M000142_source">+</a> ]</p>
|
431
|
+
<div id="M000142_source" class="dyn-source">
|
427
432
|
<pre>
|
428
433
|
<span class="ruby-comment cmt"># File lib/core/facets/array/merge.rb, line 11</span>
|
429
434
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">merge!</span>( <span class="ruby-identifier">other</span> )
|
@@ -435,7 +440,7 @@ In place merge.
|
|
435
440
|
</div>
|
436
441
|
<div class="method">
|
437
442
|
<div class="title">
|
438
|
-
<a name="
|
443
|
+
<a name="M000137"></a><b>not_empty?</b>()
|
439
444
|
</div>
|
440
445
|
<div class="description">
|
441
446
|
<p>
|
@@ -447,8 +452,8 @@ Not empty?
|
|
447
452
|
</pre>
|
448
453
|
</div>
|
449
454
|
<div class="sourcecode">
|
450
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
451
|
-
<div id="
|
455
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000137_source')" id="l_M000137_source">+</a> ]</p>
|
456
|
+
<div id="M000137_source" class="dyn-source">
|
452
457
|
<pre>
|
453
458
|
<span class="ruby-comment cmt"># File lib/core/facets/array/not_empty.rb, line 8</span>
|
454
459
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">not_empty?</span>
|
@@ -460,27 +465,27 @@ Not empty?
|
|
460
465
|
</div>
|
461
466
|
<div class="method">
|
462
467
|
<div class="title">
|
463
|
-
<a name="
|
468
|
+
<a name="M000148"></a><b>only</b>()
|
464
469
|
</div>
|
465
470
|
<div class="description">
|
466
471
|
<p>
|
467
|
-
Returns the <em><a href="Array.html#
|
472
|
+
Returns the <em><a href="Array.html#M000148">only</a></em> element in the
|
468
473
|
array. Raises an IndexError if the array‘s size is not 1.
|
469
474
|
</p>
|
470
475
|
<pre>
|
471
476
|
[5].only # -> 5
|
472
477
|
[1,2,3].only # -> IndexError
|
473
478
|
[].only # -> IndexError
|
474
|
-
|
475
|
-
CREDIT: Gavin Sinclair
|
476
|
-
CREDIT: Noah Gibbs
|
477
479
|
</pre>
|
480
|
+
<p>
|
481
|
+
CREDIT: Gavin Sinclair, Noah Gibbs
|
482
|
+
</p>
|
478
483
|
</div>
|
479
484
|
<div class="sourcecode">
|
480
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
481
|
-
<div id="
|
485
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000148_source')" id="l_M000148_source">+</a> ]</p>
|
486
|
+
<div id="M000148_source" class="dyn-source">
|
482
487
|
<pre>
|
483
|
-
<span class="ruby-comment cmt"># File lib/core/facets/array/only.rb, line
|
488
|
+
<span class="ruby-comment cmt"># File lib/core/facets/array/only.rb, line 12</span>
|
484
489
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">only</span>
|
485
490
|
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
486
491
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">IndexError</span>, <span class="ruby-value str">"Array#only called on non-single-element array"</span>
|
@@ -493,7 +498,7 @@ array. Raises an IndexError if the array‘s size is not 1.
|
|
493
498
|
</div>
|
494
499
|
<div class="method">
|
495
500
|
<div class="title">
|
496
|
-
<a name="
|
501
|
+
<a name="M000153"></a><b>pad</b>(len, val=nil)
|
497
502
|
</div>
|
498
503
|
<div class="description">
|
499
504
|
<p>
|
@@ -508,13 +513,14 @@ beginning of the array.
|
|
508
513
|
</p>
|
509
514
|
<pre>
|
510
515
|
[0,1,2].pad(-6,"a") #=> ["a","a","a",0,1,2]
|
511
|
-
|
512
|
-
CREDIT: Richard Laugesen
|
513
516
|
</pre>
|
517
|
+
<p>
|
518
|
+
CREDIT: Richard Laugesen
|
519
|
+
</p>
|
514
520
|
</div>
|
515
521
|
<div class="sourcecode">
|
516
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
517
|
-
<div id="
|
522
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000153_source')" id="l_M000153_source">+</a> ]</p>
|
523
|
+
<div id="M000153_source" class="dyn-source">
|
518
524
|
<pre>
|
519
525
|
<span class="ruby-comment cmt"># File lib/core/facets/array/pad.rb, line 14</span>
|
520
526
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pad</span>(<span class="ruby-identifier">len</span>, <span class="ruby-identifier">val</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -531,23 +537,24 @@ beginning of the array.
|
|
531
537
|
</div>
|
532
538
|
<div class="method">
|
533
539
|
<div class="title">
|
534
|
-
<a name="
|
540
|
+
<a name="M000154"></a><b>pad!</b>(len, val=nil)
|
535
541
|
</div>
|
536
542
|
<div class="description">
|
537
543
|
<p>
|
538
|
-
Like <a href="Array.html#
|
544
|
+
Like <a href="Array.html#M000153">pad</a> but changes the array in place.
|
539
545
|
</p>
|
540
546
|
<pre>
|
541
547
|
a = [0,1,2]
|
542
548
|
a.pad!(6,"x")
|
543
549
|
a #=> [0,1,2,"x","x","x"]
|
544
|
-
|
545
|
-
CREDIT: Richard Laugesen
|
546
550
|
</pre>
|
551
|
+
<p>
|
552
|
+
CREDIT: Richard Laugesen
|
553
|
+
</p>
|
547
554
|
</div>
|
548
555
|
<div class="sourcecode">
|
549
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
550
|
-
<div id="
|
556
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000154_source')" id="l_M000154_source">+</a> ]</p>
|
557
|
+
<div id="M000154_source" class="dyn-source">
|
551
558
|
<pre>
|
552
559
|
<span class="ruby-comment cmt"># File lib/core/facets/array/pad.rb, line 31</span>
|
553
560
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pad!</span>(<span class="ruby-identifier">len</span>, <span class="ruby-identifier">val</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -564,21 +571,21 @@ Like <a href="Array.html#M000149">pad</a> but changes the array in place.
|
|
564
571
|
</div>
|
565
572
|
<div class="method">
|
566
573
|
<div class="title">
|
567
|
-
<a name="
|
574
|
+
<a name="M000145"></a><b>permutation</b>(n=size) {|[]| ...}
|
568
575
|
</div>
|
569
576
|
<div class="description">
|
570
577
|
<p>
|
571
578
|
Permutation provids the possible orders of an enumerable. Each is indexed
|
572
|
-
by a <a href="Array.html#
|
579
|
+
by a <a href="Array.html#M000145">permutation</a> number. The maximum
|
573
580
|
number of arrangements is the factorial of the size of the array.
|
574
581
|
</p>
|
575
|
-
<
|
576
|
-
|
577
|
-
</
|
582
|
+
<p>
|
583
|
+
CREDIT: Shin-ichiro Hara
|
584
|
+
</p>
|
578
585
|
</div>
|
579
586
|
<div class="sourcecode">
|
580
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
581
|
-
<div id="
|
587
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000145_source')" id="l_M000145_source">+</a> ]</p>
|
588
|
+
<div id="M000145_source" class="dyn-source">
|
582
589
|
<pre>
|
583
590
|
<span class="ruby-comment cmt"># File lib/core/facets/array/permutation.rb, line 11</span>
|
584
591
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">permutation</span>(<span class="ruby-identifier">n</span>=<span class="ruby-identifier">size</span>)
|
@@ -602,11 +609,11 @@ number of arrangements is the factorial of the size of the array.
|
|
602
609
|
</div>
|
603
610
|
<div class="method">
|
604
611
|
<div class="title">
|
605
|
-
<a name="
|
612
|
+
<a name="M000133"></a><b>product</b>(*enums, &block)
|
606
613
|
</div>
|
607
614
|
<div class="description">
|
608
615
|
<p>
|
609
|
-
Provides the cross-<a href="Array.html#
|
616
|
+
Provides the cross-<a href="Array.html#M000133">product</a> of two or more
|
610
617
|
Enumerables. This is the class-level method. The instance method calls on
|
611
618
|
this.
|
612
619
|
</p>
|
@@ -620,17 +627,18 @@ this.
|
|
620
627
|
a = []
|
621
628
|
[1,2].cart([4,5]){|elem| a << elem }
|
622
629
|
a #=> [[1, 4],[1, 5],[2, 4],[2, 5]]
|
623
|
-
|
624
|
-
CREDIT: Thomas Hafner
|
625
630
|
</pre>
|
631
|
+
<p>
|
632
|
+
CREDIT: Thomas Hafner
|
633
|
+
</p>
|
626
634
|
</div>
|
627
635
|
<div class="aka">
|
628
636
|
This method is also aliased as
|
629
|
-
<a href="Array.html#
|
637
|
+
<a href="Array.html#M000134">**</a>
|
630
638
|
</div>
|
631
639
|
<div class="sourcecode">
|
632
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
633
|
-
<div id="
|
640
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000133_source')" id="l_M000133_source">+</a> ]</p>
|
641
|
+
<div id="M000133_source" class="dyn-source">
|
634
642
|
<pre>
|
635
643
|
<span class="ruby-comment cmt"># File lib/core/facets/array/product.rb, line 21</span>
|
636
644
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">product</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">enums</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -657,11 +665,11 @@ this.
|
|
657
665
|
</div>
|
658
666
|
<div class="method">
|
659
667
|
<div class="title">
|
660
|
-
<a name="
|
668
|
+
<a name="M000135"></a><b>recursively</b>() {|a| ...}
|
661
669
|
</div>
|
662
670
|
<div class="description">
|
663
671
|
<p>
|
664
|
-
Apply a block to hash, and <a href="Array.html#
|
672
|
+
Apply a block to hash, and <a href="Array.html#M000135">recursively</a>
|
665
673
|
apply that block to each subhash.
|
666
674
|
</p>
|
667
675
|
<pre>
|
@@ -674,8 +682,8 @@ TODO: Can this be generalized in Enumerbale?
|
|
674
682
|
</p>
|
675
683
|
</div>
|
676
684
|
<div class="sourcecode">
|
677
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
678
|
-
<div id="
|
685
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000135_source')" id="l_M000135_source">+</a> ]</p>
|
686
|
+
<div id="M000135_source" class="dyn-source">
|
679
687
|
<pre>
|
680
688
|
<span class="ruby-comment cmt"># File lib/core/facets/array/recursively.rb, line 12</span>
|
681
689
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -695,16 +703,16 @@ TODO: Can this be generalized in Enumerbale?
|
|
695
703
|
</div>
|
696
704
|
<div class="method">
|
697
705
|
<div class="title">
|
698
|
-
<a name="
|
706
|
+
<a name="M000136"></a><b>recursively!</b>(&block)
|
699
707
|
</div>
|
700
708
|
<div class="description">
|
701
709
|
<p>
|
702
|
-
In place form of <a href="Array.html#
|
710
|
+
In place form of <a href="Array.html#M000135">recursively</a>.
|
703
711
|
</p>
|
704
712
|
</div>
|
705
713
|
<div class="sourcecode">
|
706
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
707
|
-
<div id="
|
714
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000136_source')" id="l_M000136_source">+</a> ]</p>
|
715
|
+
<div id="M000136_source" class="dyn-source">
|
708
716
|
<pre>
|
709
717
|
<span class="ruby-comment cmt"># File lib/core/facets/array/recursively.rb, line 26</span>
|
710
718
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -716,7 +724,7 @@ In place form of <a href="Array.html#M000131">recursively</a>.
|
|
716
724
|
</div>
|
717
725
|
<div class="method">
|
718
726
|
<div class="title">
|
719
|
-
<a name="
|
727
|
+
<a name="M000139"></a><b>rotate</b>(n=1)
|
720
728
|
</div>
|
721
729
|
<div class="description">
|
722
730
|
<p>
|
@@ -733,16 +741,16 @@ A negative parameter reverses the order from front to back.
|
|
733
741
|
</p>
|
734
742
|
<pre>
|
735
743
|
[1,2,3].rotate(-1) #=> [2,3,1]
|
736
|
-
|
737
|
-
CREDIT: Florian Gross
|
738
|
-
CREDIT: Thomas Sawyer
|
739
744
|
</pre>
|
745
|
+
<p>
|
746
|
+
CREDIT: Florian Gross, Thomas Sawyer
|
747
|
+
</p>
|
740
748
|
</div>
|
741
749
|
<div class="sourcecode">
|
742
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
743
|
-
<div id="
|
750
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000139_source')" id="l_M000139_source">+</a> ]</p>
|
751
|
+
<div id="M000139_source" class="dyn-source">
|
744
752
|
<pre>
|
745
|
-
<span class="ruby-comment cmt"># File lib/core/facets/array/rotate.rb, line
|
753
|
+
<span class="ruby-comment cmt"># File lib/core/facets/array/rotate.rb, line 16</span>
|
746
754
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rotate</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
|
747
755
|
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">rotate!</span>(<span class="ruby-identifier">n</span>)
|
748
756
|
<span class="ruby-keyword kw">end</span>
|
@@ -752,26 +760,26 @@ A negative parameter reverses the order from front to back.
|
|
752
760
|
</div>
|
753
761
|
<div class="method">
|
754
762
|
<div class="title">
|
755
|
-
<a name="
|
763
|
+
<a name="M000140"></a><b>rotate!</b>(n=1)
|
756
764
|
</div>
|
757
765
|
<div class="description">
|
758
766
|
<p>
|
759
|
-
Same as <a href="Array.html#
|
767
|
+
Same as <a href="Array.html#M000139">rotate</a>, but acts in place.
|
760
768
|
</p>
|
761
769
|
<pre>
|
762
770
|
a = [1,2,3]
|
763
771
|
a.rotate!
|
764
772
|
a #=> [3,1,2]
|
765
|
-
|
766
|
-
CREDIT: Florian Gross
|
767
|
-
CREDIT: Thomas Sawyer
|
768
773
|
</pre>
|
774
|
+
<p>
|
775
|
+
CREDIT: Florian Gross, Thomas Sawyer
|
776
|
+
</p>
|
769
777
|
</div>
|
770
778
|
<div class="sourcecode">
|
771
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
772
|
-
<div id="
|
779
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000140_source')" id="l_M000140_source">+</a> ]</p>
|
780
|
+
<div id="M000140_source" class="dyn-source">
|
773
781
|
<pre>
|
774
|
-
<span class="ruby-comment cmt"># File lib/core/facets/array/rotate.rb, line
|
782
|
+
<span class="ruby-comment cmt"># File lib/core/facets/array/rotate.rb, line 28</span>
|
775
783
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rotate!</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
|
776
784
|
<span class="ruby-identifier">n</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_int</span>
|
777
785
|
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">n</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">empty?</span>)
|
@@ -788,7 +796,7 @@ Same as <a href="Array.html#M000134">rotate</a>, but acts in place.
|
|
788
796
|
</div>
|
789
797
|
<div class="method">
|
790
798
|
<div class="title">
|
791
|
-
<a name="
|
799
|
+
<a name="M000146"></a><b>select!</b>( {|| ...}
|
792
800
|
</div>
|
793
801
|
<div class="description">
|
794
802
|
<p>
|
@@ -798,13 +806,14 @@ As with select but modifies the <a href="Array.html">Array</a> in place.
|
|
798
806
|
a = [1,2,3,4,5,6,7,8,9,10]
|
799
807
|
a.select!{ |e| e % 2 == 0 }
|
800
808
|
a #=> [2,4,6,8,10]
|
801
|
-
|
802
|
-
CREDIT: Gavin Sinclair
|
803
809
|
</pre>
|
810
|
+
<p>
|
811
|
+
CREDIT: Gavin Sinclair
|
812
|
+
</p>
|
804
813
|
</div>
|
805
814
|
<div class="sourcecode">
|
806
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
807
|
-
<div id="
|
815
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000146_source')" id="l_M000146_source">+</a> ]</p>
|
816
|
+
<div id="M000146_source" class="dyn-source">
|
808
817
|
<pre>
|
809
818
|
<span class="ruby-comment cmt"># File lib/core/facets/array/select.rb, line 11</span>
|
810
819
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select!</span> <span class="ruby-comment cmt"># :yield:</span>
|
@@ -816,11 +825,11 @@ As with select but modifies the <a href="Array.html">Array</a> in place.
|
|
816
825
|
</div>
|
817
826
|
<div class="method">
|
818
827
|
<div class="title">
|
819
|
-
<a name="
|
828
|
+
<a name="M000152"></a><b>splice</b>(*args)
|
820
829
|
</div>
|
821
830
|
<div class="description">
|
822
831
|
<p>
|
823
|
-
Splice acts a <a href="Array.html#
|
832
|
+
Splice acts a <a href="Array.html#M000149">combination</a> of slice! and
|
824
833
|
store. If two arguments are given it calls store. If a single argument is
|
825
834
|
give it calls slice!.
|
826
835
|
</p>
|
@@ -832,13 +841,14 @@ give it calls slice!.
|
|
832
841
|
a = [1,2,3]
|
833
842
|
a.splice(1,4) #=> 4
|
834
843
|
a #=>[1,4,3]
|
835
|
-
|
836
|
-
CREDIT: Trans
|
837
844
|
</pre>
|
845
|
+
<p>
|
846
|
+
CREDIT: Trans
|
847
|
+
</p>
|
838
848
|
</div>
|
839
849
|
<div class="sourcecode">
|
840
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
841
|
-
<div id="
|
850
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000152_source')" id="l_M000152_source">+</a> ]</p>
|
851
|
+
<div id="M000152_source" class="dyn-source">
|
842
852
|
<pre>
|
843
853
|
<span class="ruby-comment cmt"># File lib/core/facets/array/splice.rb, line 17</span>
|
844
854
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">splice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -854,7 +864,7 @@ give it calls slice!.
|
|
854
864
|
</div>
|
855
865
|
<div class="method">
|
856
866
|
<div class="title">
|
857
|
-
<a name="
|
867
|
+
<a name="M000132"></a><b>to_b</b>()
|
858
868
|
</div>
|
859
869
|
<div class="description">
|
860
870
|
<p>
|
@@ -862,8 +872,8 @@ Boolean conversion for not empty?
|
|
862
872
|
</p>
|
863
873
|
</div>
|
864
874
|
<div class="sourcecode">
|
865
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
866
|
-
<div id="
|
875
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000132_source')" id="l_M000132_source">+</a> ]</p>
|
876
|
+
<div id="M000132_source" class="dyn-source">
|
867
877
|
<pre>
|
868
878
|
<span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 60</span>
|
869
879
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_b</span>
|
@@ -875,7 +885,7 @@ Boolean conversion for not empty?
|
|
875
885
|
</div>
|
876
886
|
<div class="method">
|
877
887
|
<div class="title">
|
878
|
-
<a name="
|
888
|
+
<a name="M000131"></a><b>to_h</b>(arrayed=nil)
|
879
889
|
</div>
|
880
890
|
<div class="description">
|
881
891
|
<p>
|
@@ -898,13 +908,14 @@ functionality is as simple as:
|
|
898
908
|
</p>
|
899
909
|
<pre>
|
900
910
|
array1.zip(array2).to_h
|
901
|
-
|
902
|
-
CREDIT: Trans
|
903
911
|
</pre>
|
912
|
+
<p>
|
913
|
+
CREDIT: Trans
|
914
|
+
</p>
|
904
915
|
</div>
|
905
916
|
<div class="sourcecode">
|
906
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
907
|
-
<div id="
|
917
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000131_source')" id="l_M000131_source">+</a> ]</p>
|
918
|
+
<div id="M000131_source" class="dyn-source">
|
908
919
|
<pre>
|
909
920
|
<span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 20</span>
|
910
921
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>(<span class="ruby-identifier">arrayed</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -928,11 +939,11 @@ functionality is as simple as:
|
|
928
939
|
</div>
|
929
940
|
<div class="method">
|
930
941
|
<div class="title">
|
931
|
-
<a name="
|
942
|
+
<a name="M000143"></a><b>traverse</b>() {|item| ...}
|
932
943
|
</div>
|
933
944
|
<div class="sourcecode">
|
934
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
935
|
-
<div id="
|
945
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000143_source')" id="l_M000143_source">+</a> ]</p>
|
946
|
+
<div id="M000143_source" class="dyn-source">
|
936
947
|
<pre>
|
937
948
|
<span class="ruby-comment cmt"># File lib/core/facets/array/traverse.rb, line 5</span>
|
938
949
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -950,11 +961,11 @@ functionality is as simple as:
|
|
950
961
|
</div>
|
951
962
|
<div class="method">
|
952
963
|
<div class="title">
|
953
|
-
<a name="
|
964
|
+
<a name="M000144"></a><b>traverse!</b>(&block)
|
954
965
|
</div>
|
955
966
|
<div class="sourcecode">
|
956
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
957
|
-
<div id="
|
967
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000144_source')" id="l_M000144_source">+</a> ]</p>
|
968
|
+
<div id="M000144_source" class="dyn-source">
|
958
969
|
<pre>
|
959
970
|
<span class="ruby-comment cmt"># File lib/core/facets/array/traverse.rb, line 17</span>
|
960
971
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|