facets 2.4.1 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +16 -5
- data/CHANGES +9 -1
- data/MANIFEST +3093 -1289
- data/METADATA +28 -0
- data/NEWS +52 -0
- data/README +7 -65
- data/README.core +102 -0
- data/README.lore +51 -0
- data/README.more +43 -0
- data/doc/{history.rdoc → notes/history.rdoc} +0 -0
- data/doc/{notes.rdoc → notes/notes.rdoc} +0 -0
- data/doc/rdoc/core/classes/Array.html +1704 -0
- data/doc/rdoc/core/classes/Binding.html +718 -0
- data/doc/rdoc/core/classes/Class.html +518 -0
- data/doc/rdoc/core/classes/Comparable.html +430 -0
- data/doc/rdoc/core/classes/Dir.html +697 -0
- data/doc/rdoc/core/classes/Enumerable.html +2126 -0
- data/doc/rdoc/core/classes/Exception.html +234 -0
- data/doc/rdoc/core/classes/FalseClass.html +133 -0
- data/doc/rdoc/core/classes/File.html +929 -0
- data/doc/rdoc/core/classes/FileTest.html +147 -0
- data/doc/rdoc/core/classes/Float.html +297 -0
- data/doc/rdoc/core/classes/Friend.html +178 -0
- data/doc/rdoc/core/classes/Functor.html +173 -0
- data/doc/rdoc/core/classes/Hash.html +3864 -0
- data/doc/rdoc/core/classes/InstanceVariables.html +515 -0
- data/doc/rdoc/core/classes/Integer.html +852 -0
- data/doc/rdoc/core/classes/Kernel.html +3952 -0
- data/doc/rdoc/core/classes/Lazy.html +96 -0
- data/doc/rdoc/core/classes/Lazy/Future.html +100 -0
- data/doc/rdoc/core/classes/Lazy/Promise.html +114 -0
- data/doc/rdoc/core/classes/Lazy/PromiseSafe.html +99 -0
- data/doc/rdoc/core/classes/MatchData.html +309 -0
- data/doc/rdoc/core/classes/MissingArgument.html +98 -0
- data/doc/rdoc/core/classes/Module.html +2219 -0
- data/doc/rdoc/core/classes/Module/CloneExtensions.html +287 -0
- data/doc/rdoc/core/classes/NilClass.html +274 -0
- data/doc/rdoc/core/classes/Numeric.html +362 -0
- data/doc/rdoc/core/classes/Object.html +115 -0
- data/doc/rdoc/core/classes/Proc.html +595 -0
- data/doc/rdoc/core/classes/Range.html +622 -0
- data/doc/rdoc/core/classes/Regexp.html +289 -0
- data/doc/rdoc/core/classes/String.html +3913 -0
- data/doc/rdoc/core/classes/String/Words.html +571 -0
- data/doc/rdoc/core/classes/Symbol.html +584 -0
- data/doc/rdoc/core/classes/Time.html +824 -0
- data/doc/rdoc/core/classes/TrueClass.html +133 -0
- data/doc/rdoc/core/classes/UnboundMethod.html +295 -0
- data/doc/rdoc/core/created.rid +1 -0
- data/doc/rdoc/core/files/README.html +300 -0
- data/doc/rdoc/core/files/README_core.html +229 -0
- data/doc/rdoc/core/files/lib/core/facets/array/combination_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/array/conjoin_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/delete_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/indexable_rb.html +97 -0
- data/doc/rdoc/core/files/lib/core/facets/array/merge_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/not_empty_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/only_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/pad_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/permutation_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/product_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/recursively_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/rotate_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/select_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/splice_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/stackable_rb.html +97 -0
- data/doc/rdoc/core/files/lib/core/facets/array/traverse_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array_rb.html +125 -0
- data/doc/rdoc/core/files/lib/core/facets/binding/caller_rb.html +97 -0
- data/doc/rdoc/core/files/lib/core/facets/binding/defined_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/binding/eval_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/binding/local_variables_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/binding/opvars_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/binding/self_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/binding_rb.html +100 -0
- data/doc/rdoc/core/files/lib/core/facets/bitmask_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/blank_rb.html +97 -0
- data/doc/rdoc/core/files/lib/core/facets/boolean_rb.html +126 -0
- data/doc/rdoc/core/files/lib/core/facets/callstack_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/class/descendents_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/class/prepend_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/class/subclasses_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/class/to_methodname_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/class/to_pathname_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/class/to_proc_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/class_rb.html +97 -0
- data/doc/rdoc/core/files/lib/core/facets/comparable/bound_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/comparable/cmp_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/comparable/comparable_rb.html +109 -0
- data/doc/rdoc/core/files/lib/core/facets/comparable_rb.html +98 -0
- data/doc/rdoc/core/files/lib/core/facets/dir/ascend_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/dir/descend_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/dir/multiglob_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/dir/parent_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/dir/recurse_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/dir_rb.html +102 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/accumulate_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/cluster_by_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/collect_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/count_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/divide_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/duplicates_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/each_by_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/group_by_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/inject_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/map_send_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/mash_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/mode_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/modulate_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/none_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/occur_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/one_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/probability_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/split_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/sum_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/uniq_by_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable_rb.html +114 -0
- data/doc/rdoc/core/files/lib/core/facets/exception/detail_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/exception/suppress_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/exception_rb.html +97 -0
- data/doc/rdoc/core/files/lib/core/facets/file/null_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/file/read_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/file/rewrite_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/file/rootname_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/file/write_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/file_rb.html +99 -0
- data/doc/rdoc/core/files/lib/core/facets/filetest/root_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/filetest_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/float/round_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/float_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/functor_rb.html +151 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/alias_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/argumentize_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/at_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/autonew_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/collate_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/delete_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/diff_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/except_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/insert_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/inverse_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/join_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/keys_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/mash_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/merge_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/op_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/recursive_merge_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/recursively_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/rekey_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/select_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/slice_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/stringify_keys_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/swap_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/symbolize_keys_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/to_h_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/to_proc_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/to_struct_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/traverse_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/update_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/weave_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/zipnew_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/hash_rb.html +117 -0
- data/doc/rdoc/core/files/lib/core/facets/integer/even_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/integer/factorial_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/integer/multiple_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/integer/odd_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/integer/of_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/integer/ordinal_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/integer_rb.html +101 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/__callee___rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/__class___rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/__dir___rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/__get___rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/__method___rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/__set___rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/as_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/ask_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/attr_singleton_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/complete_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/constant_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/d_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/deep_copy_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/demo_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/ergo_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/here_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/in_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_assign_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_class_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_exec_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_send_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_variables_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/load_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/maybe_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/not_nil_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/object_class_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/object_hexid_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/object_send_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/p_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/populate_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/resc_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/respond_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/returning_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/silence_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/singleton_class_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/suppress_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/tap_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/try_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/val_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/with_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel_rb.html +124 -0
- data/doc/rdoc/core/files/lib/core/facets/lazy_rb.html +120 -0
- data/doc/rdoc/core/files/lib/core/facets/matchdata/match_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/matchdata/matchset_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/matchdata_rb.html +97 -0
- data/doc/rdoc/core/files/lib/core/facets/metaid_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/abstract_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/alias_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/ancestor_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/basename_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/can_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/class_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/clone_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/conflict_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/include_function_module_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/instance_methods_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/is_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/modspace_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/module_load_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/nesting_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/op_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/pathize_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/prepend_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/revise_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/spacename_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module_rb.html +115 -0
- data/doc/rdoc/core/files/lib/core/facets/nilclass/to_f_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/nilclass_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/numeric/approx_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/numeric/distance_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/numeric/round_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/numeric_rb.html +97 -0
- data/doc/rdoc/core/files/lib/core/facets/proc/bind_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/proc/compose_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/proc/curry_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/proc/partial_rb.html +125 -0
- data/doc/rdoc/core/files/lib/core/facets/proc/to_method_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/proc/update_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/proc_rb.html +102 -0
- data/doc/rdoc/core/files/lib/core/facets/range/combine_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/range/overlap_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/range/to_r_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/range/umbrella_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/range/within_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/range_rb.html +100 -0
- data/doc/rdoc/core/files/lib/core/facets/regexp/arity_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/regexp/to_re_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/regexp_rb.html +97 -0
- data/doc/rdoc/core/files/lib/core/facets/string/align_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/bracket_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/bytes_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/camelcase_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/capitalized_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/chars_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/chomp_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/cleave_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/divide_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/each_char_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/end_with_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/string/fold_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/interpolate_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/line_wrap_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/lines_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/mscan_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/natcmp_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/nchar_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/range_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/rewrite_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/shatter_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/snakecase_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/splice_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/start_with_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/subtract_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/tab_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/titlecase_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/to_re_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/to_time_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/string/words_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/string/xor_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string_rb.html +124 -0
- data/doc/rdoc/core/files/lib/core/facets/symbol/chomp_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/symbol/generate_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/symbol/not_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/symbol/succ_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/symbol/to_proc_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/symbol_rb.html +99 -0
- data/doc/rdoc/core/files/lib/core/facets/time/ago_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/time/change_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/time/elapse_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/time/hence_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/time/round_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/time/set_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/time/stamp_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/time/to_date_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/time/to_time_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/time/trunc_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/time_rb.html +106 -0
- data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod/arguments_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod/name_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod_rb.html +97 -0
- data/doc/rdoc/core/fr_class_index.html +83 -0
- data/doc/rdoc/core/fr_file_index.html +536 -0
- data/doc/rdoc/core/fr_method_index.html +838 -0
- data/doc/rdoc/core/index.html +26 -0
- data/doc/{html/api → rdoc}/core/rdoc-style.css +0 -0
- data/doc/rdoc/lore/classes/Array.html +178 -0
- data/doc/rdoc/lore/classes/BasicObject.html +259 -0
- data/doc/rdoc/lore/classes/CGI.html +187 -0
- data/doc/rdoc/lore/classes/Config.html +137 -0
- data/doc/rdoc/lore/classes/Continuation.html +115 -0
- data/doc/rdoc/lore/classes/Date.html +254 -0
- data/doc/rdoc/lore/classes/File.html +130 -0
- data/doc/rdoc/lore/classes/FileUtils.html +780 -0
- data/doc/rdoc/lore/classes/GetoptLong.html +120 -0
- data/doc/rdoc/lore/classes/GetoptLong/DSL.html +210 -0
- data/doc/rdoc/lore/classes/Logger.html +231 -0
- data/doc/rdoc/lore/classes/Logger/Ansicolor.html +279 -0
- data/doc/rdoc/lore/classes/Logger/LogDevice.html +123 -0
- data/doc/rdoc/lore/classes/NilClass.html +121 -0
- data/doc/rdoc/lore/classes/OpenStruct.html +413 -0
- data/doc/rdoc/lore/classes/Pathname.html +269 -0
- data/doc/rdoc/lore/classes/Set.html +119 -0
- data/doc/rdoc/lore/classes/Shellwords.html +113 -0
- data/doc/rdoc/lore/classes/String.html +121 -0
- data/doc/rdoc/lore/classes/URI.html +456 -0
- data/doc/rdoc/lore/classes/URI/Hash.html +107 -0
- data/doc/rdoc/lore/classes/URI/Kernel.html +124 -0
- data/doc/rdoc/lore/created.rid +1 -0
- data/doc/rdoc/lore/files/README.html +299 -0
- data/doc/rdoc/lore/files/README_lore.html +155 -0
- data/doc/rdoc/lore/files/lib/lore/facets/basicobject_rb.html +190 -0
- data/doc/rdoc/lore/files/lib/lore/facets/cgi_rb.html +111 -0
- data/doc/rdoc/lore/files/lib/lore/facets/continuation_rb.html +147 -0
- data/doc/rdoc/lore/files/lib/lore/facets/date_rb.html +122 -0
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/head_rb.html +96 -0
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/safe_ln_rb.html +96 -0
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/slice_rb.html +96 -0
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/tail_rb.html +96 -0
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/wc_rb.html +96 -0
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/whereis_rb.html +96 -0
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/which_rb.html +96 -0
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils_rb.html +131 -0
- data/doc/rdoc/lore/files/lib/lore/facets/getoptlong_rb.html +135 -0
- data/doc/rdoc/lore/files/lib/lore/facets/logger_rb.html +142 -0
- data/doc/rdoc/lore/files/lib/lore/facets/ostruct_rb.html +135 -0
- data/doc/rdoc/lore/files/lib/lore/facets/pathname_rb.html +159 -0
- data/doc/rdoc/lore/files/lib/lore/facets/rbconfig_rb.html +124 -0
- data/doc/rdoc/lore/files/lib/lore/facets/set_rb.html +96 -0
- data/doc/rdoc/lore/files/lib/lore/facets/shellwords_rb.html +124 -0
- data/doc/rdoc/lore/files/lib/lore/facets/uri_rb.html +125 -0
- data/doc/rdoc/lore/files/lib/lore/facets/yaml_rb.html +145 -0
- data/doc/rdoc/lore/fr_class_index.html +68 -0
- data/doc/rdoc/lore/fr_file_index.html +76 -0
- data/doc/rdoc/lore/fr_method_index.html +140 -0
- data/doc/rdoc/lore/index.html +26 -0
- data/doc/{html/api/more → rdoc/lore}/rdoc-style.css +0 -0
- data/doc/rdoc/more/classes/ANSICode.html +495 -0
- data/doc/rdoc/more/classes/Advisable.html +271 -0
- data/doc/rdoc/more/classes/Advisable/Method.html +225 -0
- data/doc/rdoc/more/classes/Archive.html +89 -0
- data/doc/rdoc/more/classes/Archive/Tar.html +89 -0
- data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +471 -0
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +357 -0
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +218 -0
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +285 -0
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +380 -0
- data/doc/rdoc/more/classes/Association.html +307 -0
- data/doc/rdoc/more/classes/Association/Kernel.html +134 -0
- data/doc/rdoc/more/classes/Autoarray.html +168 -0
- data/doc/rdoc/more/classes/BBCode.html +534 -0
- data/doc/rdoc/more/classes/BaseX.html +196 -0
- data/doc/rdoc/more/classes/BiCrypt.html +543 -0
- data/doc/rdoc/more/classes/BigDuration.html +325 -0
- data/doc/rdoc/more/classes/BinReadable.html +487 -0
- data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +225 -0
- data/doc/rdoc/more/classes/Buildable.html +154 -0
- data/doc/rdoc/more/classes/BuildingBlock.html +362 -0
- data/doc/rdoc/more/classes/CLI/Arguments.html +490 -0
- data/doc/rdoc/more/classes/CLI/Command.html +317 -0
- data/doc/rdoc/more/classes/CLI/Command/UniversalOptions.html +91 -0
- data/doc/rdoc/more/classes/CLI/NoCommandError.html +113 -0
- data/doc/rdoc/more/classes/CLI/NoOptionError.html +120 -0
- data/doc/rdoc/more/classes/CacheDecorator.html +224 -0
- data/doc/rdoc/more/classes/Capsule.html +410 -0
- data/doc/rdoc/more/classes/Capsule/MissingFile.html +96 -0
- data/doc/rdoc/more/classes/Chain.html +208 -0
- data/doc/rdoc/more/classes/Cloneable.html +131 -0
- data/doc/rdoc/more/classes/ConsoleUtils.html +240 -0
- data/doc/rdoc/more/classes/Coroutine.html +286 -0
- data/doc/rdoc/more/classes/Crypt.html +277 -0
- data/doc/rdoc/more/classes/CssFilter.html +473 -0
- data/doc/rdoc/more/classes/CssTree.html +151 -0
- data/doc/rdoc/more/classes/Dictionary.html +1250 -0
- data/doc/rdoc/more/classes/DictionaryMatcher.html +339 -0
- data/doc/rdoc/more/classes/DictionaryMatcher/MatchData.html +117 -0
- data/doc/rdoc/more/classes/Downloader.html +514 -0
- data/doc/rdoc/more/classes/Duration.html +769 -0
- data/doc/rdoc/more/classes/Enumerable.html +340 -0
- data/doc/rdoc/more/classes/Enumerable/Elementor.html +172 -0
- data/doc/rdoc/more/classes/Enumerable/Enumerator.html +118 -0
- data/doc/rdoc/more/classes/EnumerablePass.html +216 -0
- data/doc/rdoc/more/classes/Equatable.html +190 -0
- data/doc/rdoc/more/classes/EventHook.html +176 -0
- data/doc/rdoc/more/classes/Expirable.html +197 -0
- data/doc/rdoc/more/classes/FileList.html +957 -0
- data/doc/rdoc/more/classes/FileShell.html +745 -0
- data/doc/rdoc/more/classes/Fileable.html +180 -0
- data/doc/rdoc/more/classes/Fileable/DSL.html +305 -0
- data/doc/rdoc/more/classes/Hash.html +173 -0
- data/doc/rdoc/more/classes/Hash2Xml.html +107 -0
- data/doc/rdoc/more/classes/HtmlFilter.html +331 -0
- data/doc/rdoc/more/classes/IORedirect.html +222 -0
- data/doc/rdoc/more/classes/Indexable.html +606 -0
- data/doc/rdoc/more/classes/InfinityClass.html +450 -0
- data/doc/rdoc/more/classes/InfinityClass/Numeric.html +197 -0
- data/doc/rdoc/more/classes/Ini.html +449 -0
- data/doc/rdoc/more/classes/Instantiable.html +142 -0
- data/doc/rdoc/more/classes/Instantise.html +162 -0
- data/doc/rdoc/more/classes/Interval.html +879 -0
- data/doc/rdoc/more/classes/It.html +187 -0
- data/doc/rdoc/more/classes/Kernel.html +641 -0
- data/doc/rdoc/more/classes/LRUCache.html +323 -0
- data/doc/rdoc/more/classes/LRUCache/Item.html +114 -0
- data/doc/rdoc/more/classes/LRUCache/Sentinel.html +100 -0
- data/doc/rdoc/more/classes/LinkedList.html +434 -0
- data/doc/rdoc/more/classes/LinkedList/Node.html +151 -0
- data/doc/rdoc/more/classes/Module.html +1405 -0
- data/doc/rdoc/more/classes/Multiton.html +207 -0
- data/doc/rdoc/more/classes/Multiton/Inclusive.html +93 -0
- data/doc/rdoc/more/classes/Multiton/MetaMethods.html +223 -0
- data/doc/rdoc/more/classes/NackClass.html +98 -0
- data/doc/{html/api → rdoc}/more/classes/Net.html +0 -0
- data/doc/rdoc/more/classes/Net/SMTP.html +203 -0
- data/doc/rdoc/more/classes/NullClass.html +204 -0
- data/doc/rdoc/more/classes/ObjectReflection.html +174 -0
- data/doc/rdoc/more/classes/OpEsc.html +138 -0
- data/doc/rdoc/more/classes/OpenCascade.html +144 -0
- data/doc/rdoc/more/classes/OpenCollection.html +140 -0
- data/doc/rdoc/more/classes/OpenHash.html +159 -0
- data/doc/rdoc/more/classes/OpenObject.html +610 -0
- data/doc/rdoc/more/classes/PQueue.html +609 -0
- data/doc/rdoc/more/classes/Paramix.html +203 -0
- data/doc/rdoc/more/classes/Paramix/Delegator.html +217 -0
- data/doc/rdoc/more/classes/PathList.html +161 -0
- data/doc/rdoc/more/classes/PathList/Finder.html +137 -0
- data/doc/rdoc/more/classes/Platform.html +446 -0
- data/doc/rdoc/more/classes/Pool.html +206 -0
- data/doc/rdoc/more/classes/Proc.html +138 -0
- data/doc/rdoc/more/classes/ProgressBar.html +358 -0
- data/doc/rdoc/more/classes/Prototype.html +245 -0
- data/doc/rdoc/more/classes/RWDelegator.html +196 -0
- data/doc/rdoc/more/classes/Random.html +164 -0
- data/doc/rdoc/more/classes/Random/Array.html +341 -0
- data/doc/rdoc/more/classes/Random/Hash.html +380 -0
- data/doc/rdoc/more/classes/Random/Object.html +121 -0
- data/doc/rdoc/more/classes/Random/String.html +301 -0
- data/doc/rdoc/more/classes/Random/String/Self.html +155 -0
- data/doc/rdoc/more/classes/Recorder.html +205 -0
- data/doc/rdoc/more/classes/RecursiveDependency.html +92 -0
- data/doc/rdoc/more/classes/Reference.html +198 -0
- data/doc/rdoc/more/classes/Registerable.html +159 -0
- data/doc/rdoc/more/classes/Semaphore.html +262 -0
- data/doc/rdoc/more/classes/Settings.html +290 -0
- data/doc/rdoc/more/classes/Settings/Setting.html +225 -0
- data/doc/rdoc/more/classes/Settings/SettingCollection.html +146 -0
- data/doc/rdoc/more/classes/SimpleStringIO.html +137 -0
- data/doc/rdoc/more/classes/Snapshot.html +196 -0
- data/doc/rdoc/more/classes/Snapshot/ValueHolder.html +165 -0
- data/doc/rdoc/more/classes/Stackable.html +264 -0
- data/doc/rdoc/more/classes/String/Style.html +804 -0
- data/doc/rdoc/more/classes/Struct.html +132 -0
- data/doc/rdoc/more/classes/SyncArray.html +129 -0
- data/doc/rdoc/more/classes/SyncHash.html +160 -0
- data/doc/rdoc/more/classes/SyncHash/Delegator.html +213 -0
- data/doc/rdoc/more/classes/SyncHash/Inheritor.html +213 -0
- data/doc/rdoc/more/classes/System.html +1119 -0
- data/doc/rdoc/more/classes/Timer.html +466 -0
- data/doc/rdoc/more/classes/Timer/Dummy.html +141 -0
- data/doc/rdoc/more/classes/TracePoint.html +455 -0
- data/doc/rdoc/more/classes/Tuple.html +902 -0
- data/doc/rdoc/more/classes/TypeCast.html +158 -0
- data/doc/rdoc/more/classes/TypeCast/Class.html +129 -0
- data/doc/rdoc/more/classes/TypeCast/Object.html +119 -0
- data/doc/rdoc/more/classes/TypeCastException.html +96 -0
- data/doc/rdoc/more/classes/Uninheritable.html +122 -0
- data/doc/rdoc/more/classes/UploadUtils.html +499 -0
- data/doc/rdoc/more/classes/VersionNumber.html +384 -0
- data/doc/rdoc/more/classes/Weekdays.html +220 -0
- data/doc/rdoc/more/classes/XOXO.html +191 -0
- data/doc/rdoc/more/classes/ZipUtils.html +437 -0
- data/doc/rdoc/more/classes/ZipUtils/DryRun.html +225 -0
- data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +225 -0
- data/doc/rdoc/more/classes/ZipUtils/Verbose.html +225 -0
- data/doc/rdoc/more/created.rid +1 -0
- data/doc/rdoc/more/files/README.html +299 -0
- data/doc/rdoc/more/files/README_more.html +141 -0
- data/doc/rdoc/more/files/lib/more/facets/1stclassmethod_rb.html +181 -0
- data/doc/rdoc/more/files/lib/more/facets/advisable_rb.html +124 -0
- data/doc/rdoc/more/files/lib/more/facets/annotations_rb.html +180 -0
- data/doc/rdoc/more/files/lib/more/facets/ansicode_rb.html +200 -0
- data/doc/rdoc/more/files/lib/more/facets/arguments_rb.html +142 -0
- data/doc/rdoc/more/files/lib/more/facets/association_rb.html +158 -0
- data/doc/rdoc/more/files/lib/more/facets/attr_rb.html +92 -0
- data/doc/rdoc/more/files/lib/more/facets/autoarray_rb.html +125 -0
- data/doc/rdoc/more/files/lib/more/facets/autoreload_rb.html +134 -0
- data/doc/rdoc/more/files/lib/more/facets/basex_rb.html +92 -0
- data/doc/rdoc/more/files/lib/more/facets/bbcode_rb.html +138 -0
- data/doc/rdoc/more/files/lib/more/facets/bicrypt_rb.html +124 -0
- data/doc/rdoc/more/files/lib/more/facets/binreadable_rb.html +141 -0
- data/doc/rdoc/more/files/lib/more/facets/buildable_rb.html +230 -0
- data/doc/rdoc/more/files/lib/more/facets/bytes_rb.html +169 -0
- data/doc/rdoc/more/files/lib/more/facets/cachedecorator_rb.html +178 -0
- data/doc/rdoc/more/files/lib/more/facets/capsule_rb.html +143 -0
- data/doc/rdoc/more/files/lib/more/facets/cattr_rb.html +125 -0
- data/doc/rdoc/more/files/lib/more/facets/chain_rb.html +114 -0
- data/doc/rdoc/more/files/lib/more/facets/class_extension_rb.html +155 -0
- data/doc/rdoc/more/files/lib/more/facets/classmethods_rb.html +213 -0
- data/doc/rdoc/more/files/lib/more/facets/cloneable_rb.html +134 -0
- data/doc/rdoc/more/files/lib/more/facets/command_rb.html +170 -0
- data/doc/rdoc/more/files/lib/more/facets/consoleutils_rb.html +109 -0
- data/doc/rdoc/more/files/lib/more/facets/coroutine_rb.html +163 -0
- data/doc/rdoc/more/files/lib/more/facets/crypt_rb.html +141 -0
- data/doc/rdoc/more/files/lib/more/facets/cssfilter_rb.html +121 -0
- data/doc/rdoc/more/files/lib/more/facets/daemonize_rb.html +118 -0
- data/doc/rdoc/more/files/lib/more/facets/dependency_rb.html +158 -0
- data/doc/rdoc/more/files/lib/more/facets/dictionary_rb.html +201 -0
- data/doc/rdoc/more/files/lib/more/facets/dictionarymatcher_rb.html +92 -0
- data/doc/rdoc/more/files/lib/more/facets/downloader_rb.html +137 -0
- data/doc/rdoc/more/files/lib/more/facets/duplicable_rb.html +100 -0
- data/doc/rdoc/more/files/lib/more/facets/duration_rb.html +132 -0
- data/doc/rdoc/more/files/lib/more/facets/elementor_rb.html +148 -0
- data/doc/rdoc/more/files/lib/more/facets/elementwise_rb.html +96 -0
- data/doc/rdoc/more/files/lib/more/facets/enumerablepass_rb.html +153 -0
- data/doc/rdoc/more/files/lib/more/facets/equatable_rb.html +146 -0
- data/doc/rdoc/more/files/lib/more/facets/eventhook_rb.html +141 -0
- data/doc/rdoc/more/files/lib/more/facets/expirable_rb.html +116 -0
- data/doc/rdoc/more/files/lib/more/facets/fileable_rb.html +138 -0
- data/doc/rdoc/more/files/lib/more/facets/filelist_rb.html +165 -0
- data/doc/rdoc/more/files/lib/more/facets/fileshell_rb.html +124 -0
- data/doc/rdoc/more/files/lib/more/facets/heap_rb.html +132 -0
- data/doc/rdoc/more/files/lib/more/facets/htmlfilter_rb.html +153 -0
- data/doc/rdoc/more/files/lib/more/facets/indexable_rb.html +113 -0
- data/doc/rdoc/more/files/lib/more/facets/infinity_rb.html +153 -0
- data/doc/rdoc/more/files/lib/more/facets/inheritor_rb.html +149 -0
- data/doc/rdoc/more/files/lib/more/facets/ini_rb.html +105 -0
- data/doc/rdoc/more/files/lib/more/facets/instantiable_rb.html +119 -0
- data/doc/rdoc/more/files/lib/more/facets/instantise_rb.html +145 -0
- data/doc/rdoc/more/files/lib/more/facets/interval_rb.html +163 -0
- data/doc/rdoc/more/files/lib/more/facets/ioredirect_rb.html +133 -0
- data/doc/rdoc/more/files/lib/more/facets/iteration_rb.html +94 -0
- data/doc/rdoc/more/files/lib/more/facets/kernel/meta_rb.html +96 -0
- data/doc/rdoc/more/files/lib/more/facets/linkedlist_rb.html +159 -0
- data/doc/rdoc/more/files/lib/more/facets/lrucache_rb.html +129 -0
- data/doc/rdoc/more/files/lib/more/facets/main_rb.html +126 -0
- data/doc/rdoc/more/files/lib/more/facets/memoize_rb.html +163 -0
- data/doc/rdoc/more/files/lib/more/facets/methodspace_rb.html +138 -0
- data/doc/rdoc/more/files/lib/more/facets/minitar_rb.html +203 -0
- data/doc/rdoc/more/files/lib/more/facets/multipliers_rb.html +148 -0
- data/doc/rdoc/more/files/lib/more/facets/multiton_rb.html +187 -0
- data/doc/rdoc/more/files/lib/more/facets/nackclass_rb.html +120 -0
- data/doc/rdoc/more/files/lib/more/facets/net/smtp_tls_rb.html +143 -0
- data/doc/rdoc/more/files/lib/more/facets/nilstatus_rb.html +92 -0
- data/doc/rdoc/more/files/lib/more/facets/nullclass_rb.html +122 -0
- data/doc/rdoc/more/files/lib/more/facets/opencascade_rb.html +156 -0
- data/doc/rdoc/more/files/lib/more/facets/opencollection_rb.html +123 -0
- data/doc/rdoc/more/files/lib/more/facets/openhash_rb.html +107 -0
- data/doc/rdoc/more/files/lib/more/facets/openobject_rb.html +169 -0
- data/doc/rdoc/more/files/lib/more/facets/opesc_rb.html +94 -0
- data/doc/rdoc/more/files/lib/more/facets/orderedhash_rb.html +143 -0
- data/doc/rdoc/more/files/lib/more/facets/overload_rb.html +119 -0
- data/doc/rdoc/more/files/lib/more/facets/paramix_rb.html +135 -0
- data/doc/rdoc/more/files/lib/more/facets/pathlist_rb.html +133 -0
- data/doc/rdoc/more/files/lib/more/facets/platform_rb.html +103 -0
- data/doc/rdoc/more/files/lib/more/facets/pool_rb.html +131 -0
- data/doc/rdoc/more/files/lib/more/facets/pqueue_rb.html +128 -0
- data/doc/rdoc/more/files/lib/more/facets/progressbar_rb.html +126 -0
- data/doc/rdoc/more/files/lib/more/facets/prototype_rb.html +102 -0
- data/doc/rdoc/more/files/lib/more/facets/random_rb.html +149 -0
- data/doc/rdoc/more/files/lib/more/facets/rbsystem_rb.html +144 -0
- data/doc/rdoc/more/files/lib/more/facets/recorder_rb.html +154 -0
- data/doc/rdoc/more/files/lib/more/facets/reference_rb.html +130 -0
- data/doc/rdoc/more/files/lib/more/facets/reflection_rb.html +135 -0
- data/doc/rdoc/more/files/lib/more/facets/registerable_rb.html +98 -0
- data/doc/rdoc/more/files/lib/more/facets/rwdelegator_rb.html +122 -0
- data/doc/rdoc/more/files/lib/more/facets/semaphore_rb.html +120 -0
- data/doc/rdoc/more/files/lib/more/facets/settings_rb.html +141 -0
- data/doc/rdoc/more/files/lib/more/facets/snapshot_rb.html +177 -0
- data/doc/rdoc/more/files/lib/more/facets/stackable_rb.html +121 -0
- data/doc/rdoc/more/files/lib/more/facets/style_rb.html +96 -0
- data/doc/rdoc/more/files/lib/more/facets/succ_rb.html +92 -0
- data/doc/rdoc/more/files/lib/more/facets/syncarray_rb.html +125 -0
- data/doc/rdoc/more/files/lib/more/facets/synchash_rb.html +138 -0
- data/doc/rdoc/more/files/lib/more/facets/thread_rb.html +132 -0
- data/doc/rdoc/more/files/lib/more/facets/timer_rb.html +174 -0
- data/doc/rdoc/more/files/lib/more/facets/times_rb.html +163 -0
- data/doc/rdoc/more/files/lib/more/facets/tracepoint_rb.html +167 -0
- data/doc/rdoc/more/files/lib/more/facets/tuple_rb.html +160 -0
- data/doc/rdoc/more/files/lib/more/facets/typecast_rb.html +214 -0
- data/doc/rdoc/more/files/lib/more/facets/uninheritable_rb.html +129 -0
- data/doc/rdoc/more/files/lib/more/facets/uploadutils_rb.html +176 -0
- data/doc/rdoc/more/files/lib/more/facets/version_rb.html +133 -0
- data/doc/rdoc/more/files/lib/more/facets/xmlhash_rb.html +97 -0
- data/doc/rdoc/more/files/lib/more/facets/xoxo_rb.html +136 -0
- data/doc/rdoc/more/files/lib/more/facets/ziputils_rb.html +133 -0
- data/doc/rdoc/more/fr_class_index.html +183 -0
- data/doc/rdoc/more/fr_file_index.html +158 -0
- data/doc/rdoc/more/fr_method_index.html +1057 -0
- data/doc/rdoc/more/index.html +26 -0
- data/doc/rdoc/more/rdoc-style.css +175 -0
- data/doc/ri/ANSICode/cdesc-ANSICode.yaml +60 -0
- data/doc/ri/ANSICode/clear_line-i.yaml +13 -0
- data/doc/ri/ANSICode/clear_screen-i.yaml +13 -0
- data/doc/ri/ANSICode/clr-i.yaml +12 -0
- data/doc/ri/ANSICode/cls-i.yaml +12 -0
- data/doc/ri/ANSICode/colors-i.yaml +10 -0
- data/doc/ri/ANSICode/define_ansicolor_method-c.yaml +12 -0
- data/doc/ri/ANSICode/display-i.yaml +12 -0
- data/doc/ri/ANSICode/down-i.yaml +12 -0
- data/doc/ri/ANSICode/left-i.yaml +12 -0
- data/doc/ri/ANSICode/move-i.yaml +12 -0
- data/doc/ri/ANSICode/restore-i.yaml +12 -0
- data/doc/ri/ANSICode/right-i.yaml +12 -0
- data/doc/ri/ANSICode/save-i.yaml +12 -0
- data/doc/ri/ANSICode/uncolored-i.yaml +10 -0
- data/doc/ri/ANSICode/up-i.yaml +12 -0
- data/doc/ri/Advisable/Method/advice_after%3d-i.yaml +10 -0
- data/doc/ri/Advisable/Method/advice_around%3d-i.yaml +10 -0
- data/doc/ri/Advisable/Method/advice_before%3d-i.yaml +10 -0
- data/doc/ri/Advisable/Method/advised%3f-i.yaml +10 -0
- data/doc/ri/Advisable/Method/call_with_advice-i.yaml +12 -0
- data/doc/ri/Advisable/Method/cdesc-Method.yaml +43 -0
- data/doc/ri/Advisable/Method/lambda_target-i.yaml +12 -0
- data/doc/ri/Advisable/advice_after-i.yaml +10 -0
- data/doc/ri/Advisable/advice_around-i.yaml +10 -0
- data/doc/ri/Advisable/advice_before-i.yaml +10 -0
- data/doc/ri/Advisable/advise-i.yaml +12 -0
- data/doc/ri/Advisable/after-i.yaml +10 -0
- data/doc/ri/Advisable/around-i.yaml +10 -0
- data/doc/ri/Advisable/before-i.yaml +10 -0
- data/doc/ri/Advisable/cdesc-Advisable.yaml +35 -0
- data/doc/ri/Advisable/method_added-i.yaml +16 -0
- data/doc/ri/Archive/Tar/Minitar/BlockRequired/cdesc-BlockRequired.yaml +17 -0
- data/doc/ri/Archive/Tar/Minitar/ClosedStream/cdesc-ClosedStream.yaml +17 -0
- data/doc/ri/Archive/Tar/Minitar/FileNameTooLong/cdesc-FileNameTooLong.yaml +17 -0
- data/doc/ri/Archive/Tar/Minitar/Input/cdesc-Input.yaml +30 -0
- data/doc/ri/Archive/Tar/Minitar/Input/close-i.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Input/each-i.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Input/extract_entry-i.yaml +43 -0
- data/doc/ri/Archive/Tar/Minitar/Input/fsync_dir-i.yaml +10 -0
- data/doc/ri/Archive/Tar/Minitar/Input/new-c.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Input/open-c.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Input/tar-i.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/NonSeekableStream/cdesc-NonSeekableStream.yaml +17 -0
- data/doc/ri/Archive/Tar/Minitar/Output/cdesc-Output.yaml +23 -0
- data/doc/ri/Archive/Tar/Minitar/Output/close-i.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Output/new-c.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Output/open-c.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Output/tar-i.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Reader/EntryStream/cdesc-EntryStream.yaml +17 -0
- data/doc/ri/Archive/Tar/Minitar/Reader/InvalidEntryStream/cdesc-InvalidEntryStream.yaml +17 -0
- data/doc/ri/Archive/Tar/Minitar/Reader/cdesc-Reader.yaml +27 -0
- data/doc/ri/Archive/Tar/Minitar/Reader/close-i.yaml +10 -0
- data/doc/ri/Archive/Tar/Minitar/Reader/each-i.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Reader/each_entry-i.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Reader/new-c.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Reader/open-c.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Reader/rewind-i.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/UnexpectedEOF/cdesc-UnexpectedEOF.yaml +17 -0
- data/doc/ri/Archive/Tar/Minitar/Writer/BoundedStream/FileOverflow/cdesc-FileOverflow.yaml +17 -0
- data/doc/ri/Archive/Tar/Minitar/Writer/BoundedStream/cdesc-BoundedStream.yaml +17 -0
- data/doc/ri/Archive/Tar/Minitar/Writer/RestrictedStream/cdesc-RestrictedStream.yaml +17 -0
- data/doc/ri/Archive/Tar/Minitar/Writer/add_file-i.yaml +34 -0
- data/doc/ri/Archive/Tar/Minitar/Writer/add_file_simple-i.yaml +33 -0
- data/doc/ri/Archive/Tar/Minitar/Writer/cdesc-Writer.yaml +31 -0
- data/doc/ri/Archive/Tar/Minitar/Writer/close-i.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Writer/flush-i.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Writer/mkdir-i.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Writer/new-c.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Writer/open-c.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/Writer/split_name-i.yaml +10 -0
- data/doc/ri/Archive/Tar/Minitar/cdesc-Minitar.yaml +68 -0
- data/doc/ri/Archive/Tar/Minitar/dir%3f-c.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/open-c.yaml +12 -0
- data/doc/ri/Archive/Tar/Minitar/pack-c.yaml +14 -0
- data/doc/ri/Archive/Tar/Minitar/pack_file-c.yaml +75 -0
- data/doc/ri/Archive/Tar/Minitar/unpack-c.yaml +12 -0
- data/doc/ri/Archive/Tar/PosixHeader/cdesc-PosixHeader.yaml +53 -0
- data/doc/ri/Archive/Tar/cdesc-Tar.yaml +15 -0
- data/doc/ri/Archive/cdesc-Archive.yaml +16 -0
- data/doc/ri/Array/cdesc-Array.yaml +17 -0
- data/doc/ri/As/cdesc-As.yaml +19 -0
- data/doc/ri/Association/%3c%3d%3e-i.yaml +10 -0
- data/doc/ri/Association/%5b%5d-c.yaml +10 -0
- data/doc/ri/Association/Kernel/%3e%3e-i.yaml +12 -0
- data/doc/ri/Association/Kernel/associations-i.yaml +10 -0
- data/doc/ri/Association/Kernel/cdesc-Kernel.yaml +20 -0
- data/doc/ri/Association/cdesc-Association.yaml +67 -0
- data/doc/ri/Association/inspect-i.yaml +10 -0
- data/doc/ri/Association/invert%21-i.yaml +10 -0
- data/doc/ri/Association/new-c.yaml +10 -0
- data/doc/ri/Association/to_ary-i.yaml +10 -0
- data/doc/ri/Association/to_s-i.yaml +10 -0
- data/doc/ri/Autoarray/%5b%5d%3d-i.yaml +10 -0
- data/doc/ri/Autoarray/%5b%5d-i.yaml +10 -0
- data/doc/ri/Autoarray/cdesc-Autoarray.yaml +26 -0
- data/doc/ri/Autoarray/new-c.yaml +10 -0
- data/doc/ri/BBCode/ansi-c.yaml +12 -0
- data/doc/ri/BBCode/ansi_to_bbcode-c.yaml +12 -0
- data/doc/ri/BBCode/ansi_to_html-c.yaml +12 -0
- data/doc/ri/BBCode/bbcode_to_ansi-c.yaml +12 -0
- data/doc/ri/BBCode/bbcode_to_html-c.yaml +12 -0
- data/doc/ri/BBCode/cdesc-BBCode.yaml +59 -0
- data/doc/ri/BBCode/html_to_ansi-c.yaml +12 -0
- data/doc/ri/BBCode/html_to_bbcode-c.yaml +12 -0
- data/doc/ri/BBCode/strip_bbcode-c.yaml +12 -0
- data/doc/ri/BaseX/cdesc-BaseX.yaml +27 -0
- data/doc/ri/BaseX/convert_base-i.yaml +10 -0
- data/doc/ri/BaseX/decode-i.yaml +10 -0
- data/doc/ri/BaseX/encode-i.yaml +10 -0
- data/doc/ri/BaseX/new-c.yaml +10 -0
- data/doc/ri/BasicObject/__self__-i.yaml +12 -0
- data/doc/ri/BasicObject/cdesc-BasicObject.yaml +53 -0
- data/doc/ri/BasicObject/hide-c.yaml +12 -0
- data/doc/ri/BasicObject/object_self-i.yaml +13 -0
- data/doc/ri/BiCrypt/block_size-i.yaml +10 -0
- data/doc/ri/BiCrypt/carefully_open_file-i.yaml +10 -0
- data/doc/ri/BiCrypt/cdesc-BiCrypt.yaml +53 -0
- data/doc/ri/BiCrypt/decrypt_block-i.yaml +10 -0
- data/doc/ri/BiCrypt/decrypt_file-i.yaml +10 -0
- data/doc/ri/BiCrypt/decrypt_pair-i.yaml +10 -0
- data/doc/ri/BiCrypt/decrypt_stream-i.yaml +10 -0
- data/doc/ri/BiCrypt/decrypt_string-i.yaml +10 -0
- data/doc/ri/BiCrypt/encrypt_block-i.yaml +10 -0
- data/doc/ri/BiCrypt/encrypt_file-i.yaml +10 -0
- data/doc/ri/BiCrypt/encrypt_pair-i.yaml +10 -0
- data/doc/ri/BiCrypt/encrypt_stream-i.yaml +10 -0
- data/doc/ri/BiCrypt/encrypt_string-i.yaml +10 -0
- data/doc/ri/BiCrypt/f-i.yaml +10 -0
- data/doc/ri/BiCrypt/generate_initialization_vector-i.yaml +12 -0
- data/doc/ri/BiCrypt/new-c.yaml +10 -0
- data/doc/ri/BiCrypt/precalculate_S_table-i.yaml +10 -0
- data/doc/ri/BigDuration/cdesc-BigDuration.yaml +41 -0
- data/doc/ri/BigDuration/each-i.yaml +12 -0
- data/doc/ri/BigDuration/months%3d-i.yaml +12 -0
- data/doc/ri/BigDuration/new-c.yaml +12 -0
- data/doc/ri/BigDuration/seconds-i.yaml +12 -0
- data/doc/ri/BigDuration/strftime-i.yaml +16 -0
- data/doc/ri/BigDuration/years%3d-i.yaml +12 -0
- data/doc/ri/BinReadable/ByteOrder/big%3f-i.yaml +12 -0
- data/doc/ri/BinReadable/ByteOrder/big_endian%3f-i.yaml +13 -0
- data/doc/ri/BinReadable/ByteOrder/byte_order-i.yaml +13 -0
- data/doc/ri/BinReadable/ByteOrder/byteorder-i.yaml +12 -0
- data/doc/ri/BinReadable/ByteOrder/cdesc-ByteOrder.yaml +39 -0
- data/doc/ri/BinReadable/ByteOrder/little%3f-i.yaml +12 -0
- data/doc/ri/BinReadable/ByteOrder/little_endian%3f-i.yaml +11 -0
- data/doc/ri/BinReadable/ByteOrder/network%3f-i.yaml +12 -0
- data/doc/ri/BinReadable/byte_order%3d-i.yaml +11 -0
- data/doc/ri/BinReadable/byte_order-i.yaml +13 -0
- data/doc/ri/BinReadable/byteorder%3d-i.yaml +12 -0
- data/doc/ri/BinReadable/byteorder-i.yaml +12 -0
- data/doc/ri/BinReadable/cdesc-BinReadable.yaml +65 -0
- data/doc/ri/BinReadable/read_cstring-i.yaml +10 -0
- data/doc/ri/BinReadable/read_int16_big-i.yaml +10 -0
- data/doc/ri/BinReadable/read_int16_little-i.yaml +10 -0
- data/doc/ri/BinReadable/read_int16_native-i.yaml +13 -0
- data/doc/ri/BinReadable/read_int32_big-i.yaml +10 -0
- data/doc/ri/BinReadable/read_int32_little-i.yaml +10 -0
- data/doc/ri/BinReadable/read_int32_native-i.yaml +13 -0
- data/doc/ri/BinReadable/read_int8-i.yaml +10 -0
- data/doc/ri/BinReadable/read_uint8-i.yaml +12 -0
- data/doc/ri/BinReadable/read_word16_big-i.yaml +10 -0
- data/doc/ri/BinReadable/read_word16_little-i.yaml +10 -0
- data/doc/ri/BinReadable/read_word16_native-i.yaml +13 -0
- data/doc/ri/BinReadable/read_word32_big-i.yaml +10 -0
- data/doc/ri/BinReadable/read_word32_little-i.yaml +10 -0
- data/doc/ri/BinReadable/read_word32_native-i.yaml +13 -0
- data/doc/ri/BinReadable/read_word8-i.yaml +13 -0
- data/doc/ri/BinReadable/readn-i.yaml +12 -0
- data/doc/ri/BinReadable/ru-i.yaml +12 -0
- data/doc/ri/BinReadable/ru_swap-i.yaml +12 -0
- data/doc/ri/Binding/%5b%5d%3d-i.yaml +14 -0
- data/doc/ri/Binding/%5b%5d-i.yaml +14 -0
- data/doc/ri/Binding/__DIR__-i.yaml +12 -0
- data/doc/ri/Binding/__FILE__-i.yaml +12 -0
- data/doc/ri/Binding/__LINE__-i.yaml +12 -0
- data/doc/ri/Binding/__callee__-i.yaml +14 -0
- data/doc/ri/Binding/__method__-i.yaml +14 -0
- data/doc/ri/Binding/caller-i.yaml +12 -0
- data/doc/ri/Binding/callstack-i.yaml +12 -0
- data/doc/ri/Binding/cdesc-Binding.yaml +40 -0
- data/doc/ri/Binding/defined%3f-i.yaml +12 -0
- data/doc/ri/Binding/eval-i.yaml +12 -0
- data/doc/ri/Binding/local_variables-i.yaml +14 -0
- data/doc/ri/Binding/self-i.yaml +12 -0
- data/doc/ri/Buildable/cdesc-Buildable.yaml +29 -0
- data/doc/ri/Buildable/included-c.yaml +10 -0
- data/doc/ri/BuildingBlock/%3c%3c-i.yaml +12 -0
- data/doc/ri/BuildingBlock/build%21-i.yaml +11 -0
- data/doc/ri/BuildingBlock/cdesc-BuildingBlock.yaml +57 -0
- data/doc/ri/BuildingBlock/inspect-i.yaml +12 -0
- data/doc/ri/BuildingBlock/method_missing-i.yaml +11 -0
- data/doc/ri/BuildingBlock/new-c.yaml +11 -0
- data/doc/ri/BuildingBlock/to_buffer-i.yaml +12 -0
- data/doc/ri/BuildingBlock/to_s-i.yaml +12 -0
- data/doc/ri/BuildingBlock/to_str-i.yaml +10 -0
- data/doc/ri/CGI/cdesc-CGI.yaml +25 -0
- data/doc/ri/CGI/esc-i.yaml +12 -0
- data/doc/ri/CGI/escformat-i.yaml +12 -0
- data/doc/ri/CGI/marshal_from_cgi-i.yaml +12 -0
- data/doc/ri/CGI/marshal_to_cgi-i.yaml +12 -0
- data/doc/ri/CLI/Arguments/arguments-i.yaml +12 -0
- data/doc/ri/CLI/Arguments/assoc_options-i.yaml +14 -0
- data/doc/ri/CLI/Arguments/cdesc-Arguments.yaml +77 -0
- data/doc/ri/CLI/Arguments/flags-i.yaml +12 -0
- data/doc/ri/CLI/Arguments/format_options-i.yaml +12 -0
- data/doc/ri/CLI/Arguments/multi_flag-i.yaml +12 -0
- data/doc/ri/CLI/Arguments/new-c.yaml +12 -0
- data/doc/ri/CLI/Arguments/operands-i.yaml +13 -0
- data/doc/ri/CLI/Arguments/options-i.yaml +12 -0
- data/doc/ri/CLI/Arguments/parameters-c.yaml +10 -0
- data/doc/ri/CLI/Arguments/parameters-i.yaml +12 -0
- data/doc/ri/CLI/Arguments/parameters_without_duplicates-i.yaml +12 -0
- data/doc/ri/CLI/Arguments/parse-i.yaml +14 -0
- data/doc/ri/CLI/Arguments/parse_arity-i.yaml +12 -0
- data/doc/ri/CLI/Arguments/parse_line-i.yaml +12 -0
- data/doc/ri/CLI/Arguments/parse_preoptions-i.yaml +12 -0
- data/doc/ri/CLI/Arguments/preflags-i.yaml +12 -0
- data/doc/ri/CLI/Arguments/preoptions-i.yaml +14 -0
- data/doc/ri/CLI/Arguments/subcommand-i.yaml +12 -0
- data/doc/ri/CLI/Arguments/subcommand_with_arguments-i.yaml +14 -0
- data/doc/ri/CLI/Arguments/subcommand_with_parameters-i.yaml +13 -0
- data/doc/ri/CLI/Arguments/subcommand_with_preoptions-i.yaml +11 -0
- data/doc/ri/CLI/Command/UniversalOptions/cdesc-UniversalOptions.yaml +17 -0
- data/doc/ri/CLI/Command/call-i.yaml +12 -0
- data/doc/ri/CLI/Command/cdesc-Command.yaml +50 -0
- data/doc/ri/CLI/Command/command_missing-i.yaml +11 -0
- data/doc/ri/CLI/Command/commands-i.yaml +11 -0
- data/doc/ri/CLI/Command/default-i.yaml +12 -0
- data/doc/ri/CLI/Command/initialize_arguments-i.yaml +11 -0
- data/doc/ri/CLI/Command/initialize_options-i.yaml +11 -0
- data/doc/ri/CLI/Command/new-c.yaml +11 -0
- data/doc/ri/CLI/Command/option_arity-c.yaml +11 -0
- data/doc/ri/CLI/Command/option_missing-i.yaml +11 -0
- data/doc/ri/CLI/Command/start-c.yaml +11 -0
- data/doc/ri/CLI/Command/subcommand-c.yaml +12 -0
- data/doc/ri/CLI/NoCommandError/cdesc-NoCommandError.yaml +16 -0
- data/doc/ri/CLI/NoCommandError/new-c.yaml +10 -0
- data/doc/ri/CLI/NoOptionError/cdesc-NoOptionError.yaml +18 -0
- data/doc/ri/CLI/NoOptionError/new-c.yaml +10 -0
- data/doc/ri/CLI/cdesc-CLI.yaml +15 -0
- data/doc/ri/CacheDecorator/cache-c.yaml +10 -0
- data/doc/ri/CacheDecorator/cdesc-CacheDecorator.yaml +45 -0
- data/doc/ri/CacheDecorator/method_missing-i.yaml +10 -0
- data/doc/ri/CacheDecorator/new-c.yaml +10 -0
- data/doc/ri/CacheDecorator/self-i.yaml +10 -0
- data/doc/ri/CacheDecorator/uncache-c.yaml +10 -0
- data/doc/ri/Capsule/MissingFile/cdesc-MissingFile.yaml +17 -0
- data/doc/ri/Capsule/cdesc-Capsule.yaml +55 -0
- data/doc/ri/Capsule/include-i.yaml +11 -0
- data/doc/ri/Capsule/include_script-i.yaml +10 -0
- data/doc/ri/Capsule/load-c.yaml +12 -0
- data/doc/ri/Capsule/load-i.yaml +16 -0
- data/doc/ri/Capsule/load_in_module-i.yaml +12 -0
- data/doc/ri/Capsule/load_path_lookup-i.yaml +12 -0
- data/doc/ri/Capsule/new-c.yaml +12 -0
- data/doc/ri/Capsule/require-i.yaml +14 -0
- data/doc/ri/Chain/%7e-i.yaml +10 -0
- data/doc/ri/Chain/cdesc-Chain.yaml +36 -0
- data/doc/ri/Chain/end-i.yaml +16 -0
- data/doc/ri/Chain/method_missing-i.yaml +10 -0
- data/doc/ri/Chain/new-c.yaml +10 -0
- data/doc/ri/Class/cdesc-Class.yaml +17 -0
- data/doc/ri/Cloneable/cdesc-Cloneable.yaml +21 -0
- data/doc/ri/Cloneable/initialize_copy-i.yaml +10 -0
- data/doc/ri/Comparable/at_least-i.yaml +14 -0
- data/doc/ri/Comparable/at_most-i.yaml +14 -0
- data/doc/ri/Comparable/bound-i.yaml +15 -0
- data/doc/ri/Comparable/cap-i.yaml +14 -0
- data/doc/ri/Comparable/cdesc-Comparable.yaml +26 -0
- data/doc/ri/Comparable/clip-i.yaml +12 -0
- data/doc/ri/Comparable/cmp-i.yaml +18 -0
- data/doc/ri/Config/cdesc-Config.yaml +18 -0
- data/doc/ri/Config/datadir-c.yaml +16 -0
- data/doc/ri/Config/inspect-c.yaml +10 -0
- data/doc/ri/Console/cdesc-Console.yaml +17 -0
- data/doc/ri/ConsoleUtils/ask-i.yaml +12 -0
- data/doc/ri/ConsoleUtils/cdesc-ConsoleUtils.yaml +27 -0
- data/doc/ri/ConsoleUtils/password-i.yaml +12 -0
- data/doc/ri/ConsoleUtils/print_justified-i.yaml +14 -0
- data/doc/ri/ConsoleUtils/screen_width-i.yaml +14 -0
- data/doc/ri/Continuation/cdesc-Continuation.yaml +16 -0
- data/doc/ri/Continuation/create-c.yaml +10 -0
- data/doc/ri/Coroutine/%5b%5d%3d-i.yaml +10 -0
- data/doc/ri/Coroutine/%5b%5d-i.yaml +10 -0
- data/doc/ri/Coroutine/cdesc-Coroutine.yaml +42 -0
- data/doc/ri/Coroutine/continue-i.yaml +10 -0
- data/doc/ri/Coroutine/new-c.yaml +10 -0
- data/doc/ri/Coroutine/resume-i.yaml +10 -0
- data/doc/ri/Coroutine/run-i.yaml +10 -0
- data/doc/ri/Coroutine/stop-i.yaml +10 -0
- data/doc/ri/Crypt/cdesc-Crypt.yaml +28 -0
- data/doc/ri/Crypt/check-c.yaml +12 -0
- data/doc/ri/Crypt/crypt-c.yaml +20 -0
- data/doc/ri/Crypt/generate_salt-c.yaml +12 -0
- data/doc/ri/CssFilter/accept_host-i.yaml +11 -0
- data/doc/ri/CssFilter/cdesc-CssFilter.yaml +98 -0
- data/doc/ri/CssFilter/clean_properties-i.yaml +14 -0
- data/doc/ri/CssFilter/clean_value-i.yaml +11 -0
- data/doc/ri/CssFilter/filter-i.yaml +11 -0
- data/doc/ri/CssFilter/new-c.yaml +11 -0
- data/doc/ri/CssFilter/parse-i.yaml +14 -0
- data/doc/ri/CssFilter/remove_blanklines-i.yaml +11 -0
- data/doc/ri/CssFilter/remove_comments-i.yaml +11 -0
- data/doc/ri/CssFilter/remove_nullvalues-i.yaml +11 -0
- data/doc/ri/CssFilter/remove_urls-i.yaml +12 -0
- data/doc/ri/CssFilter/remove_whitespace-i.yaml +11 -0
- data/doc/ri/CssTree/cdesc-CssTree.yaml +19 -0
- data/doc/ri/CssTree/new-c.yaml +10 -0
- data/doc/ri/CssTree/to_css-i.yaml +12 -0
- data/doc/ri/Date/cdesc-Date.yaml +28 -0
- data/doc/ri/Date/days_in_month-i.yaml +14 -0
- data/doc/ri/Date/days_of_month-i.yaml +10 -0
- data/doc/ri/Date/month_name-i.yaml +14 -0
- data/doc/ri/Date/stamp-i.yaml +13 -0
- data/doc/ri/Date/to_date-i.yaml +12 -0
- data/doc/ri/Date/to_s-i.yaml +12 -0
- data/doc/ri/Date/to_time-i.yaml +12 -0
- data/doc/ri/Dictionary/%3c%3c-i.yaml +10 -0
- data/doc/ri/Dictionary/%3d%3d-i.yaml +16 -0
- data/doc/ri/Dictionary/%5b%5d%3d-i.yaml +18 -0
- data/doc/ri/Dictionary/%5b%5d-c.yaml +10 -0
- data/doc/ri/Dictionary/%5b%5d-i.yaml +10 -0
- data/doc/ri/Dictionary/alpha-c.yaml +18 -0
- data/doc/ri/Dictionary/auto-c.yaml +14 -0
- data/doc/ri/Dictionary/cdesc-Dictionary.yaml +150 -0
- data/doc/ri/Dictionary/clear-i.yaml +10 -0
- data/doc/ri/Dictionary/delete-i.yaml +10 -0
- data/doc/ri/Dictionary/delete_if-i.yaml +10 -0
- data/doc/ri/Dictionary/dup-i.yaml +10 -0
- data/doc/ri/Dictionary/each-i.yaml +11 -0
- data/doc/ri/Dictionary/each_key-i.yaml +10 -0
- data/doc/ri/Dictionary/each_pair-i.yaml +12 -0
- data/doc/ri/Dictionary/each_value-i.yaml +10 -0
- data/doc/ri/Dictionary/empty%3f-i.yaml +10 -0
- data/doc/ri/Dictionary/fetch-i.yaml +10 -0
- data/doc/ri/Dictionary/first-i.yaml +11 -0
- data/doc/ri/Dictionary/has_key%3f-i.yaml +10 -0
- data/doc/ri/Dictionary/insert-i.yaml +10 -0
- data/doc/ri/Dictionary/inspect-i.yaml +10 -0
- data/doc/ri/Dictionary/invert-i.yaml +10 -0
- data/doc/ri/Dictionary/key%3f-i.yaml +10 -0
- data/doc/ri/Dictionary/keys-i.yaml +10 -0
- data/doc/ri/Dictionary/last-i.yaml +11 -0
- data/doc/ri/Dictionary/length-i.yaml +11 -0
- data/doc/ri/Dictionary/merge%21-i.yaml +12 -0
- data/doc/ri/Dictionary/merge-i.yaml +10 -0
- data/doc/ri/Dictionary/new-c.yaml +12 -0
- data/doc/ri/Dictionary/new_by-c.yaml +12 -0
- data/doc/ri/Dictionary/order-i.yaml +10 -0
- data/doc/ri/Dictionary/order_by-i.yaml +12 -0
- data/doc/ri/Dictionary/order_by_key-i.yaml +20 -0
- data/doc/ri/Dictionary/order_by_value-i.yaml +18 -0
- data/doc/ri/Dictionary/pop-i.yaml +10 -0
- data/doc/ri/Dictionary/push-i.yaml +10 -0
- data/doc/ri/Dictionary/reject%21-i.yaml +10 -0
- data/doc/ri/Dictionary/reject-i.yaml +10 -0
- data/doc/ri/Dictionary/reorder-i.yaml +11 -0
- data/doc/ri/Dictionary/replace-i.yaml +10 -0
- data/doc/ri/Dictionary/reverse%21-i.yaml +10 -0
- data/doc/ri/Dictionary/reverse-i.yaml +10 -0
- data/doc/ri/Dictionary/select-i.yaml +10 -0
- data/doc/ri/Dictionary/shift-i.yaml +10 -0
- data/doc/ri/Dictionary/size-i.yaml +12 -0
- data/doc/ri/Dictionary/store-i.yaml +10 -0
- data/doc/ri/Dictionary/to_a-i.yaml +10 -0
- data/doc/ri/Dictionary/to_h-i.yaml +10 -0
- data/doc/ri/Dictionary/to_hash-i.yaml +10 -0
- data/doc/ri/Dictionary/to_s-i.yaml +10 -0
- data/doc/ri/Dictionary/unshift-i.yaml +10 -0
- data/doc/ri/Dictionary/update-i.yaml +11 -0
- data/doc/ri/Dictionary/values-i.yaml +10 -0
- data/doc/ri/DictionaryMatcher/%3c%3c-i.yaml +12 -0
- data/doc/ri/DictionaryMatcher/%3d%3d%3d-i.yaml +12 -0
- data/doc/ri/DictionaryMatcher/%3d%7e-i.yaml +13 -0
- data/doc/ri/DictionaryMatcher/MatchData/cdesc-MatchData.yaml +18 -0
- data/doc/ri/DictionaryMatcher/MatchData/inspect-i.yaml +10 -0
- data/doc/ri/DictionaryMatcher/add-i.yaml +13 -0
- data/doc/ri/DictionaryMatcher/cdesc-DictionaryMatcher.yaml +38 -0
- data/doc/ri/DictionaryMatcher/compute_failure_function-i.yaml +10 -0
- data/doc/ri/DictionaryMatcher/include%3f-i.yaml +12 -0
- data/doc/ri/DictionaryMatcher/inspect-i.yaml +10 -0
- data/doc/ri/DictionaryMatcher/internal_match-i.yaml +10 -0
- data/doc/ri/DictionaryMatcher/match-i.yaml +12 -0
- data/doc/ri/DictionaryMatcher/new-c.yaml +12 -0
- data/doc/ri/DictionaryMatcher/scan-i.yaml +12 -0
- data/doc/ri/Dir/ascend-c.yaml +18 -0
- data/doc/ri/Dir/cdesc-Dir.yaml +28 -0
- data/doc/ri/Dir/descend-c.yaml +18 -0
- data/doc/ri/Dir/ls_r-c.yaml +12 -0
- data/doc/ri/Dir/multiglob-c.yaml +30 -0
- data/doc/ri/Dir/multiglob_r-c.yaml +22 -0
- data/doc/ri/Dir/parent%3f-c.yaml +14 -0
- data/doc/ri/Dir/recurse-c.yaml +14 -0
- data/doc/ri/Downloader/Checksum/cdesc-Checksum.yaml +17 -0
- data/doc/ri/Downloader/Mirror/cdesc-Mirror.yaml +15 -0
- data/doc/ri/Downloader/add_mirror-i.yaml +10 -0
- data/doc/ri/Downloader/add_mirrors-i.yaml +10 -0
- data/doc/ri/Downloader/cdesc-Downloader.yaml +49 -0
- data/doc/ri/Downloader/compute_checksum-i.yaml +12 -0
- data/doc/ri/Downloader/download-i.yaml +14 -0
- data/doc/ri/Downloader/extract-i.yaml +12 -0
- data/doc/ri/Downloader/fetch-i.yaml +12 -0
- data/doc/ri/Downloader/interface%3d-i.yaml +10 -0
- data/doc/ri/Downloader/interface-i.yaml +12 -0
- data/doc/ri/Downloader/mirrors-i.yaml +10 -0
- data/doc/ri/Downloader/monitored_download-i.yaml +12 -0
- data/doc/ri/Downloader/new-c.yaml +10 -0
- data/doc/ri/Downloader/prioritize_urls-i.yaml +12 -0
- data/doc/ri/Duration/%2a-i.yaml +16 -0
- data/doc/ri/Duration/%2b-i.yaml +16 -0
- data/doc/ri/Duration/%2d-i.yaml +16 -0
- data/doc/ri/Duration/%2f-i.yaml +16 -0
- data/doc/ri/Duration/%3c%3d%3e-i.yaml +16 -0
- data/doc/ri/Duration/cdesc-Duration.yaml +93 -0
- data/doc/ri/Duration/days%3d-i.yaml +16 -0
- data/doc/ri/Duration/each-i.yaml +20 -0
- data/doc/ri/Duration/hours%3d-i.yaml +16 -0
- data/doc/ri/Duration/inspect-i.yaml +16 -0
- data/doc/ri/Duration/minutes%3d-i.yaml +16 -0
- data/doc/ri/Duration/new-c.yaml +16 -0
- data/doc/ri/Duration/seconds%3d-i.yaml +16 -0
- data/doc/ri/Duration/seconds-i.yaml +16 -0
- data/doc/ri/Duration/strftime-i.yaml +20 -0
- data/doc/ri/Duration/to_s-i.yaml +16 -0
- data/doc/ri/Duration/weeks%3d-i.yaml +16 -0
- data/doc/ri/Enumerable/Elementor/cdesc-Elementor.yaml +26 -0
- data/doc/ri/Enumerable/Elementor/instance_delegate-i.yaml +10 -0
- data/doc/ri/Enumerable/Elementor/instance_operator-i.yaml +10 -0
- data/doc/ri/Enumerable/Elementor/method_missing-i.yaml +10 -0
- data/doc/ri/Enumerable/Elementor/new-c.yaml +10 -0
- data/doc/ri/Enumerable/Enumerator/cdesc-Enumerator.yaml +16 -0
- data/doc/ri/Enumerable/Enumerator/to_elem-i.yaml +12 -0
- data/doc/ri/Enumerable/accumulate-i.yaml +18 -0
- data/doc/ri/Enumerable/cdesc-Enumerable.yaml +94 -0
- data/doc/ri/Enumerable/cluster_by-i.yaml +18 -0
- data/doc/ri/Enumerable/collect_with_index-i.yaml +15 -0
- data/doc/ri/Enumerable/commonality-i.yaml +14 -0
- data/doc/ri/Enumerable/compact_collect-i.yaml +12 -0
- data/doc/ri/Enumerable/compact_map-i.yaml +23 -0
- data/doc/ri/Enumerable/count-i.yaml +18 -0
- data/doc/ri/Enumerable/divide-i.yaml +14 -0
- data/doc/ri/Enumerable/duplicates-i.yaml +12 -0
- data/doc/ri/Enumerable/each_by-i.yaml +18 -0
- data/doc/ri/Enumerable/elements%21-i.yaml +12 -0
- data/doc/ri/Enumerable/elements-i.yaml +12 -0
- data/doc/ri/Enumerable/elementwise-i.yaml +15 -0
- data/doc/ri/Enumerable/entropy-i.yaml +14 -0
- data/doc/ri/Enumerable/every%21-i.yaml +13 -0
- data/doc/ri/Enumerable/every-i.yaml +15 -0
- data/doc/ri/Enumerable/ewise-i.yaml +12 -0
- data/doc/ri/Enumerable/frequency-i.yaml +14 -0
- data/doc/ri/Enumerable/graph-i.yaml +12 -0
- data/doc/ri/Enumerable/group_by-i.yaml +14 -0
- data/doc/ri/Enumerable/ideal_entropy-i.yaml +14 -0
- data/doc/ri/Enumerable/inject%21-i.yaml +20 -0
- data/doc/ri/Enumerable/map_send-i.yaml +14 -0
- data/doc/ri/Enumerable/map_with_index-i.yaml +12 -0
- data/doc/ri/Enumerable/mash-i.yaml +19 -0
- data/doc/ri/Enumerable/mode-i.yaml +14 -0
- data/doc/ri/Enumerable/modulate-i.yaml +18 -0
- data/doc/ri/Enumerable/none%3f-i.yaml +16 -0
- data/doc/ri/Enumerable/nonuniq-i.yaml +15 -0
- data/doc/ri/Enumerable/occur-i.yaml +14 -0
- data/doc/ri/Enumerable/one%3f-i.yaml +16 -0
- data/doc/ri/Enumerable/per-i.yaml +10 -0
- data/doc/ri/Enumerable/probability-i.yaml +14 -0
- data/doc/ri/Enumerable/split-i.yaml +16 -0
- data/doc/ri/Enumerable/sum-i.yaml +14 -0
- data/doc/ri/Enumerable/threaded_map-i.yaml +14 -0
- data/doc/ri/Enumerable/threaded_map_send-i.yaml +14 -0
- data/doc/ri/Enumerable/to_elem-i.yaml +12 -0
- data/doc/ri/Enumerable/to_h-i.yaml +14 -0
- data/doc/ri/Enumerable/uniq_by-i.yaml +18 -0
- data/doc/ri/EnumerablePass/cdesc-EnumerablePass.yaml +28 -0
- data/doc/ri/EnumerablePass/detect-i.yaml +12 -0
- data/doc/ri/EnumerablePass/find-i.yaml +15 -0
- data/doc/ri/EnumerablePass/wrap_enumerable_method-c.yaml +10 -0
- data/doc/ri/Equatable/%3d%3d-i.yaml +10 -0
- data/doc/ri/Equatable/cdesc-Equatable.yaml +34 -0
- data/doc/ri/Equatable/eql%3f-i.yaml +10 -0
- data/doc/ri/Equatable/hash-i.yaml +10 -0
- data/doc/ri/Equatable/identify-c.yaml +10 -0
- data/doc/ri/EventHook/call-i.yaml +10 -0
- data/doc/ri/EventHook/cdesc-EventHook.yaml +31 -0
- data/doc/ri/EventHook/new-c.yaml +10 -0
- data/doc/ri/Exception/cdesc-Exception.yaml +17 -0
- data/doc/ri/Exception/detail-i.yaml +18 -0
- data/doc/ri/Exception/suppress-c.yaml +14 -0
- data/doc/ri/Expirable/cdesc-Expirable.yaml +30 -0
- data/doc/ri/Expirable/expired%3f-i.yaml +12 -0
- data/doc/ri/Expirable/expires_after-i.yaml +12 -0
- data/doc/ri/Expirable/expires_spread-i.yaml +12 -0
- data/doc/ri/Expirable/touch%21-i.yaml +12 -0
- data/doc/ri/FalseClass/cdesc-FalseClass.yaml +15 -0
- data/doc/ri/File/append-c.yaml +14 -0
- data/doc/ri/File/cdesc-File.yaml +38 -0
- data/doc/ri/File/create-c.yaml +14 -0
- data/doc/ri/File/null-c.yaml +14 -0
- data/doc/ri/File/read_binary-c.yaml +14 -0
- data/doc/ri/File/read_list-c.yaml +14 -0
- data/doc/ri/File/rewrite%21-c.yaml +14 -0
- data/doc/ri/File/rewrite-c.yaml +24 -0
- data/doc/ri/File/rootname-c.yaml +14 -0
- data/doc/ri/File/sanitize-c.yaml +14 -0
- data/doc/ri/File/write-c.yaml +16 -0
- data/doc/ri/File/writelines-c.yaml +18 -0
- data/doc/ri/File/yaml%3f-c.yaml +14 -0
- data/doc/ri/FileList/%2a-i.yaml +12 -0
- data/doc/ri/FileList/%3d%3d-i.yaml +12 -0
- data/doc/ri/FileList/%5b%5d-c.yaml +14 -0
- data/doc/ri/FileList/add-i.yaml +12 -0
- data/doc/ri/FileList/add_matching-i.yaml +12 -0
- data/doc/ri/FileList/calculate_exclude_regexp-i.yaml +10 -0
- data/doc/ri/FileList/cdesc-FileList.yaml +111 -0
- data/doc/ri/FileList/clear_exclude-i.yaml +12 -0
- data/doc/ri/FileList/clear_ignore_patterns-c.yaml +12 -0
- data/doc/ri/FileList/clone-i.yaml +13 -0
- data/doc/ri/FileList/dup-i.yaml +12 -0
- data/doc/ri/FileList/egrep-i.yaml +12 -0
- data/doc/ri/FileList/exclude%3f-i.yaml +12 -0
- data/doc/ri/FileList/exclude-i.yaml +26 -0
- data/doc/ri/FileList/ext-i.yaml +18 -0
- data/doc/ri/FileList/gsub%21-i.yaml +12 -0
- data/doc/ri/FileList/gsub-i.yaml +16 -0
- data/doc/ri/FileList/import-i.yaml +10 -0
- data/doc/ri/FileList/include-i.yaml +17 -0
- data/doc/ri/FileList/new-c.yaml +16 -0
- data/doc/ri/FileList/resolve-i.yaml +12 -0
- data/doc/ri/FileList/resolve_add-i.yaml +10 -0
- data/doc/ri/FileList/resolve_exclude-i.yaml +10 -0
- data/doc/ri/FileList/select_default_ignore_patterns-c.yaml +35 -0
- data/doc/ri/FileList/sub%21-i.yaml +12 -0
- data/doc/ri/FileList/sub-i.yaml +16 -0
- data/doc/ri/FileList/to_a-i.yaml +12 -0
- data/doc/ri/FileList/to_ary-i.yaml +12 -0
- data/doc/ri/FileList/to_s-i.yaml +12 -0
- data/doc/ri/FileShell/%5b%5d-i.yaml +12 -0
- data/doc/ri/FileShell/cd-i.yaml +15 -0
- data/doc/ri/FileShell/cdesc-FileShell.yaml +83 -0
- data/doc/ri/FileShell/chdir-i.yaml +12 -0
- data/doc/ri/FileShell/chmod-i.yaml +12 -0
- data/doc/ri/FileShell/chmod_R-i.yaml +12 -0
- data/doc/ri/FileShell/chown-i.yaml +12 -0
- data/doc/ri/FileShell/chown_R-i.yaml +12 -0
- data/doc/ri/FileShell/cp-i.yaml +12 -0
- data/doc/ri/FileShell/cp_r-i.yaml +12 -0
- data/doc/ri/FileShell/dryrun%3f-i.yaml +10 -0
- data/doc/ri/FileShell/fu-i.yaml +11 -0
- data/doc/ri/FileShell/install-i.yaml +12 -0
- data/doc/ri/FileShell/ln-i.yaml +12 -0
- data/doc/ri/FileShell/ln_s-i.yaml +12 -0
- data/doc/ri/FileShell/ln_sf-i.yaml +12 -0
- data/doc/ri/FileShell/ls-i.yaml +12 -0
- data/doc/ri/FileShell/mkdir-i.yaml +12 -0
- data/doc/ri/FileShell/mkdir_p-i.yaml +12 -0
- data/doc/ri/FileShell/move-i.yaml +12 -0
- data/doc/ri/FileShell/mv-i.yaml +13 -0
- data/doc/ri/FileShell/new-c.yaml +10 -0
- data/doc/ri/FileShell/pwd-i.yaml +12 -0
- data/doc/ri/FileShell/quiet%3f-i.yaml +10 -0
- data/doc/ri/FileShell/rm-i.yaml +12 -0
- data/doc/ri/FileShell/rm_r-i.yaml +12 -0
- data/doc/ri/FileShell/rm_rf-i.yaml +12 -0
- data/doc/ri/FileShell/rmdir-i.yaml +12 -0
- data/doc/ri/FileShell/root%3f-i.yaml +12 -0
- data/doc/ri/FileShell/touch-i.yaml +12 -0
- data/doc/ri/FileShell/verbose%3f-i.yaml +10 -0
- data/doc/ri/FileTest/cdesc-FileTest.yaml +16 -0
- data/doc/ri/FileTest/root%3f-i.yaml +14 -0
- data/doc/ri/FileUtils/cdesc-FileUtils.yaml +39 -0
- data/doc/ri/FileUtils/head-i.yaml +14 -0
- data/doc/ri/FileUtils/safe_ln-i.yaml +14 -0
- data/doc/ri/FileUtils/slice-i.yaml +16 -0
- data/doc/ri/FileUtils/tail-i.yaml +16 -0
- data/doc/ri/FileUtils/wc-i.yaml +18 -0
- data/doc/ri/FileUtils/whereis-i.yaml +10 -0
- data/doc/ri/FileUtils/which-i.yaml +16 -0
- data/doc/ri/Fileable/DSL/cdesc-DSL.yaml +31 -0
- data/doc/ri/Fileable/DSL/file-i.yaml +12 -0
- data/doc/ri/Fileable/DSL/filename-i.yaml +12 -0
- data/doc/ri/Fileable/DSL/included-i.yaml +12 -0
- data/doc/ri/Fileable/DSL/load-i.yaml +12 -0
- data/doc/ri/Fileable/DSL/load_cache-i.yaml +12 -0
- data/doc/ri/Fileable/DSL/locate-i.yaml +12 -0
- data/doc/ri/Fileable/DSL/lookup-i.yaml +12 -0
- data/doc/ri/Fileable/DSL/open-i.yaml +12 -0
- data/doc/ri/Fileable/cdesc-Fileable.yaml +30 -0
- data/doc/ri/Fileable/included-c.yaml +12 -0
- data/doc/ri/Fileable/new-c.yaml +12 -0
- data/doc/ri/Fileable/read-i.yaml +12 -0
- data/doc/ri/Float/cdesc-Float.yaml +17 -0
- data/doc/ri/Friend/cdesc-Friend.yaml +27 -0
- data/doc/ri/Friend/new-c.yaml +10 -0
- data/doc/ri/Functor/cdesc-Functor.yaml +23 -0
- data/doc/ri/Functor/method_missing-i.yaml +12 -0
- data/doc/ri/Functor/new-c.yaml +10 -0
- data/doc/ri/Functor/to_proc-i.yaml +10 -0
- data/doc/ri/GetoptLong/DSL/cdesc-DSL.yaml +30 -0
- data/doc/ri/GetoptLong/DSL/flag-i.yaml +10 -0
- data/doc/ri/GetoptLong/DSL/new-c.yaml +10 -0
- data/doc/ri/GetoptLong/DSL/optional-i.yaml +11 -0
- data/doc/ri/GetoptLong/DSL/opts-i.yaml +12 -0
- data/doc/ri/GetoptLong/DSL/reqs-i.yaml +12 -0
- data/doc/ri/GetoptLong/DSL/required-i.yaml +11 -0
- data/doc/ri/GetoptLong/cdesc-GetoptLong.yaml +16 -0
- data/doc/ri/GetoptLong/new-c.yaml +10 -0
- data/doc/ri/Hash/cdesc-Hash.yaml +15 -0
- data/doc/ri/Hash2Xml/cdesc-Hash2Xml.yaml +21 -0
- data/doc/ri/Hash2Xml/convert-i.yaml +10 -0
- data/doc/ri/Hash2Xml/convert_body-i.yaml +11 -0
- data/doc/ri/Hash2Xml/convert_tag-i.yaml +11 -0
- data/doc/ri/HtmlFilter/balance_html-i.yaml +11 -0
- data/doc/ri/HtmlFilter/cdesc-HtmlFilter.yaml +149 -0
- data/doc/ri/HtmlFilter/check_entity-i.yaml +11 -0
- data/doc/ri/HtmlFilter/check_tags-i.yaml +11 -0
- data/doc/ri/HtmlFilter/decode_dec_entity-i.yaml +11 -0
- data/doc/ri/HtmlFilter/decode_entities-i.yaml +12 -0
- data/doc/ri/HtmlFilter/decode_hex_entity-i.yaml +11 -0
- data/doc/ri/HtmlFilter/decode_num_entity-i.yaml +11 -0
- data/doc/ri/HtmlFilter/escape_comments-i.yaml +11 -0
- data/doc/ri/HtmlFilter/escape_special_chars-i.yaml +12 -0
- data/doc/ri/HtmlFilter/filter-i.yaml +12 -0
- data/doc/ri/HtmlFilter/fix_case-i.yaml +11 -0
- data/doc/ri/HtmlFilter/fix_case_inner-i.yaml +11 -0
- data/doc/ri/HtmlFilter/is_valid_entity-i.yaml +11 -0
- data/doc/ri/HtmlFilter/new-c.yaml +12 -0
- data/doc/ri/HtmlFilter/process_param_protocol-i.yaml +11 -0
- data/doc/ri/HtmlFilter/process_remove_blanks-i.yaml +11 -0
- data/doc/ri/HtmlFilter/process_tag-i.yaml +11 -0
- data/doc/ri/HtmlFilter/strip_single-i.yaml +11 -0
- data/doc/ri/HtmlFilter/validate_entities-i.yaml +11 -0
- data/doc/ri/IORedirect/cdesc-IORedirect.yaml +28 -0
- data/doc/ri/IORedirect/new-c.yaml +12 -0
- data/doc/ri/IORedirect/redirect-c.yaml +12 -0
- data/doc/ri/IORedirect/start-i.yaml +12 -0
- data/doc/ri/IORedirect/stop-i.yaml +12 -0
- data/doc/ri/Indexable/body-i.yaml +14 -0
- data/doc/ri/Indexable/cdesc-Indexable.yaml +55 -0
- data/doc/ri/Indexable/ends-i.yaml +16 -0
- data/doc/ri/Indexable/first%21-i.yaml +14 -0
- data/doc/ri/Indexable/first%3d-i.yaml +14 -0
- data/doc/ri/Indexable/first-i.yaml +14 -0
- data/doc/ri/Indexable/foot-i.yaml +14 -0
- data/doc/ri/Indexable/head-i.yaml +14 -0
- data/doc/ri/Indexable/index_of-i.yaml +16 -0
- data/doc/ri/Indexable/last%21-i.yaml +14 -0
- data/doc/ri/Indexable/last%3d-i.yaml +14 -0
- data/doc/ri/Indexable/last-i.yaml +14 -0
- data/doc/ri/Indexable/mid-i.yaml +16 -0
- data/doc/ri/Indexable/middle-i.yaml +16 -0
- data/doc/ri/Indexable/pos-i.yaml +14 -0
- data/doc/ri/Indexable/range-i.yaml +14 -0
- data/doc/ri/Indexable/tail-i.yaml +14 -0
- data/doc/ri/Indexable/thru-i.yaml +14 -0
- data/doc/ri/InfinityClass/%2b%40-i.yaml +12 -0
- data/doc/ri/InfinityClass/%2d%40-i.yaml +12 -0
- data/doc/ri/InfinityClass/%3c%3d%3e-i.yaml +12 -0
- data/doc/ri/InfinityClass/%3d%3d-i.yaml +12 -0
- data/doc/ri/InfinityClass/Numeric/cdesc-Numeric.yaml +27 -0
- data/doc/ri/InfinityClass/Numeric/finite%3f-i.yaml +10 -0
- data/doc/ri/InfinityClass/Numeric/inf%3f-i.yaml +12 -0
- data/doc/ri/InfinityClass/Numeric/infinite%3f-i.yaml +11 -0
- data/doc/ri/InfinityClass/Numeric/nan%3f-i.yaml +10 -0
- data/doc/ri/InfinityClass/Numeric/neginf%3f-i.yaml +10 -0
- data/doc/ri/InfinityClass/Numeric/posinf%3f-i.yaml +10 -0
- data/doc/ri/InfinityClass/cdesc-InfinityClass.yaml +75 -0
- data/doc/ri/InfinityClass/coerce-i.yaml +12 -0
- data/doc/ri/InfinityClass/new-c.yaml +10 -0
- data/doc/ri/InfinityClass/times-i.yaml +12 -0
- data/doc/ri/InfinityClass/to_f-i.yaml +12 -0
- data/doc/ri/InfinityClass/to_s-i.yaml +11 -0
- data/doc/ri/Ini/%5b%5d%3d-i.yaml +12 -0
- data/doc/ri/Ini/%5b%5d-i.yaml +12 -0
- data/doc/ri/Ini/cdesc-Ini.yaml +51 -0
- data/doc/ri/Ini/new-c.yaml +16 -0
- data/doc/ri/Ini/read_comment_from_file-c.yaml +16 -0
- data/doc/ri/Ini/read_from_file-c.yaml +16 -0
- data/doc/ri/Ini/restore-i.yaml +12 -0
- data/doc/ri/Ini/to_s-c.yaml +16 -0
- data/doc/ri/Ini/update-i.yaml +12 -0
- data/doc/ri/Ini/write_to_file-c.yaml +16 -0
- data/doc/ri/InstanceVariables/%3c%3c-i.yaml +10 -0
- data/doc/ri/InstanceVariables/%5b%5d%3d-i.yaml +10 -0
- data/doc/ri/InstanceVariables/%5b%5d-i.yaml +10 -0
- data/doc/ri/InstanceVariables/atize-i.yaml +10 -0
- data/doc/ri/InstanceVariables/cdesc-InstanceVariables.yaml +38 -0
- data/doc/ri/InstanceVariables/each-i.yaml +10 -0
- data/doc/ri/InstanceVariables/instance_delegate-i.yaml +10 -0
- data/doc/ri/InstanceVariables/keys-i.yaml +10 -0
- data/doc/ri/InstanceVariables/names-i.yaml +10 -0
- data/doc/ri/InstanceVariables/new-c.yaml +10 -0
- data/doc/ri/InstanceVariables/to_hash-i.yaml +10 -0
- data/doc/ri/InstanceVariables/update-i.yaml +10 -0
- data/doc/ri/InstanceVariables/values-i.yaml +10 -0
- data/doc/ri/Instantiable/append_features-c.yaml +10 -0
- data/doc/ri/Instantiable/cdesc-Instantiable.yaml +24 -0
- data/doc/ri/Instantiable/new-i.yaml +12 -0
- data/doc/ri/Instantise/append_features-c.yaml +10 -0
- data/doc/ri/Instantise/cdesc-Instantise.yaml +29 -0
- data/doc/ri/Instantise/singleton_method_added-i.yaml +10 -0
- data/doc/ri/Integer/cdesc-Integer.yaml +15 -0
- data/doc/ri/Interval/%2b%40-i.yaml +12 -0
- data/doc/ri/Interval/%2d%40-i.yaml +10 -0
- data/doc/ri/Interval/%3d%3d%3d-i.yaml +12 -0
- data/doc/ri/Interval/%5b%5d-c.yaml +10 -0
- data/doc/ri/Interval/%7e-i.yaml +10 -0
- data/doc/ri/Interval/begin-i.yaml +12 -0
- data/doc/ri/Interval/cdesc-Interval.yaml +97 -0
- data/doc/ri/Interval/closed-i.yaml +12 -0
- data/doc/ri/Interval/degenerate%3f-i.yaml +12 -0
- data/doc/ri/Interval/direction-i.yaml +14 -0
- data/doc/ri/Interval/distance-i.yaml +15 -0
- data/doc/ri/Interval/each-i.yaml +15 -0
- data/doc/ri/Interval/end-i.yaml +12 -0
- data/doc/ri/Interval/eql%3f-i.yaml +12 -0
- data/doc/ri/Interval/exclude_begin%3f-i.yaml +12 -0
- data/doc/ri/Interval/exclude_end%3f-i.yaml +12 -0
- data/doc/ri/Interval/exclude_first%3f-i.yaml +12 -0
- data/doc/ri/Interval/exclude_last%3f-i.yaml +11 -0
- data/doc/ri/Interval/first-i.yaml +13 -0
- data/doc/ri/Interval/first_closed-i.yaml +12 -0
- data/doc/ri/Interval/first_opened-i.yaml +10 -0
- data/doc/ri/Interval/half_closed-i.yaml +12 -0
- data/doc/ri/Interval/include%3f-i.yaml +15 -0
- data/doc/ri/Interval/last-i.yaml +11 -0
- data/doc/ri/Interval/last_closed-i.yaml +10 -0
- data/doc/ri/Interval/last_opened-i.yaml +10 -0
- data/doc/ri/Interval/length-i.yaml +12 -0
- data/doc/ri/Interval/max-i.yaml +12 -0
- data/doc/ri/Interval/member%3f-i.yaml +12 -0
- data/doc/ri/Interval/min-i.yaml +12 -0
- data/doc/ri/Interval/new-c.yaml +10 -0
- data/doc/ri/Interval/null%3f-i.yaml +12 -0
- data/doc/ri/Interval/opened-i.yaml +12 -0
- data/doc/ri/Interval/reversed-i.yaml +14 -0
- data/doc/ri/Interval/sentinels-i.yaml +14 -0
- data/doc/ri/Interval/size-i.yaml +12 -0
- data/doc/ri/Interval/step-i.yaml +12 -0
- data/doc/ri/It/cdesc-It.yaml +39 -0
- data/doc/ri/It/first%3f-i.yaml +10 -0
- data/doc/ri/It/last%3f-i.yaml +10 -0
- data/doc/ri/It/new-c.yaml +10 -0
- data/doc/ri/It/next_iteration-i.yaml +10 -0
- data/doc/ri/Kernel/cdesc-Kernel.yaml +16 -0
- data/doc/ri/LRUCache/%5b%5d%3d-i.yaml +12 -0
- data/doc/ri/LRUCache/%5b%5d-i.yaml +12 -0
- data/doc/ri/LRUCache/Item/cdesc-Item.yaml +28 -0
- data/doc/ri/LRUCache/Sentinel/cdesc-Sentinel.yaml +18 -0
- data/doc/ri/LRUCache/cdesc-LRUCache.yaml +65 -0
- data/doc/ri/LRUCache/clear-i.yaml +12 -0
- data/doc/ri/LRUCache/delete-i.yaml +12 -0
- data/doc/ri/LRUCache/first-i.yaml +12 -0
- data/doc/ri/LRUCache/last-i.yaml +13 -0
- data/doc/ri/LRUCache/lru-i.yaml +12 -0
- data/doc/ri/LRUCache/lru_append-i.yaml +12 -0
- data/doc/ri/LRUCache/lru_clear-i.yaml +12 -0
- data/doc/ri/LRUCache/lru_delete-i.yaml +12 -0
- data/doc/ri/LRUCache/lru_insert-i.yaml +12 -0
- data/doc/ri/LRUCache/lru_join-i.yaml +12 -0
- data/doc/ri/LRUCache/lru_touch-i.yaml +12 -0
- data/doc/ri/LRUCache/new-c.yaml +10 -0
- data/doc/ri/Lazy/DivergenceError/cdesc-DivergenceError.yaml +17 -0
- data/doc/ri/Lazy/Future/cdesc-Future.yaml +20 -0
- data/doc/ri/Lazy/LazyException/cdesc-LazyException.yaml +19 -0
- data/doc/ri/Lazy/Promise/cdesc-Promise.yaml +25 -0
- data/doc/ri/Lazy/PromiseSafe/cdesc-PromiseSafe.yaml +20 -0
- data/doc/ri/Lazy/cdesc-Lazy.yaml +20 -0
- data/doc/ri/LinkedList/%5b%5d%3d-i.yaml +10 -0
- data/doc/ri/LinkedList/%5b%5d-i.yaml +10 -0
- data/doc/ri/LinkedList/Node/cdesc-Node.yaml +33 -0
- data/doc/ri/LinkedList/Node/new-c.yaml +10 -0
- data/doc/ri/LinkedList/cdesc-LinkedList.yaml +57 -0
- data/doc/ri/LinkedList/delete-i.yaml +10 -0
- data/doc/ri/LinkedList/each-i.yaml +10 -0
- data/doc/ri/LinkedList/empty%3f-i.yaml +10 -0
- data/doc/ri/LinkedList/first-i.yaml +10 -0
- data/doc/ri/LinkedList/last-i.yaml +10 -0
- data/doc/ri/LinkedList/length-i.yaml +10 -0
- data/doc/ri/LinkedList/new-c.yaml +10 -0
- data/doc/ri/LinkedList/node_delete-i.yaml +10 -0
- data/doc/ri/LinkedList/node_join-i.yaml +10 -0
- data/doc/ri/LinkedList/node_purge-i.yaml +10 -0
- data/doc/ri/LinkedList/pop-i.yaml +10 -0
- data/doc/ri/LinkedList/push-i.yaml +10 -0
- data/doc/ri/LinkedList/queue-i.yaml +10 -0
- data/doc/ri/LinkedList/shift-i.yaml +10 -0
- data/doc/ri/LinkedList/to_a-i.yaml +10 -0
- data/doc/ri/LinkedList/unshift-i.yaml +10 -0
- data/doc/ri/Logger/Ansicolor/cdesc-Ansicolor.yaml +36 -0
- data/doc/ri/Logger/Ansicolor/debug-i.yaml +10 -0
- data/doc/ri/Logger/Ansicolor/debug_with_color-i.yaml +10 -0
- data/doc/ri/Logger/Ansicolor/error-i.yaml +10 -0
- data/doc/ri/Logger/Ansicolor/error_with_color-i.yaml +10 -0
- data/doc/ri/Logger/Ansicolor/fatal-i.yaml +10 -0
- data/doc/ri/Logger/Ansicolor/fatal_with_color-i.yaml +10 -0
- data/doc/ri/Logger/Ansicolor/info-i.yaml +10 -0
- data/doc/ri/Logger/Ansicolor/info_with_color-i.yaml +10 -0
- data/doc/ri/Logger/Ansicolor/warn-i.yaml +10 -0
- data/doc/ri/Logger/Ansicolor/warn_with_color-i.yaml +10 -0
- data/doc/ri/Logger/LogDevice/ansicolor%3f-i.yaml +10 -0
- data/doc/ri/Logger/LogDevice/cdesc-LogDevice.yaml +19 -0
- data/doc/ri/Logger/ansicolor%3d-i.yaml +10 -0
- data/doc/ri/Logger/cdesc-Logger.yaml +44 -0
- data/doc/ri/Logger/format_procedure-i.yaml +10 -0
- data/doc/ri/Logger/setup_format-i.yaml +21 -0
- data/doc/ri/MatchData/cdesc-MatchData.yaml +20 -0
- data/doc/ri/MatchData/match-i.yaml +14 -0
- data/doc/ri/MatchData/matchset-i.yaml +14 -0
- data/doc/ri/MatchData/matchtree-i.yaml +14 -0
- data/doc/ri/Method/cdesc-Method.yaml +15 -0
- data/doc/ri/MissingArgument/cdesc-MissingArgument.yaml +17 -0
- data/doc/ri/Module/%2a-i.yaml +14 -0
- data/doc/ri/Module/%2b-i.yaml +22 -0
- data/doc/ri/Module/%2d-i.yaml +14 -0
- data/doc/ri/Module/CloneExtensions/cdesc-CloneExtensions.yaml +20 -0
- data/doc/ri/Module/CloneExtensions/clone_removing-i.yaml +14 -0
- data/doc/ri/Module/CloneExtensions/clone_renaming-i.yaml +14 -0
- data/doc/ri/Module/CloneExtensions/clone_using-i.yaml +14 -0
- data/doc/ri/Module/Comparable-i.yaml +18 -0
- data/doc/ri/Module/Equatable-i.yaml +18 -0
- data/doc/ri/Module/abstract-i.yaml +14 -0
- data/doc/ri/Module/alias_accessor%21-i.yaml +17 -0
- data/doc/ri/Module/alias_accessor-i.yaml +14 -0
- data/doc/ri/Module/alias_method_chain-i.yaml +32 -0
- data/doc/ri/Module/alias_module_function-i.yaml +14 -0
- data/doc/ri/Module/alias_reader%21-i.yaml +17 -0
- data/doc/ri/Module/alias_reader%3f-i.yaml +12 -0
- data/doc/ri/Module/alias_reader-i.yaml +12 -0
- data/doc/ri/Module/alias_setter-i.yaml +14 -0
- data/doc/ri/Module/alias_switcher-i.yaml +12 -0
- data/doc/ri/Module/alias_tester-i.yaml +12 -0
- data/doc/ri/Module/alias_toggler-i.yaml +12 -0
- data/doc/ri/Module/alias_validator-i.yaml +12 -0
- data/doc/ri/Module/alias_writer%21-i.yaml +14 -0
- data/doc/ri/Module/alias_writer-i.yaml +12 -0
- data/doc/ri/Module/all_instance_methods-i.yaml +18 -0
- data/doc/ri/Module/ancestor%3f-i.yaml +14 -0
- data/doc/ri/Module/ann%21-i.yaml +12 -0
- data/doc/ri/Module/ann-i.yaml +12 -0
- data/doc/ri/Module/annotations-i.yaml +10 -0
- data/doc/ri/Module/append_features-c.yaml +10 -0
- data/doc/ri/Module/append_features-i.yaml +10 -0
- data/doc/ri/Module/append_features_without_class_extension-i.yaml +12 -0
- data/doc/ri/Module/attr-i.yaml +10 -0
- data/doc/ri/Module/attr_accessor%21-i.yaml +21 -0
- data/doc/ri/Module/attr_reader%21-i.yaml +21 -0
- data/doc/ri/Module/attr_reader%3f-i.yaml +12 -0
- data/doc/ri/Module/attr_setter-i.yaml +18 -0
- data/doc/ri/Module/attr_switcher-i.yaml +12 -0
- data/doc/ri/Module/attr_tester-i.yaml +12 -0
- data/doc/ri/Module/attr_toggler-i.yaml +12 -0
- data/doc/ri/Module/attr_validator-i.yaml +14 -0
- data/doc/ri/Module/attr_writer%21-i.yaml +18 -0
- data/doc/ri/Module/basename-i.yaml +18 -0
- data/doc/ri/Module/cdesc-Module.yaml +191 -0
- data/doc/ri/Module/class_def-i.yaml +14 -0
- data/doc/ri/Module/class_extension-i.yaml +17 -0
- data/doc/ri/Module/class_inherit-i.yaml +12 -0
- data/doc/ri/Module/class_load-i.yaml +12 -0
- data/doc/ri/Module/class_methods-i.yaml +11 -0
- data/doc/ri/Module/class_require-i.yaml +12 -0
- data/doc/ri/Module/classified_attributes-i.yaml +14 -0
- data/doc/ri/Module/conflict%3f-i.yaml +14 -0
- data/doc/ri/Module/define_dependency-i.yaml +11 -0
- data/doc/ri/Module/depend-i.yaml +11 -0
- data/doc/ri/Module/dependencies-i.yaml +12 -0
- data/doc/ri/Module/heritage-i.yaml +10 -0
- data/doc/ri/Module/include_as-i.yaml +14 -0
- data/doc/ri/Module/include_function_module-i.yaml +14 -0
- data/doc/ri/Module/instance_method%21-i.yaml +16 -0
- data/doc/ri/Module/instance_method_defined%3f-i.yaml +14 -0
- data/doc/ri/Module/integrate-i.yaml +20 -0
- data/doc/ri/Module/is%3f-i.yaml +14 -0
- data/doc/ri/Module/is-i.yaml +12 -0
- data/doc/ri/Module/memoize-i.yaml +14 -0
- data/doc/ri/Module/method_overloads-i.yaml +10 -0
- data/doc/ri/Module/method_space-i.yaml +14 -0
- data/doc/ri/Module/mixin_parameters-i.yaml +17 -0
- data/doc/ri/Module/mixin_params-i.yaml +12 -0
- data/doc/ri/Module/modspace-i.yaml +18 -0
- data/doc/ri/Module/module_load-i.yaml +15 -0
- data/doc/ri/Module/module_method_defined%3f-i.yaml +12 -0
- data/doc/ri/Module/module_require-i.yaml +15 -0
- data/doc/ri/Module/nesting-i.yaml +14 -0
- data/doc/ri/Module/overload-i.yaml +14 -0
- data/doc/ri/Module/pathize-i.yaml +16 -0
- data/doc/ri/Module/prepend-i.yaml +14 -0
- data/doc/ri/Module/private_conflict%3f-i.yaml +12 -0
- data/doc/ri/Module/protected_conflict%3f-i.yaml +12 -0
- data/doc/ri/Module/public_conflict%3f-i.yaml +12 -0
- data/doc/ri/Module/redef-i.yaml +12 -0
- data/doc/ri/Module/redefine_method-i.yaml +17 -0
- data/doc/ri/Module/redirect-i.yaml +12 -0
- data/doc/ri/Module/redirect_method-i.yaml +19 -0
- data/doc/ri/Module/rename-i.yaml +12 -0
- data/doc/ri/Module/rename_method-i.yaml +15 -0
- data/doc/ri/Module/revisal-i.yaml +12 -0
- data/doc/ri/Module/revise-i.yaml +15 -0
- data/doc/ri/Module/setting-i.yaml +21 -0
- data/doc/ri/Module/singleton_method_defined%3f-i.yaml +15 -0
- data/doc/ri/Module/spacename-i.yaml +20 -0
- data/doc/ri/Module/wrap-i.yaml +12 -0
- data/doc/ri/Module/wrap_method-i.yaml +19 -0
- data/doc/ri/Multiton/Inclusive/cdesc-Inclusive.yaml +18 -0
- data/doc/ri/Multiton/Inclusive/included-i.yaml +10 -0
- data/doc/ri/Multiton/InstanceMutex/cdesc-InstanceMutex.yaml +17 -0
- data/doc/ri/Multiton/MetaMethods/_load-i.yaml +10 -0
- data/doc/ri/Multiton/MetaMethods/cdesc-MetaMethods.yaml +34 -0
- data/doc/ri/Multiton/MetaMethods/initialized%3f-i.yaml +10 -0
- data/doc/ri/Multiton/MetaMethods/instance-i.yaml +11 -0
- data/doc/ri/Multiton/MetaMethods/multiton_id-i.yaml +12 -0
- data/doc/ri/Multiton/MetaMethods/multiton_instance-i.yaml +10 -0
- data/doc/ri/Multiton/MetaMethods/multiton_mutex-i.yaml +10 -0
- data/doc/ri/Multiton/MetaMethods/new-i.yaml +12 -0
- data/doc/ri/Multiton/MetaMethods/reinitialize-i.yaml +10 -0
- data/doc/ri/Multiton/MetaMethods/singleton_method_added-i.yaml +10 -0
- data/doc/ri/Multiton/_dump-i.yaml +12 -0
- data/doc/ri/Multiton/cdesc-Multiton.yaml +40 -0
- data/doc/ri/Multiton/clone-i.yaml +12 -0
- data/doc/ri/Multiton/dup-i.yaml +10 -0
- data/doc/ri/NackClass/cdesc-NackClass.yaml +20 -0
- data/doc/ri/Net/SMTP/cdesc-SMTP.yaml +25 -0
- data/doc/ri/Net/SMTP/do_helo-i.yaml +10 -0
- data/doc/ri/Net/SMTP/do_tls_start-i.yaml +10 -0
- data/doc/ri/Net/SMTP/quit-i.yaml +10 -0
- data/doc/ri/Net/SMTP/start-c.yaml +10 -0
- data/doc/ri/Net/SMTP/start-i.yaml +10 -0
- data/doc/ri/Net/SMTP/starttls-i.yaml +10 -0
- data/doc/ri/Net/cdesc-Net.yaml +15 -0
- data/doc/ri/NilClass/cdesc-NilClass.yaml +17 -0
- data/doc/ri/NullClass/%5b%5d-i.yaml +10 -0
- data/doc/ri/NullClass/cdesc-NullClass.yaml +32 -0
- data/doc/ri/NullClass/inspect-i.yaml +10 -0
- data/doc/ri/NullClass/method_missing-i.yaml +10 -0
- data/doc/ri/NullClass/new-c.yaml +10 -0
- data/doc/ri/NullClass/nil%3f-i.yaml +10 -0
- data/doc/ri/NullClass/null%3f-i.yaml +10 -0
- data/doc/ri/Numeric/cdesc-Numeric.yaml +26 -0
- data/doc/ri/Object/cdesc-Object.yaml +15 -0
- data/doc/ri/ObjectReflection/_bind_method-i.yaml +10 -0
- data/doc/ri/ObjectReflection/cdesc-ObjectReflection.yaml +28 -0
- data/doc/ri/ObjectReflection/id-i.yaml +11 -0
- data/doc/ri/ObjectReflection/method_missing-i.yaml +16 -0
- data/doc/ri/ObjectReflection/new-c.yaml +11 -0
- data/doc/ri/OpEsc/cdesc-OpEsc.yaml +30 -0
- data/doc/ri/OpEsc/escape-c.yaml +14 -0
- data/doc/ri/OpenCascade/cdesc-OpenCascade.yaml +25 -0
- data/doc/ri/OpenCascade/method_missing-i.yaml +10 -0
- data/doc/ri/OpenCollection/cdesc-OpenCollection.yaml +22 -0
- data/doc/ri/OpenCollection/method_missing-i.yaml +10 -0
- data/doc/ri/OpenCollection/new-c.yaml +10 -0
- data/doc/ri/OpenHash/cdesc-OpenHash.yaml +22 -0
- data/doc/ri/OpenHash/method_missing-i.yaml +12 -0
- data/doc/ri/OpenHash/new-c.yaml +12 -0
- data/doc/ri/OpenObject/%3d%3d-i.yaml +12 -0
- data/doc/ri/OpenObject/%5b%5d%3d-i.yaml +10 -0
- data/doc/ri/OpenObject/%5b%5d-c.yaml +10 -0
- data/doc/ri/OpenObject/%5b%5d-i.yaml +10 -0
- data/doc/ri/OpenObject/as_hash%21-i.yaml +12 -0
- data/doc/ri/OpenObject/cdesc-OpenObject.yaml +77 -0
- data/doc/ri/OpenObject/default%21-i.yaml +12 -0
- data/doc/ri/OpenObject/define_slot-i.yaml +10 -0
- data/doc/ri/OpenObject/delete-i.yaml +11 -0
- data/doc/ri/OpenObject/each-i.yaml +12 -0
- data/doc/ri/OpenObject/fetch-i.yaml +10 -0
- data/doc/ri/OpenObject/initialize_copy-i.yaml +10 -0
- data/doc/ri/OpenObject/inspect-i.yaml +12 -0
- data/doc/ri/OpenObject/merge-i.yaml +12 -0
- data/doc/ri/OpenObject/method_missing-i.yaml +10 -0
- data/doc/ri/OpenObject/new-c.yaml +14 -0
- data/doc/ri/OpenObject/protect_slot-i.yaml +10 -0
- data/doc/ri/OpenObject/store-i.yaml +10 -0
- data/doc/ri/OpenObject/to_a-i.yaml +12 -0
- data/doc/ri/OpenObject/to_h-i.yaml +10 -0
- data/doc/ri/OpenObject/to_hash-i.yaml +10 -0
- data/doc/ri/OpenObject/to_openobject-i.yaml +10 -0
- data/doc/ri/OpenObject/to_proc-i.yaml +10 -0
- data/doc/ri/OpenObject/update-i.yaml +12 -0
- data/doc/ri/OpenStruct/%5b%5d%3d-i.yaml +14 -0
- data/doc/ri/OpenStruct/%5b%5d-i.yaml +14 -0
- data/doc/ri/OpenStruct/__merge__-i.yaml +14 -0
- data/doc/ri/OpenStruct/__update__-i.yaml +14 -0
- data/doc/ri/OpenStruct/cdesc-OpenStruct.yaml +35 -0
- data/doc/ri/OpenStruct/each-i.yaml +11 -0
- data/doc/ri/OpenStruct/instance_delegate-i.yaml +19 -0
- data/doc/ri/OpenStruct/new-c.yaml +18 -0
- data/doc/ri/OpenStruct/ostruct_delegate-i.yaml +12 -0
- data/doc/ri/OpenStruct/ostruct_merge-i.yaml +14 -0
- data/doc/ri/OpenStruct/ostruct_update-i.yaml +14 -0
- data/doc/ri/OpenStruct/to_h-i.yaml +11 -0
- data/doc/ri/PQueue/%3c%3c-i.yaml +12 -0
- data/doc/ri/PQueue/%3d%3d-i.yaml +12 -0
- data/doc/ri/PQueue/cdesc-PQueue.yaml +77 -0
- data/doc/ri/PQueue/clear-i.yaml +12 -0
- data/doc/ri/PQueue/downheap-i.yaml +14 -0
- data/doc/ri/PQueue/each_pop-i.yaml +12 -0
- data/doc/ri/PQueue/empty%3f-i.yaml +12 -0
- data/doc/ri/PQueue/heapify-i.yaml +12 -0
- data/doc/ri/PQueue/include%3f-i.yaml +12 -0
- data/doc/ri/PQueue/initialize_copy-i.yaml +10 -0
- data/doc/ri/PQueue/inspect-i.yaml +12 -0
- data/doc/ri/PQueue/merge-i.yaml +12 -0
- data/doc/ri/PQueue/new-c.yaml +18 -0
- data/doc/ri/PQueue/pop-i.yaml +18 -0
- data/doc/ri/PQueue/pop_array-i.yaml +12 -0
- data/doc/ri/PQueue/push-i.yaml +15 -0
- data/doc/ri/PQueue/push_all-i.yaml +15 -0
- data/doc/ri/PQueue/replace-i.yaml +14 -0
- data/doc/ri/PQueue/replace_top-i.yaml +14 -0
- data/doc/ri/PQueue/sort-i.yaml +12 -0
- data/doc/ri/PQueue/to_a-i.yaml +13 -0
- data/doc/ri/PQueue/top-i.yaml +12 -0
- data/doc/ri/PQueue/upheap-i.yaml +14 -0
- data/doc/ri/Paramix/Delegator/%5b%5d-i.yaml +10 -0
- data/doc/ri/Paramix/Delegator/append_features-i.yaml +11 -0
- data/doc/ri/Paramix/Delegator/cdesc-Delegator.yaml +33 -0
- data/doc/ri/Paramix/Delegator/extend_object-i.yaml +11 -0
- data/doc/ri/Paramix/Delegator/new-c.yaml +11 -0
- data/doc/ri/Paramix/append_features-c.yaml +10 -0
- data/doc/ri/Paramix/cdesc-Paramix.yaml +41 -0
- data/doc/ri/Paramix/new-c.yaml +12 -0
- data/doc/ri/PathList/Finder/cdesc-Finder.yaml +21 -0
- data/doc/ri/PathList/Finder/find-i.yaml +11 -0
- data/doc/ri/PathList/Finder/include%3f-i.yaml +12 -0
- data/doc/ri/PathList/cdesc-PathList.yaml +28 -0
- data/doc/ri/PathList/new-c.yaml +10 -0
- data/doc/ri/PathList/to_s-i.yaml +10 -0
- data/doc/ri/Pathname/%2f-c.yaml +14 -0
- data/doc/ri/Pathname/%5b%5d-c.yaml +14 -0
- data/doc/ri/Pathname/cdesc-Pathname.yaml +27 -0
- data/doc/ri/Pathname/home-c.yaml +14 -0
- data/doc/ri/Pathname/null-c.yaml +12 -0
- data/doc/ri/Pathname/root-c.yaml +12 -0
- data/doc/ri/Pathname/rootname-i.yaml +11 -0
- data/doc/ri/Pathname/work-c.yaml +12 -0
- data/doc/ri/Platform/%3d%3d%3d-i.yaml +10 -0
- data/doc/ri/Platform/%3d%3d-i.yaml +10 -0
- data/doc/ri/Platform/%3d%7e-i.yaml +10 -0
- data/doc/ri/Platform/cdesc-Platform.yaml +65 -0
- data/doc/ri/Platform/const_missing-c.yaml +10 -0
- data/doc/ri/Platform/inspect-i.yaml +10 -0
- data/doc/ri/Platform/local-c.yaml +10 -0
- data/doc/ri/Platform/match-c.yaml +10 -0
- data/doc/ri/Platform/new-c.yaml +10 -0
- data/doc/ri/Platform/supported-c.yaml +12 -0
- data/doc/ri/Platform/to_a-i.yaml +10 -0
- data/doc/ri/Platform/to_s-i.yaml +10 -0
- data/doc/ri/Pool/cdesc-Pool.yaml +27 -0
- data/doc/ri/Pool/new-c.yaml +10 -0
- data/doc/ri/Pool/obtain-i.yaml +12 -0
- data/doc/ri/Pool/pop-i.yaml +12 -0
- data/doc/ri/Pool/push-i.yaml +12 -0
- data/doc/ri/Proc/%2a-i.yaml +14 -0
- data/doc/ri/Proc/bind-i.yaml +16 -0
- data/doc/ri/Proc/cdesc-Proc.yaml +28 -0
- data/doc/ri/Proc/compose-i.yaml +14 -0
- data/doc/ri/Proc/curry-i.yaml +14 -0
- data/doc/ri/Proc/partial-i.yaml +20 -0
- data/doc/ri/Proc/to_method-i.yaml +14 -0
- data/doc/ri/Proc/to_openobject-i.yaml +16 -0
- data/doc/ri/ProgressBar/bar-i.yaml +10 -0
- data/doc/ri/ProgressBar/bar_mark%3d-i.yaml +10 -0
- data/doc/ri/ProgressBar/bytes-i.yaml +10 -0
- data/doc/ri/ProgressBar/cdesc-ProgressBar.yaml +76 -0
- data/doc/ri/ProgressBar/convert_bytes-i.yaml +10 -0
- data/doc/ri/ProgressBar/elapsed-i.yaml +10 -0
- data/doc/ri/ProgressBar/eol-i.yaml +10 -0
- data/doc/ri/ProgressBar/eta-i.yaml +12 -0
- data/doc/ri/ProgressBar/file_transfer_mode-i.yaml +10 -0
- data/doc/ri/ProgressBar/finish-i.yaml +10 -0
- data/doc/ri/ProgressBar/flush-i.yaml +10 -0
- data/doc/ri/ProgressBar/format%3d-i.yaml +10 -0
- data/doc/ri/ProgressBar/format_arguments%3d-i.yaml +10 -0
- data/doc/ri/ProgressBar/format_time-i.yaml +10 -0
- data/doc/ri/ProgressBar/get_width-i.yaml +10 -0
- data/doc/ri/ProgressBar/halt-i.yaml +10 -0
- data/doc/ri/ProgressBar/inc-i.yaml +10 -0
- data/doc/ri/ProgressBar/inspect-i.yaml +10 -0
- data/doc/ri/ProgressBar/new-c.yaml +10 -0
- data/doc/ri/ProgressBar/percentage-i.yaml +10 -0
- data/doc/ri/ProgressBar/set-i.yaml +10 -0
- data/doc/ri/ProgressBar/show-i.yaml +10 -0
- data/doc/ri/ProgressBar/show_progress-i.yaml +10 -0
- data/doc/ri/ProgressBar/stat-i.yaml +10 -0
- data/doc/ri/ProgressBar/stat_for_file_transfer-i.yaml +10 -0
- data/doc/ri/ProgressBar/title%3d-i.yaml +10 -0
- data/doc/ri/ProgressBar/title-i.yaml +10 -0
- data/doc/ri/ProgressBar/total_overflow%3d-i.yaml +10 -0
- data/doc/ri/ProgressBar/transfer_rate-i.yaml +10 -0
- data/doc/ri/Prototype/cdesc-Prototype.yaml +30 -0
- data/doc/ri/Prototype/fn-i.yaml +10 -0
- data/doc/ri/Prototype/meta-i.yaml +10 -0
- data/doc/ri/Prototype/method_missing-i.yaml +10 -0
- data/doc/ri/Prototype/new-c.yaml +12 -0
- data/doc/ri/Prototype/new-i.yaml +10 -0
- data/doc/ri/Prototype/trait-i.yaml +10 -0
- data/doc/ri/Prototype/traits-i.yaml +10 -0
- data/doc/ri/RWDelegator/%3d%3d-i.yaml +10 -0
- data/doc/ri/RWDelegator/cdesc-RWDelegator.yaml +28 -0
- data/doc/ri/RWDelegator/inspect-i.yaml +10 -0
- data/doc/ri/RWDelegator/method_missing-i.yaml +10 -0
- data/doc/ri/RWDelegator/new-c.yaml +10 -0
- data/doc/ri/Random/Array/at_rand%21-i.yaml +14 -0
- data/doc/ri/Random/Array/at_rand-i.yaml +14 -0
- data/doc/ri/Random/Array/cdesc-Array.yaml +31 -0
- data/doc/ri/Random/Array/pick%21-i.yaml +12 -0
- data/doc/ri/Random/Array/pick-i.yaml +12 -0
- data/doc/ri/Random/Array/rand_index-i.yaml +12 -0
- data/doc/ri/Random/Array/rand_subset-i.yaml +18 -0
- data/doc/ri/Random/Array/shuffle%21-i.yaml +16 -0
- data/doc/ri/Random/Array/shuffle-i.yaml +14 -0
- data/doc/ri/Random/Hash/at_rand%21-i.yaml +12 -0
- data/doc/ri/Random/Hash/at_rand-i.yaml +12 -0
- data/doc/ri/Random/Hash/cdesc-Hash.yaml +41 -0
- data/doc/ri/Random/Hash/pick-i.yaml +12 -0
- data/doc/ri/Random/Hash/pick_key-i.yaml +12 -0
- data/doc/ri/Random/Hash/pick_pair-i.yaml +12 -0
- data/doc/ri/Random/Hash/rand_key%21-i.yaml +15 -0
- data/doc/ri/Random/Hash/rand_key-i.yaml +14 -0
- data/doc/ri/Random/Hash/rand_pair%21-i.yaml +15 -0
- data/doc/ri/Random/Hash/rand_pair-i.yaml +14 -0
- data/doc/ri/Random/Hash/rand_value%21-i.yaml +17 -0
- data/doc/ri/Random/Hash/rand_value-i.yaml +15 -0
- data/doc/ri/Random/Hash/shuffle%21-i.yaml +14 -0
- data/doc/ri/Random/Hash/shuffle-i.yaml +14 -0
- data/doc/ri/Random/Object/cdesc-Object.yaml +16 -0
- data/doc/ri/Random/Object/maybe-i.yaml +14 -0
- data/doc/ri/Random/String/Self/cdesc-Self.yaml +20 -0
- data/doc/ri/Random/String/Self/rand_letter-i.yaml +14 -0
- data/doc/ri/Random/String/Self/random-i.yaml +12 -0
- data/doc/ri/Random/String/at_rand%21-i.yaml +14 -0
- data/doc/ri/Random/String/at_rand-i.yaml +14 -0
- data/doc/ri/Random/String/cdesc-String.yaml +30 -0
- data/doc/ri/Random/String/included-c.yaml +10 -0
- data/doc/ri/Random/String/rand_byte%21-i.yaml +14 -0
- data/doc/ri/Random/String/rand_byte-i.yaml +14 -0
- data/doc/ri/Random/String/rand_index-i.yaml +14 -0
- data/doc/ri/Random/String/shuffle%21-i.yaml +12 -0
- data/doc/ri/Random/String/shuffle-i.yaml +14 -0
- data/doc/ri/Random/append_features-c.yaml +11 -0
- data/doc/ri/Random/cdesc-Random.yaml +31 -0
- data/doc/ri/Random/number-c.yaml +11 -0
- data/doc/ri/Range/cdesc-Range.yaml +27 -0
- data/doc/ri/Range/combine-c.yaml +14 -0
- data/doc/ri/Range/combine-i.yaml +14 -0
- data/doc/ri/Range/overlap%3f-i.yaml +14 -0
- data/doc/ri/Range/to_r-i.yaml +14 -0
- data/doc/ri/Range/to_range-i.yaml +16 -0
- data/doc/ri/Range/umbrella-i.yaml +20 -0
- data/doc/ri/Range/within%3f-i.yaml +14 -0
- data/doc/ri/Recorder/__call__-i.yaml +10 -0
- data/doc/ri/Recorder/cdesc-Recorder.yaml +34 -0
- data/doc/ri/Recorder/inspect-i.yaml +10 -0
- data/doc/ri/Recorder/method_missing-i.yaml +10 -0
- data/doc/ri/Recorder/new-c.yaml +11 -0
- data/doc/ri/RecursiveDependency/cdesc-RecursiveDependency.yaml +15 -0
- data/doc/ri/Reference/__value__-i.yaml +11 -0
- data/doc/ri/Reference/become-i.yaml +10 -0
- data/doc/ri/Reference/cdesc-Reference.yaml +30 -0
- data/doc/ri/Reference/instance_delegate-i.yaml +12 -0
- data/doc/ri/Reference/method_missing-i.yaml +10 -0
- data/doc/ri/Reference/new-c.yaml +10 -0
- data/doc/ri/Regexp/arity-i.yaml +18 -0
- data/doc/ri/Regexp/cdesc-Regexp.yaml +20 -0
- data/doc/ri/Regexp/to_re-i.yaml +16 -0
- data/doc/ri/Regexp/to_regexp-i.yaml +16 -0
- data/doc/ri/Registerable/cdesc-Registerable.yaml +23 -0
- data/doc/ri/Registerable/register-i.yaml +12 -0
- data/doc/ri/Registerable/registry-i.yaml +12 -0
- data/doc/ri/Registerable/registry_invalid%3f-i.yaml +11 -0
- data/doc/ri/Semaphore/cdesc-Semaphore.yaml +36 -0
- data/doc/ri/Semaphore/down-i.yaml +12 -0
- data/doc/ri/Semaphore/exclusive-i.yaml +11 -0
- data/doc/ri/Semaphore/new-c.yaml +10 -0
- data/doc/ri/Semaphore/p-i.yaml +12 -0
- data/doc/ri/Semaphore/signal-i.yaml +13 -0
- data/doc/ri/Semaphore/synchronize-i.yaml +12 -0
- data/doc/ri/Semaphore/up-i.yaml +12 -0
- data/doc/ri/Semaphore/v-i.yaml +12 -0
- data/doc/ri/Semaphore/wait-i.yaml +13 -0
- data/doc/ri/Set/cdesc-Set.yaml +16 -0
- data/doc/ri/Set/power_set-i.yaml +10 -0
- data/doc/ri/Settings/Setting/cdesc-Setting.yaml +42 -0
- data/doc/ri/Settings/Setting/new-c.yaml +10 -0
- data/doc/ri/Settings/Setting/to_s-i.yaml +12 -0
- data/doc/ri/Settings/Setting/update-i.yaml +12 -0
- data/doc/ri/Settings/SettingCollection/cdesc-SettingCollection.yaml +23 -0
- data/doc/ri/Settings/SettingCollection/method_missing-i.yaml +12 -0
- data/doc/ri/Settings/add_setting-c.yaml +17 -0
- data/doc/ri/Settings/cdesc-Settings.yaml +33 -0
- data/doc/ri/Settings/load-c.yaml +12 -0
- data/doc/ri/Settings/method_missing-c.yaml +10 -0
- data/doc/ri/Settings/parse-c.yaml +12 -0
- data/doc/ri/Settings/settings-c.yaml +12 -0
- data/doc/ri/Settings/setup-c.yaml +15 -0
- data/doc/ri/Shellwords/cdesc-Shellwords.yaml +16 -0
- data/doc/ri/Shellwords/escape-i.yaml +12 -0
- data/doc/ri/SimpleStringIO/cdesc-SimpleStringIO.yaml +20 -0
- data/doc/ri/SimpleStringIO/new-c.yaml +10 -0
- data/doc/ri/SimpleStringIO/write-i.yaml +10 -0
- data/doc/ri/Snapshot/ValueHolder/cdesc-ValueHolder.yaml +24 -0
- data/doc/ri/Snapshot/ValueHolder/new-c.yaml +10 -0
- data/doc/ri/Snapshot/ValueHolder/restore_snapshot-i.yaml +10 -0
- data/doc/ri/Snapshot/ValueHolder/take_snapshot-i.yaml +10 -0
- data/doc/ri/Snapshot/add-i.yaml +10 -0
- data/doc/ri/Snapshot/cdesc-Snapshot.yaml +36 -0
- data/doc/ri/Snapshot/new-c.yaml +10 -0
- data/doc/ri/Snapshot/restore-i.yaml +10 -0
- data/doc/ri/Stackable/cdesc-Stackable.yaml +33 -0
- data/doc/ri/Stackable/peek-i.yaml +14 -0
- data/doc/ri/Stackable/poke-i.yaml +15 -0
- data/doc/ri/Stackable/pop-i.yaml +14 -0
- data/doc/ri/Stackable/pull-i.yaml +15 -0
- data/doc/ri/Stackable/push-i.yaml +14 -0
- data/doc/ri/Stackable/shift-i.yaml +12 -0
- data/doc/ri/Stackable/unshift-i.yaml +12 -0
- data/doc/ri/String/Style/camelize-c.yaml +18 -0
- data/doc/ri/String/Style/capitalize-c.yaml +12 -0
- data/doc/ri/String/Style/cdesc-Style.yaml +69 -0
- data/doc/ri/String/Style/classify-c.yaml +20 -0
- data/doc/ri/String/Style/dasherize-c.yaml +16 -0
- data/doc/ri/String/Style/demodulize-c.yaml +16 -0
- data/doc/ri/String/Style/downcase-c.yaml +12 -0
- data/doc/ri/String/Style/foreign_key-c.yaml +16 -0
- data/doc/ri/String/Style/humanize-c.yaml +16 -0
- data/doc/ri/String/Style/lowercamel-c.yaml +10 -0
- data/doc/ri/String/Style/lowercase-c.yaml +12 -0
- data/doc/ri/String/Style/methodize-c.yaml +18 -0
- data/doc/ri/String/Style/modulize-c.yaml +18 -0
- data/doc/ri/String/Style/ordinalize-c.yaml +16 -0
- data/doc/ri/String/Style/pathize-c.yaml +22 -0
- data/doc/ri/String/Style/snakecase-c.yaml +18 -0
- data/doc/ri/String/Style/tableize-c.yaml +16 -0
- data/doc/ri/String/Style/titlecase-c.yaml +14 -0
- data/doc/ri/String/Style/titleize-c.yaml +18 -0
- data/doc/ri/String/Style/underscore-c.yaml +18 -0
- data/doc/ri/String/Style/upcase-c.yaml +12 -0
- data/doc/ri/String/Style/uppercamel-c.yaml +10 -0
- data/doc/ri/String/Style/uppercase-c.yaml +12 -0
- data/doc/ri/String/Words/brief-i.yaml +14 -0
- data/doc/ri/String/Words/cdesc-Words.yaml +28 -0
- data/doc/ri/String/Words/each_word-i.yaml +14 -0
- data/doc/ri/String/Words/word_filter%21-i.yaml +14 -0
- data/doc/ri/String/Words/word_filter-i.yaml +14 -0
- data/doc/ri/String/Words/word_wrap%21-i.yaml +14 -0
- data/doc/ri/String/Words/word_wrap-i.yaml +18 -0
- data/doc/ri/String/Words/words-i.yaml +14 -0
- data/doc/ri/String/cdesc-String.yaml +17 -0
- data/doc/ri/Struct/cdesc-Struct.yaml +18 -0
- data/doc/ri/Struct/restore_snapshot-i.yaml +10 -0
- data/doc/ri/Struct/take_snapshot-i.yaml +10 -0
- data/doc/ri/Symbol/cdesc-Symbol.yaml +15 -0
- data/doc/ri/SyncArray/cdesc-SyncArray.yaml +19 -0
- data/doc/ri/SyncArray/new-c.yaml +12 -0
- data/doc/ri/SyncHash/Delegator/%5b%5d%3d-i.yaml +10 -0
- data/doc/ri/SyncHash/Delegator/%5b%5d-i.yaml +10 -0
- data/doc/ri/SyncHash/Delegator/cdesc-Delegator.yaml +30 -0
- data/doc/ri/SyncHash/Delegator/clear-i.yaml +10 -0
- data/doc/ri/SyncHash/Delegator/delete-i.yaml +10 -0
- data/doc/ri/SyncHash/Delegator/keys-i.yaml +10 -0
- data/doc/ri/SyncHash/Delegator/size-i.yaml +10 -0
- data/doc/ri/SyncHash/Delegator/values-i.yaml +10 -0
- data/doc/ri/SyncHash/Inheritor/%5b%5d%3d-i.yaml +10 -0
- data/doc/ri/SyncHash/Inheritor/%5b%5d-i.yaml +10 -0
- data/doc/ri/SyncHash/Inheritor/cdesc-Inheritor.yaml +30 -0
- data/doc/ri/SyncHash/Inheritor/clear-i.yaml +10 -0
- data/doc/ri/SyncHash/Inheritor/delete-i.yaml +10 -0
- data/doc/ri/SyncHash/Inheritor/keys-i.yaml +10 -0
- data/doc/ri/SyncHash/Inheritor/size-i.yaml +10 -0
- data/doc/ri/SyncHash/Inheritor/values-i.yaml +10 -0
- data/doc/ri/SyncHash/cdesc-SyncHash.yaml +38 -0
- data/doc/ri/SyncHash/new-c.yaml +10 -0
- data/doc/ri/System/argf-i.yaml +12 -0
- data/doc/ri/System/argv-i.yaml +11 -0
- data/doc/ri/System/cdesc-System.yaml +145 -0
- data/doc/ri/System/child_status-i.yaml +11 -0
- data/doc/ri/System/coding%3d-i.yaml +10 -0
- data/doc/ri/System/coding-i.yaml +10 -0
- data/doc/ri/System/current_platform-i.yaml +12 -0
- data/doc/ri/System/data-i.yaml +12 -0
- data/doc/ri/System/debug-i.yaml +10 -0
- data/doc/ri/System/default_input-i.yaml +13 -0
- data/doc/ri/System/default_output%3d-i.yaml +11 -0
- data/doc/ri/System/default_output-i.yaml +11 -0
- data/doc/ri/System/defin-i.yaml +12 -0
- data/doc/ri/System/defout%3d-i.yaml +12 -0
- data/doc/ri/System/defout-i.yaml +12 -0
- data/doc/ri/System/env-i.yaml +10 -0
- data/doc/ri/System/environment-i.yaml +10 -0
- data/doc/ri/System/error_info-i.yaml +10 -0
- data/doc/ri/System/error_position-i.yaml +10 -0
- data/doc/ri/System/exit_status-i.yaml +12 -0
- data/doc/ri/System/extentions-i.yaml +10 -0
- data/doc/ri/System/fs%3d-i.yaml +12 -0
- data/doc/ri/System/fs-i.yaml +12 -0
- data/doc/ri/System/input_field_separator%3d-i.yaml +11 -0
- data/doc/ri/System/input_field_separator-i.yaml +11 -0
- data/doc/ri/System/input_line_number-i.yaml +11 -0
- data/doc/ri/System/input_lineno-i.yaml +12 -0
- data/doc/ri/System/input_record_separator%3d-i.yaml +11 -0
- data/doc/ri/System/input_record_separator-i.yaml +11 -0
- data/doc/ri/System/line_end_processing-i.yaml +10 -0
- data/doc/ri/System/load_path-i.yaml +12 -0
- data/doc/ri/System/loaded_features-i.yaml +11 -0
- data/doc/ri/System/match_platform-i.yaml +11 -0
- data/doc/ri/System/ofs%3d-i.yaml +12 -0
- data/doc/ri/System/ofs-i.yaml +12 -0
- data/doc/ri/System/options-i.yaml +12 -0
- data/doc/ri/System/ors%3d-i.yaml +12 -0
- data/doc/ri/System/ors-i.yaml +12 -0
- data/doc/ri/System/output_field_separator%3d-i.yaml +11 -0
- data/doc/ri/System/output_field_separator-i.yaml +11 -0
- data/doc/ri/System/output_record_separator%3d-i.yaml +11 -0
- data/doc/ri/System/output_record_separator-i.yaml +11 -0
- data/doc/ri/System/pid-i.yaml +12 -0
- data/doc/ri/System/platform-i.yaml +10 -0
- data/doc/ri/System/process_id-i.yaml +15 -0
- data/doc/ri/System/program_loop-i.yaml +10 -0
- data/doc/ri/System/program_name%3d-i.yaml +10 -0
- data/doc/ri/System/program_name-i.yaml +12 -0
- data/doc/ri/System/release-i.yaml +10 -0
- data/doc/ri/System/required-i.yaml +12 -0
- data/doc/ri/System/rs%3d-i.yaml +12 -0
- data/doc/ri/System/rs-i.yaml +12 -0
- data/doc/ri/System/rubylibdir-i.yaml +10 -0
- data/doc/ri/System/rubypath-i.yaml +10 -0
- data/doc/ri/System/safe-i.yaml +10 -0
- data/doc/ri/System/stderr%3d-i.yaml +10 -0
- data/doc/ri/System/stderr-i.yaml +10 -0
- data/doc/ri/System/stdin%3d-i.yaml +10 -0
- data/doc/ri/System/stdin-i.yaml +12 -0
- data/doc/ri/System/stdout%3d-i.yaml +10 -0
- data/doc/ri/System/stdout-i.yaml +10 -0
- data/doc/ri/System/verbose%3d-i.yaml +10 -0
- data/doc/ri/System/verbose-i.yaml +10 -0
- data/doc/ri/System/version-i.yaml +10 -0
- data/doc/ri/Time/cdesc-Time.yaml +17 -0
- data/doc/ri/Timer/Dummy/cdesc-Dummy.yaml +20 -0
- data/doc/ri/Timer/Dummy/start-i.yaml +10 -0
- data/doc/ri/Timer/Dummy/stop-i.yaml +10 -0
- data/doc/ri/Timer/cdesc-Timer.yaml +57 -0
- data/doc/ri/Timer/defuse-i.yaml +12 -0
- data/doc/ri/Timer/limit-i.yaml +12 -0
- data/doc/ri/Timer/new-c.yaml +10 -0
- data/doc/ri/Timer/on_timeout-i.yaml +10 -0
- data/doc/ri/Timer/reset-i.yaml +12 -0
- data/doc/ri/Timer/reset_limit-i.yaml +14 -0
- data/doc/ri/Timer/running%3f-i.yaml +12 -0
- data/doc/ri/Timer/start-i.yaml +12 -0
- data/doc/ri/Timer/stop-i.yaml +12 -0
- data/doc/ri/Timer/stopped%3f-i.yaml +12 -0
- data/doc/ri/Timer/total_time-i.yaml +12 -0
- data/doc/ri/TracePoint/%3d%3d%3d-i.yaml +12 -0
- data/doc/ri/TracePoint/active%3d-c.yaml +10 -0
- data/doc/ri/TracePoint/active-c.yaml +10 -0
- data/doc/ri/TracePoint/back-i.yaml +12 -0
- data/doc/ri/TracePoint/bind-i.yaml +12 -0
- data/doc/ri/TracePoint/called-i.yaml +13 -0
- data/doc/ri/TracePoint/callee-i.yaml +13 -0
- data/doc/ri/TracePoint/cdesc-TracePoint.yaml +82 -0
- data/doc/ri/TracePoint/event%3f-i.yaml +12 -0
- data/doc/ri/TracePoint/event_map-i.yaml +10 -0
- data/doc/ri/TracePoint/eventless%3f-i.yaml +10 -0
- data/doc/ri/TracePoint/method_name-i.yaml +12 -0
- data/doc/ri/TracePoint/new-c.yaml +12 -0
- data/doc/ri/TracePoint/self-i.yaml +12 -0
- data/doc/ri/TracePoint/trace-c.yaml +12 -0
- data/doc/ri/TrueClass/cdesc-TrueClass.yaml +15 -0
- data/doc/ri/Tuple/%3c%3c-i.yaml +12 -0
- data/doc/ri/Tuple/%3c%3d%3e-i.yaml +10 -0
- data/doc/ri/Tuple/%3d%7e-i.yaml +12 -0
- data/doc/ri/Tuple/%5b%5d%3d-i.yaml +10 -0
- data/doc/ri/Tuple/%5b%5d-c.yaml +10 -0
- data/doc/ri/Tuple/%5b%5d-i.yaml +10 -0
- data/doc/ri/Tuple/cast_from_array-c.yaml +11 -0
- data/doc/ri/Tuple/cast_from_string-c.yaml +20 -0
- data/doc/ri/Tuple/cdesc-Tuple.yaml +113 -0
- data/doc/ri/Tuple/constraint_to_lambda-c.yaml +12 -0
- data/doc/ri/Tuple/divider-i.yaml +10 -0
- data/doc/ri/Tuple/each-i.yaml +10 -0
- data/doc/ri/Tuple/each_index-i.yaml +10 -0
- data/doc/ri/Tuple/empty%3f-i.yaml +10 -0
- data/doc/ri/Tuple/eql%3f-i.yaml +12 -0
- data/doc/ri/Tuple/first-i.yaml +10 -0
- data/doc/ri/Tuple/hash-i.yaml +12 -0
- data/doc/ri/Tuple/index-i.yaml +10 -0
- data/doc/ri/Tuple/inspect-i.yaml +10 -0
- data/doc/ri/Tuple/last-i.yaml +10 -0
- data/doc/ri/Tuple/length-i.yaml +10 -0
- data/doc/ri/Tuple/major-i.yaml +12 -0
- data/doc/ri/Tuple/minor-i.yaml +10 -0
- data/doc/ri/Tuple/multiton_id-c.yaml +10 -0
- data/doc/ri/Tuple/new-c.yaml +10 -0
- data/doc/ri/Tuple/parse_constraint-c.yaml +10 -0
- data/doc/ri/Tuple/pop-i.yaml +10 -0
- data/doc/ri/Tuple/pot-i.yaml +13 -0
- data/doc/ri/Tuple/pull-i.yaml +13 -0
- data/doc/ri/Tuple/push-i.yaml +10 -0
- data/doc/ri/Tuple/rindex-i.yaml +10 -0
- data/doc/ri/Tuple/shift-i.yaml +12 -0
- data/doc/ri/Tuple/size-i.yaml +10 -0
- data/doc/ri/Tuple/teeny-i.yaml +10 -0
- data/doc/ri/Tuple/to_a-i.yaml +10 -0
- data/doc/ri/Tuple/to_ary-i.yaml +10 -0
- data/doc/ri/Tuple/to_s-i.yaml +10 -0
- data/doc/ri/Tuple/to_t-i.yaml +10 -0
- data/doc/ri/Tuple/to_tuple-i.yaml +10 -0
- data/doc/ri/Tuple/unshift-i.yaml +12 -0
- data/doc/ri/Tuple/values-i.yaml +10 -0
- data/doc/ri/TypeCast/Class/cast_from-i.yaml +14 -0
- data/doc/ri/TypeCast/Class/cdesc-Class.yaml +18 -0
- data/doc/ri/TypeCast/Object/cast_to-i.yaml +14 -0
- data/doc/ri/TypeCast/Object/cdesc-Object.yaml +18 -0
- data/doc/ri/TypeCast/cdesc-TypeCast.yaml +52 -0
- data/doc/ri/TypeCastException/cdesc-TypeCastException.yaml +17 -0
- data/doc/ri/URI/Hash/cdesc-Hash.yaml +16 -0
- data/doc/ri/URI/Hash/to_uri-i.yaml +11 -0
- data/doc/ri/URI/Kernel/cdesc-Kernel.yaml +18 -0
- data/doc/ri/URI/Kernel/unuri-i.yaml +11 -0
- data/doc/ri/URI/Kernel/uri-i.yaml +11 -0
- data/doc/ri/URI/cdesc-URI.yaml +38 -0
- data/doc/ri/URI/cgi_escape-i.yaml +12 -0
- data/doc/ri/URI/cgi_parse-i.yaml +11 -0
- data/doc/ri/URI/cgi_unescape-i.yaml +11 -0
- data/doc/ri/URI/chomp_query_string-i.yaml +16 -0
- data/doc/ri/URI/decode-i.yaml +12 -0
- data/doc/ri/URI/get_query_string-i.yaml +16 -0
- data/doc/ri/URI/hash_to_query-i.yaml +15 -0
- data/doc/ri/URI/hash_to_query_string-i.yaml +12 -0
- data/doc/ri/URI/query_string_to_hash-i.yaml +12 -0
- data/doc/ri/URI/query_to_hash-i.yaml +17 -0
- data/doc/ri/URI/update_query_string-i.yaml +18 -0
- data/doc/ri/URI/update_request_uri-i.yaml +12 -0
- data/doc/ri/UnboundMethod/arguments-i.yaml +18 -0
- data/doc/ri/UnboundMethod/cdesc-UnboundMethod.yaml +18 -0
- data/doc/ri/UnboundMethod/name-i.yaml +14 -0
- data/doc/ri/Uninheritable/cdesc-Uninheritable.yaml +21 -0
- data/doc/ri/Uninheritable/inherited-i.yaml +12 -0
- data/doc/ri/UploadUtils/cdesc-UploadUtils.yaml +47 -0
- data/doc/ri/UploadUtils/files-i.yaml +12 -0
- data/doc/ri/UploadUtils/ftp-i.yaml +12 -0
- data/doc/ri/UploadUtils/rsync-i.yaml +12 -0
- data/doc/ri/UploadUtils/sftp-i.yaml +12 -0
- data/doc/ri/UploadUtils/stage_linkdir-i.yaml +12 -0
- data/doc/ri/UploadUtils/stage_transfer-i.yaml +20 -0
- data/doc/ri/UploadUtils/upload-i.yaml +12 -0
- data/doc/ri/UploadUtils/upload_parameters-i.yaml +12 -0
- data/doc/ri/VersionNumber/%3c%3d%3e-i.yaml +12 -0
- data/doc/ri/VersionNumber/%3d%7e-i.yaml +12 -0
- data/doc/ri/VersionNumber/%5b%5d-i.yaml +10 -0
- data/doc/ri/VersionNumber/cdesc-VersionNumber.yaml +45 -0
- data/doc/ri/VersionNumber/constraint_lambda-c.yaml +12 -0
- data/doc/ri/VersionNumber/inspect-i.yaml +10 -0
- data/doc/ri/VersionNumber/major-i.yaml +12 -0
- data/doc/ri/VersionNumber/method_missing-i.yaml +12 -0
- data/doc/ri/VersionNumber/minor-i.yaml +12 -0
- data/doc/ri/VersionNumber/new-c.yaml +10 -0
- data/doc/ri/VersionNumber/parse_constraint-c.yaml +10 -0
- data/doc/ri/VersionNumber/teeny-i.yaml +12 -0
- data/doc/ri/VersionNumber/to_s-i.yaml +10 -0
- data/doc/ri/VersionNumber/to_str-i.yaml +12 -0
- data/doc/ri/Weekdays/after-i.yaml +12 -0
- data/doc/ri/Weekdays/ago-i.yaml +13 -0
- data/doc/ri/Weekdays/before-i.yaml +12 -0
- data/doc/ri/Weekdays/cdesc-Weekdays.yaml +38 -0
- data/doc/ri/Weekdays/from_now-i.yaml +12 -0
- data/doc/ri/Weekdays/new-c.yaml +10 -0
- data/doc/ri/Weekdays/since-i.yaml +13 -0
- data/doc/ri/Weekdays/step-i.yaml +10 -0
- data/doc/ri/Weekdays/until-i.yaml +12 -0
- data/doc/ri/XOXO/Parser/cdesc-Parser.yaml +15 -0
- data/doc/ri/XOXO/cdesc-XOXO.yaml +25 -0
- data/doc/ri/XOXO/dump-c.yaml +35 -0
- data/doc/ri/XOXO/load-c.yaml +12 -0
- data/doc/ri/XOXO/make_xoxo-c.yaml +10 -0
- data/doc/ri/ZipUtils/DryRun/cdesc-DryRun.yaml +32 -0
- data/doc/ri/ZipUtils/DryRun/compress-i.yaml +10 -0
- data/doc/ri/ZipUtils/DryRun/tar_bzip2-i.yaml +10 -0
- data/doc/ri/ZipUtils/DryRun/tar_gzip-i.yaml +10 -0
- data/doc/ri/ZipUtils/DryRun/untar_bzip2-i.yaml +10 -0
- data/doc/ri/ZipUtils/DryRun/untar_gzip-i.yaml +10 -0
- data/doc/ri/ZipUtils/DryRun/unzip-i.yaml +10 -0
- data/doc/ri/ZipUtils/DryRun/zip-i.yaml +10 -0
- data/doc/ri/ZipUtils/NoWrite/cdesc-NoWrite.yaml +32 -0
- data/doc/ri/ZipUtils/NoWrite/compress-i.yaml +10 -0
- data/doc/ri/ZipUtils/NoWrite/tar_bzip2-i.yaml +10 -0
- data/doc/ri/ZipUtils/NoWrite/tar_gzip-i.yaml +10 -0
- data/doc/ri/ZipUtils/NoWrite/untar_bzip2-i.yaml +10 -0
- data/doc/ri/ZipUtils/NoWrite/untar_gzip-i.yaml +10 -0
- data/doc/ri/ZipUtils/NoWrite/unzip-i.yaml +10 -0
- data/doc/ri/ZipUtils/NoWrite/zip-i.yaml +10 -0
- data/doc/ri/ZipUtils/Verbose/cdesc-Verbose.yaml +32 -0
- data/doc/ri/ZipUtils/Verbose/compress-i.yaml +10 -0
- data/doc/ri/ZipUtils/Verbose/tar_bzip2-i.yaml +10 -0
- data/doc/ri/ZipUtils/Verbose/tar_gzip-i.yaml +10 -0
- data/doc/ri/ZipUtils/Verbose/untar_bzip2-i.yaml +10 -0
- data/doc/ri/ZipUtils/Verbose/untar_gzip-i.yaml +10 -0
- data/doc/ri/ZipUtils/Verbose/unzip-i.yaml +10 -0
- data/doc/ri/ZipUtils/Verbose/zip-i.yaml +10 -0
- data/doc/ri/ZipUtils/cdesc-ZipUtils.yaml +50 -0
- data/doc/ri/ZipUtils/compress-i.yaml +27 -0
- data/doc/ri/ZipUtils/tar_bzip-i.yaml +12 -0
- data/doc/ri/ZipUtils/tar_bzip2-i.yaml +15 -0
- data/doc/ri/ZipUtils/tar_gzip-i.yaml +13 -0
- data/doc/ri/ZipUtils/tar_j-i.yaml +12 -0
- data/doc/ri/ZipUtils/tar_z-i.yaml +12 -0
- data/doc/ri/ZipUtils/tgz-i.yaml +11 -0
- data/doc/ri/ZipUtils/untar_bzip-i.yaml +12 -0
- data/doc/ri/ZipUtils/untar_bzip2-i.yaml +15 -0
- data/doc/ri/ZipUtils/untar_gzip-i.yaml +13 -0
- data/doc/ri/ZipUtils/untar_j-i.yaml +12 -0
- data/doc/ri/ZipUtils/untar_z-i.yaml +12 -0
- data/doc/ri/ZipUtils/unzip-i.yaml +12 -0
- data/doc/ri/ZipUtils/zip-i.yaml +12 -0
- data/doc/ri/created.rid +1 -0
- data/lib/core/facets-live.rb +17 -0
- data/lib/core/facets.rb +11 -0
- data/lib/core/facets/array.rb +23 -0
- data/lib/core/facets/array/combination.rb +60 -0
- data/lib/{facets → core/facets}/array/conjoin.rb +0 -0
- data/lib/{facets → core/facets}/array/delete.rb +0 -0
- data/lib/{facets → core/facets}/array/indexable.rb +0 -0
- data/lib/{facets → core/facets}/array/merge.rb +0 -0
- data/lib/{facets → core/facets}/array/not_empty.rb +0 -0
- data/lib/{facets → core/facets}/array/only.rb +0 -0
- data/lib/{facets → core/facets}/array/pad.rb +0 -0
- data/lib/core/facets/array/permutation.rb +30 -0
- data/lib/core/facets/array/product.rb +57 -0
- data/lib/core/facets/array/recursively.rb +30 -0
- data/lib/{facets → core/facets}/array/rotate.rb +0 -0
- data/lib/{facets → core/facets}/array/select.rb +0 -0
- data/lib/{facets → core/facets}/array/splice.rb +0 -0
- data/lib/{facets → core/facets}/array/stackable.rb +0 -0
- data/lib/{facets → core/facets}/array/traverse.rb +0 -0
- data/lib/core/facets/binding.rb +8 -0
- data/lib/core/facets/binding/caller.rb +54 -0
- data/lib/core/facets/binding/defined.rb +13 -0
- data/lib/core/facets/binding/eval.rb +18 -0
- data/lib/core/facets/binding/local_variables.rb +15 -0
- data/lib/core/facets/binding/opvars.rb +24 -0
- data/lib/core/facets/binding/self.rb +12 -0
- data/lib/{facets → core/facets}/bitmask.rb +0 -0
- data/lib/{facets → core/facets}/blank.rb +0 -0
- data/lib/{facets → core/facets}/boolean.rb +0 -0
- data/lib/{facets → core/facets}/callstack.rb +0 -0
- data/lib/core/facets/class.rb +7 -0
- data/lib/{facets → core/facets}/class/descendents.rb +0 -0
- data/lib/{facets → core/facets}/class/prepend.rb +0 -0
- data/lib/{facets → core/facets}/class/subclasses.rb +0 -0
- data/lib/core/facets/class/to_methodname.rb +11 -0
- data/lib/core/facets/class/to_pathname.rb +12 -0
- data/lib/core/facets/class/to_proc.rb +42 -0
- data/lib/core/facets/comparable.rb +4 -0
- data/lib/{facets → core/facets}/comparable/bound.rb +0 -0
- data/lib/{facets → core/facets}/comparable/cmp.rb +0 -0
- data/lib/{facets → core/facets}/comparable/comparable.rb +0 -0
- data/lib/core/facets/dir.rb +7 -0
- data/lib/{facets → core/facets}/dir/ascend.rb +0 -0
- data/lib/{facets → core/facets}/dir/descend.rb +0 -0
- data/lib/{facets → core/facets}/dir/multiglob.rb +0 -0
- data/lib/{facets → core/facets}/dir/parent.rb +0 -0
- data/lib/{facets → core/facets}/dir/recurse.rb +0 -0
- data/lib/core/facets/enumerable.rb +21 -0
- data/lib/{facets → core/facets}/enumerable/accumulate.rb +0 -0
- data/lib/core/facets/enumerable/cluster_by.rb +21 -0
- data/lib/{facets → core/facets}/enumerable/collect.rb +0 -0
- data/lib/core/facets/enumerable/count.rb +26 -0
- data/lib/{facets → core/facets}/enumerable/divide.rb +0 -0
- data/lib/{facets → core/facets}/enumerable/duplicates.rb +0 -0
- data/lib/{facets → core/facets}/enumerable/each_by.rb +0 -0
- data/lib/core/facets/enumerable/group_by.rb +27 -0
- data/lib/{facets → core/facets}/enumerable/inject.rb +0 -0
- data/lib/{facets → core/facets}/enumerable/map_send.rb +0 -0
- data/lib/{facets → core/facets}/enumerable/mash.rb +0 -0
- data/lib/{facets → core/facets}/enumerable/mode.rb +0 -0
- data/lib/{facets → core/facets}/enumerable/modulate.rb +0 -0
- data/lib/core/facets/enumerable/none.rb +31 -0
- data/lib/{facets → core/facets}/enumerable/occur.rb +0 -0
- data/lib/core/facets/enumerable/one.rb +38 -0
- data/lib/{facets → core/facets}/enumerable/probability.rb +0 -0
- data/lib/{facets → core/facets}/enumerable/split.rb +0 -0
- data/lib/{facets → core/facets}/enumerable/sum.rb +0 -0
- data/lib/{facets → core/facets}/enumerable/uniq_by.rb +0 -0
- data/lib/{facets → core/facets}/exception.rb +0 -0
- data/lib/{facets → core/facets}/exception/detail.rb +0 -0
- data/lib/{facets → core/facets}/exception/suppress.rb +0 -0
- data/lib/core/facets/file.rb +6 -0
- data/lib/{facets → core/facets}/file/null.rb +0 -0
- data/lib/{facets → core/facets}/file/read.rb +0 -0
- data/lib/core/facets/file/rewrite.rb +88 -0
- data/lib/core/facets/file/rootname.rb +33 -0
- data/lib/{facets → core/facets}/file/write.rb +0 -0
- data/lib/core/facets/filetest.rb +1 -0
- data/lib/{facets → core/facets}/filetest/root.rb +0 -0
- data/lib/core/facets/float.rb +1 -0
- data/lib/{facets → core/facets}/float/round.rb +0 -0
- data/lib/{facets → core/facets}/functor.rb +0 -0
- data/lib/core/facets/hash.rb +23 -0
- data/lib/{facets → core/facets}/hash/alias.rb +0 -0
- data/lib/{facets → core/facets}/hash/argumentize.rb +0 -0
- data/lib/{facets → core/facets}/hash/at.rb +0 -0
- data/lib/{facets → core/facets}/hash/autonew.rb +0 -0
- data/lib/{facets → core/facets}/hash/collate.rb +0 -0
- data/lib/{facets → core/facets}/hash/delete.rb +0 -0
- data/lib/{facets → core/facets}/hash/diff.rb +0 -0
- data/lib/{facets → core/facets}/hash/except.rb +0 -0
- data/lib/{facets → core/facets}/hash/insert.rb +0 -0
- data/lib/{facets → core/facets}/hash/inverse.rb +0 -0
- data/lib/{facets → core/facets}/hash/join.rb +0 -0
- data/lib/{facets → core/facets}/hash/keys.rb +0 -0
- data/lib/{facets → core/facets}/hash/mash.rb +0 -0
- data/lib/core/facets/hash/merge.rb +30 -0
- data/lib/{facets → core/facets}/hash/op.rb +0 -0
- data/lib/core/facets/hash/recursive_merge.rb +33 -0
- data/lib/core/facets/hash/recursively.rb +29 -0
- data/lib/core/facets/hash/rekey.rb +59 -0
- data/lib/{facets → core/facets}/hash/select.rb +0 -0
- data/lib/core/facets/hash/slice.rb +25 -0
- data/lib/{facets → core/facets}/hash/stringify_keys.rb +0 -0
- data/lib/{facets → core/facets}/hash/swap.rb +0 -0
- data/lib/{facets → core/facets}/hash/symbolize_keys.rb +0 -0
- data/lib/{facets → core/facets}/hash/to_h.rb +0 -0
- data/lib/{facets → core/facets}/hash/to_proc.rb +0 -0
- data/lib/{facets → core/facets}/hash/to_struct.rb +0 -0
- data/lib/{facets → core/facets}/hash/traverse.rb +0 -0
- data/lib/core/facets/hash/update.rb +75 -0
- data/lib/{facets → core/facets}/hash/weave.rb +0 -0
- data/lib/{facets → core/facets}/hash/zipnew.rb +0 -0
- data/lib/core/facets/integer.rb +8 -0
- data/lib/core/facets/integer/even.rb +1 -0
- data/lib/{facets → core/facets}/integer/factorial.rb +0 -0
- data/lib/{facets → core/facets}/integer/multiple.rb +0 -0
- data/lib/core/facets/integer/odd.rb +33 -0
- data/lib/{facets → core/facets}/integer/of.rb +0 -0
- data/lib/{facets → core/facets}/integer/ordinal.rb +0 -0
- data/lib/core/facets/kernel.rb +31 -0
- data/lib/core/facets/kernel/__callee__.rb +1 -0
- data/lib/{facets → core/facets}/kernel/__class__.rb +0 -0
- data/lib/{facets → core/facets}/kernel/__dir__.rb +0 -0
- data/lib/{facets → core/facets}/kernel/__get__.rb +0 -0
- data/lib/core/facets/kernel/__method__.rb +36 -0
- data/lib/{facets → core/facets}/kernel/__set__.rb +0 -0
- data/lib/{facets → core/facets}/kernel/as.rb +0 -0
- data/lib/core/facets/kernel/ask.rb +27 -0
- data/lib/{facets → core/facets}/kernel/attr_singleton.rb +0 -0
- data/lib/{facets → core/facets}/kernel/complete.rb +0 -0
- data/lib/{facets → core/facets}/kernel/constant.rb +0 -0
- data/lib/{facets → core/facets}/kernel/d.rb +0 -0
- data/lib/{facets → core/facets}/kernel/deep_copy.rb +0 -0
- data/lib/{facets → core/facets}/kernel/demo.rb +0 -0
- data/lib/{facets → core/facets}/kernel/ergo.rb +0 -0
- data/lib/{facets → core/facets}/kernel/here.rb +0 -0
- data/lib/{facets → core/facets}/kernel/in.rb +0 -0
- data/lib/core/facets/kernel/instance.rb +19 -0
- data/lib/{facets → core/facets}/kernel/instance_assign.rb +0 -0
- data/lib/{facets → core/facets}/kernel/instance_class.rb +0 -0
- data/lib/{facets → core/facets}/kernel/instance_exec.rb +0 -0
- data/lib/{facets → core/facets}/kernel/instance_send.rb +0 -0
- data/lib/{facets → core/facets}/kernel/instance_variables.rb +0 -0
- data/lib/{facets → core/facets}/kernel/load.rb +0 -0
- data/lib/{facets → core/facets}/kernel/maybe.rb +0 -0
- data/lib/{facets → core/facets}/kernel/not_nil.rb +0 -0
- data/lib/{facets → core/facets}/kernel/object_class.rb +0 -0
- data/lib/{facets → core/facets}/kernel/object_hexid.rb +0 -0
- data/lib/{facets → core/facets}/kernel/object_send.rb +0 -0
- data/lib/{facets → core/facets}/kernel/p.rb +0 -0
- data/lib/{facets → core/facets}/kernel/populate.rb +0 -0
- data/lib/{facets → core/facets}/kernel/resc.rb +0 -0
- data/lib/{facets → core/facets}/kernel/respond.rb +0 -0
- data/lib/{facets → core/facets}/kernel/returning.rb +0 -0
- data/lib/{facets → core/facets}/kernel/silence.rb +0 -0
- data/lib/{facets → core/facets}/kernel/singleton_class.rb +0 -0
- data/lib/{facets → core/facets}/kernel/suppress.rb +0 -0
- data/lib/core/facets/kernel/tap.rb +32 -0
- data/lib/{facets → core/facets}/kernel/try.rb +0 -0
- data/lib/{facets → core/facets}/kernel/val.rb +0 -0
- data/lib/{facets → core/facets}/kernel/with.rb +0 -0
- data/lib/{facets → core/facets}/lazy.rb +0 -0
- data/lib/core/facets/matchdata.rb +4 -0
- data/lib/{facets → core/facets}/matchdata/match.rb +0 -0
- data/lib/{facets → core/facets}/matchdata/matchset.rb +0 -0
- data/lib/{facets → core/facets}/metaid.rb +0 -0
- data/lib/core/facets/module.rb +20 -0
- data/lib/{facets → core/facets}/module/abstract.rb +0 -0
- data/lib/{facets → core/facets}/module/alias.rb +0 -0
- data/lib/{facets → core/facets}/module/ancestor.rb +0 -0
- data/lib/{facets → core/facets}/module/basename.rb +0 -0
- data/lib/{facets → core/facets}/module/can.rb +0 -0
- data/lib/{facets → core/facets}/module/class.rb +0 -0
- data/lib/{facets → core/facets}/module/clone.rb +0 -0
- data/lib/core/facets/module/conflict.rb +56 -0
- data/lib/{facets → core/facets}/module/include_function_module.rb +0 -0
- data/lib/{facets → core/facets}/module/instance_methods.rb +0 -0
- data/lib/{facets → core/facets}/module/is.rb +0 -0
- data/lib/{facets → core/facets}/module/modspace.rb +0 -0
- data/lib/{facets → core/facets}/module/module_load.rb +0 -0
- data/lib/{facets → core/facets}/module/nesting.rb +0 -0
- data/lib/{facets → core/facets}/module/op.rb +0 -0
- data/lib/{facets → core/facets}/module/pathize.rb +0 -0
- data/lib/{facets → core/facets}/module/prepend.rb +0 -0
- data/lib/{facets → core/facets}/module/revise.rb +0 -0
- data/lib/{facets → core/facets}/module/spacename.rb +0 -0
- data/lib/core/facets/nilclass.rb +3 -0
- data/lib/core/facets/nilclass/to_f.rb +17 -0
- data/lib/core/facets/numeric.rb +4 -0
- data/lib/{facets → core/facets}/numeric/approx.rb +0 -0
- data/lib/{facets → core/facets}/numeric/distance.rb +0 -0
- data/lib/{facets → core/facets}/numeric/round.rb +0 -0
- data/lib/core/facets/proc.rb +7 -0
- data/lib/{facets → core/facets}/proc/bind.rb +0 -0
- data/lib/{facets → core/facets}/proc/compose.rb +0 -0
- data/lib/{facets → core/facets}/proc/curry.rb +0 -0
- data/lib/{facets → core/facets}/proc/partial.rb +0 -0
- data/lib/{facets → core/facets}/proc/to_method.rb +0 -0
- data/lib/{facets → core/facets}/proc/update.rb +0 -0
- data/lib/core/facets/range.rb +6 -0
- data/lib/{facets → core/facets}/range/combine.rb +0 -0
- data/lib/{facets → core/facets}/range/overlap.rb +0 -0
- data/lib/{facets → core/facets}/range/to_r.rb +0 -0
- data/lib/{facets → core/facets}/range/umbrella.rb +0 -0
- data/lib/{facets → core/facets}/range/within.rb +0 -0
- data/lib/core/facets/regexp.rb +3 -0
- data/lib/{facets → core/facets}/regexp/arity.rb +0 -0
- data/lib/{facets → core/facets}/regexp/to_re.rb +0 -0
- data/lib/core/facets/string.rb +35 -0
- data/lib/{facets → core/facets}/string/align.rb +0 -0
- data/lib/{facets → core/facets}/string/bracket.rb +0 -0
- data/lib/core/facets/string/bytes.rb +15 -0
- data/lib/{facets → core/facets}/string/camelcase.rb +0 -0
- data/lib/{facets → core/facets}/string/capitalized.rb +0 -0
- data/lib/core/facets/string/chars.rb +16 -0
- data/lib/{facets → core/facets}/string/chomp.rb +0 -0
- data/lib/{facets → core/facets}/string/cleave.rb +0 -0
- data/lib/{facets → core/facets}/string/divide.rb +0 -0
- data/lib/core/facets/string/each_char.rb +20 -0
- data/lib/core/facets/string/end_with.rb +1 -0
- data/lib/{facets → core/facets}/string/fold.rb +0 -0
- data/lib/{facets → core/facets}/string/interpolate.rb +0 -0
- data/lib/{facets → core/facets}/string/line_wrap.rb +0 -0
- data/lib/core/facets/string/lines.rb +16 -0
- data/lib/{facets → core/facets}/string/mscan.rb +0 -0
- data/lib/{facets → core/facets}/string/natcmp.rb +0 -0
- data/lib/{facets → core/facets}/string/nchar.rb +0 -0
- data/lib/{facets → core/facets}/string/range.rb +0 -0
- data/lib/{facets → core/facets}/string/rewrite.rb +0 -0
- data/lib/{facets → core/facets}/string/shatter.rb +0 -0
- data/lib/{facets → core/facets}/string/snakecase.rb +0 -0
- data/lib/{facets → core/facets}/string/splice.rb +0 -0
- data/lib/core/facets/string/start_with.rb +32 -0
- data/lib/{facets → core/facets}/string/subtract.rb +0 -0
- data/lib/{facets → core/facets}/string/tab.rb +0 -0
- data/lib/{facets → core/facets}/string/titlecase.rb +0 -0
- data/lib/{facets → core/facets}/string/to_re.rb +0 -0
- data/lib/core/facets/string/to_time.rb +15 -0
- data/lib/{facets → core/facets}/string/words.rb +0 -0
- data/lib/{facets → core/facets}/string/xor.rb +0 -0
- data/lib/core/facets/symbol.rb +5 -0
- data/lib/{facets → core/facets}/symbol/chomp.rb +0 -0
- data/lib/{facets → core/facets}/symbol/generate.rb +0 -0
- data/lib/{facets → core/facets}/symbol/not.rb +0 -0
- data/lib/core/facets/symbol/succ.rb +19 -0
- data/lib/core/facets/symbol/to_proc.rb +38 -0
- data/lib/core/facets/time.rb +13 -0
- data/lib/{facets → core/facets}/time/ago.rb +0 -0
- data/lib/core/facets/time/change.rb +47 -0
- data/lib/{facets → core/facets}/time/elapse.rb +0 -0
- data/lib/core/facets/time/hence.rb +61 -0
- data/lib/core/facets/time/round.rb +17 -0
- data/lib/{facets → core/facets}/time/set.rb +0 -0
- data/lib/{facets → core/facets}/time/stamp.rb +0 -0
- data/lib/core/facets/time/to_date.rb +26 -0
- data/lib/core/facets/time/to_time.rb +15 -0
- data/lib/core/facets/time/trunc.rb +15 -0
- data/lib/{facets → core/facets}/to_hash.rb +0 -0
- data/lib/core/facets/unboundmethod.rb +3 -0
- data/lib/{facets → core/facets}/unboundmethod/arguments.rb +0 -0
- data/lib/core/facets/unboundmethod/name.rb +25 -0
- data/lib/{facets → lore/facets}/basicobject.rb +0 -0
- data/lib/{facets → lore/facets}/cgi.rb +0 -0
- data/lib/{facets → lore/facets}/continuation.rb +0 -0
- data/lib/{facets → lore/facets}/date.rb +0 -0
- data/lib/{facets → lore/facets}/fileutils.rb +0 -0
- data/lib/{facets → lore/facets}/fileutils/head.rb +0 -0
- data/lib/{facets → lore/facets}/fileutils/safe_ln.rb +0 -0
- data/lib/{facets → lore/facets}/fileutils/slice.rb +0 -0
- data/lib/{facets → lore/facets}/fileutils/tail.rb +0 -0
- data/lib/{facets → lore/facets}/fileutils/wc.rb +0 -0
- data/lib/lore/facets/fileutils/whereis.rb +64 -0
- data/lib/{facets → lore/facets}/fileutils/which.rb +0 -0
- data/lib/{facets → lore/facets}/getoptlong.rb +0 -0
- data/lib/{facets → lore/facets}/logger.rb +0 -0
- data/lib/{facets → lore/facets}/ostruct.rb +0 -0
- data/lib/lore/facets/pathname.rb +141 -0
- data/lib/{facets → lore/facets}/rbconfig.rb +0 -0
- data/lib/{facets → lore/facets}/set.rb +0 -0
- data/lib/{facets → lore/facets}/shellwords.rb +0 -0
- data/lib/{facets → lore/facets}/uri.rb +0 -0
- data/lib/lore/facets/yaml.rb +75 -0
- data/lib/{facets → more/facets}/1stclassmethod.rb +0 -0
- data/lib/{facets → more/facets}/advisable.rb +0 -0
- data/lib/{facets → more/facets}/annotations.rb +0 -0
- data/lib/more/facets/ansicode.rb +320 -0
- data/lib/more/facets/arguments.rb +363 -0
- data/lib/{facets → more/facets}/association.rb +0 -0
- data/lib/{facets → more/facets}/attr.rb +0 -0
- data/lib/{facets → more/facets}/autoarray.rb +0 -0
- data/lib/{facets → more/facets}/autoreload.rb +0 -0
- data/lib/{facets → more/facets}/basex.rb +0 -0
- data/lib/{facets → more/facets}/bbcode.rb +0 -0
- data/lib/{facets → more/facets}/bicrypt.rb +0 -0
- data/lib/{facets → more/facets}/binreadable.rb +0 -0
- data/lib/{facets → more/facets}/buildable.rb +0 -0
- data/lib/{facets → more/facets}/bytes.rb +0 -0
- data/lib/{facets → more/facets}/cachedecorator.rb +0 -0
- data/lib/{facets → more/facets}/capsule.rb +0 -0
- data/lib/{facets → more/facets}/cattr.rb +0 -0
- data/lib/{facets → more/facets}/chain.rb +0 -0
- data/lib/{facets → more/facets}/class_extension.rb +0 -0
- data/lib/{facets → more/facets}/classmethods.rb +0 -0
- data/lib/{facets → more/facets}/cloneable.rb +0 -0
- data/lib/more/facets/command.rb +436 -0
- data/lib/{facets → more/facets}/consoleutils.rb +0 -0
- data/lib/{facets → more/facets}/coroutine.rb +0 -0
- data/lib/{facets → more/facets}/crypt.rb +0 -0
- data/lib/{facets → more/facets}/cssfilter.rb +0 -0
- data/lib/{facets → more/facets}/daemonize.rb +0 -0
- data/lib/{facets → more/facets}/dependency.rb +0 -0
- data/lib/more/facets/dictionary.rb +478 -0
- data/lib/more/facets/dictionarymatcher.rb +136 -0
- data/lib/{facets → more/facets}/downloader.rb +0 -0
- data/lib/{facets → more/facets}/duplicable.rb +0 -0
- data/lib/{facets → more/facets}/duration.rb +0 -0
- data/lib/{facets → more/facets}/elementor.rb +0 -0
- data/lib/{facets → more/facets}/elementwise.rb +0 -0
- data/lib/{facets → more/facets}/enumerablepass.rb +0 -0
- data/lib/{facets → more/facets}/equatable.rb +0 -0
- data/lib/{facets → more/facets}/eventhook.rb +0 -0
- data/lib/{facets → more/facets}/expirable.rb +0 -0
- data/lib/{facets → more/facets}/fileable.rb +0 -0
- data/lib/more/facets/filelist.rb +497 -0
- data/lib/{facets → more/facets}/fileshell.rb +0 -0
- data/lib/{facets → more/facets}/heap.rb +0 -0
- data/lib/{facets → more/facets}/htmlfilter.rb +0 -0
- data/lib/{facets → more/facets}/indexable.rb +0 -0
- data/lib/{facets → more/facets}/infinity.rb +0 -0
- data/lib/{facets → more/facets}/inheritor.rb +0 -0
- data/lib/more/facets/ini.rb +264 -0
- data/lib/{facets → more/facets}/instantiable.rb +0 -0
- data/lib/{facets → more/facets}/instantise.rb +0 -0
- data/lib/{facets → more/facets}/interval.rb +0 -0
- data/lib/{facets → more/facets}/ioredirect.rb +0 -0
- data/lib/{facets → more/facets}/iteration.rb +0 -0
- data/lib/more/facets/kernel/meta.rb +32 -0
- data/lib/{facets → more/facets}/linkedlist.rb +0 -0
- data/lib/{facets → more/facets}/lrucache.rb +0 -0
- data/lib/{facets → more/facets}/main.rb +0 -0
- data/lib/{facets → more/facets}/memoize.rb +0 -0
- data/lib/{facets → more/facets}/methodspace.rb +0 -0
- data/lib/{facets → more/facets}/minitar.rb +0 -0
- data/lib/{facets → more/facets}/multipliers.rb +0 -0
- data/lib/{facets → more/facets}/multiton.rb +0 -0
- data/lib/{facets → more/facets}/nackclass.rb +0 -0
- data/lib/{facets → more/facets}/net/smtp_tls.rb +0 -0
- data/lib/{facets → more/facets}/nilstatus.rb +0 -0
- data/lib/{facets → more/facets}/nullclass.rb +0 -0
- data/lib/{facets → more/facets}/opencascade.rb +0 -0
- data/lib/{facets → more/facets}/opencollection.rb +0 -0
- data/lib/{facets → more/facets}/openhash.rb +0 -0
- data/lib/{facets → more/facets}/openobject.rb +0 -0
- data/lib/{facets → more/facets}/opesc.rb +0 -0
- data/lib/{facets → more/facets}/orderedhash.rb +0 -0
- data/lib/more/facets/overload.rb +94 -0
- data/lib/more/facets/paramix.rb +202 -0
- data/lib/{facets → more/facets}/pathlist.rb +0 -0
- data/lib/{facets → more/facets}/platform.rb +0 -0
- data/lib/{facets → more/facets}/pool.rb +0 -0
- data/lib/{facets → more/facets}/pqueue.rb +0 -0
- data/lib/{facets → more/facets}/progressbar.rb +0 -0
- data/lib/{facets → more/facets}/prototype.rb +0 -0
- data/lib/{facets → more/facets}/random.rb +0 -0
- data/lib/{facets → more/facets}/rbsystem.rb +0 -0
- data/lib/{facets → more/facets}/recorder.rb +0 -0
- data/lib/{facets → more/facets}/reference.rb +0 -0
- data/lib/more/facets/reflection.rb +145 -0
- data/lib/{facets → more/facets}/registerable.rb +0 -0
- data/lib/{facets → more/facets}/rwdelegator.rb +0 -0
- data/lib/{facets → more/facets}/semaphore.rb +0 -0
- data/lib/{facets → more/facets}/settings.rb +0 -0
- data/lib/{facets → more/facets}/snapshot.rb +0 -0
- data/lib/{facets → more/facets}/stackable.rb +0 -0
- data/lib/{facets → more/facets}/style.rb +0 -0
- data/lib/{facets → more/facets}/succ.rb +0 -0
- data/lib/{facets → more/facets}/syncarray.rb +0 -0
- data/lib/{facets → more/facets}/synchash.rb +0 -0
- data/lib/{facets → more/facets}/thread.rb +0 -0
- data/lib/{facets → more/facets}/timer.rb +0 -0
- data/lib/{facets → more/facets}/times.rb +0 -0
- data/lib/{facets → more/facets}/tracepoint.rb +0 -0
- data/lib/{facets → more/facets}/tuple.rb +0 -0
- data/lib/{facets → more/facets}/typecast.rb +0 -0
- data/lib/{facets → more/facets}/uninheritable.rb +0 -0
- data/lib/{facets → more/facets}/uploadutils.rb +0 -0
- data/lib/{facets → more/facets}/version.rb +0 -0
- data/lib/{facets → more/facets}/xmlhash.rb +0 -0
- data/lib/{facets → more/facets}/xoxo.rb +0 -0
- data/lib/{facets → more/facets}/ziputils.rb +0 -0
- data/test/core/array/test_combination.rb +29 -0
- data/test/{array → core/array}/test_delete.rb +0 -0
- data/test/{array → core/array}/test_indexable.rb +0 -0
- data/test/{array → core/array}/test_merge.rb +0 -0
- data/test/{array → core/array}/test_only.rb +0 -0
- data/test/{array → core/array}/test_pad.rb +0 -0
- data/test/core/array/test_permutation.rb +14 -0
- data/test/core/array/test_product.rb +58 -0
- data/test/{array → core/array}/test_rotate.rb +0 -0
- data/test/{array → core/array}/test_select.rb +0 -0
- data/test/{array → core/array}/test_stackable.rb +0 -0
- data/test/{binding → core/binding}/test_caller.rb +0 -0
- data/test/{binding → core/binding}/test_defined.rb +0 -0
- data/test/core/binding/test_eval.rb +16 -0
- data/test/{binding → core/binding}/test_local_variables.rb +0 -0
- data/test/{binding → core/binding}/test_opvars.rb +0 -0
- data/test/{binding → core/binding}/test_self.rb +0 -0
- data/test/{class → core/class}/test_descendents.rb +0 -0
- data/test/{comparable → core/comparable}/test_bound.rb +0 -0
- data/test/{comparable → core/comparable}/test_cmp.rb +0 -0
- data/test/{comparable → core/comparable}/test_comparable.rb +0 -0
- data/test/{dir → core/dir}/test_ascend.rb +0 -0
- data/test/{dir → core/dir}/test_descend.rb +0 -0
- data/test/{dir → core/dir}/test_multiglob.rb +0 -0
- data/test/{dir → core/dir}/test_parent.rb +0 -0
- data/test/{dir → core/dir}/test_recurse.rb +0 -0
- data/test/{enumerable → core/enumerable}/test_cluster_by.rb +0 -0
- data/test/{enumerable → core/enumerable}/test_collect.rb +0 -0
- data/test/core/enumerable/test_count.rb +22 -0
- data/test/{enumerable → core/enumerable}/test_each_by.rb +0 -0
- data/test/core/enumerable/test_group_by.rb +26 -0
- data/test/{enumerable → core/enumerable}/test_inject.rb +0 -0
- data/test/{enumerable → core/enumerable}/test_mash.rb +0 -0
- data/test/core/enumerable/test_modulate.rb +14 -0
- data/test/core/enumerable/test_none.rb +17 -0
- data/test/{enumerable → core/enumerable}/test_occur.rb +0 -0
- data/test/core/enumerable/test_one.rb +19 -0
- data/test/{enumerable → core/enumerable}/test_probability.rb +0 -0
- data/test/{enumerable → core/enumerable}/test_uniq_by.rb +0 -0
- data/test/{exception → core/exception}/test_exception.rb +0 -0
- data/test/{file → core/file}/test_file.rb +0 -0
- data/test/{filetest → core/filetest}/test_filetest.rb +0 -0
- data/test/{hash → core/hash}/test_alias.rb +0 -0
- data/test/{hash → core/hash}/test_at.rb +0 -0
- data/test/{hash → core/hash}/test_autonew.rb +0 -0
- data/test/{hash → core/hash}/test_collate.rb +0 -0
- data/test/{hash → core/hash}/test_delete.rb +0 -0
- data/test/{hash → core/hash}/test_insert.rb +0 -0
- data/test/{hash → core/hash}/test_inverse.rb +0 -0
- data/test/{hash → core/hash}/test_keys.rb +0 -0
- data/test/{hash → core/hash}/test_mash.rb +0 -0
- data/test/{hash → core/hash}/test_merge.rb +0 -0
- data/test/{hash → core/hash}/test_op.rb +0 -0
- data/test/core/hash/test_rekey.rb +73 -0
- data/test/{hash → core/hash}/test_select.rb +0 -0
- data/test/{hash → core/hash}/test_stringify_keys.rb +0 -0
- data/test/{hash → core/hash}/test_swap.rb +0 -0
- data/test/{hash → core/hash}/test_symbolize_keys.rb +0 -0
- data/test/{hash → core/hash}/test_traverse.rb +0 -0
- data/test/core/hash/test_update.rb +46 -0
- data/test/{hash → core/hash}/test_weave.rb +0 -0
- data/test/{hash → core/hash}/test_zipnew.rb +0 -0
- data/test/{integer → core/integer}/test_bitmask.rb +0 -0
- data/test/core/integer/test_even.rb +25 -0
- data/test/{integer → core/integer}/test_factorial.rb +0 -0
- data/test/{integer → core/integer}/test_multiple.rb +0 -0
- data/test/{integer → core/integer}/test_of.rb +0 -0
- data/test/{integer → core/integer}/test_ordinal.rb +0 -0
- data/test/{kernel → core/kernel}/test_as.rb +0 -0
- data/test/{kernel → core/kernel}/test_attr_singleton.rb +0 -0
- data/test/{kernel → core/kernel}/test_callstack.rb +0 -0
- data/test/{kernel → core/kernel}/test_constant.rb +0 -0
- data/test/{kernel → core/kernel}/test_deepcopy.rb +0 -0
- data/test/{kernel → core/kernel}/test_here.rb +0 -0
- data/test/{kernel → core/kernel}/test_in.rb +0 -0
- data/test/{kernel → core/kernel}/test_instance_assign.rb +0 -0
- data/test/{kernel → core/kernel}/test_instance_class.rb +0 -0
- data/test/{kernel → core/kernel}/test_not_nil.rb +0 -0
- data/test/{kernel → core/kernel}/test_object_class.rb +0 -0
- data/test/{kernel → core/kernel}/test_object_hexid.rb +0 -0
- data/test/{kernel → core/kernel}/test_populate.rb +0 -0
- data/test/{kernel → core/kernel}/test_resc.rb +0 -0
- data/test/{kernel → core/kernel}/test_returning.rb +0 -0
- data/test/{kernel → core/kernel}/test_silence.rb +0 -0
- data/test/core/kernel/test_tap.rb +19 -0
- data/test/{kernel → core/kernel}/test_val.rb +0 -0
- data/test/{matchdata → core/matchdata}/test_match.rb +0 -0
- data/test/{matchdata → core/matchdata}/test_matchset.rb +0 -0
- data/test/{module → core/module}/test_abstract.rb +0 -0
- data/test/{module → core/module}/test_alias.rb +0 -0
- data/test/{module → core/module}/test_ancestor.rb +0 -0
- data/test/{module → core/module}/test_basename.rb +0 -0
- data/test/{module → core/module}/test_clone.rb +0 -0
- data/test/{module → core/module}/test_modspace.rb +0 -0
- data/test/{module → core/module}/test_nesting.rb +0 -0
- data/test/{module → core/module}/test_op.rb +0 -0
- data/test/{module → core/module}/test_pathize.rb +0 -0
- data/test/{module → core/module}/test_revise.rb +0 -0
- data/test/{module → core/module}/test_spacename.rb +0 -0
- data/test/core/nilclass/test_to_f.rb +11 -0
- data/test/{numeric → core/numeric}/test_approx.rb +0 -0
- data/test/{numeric → core/numeric}/test_distance.rb +0 -0
- data/test/{numeric → core/numeric}/test_round.rb +0 -0
- data/test/{proc → core/proc}/test_bind.rb +0 -0
- data/test/{proc → core/proc}/test_compose.rb +0 -0
- data/test/{proc → core/proc}/test_curry.rb +0 -0
- data/test/{proc → core/proc}/test_partial.rb +0 -0
- data/test/{proc → core/proc}/test_to_method.rb +0 -0
- data/test/{range → core/range}/test_combine.rb +0 -0
- data/test/{range → core/range}/test_overlap.rb +0 -0
- data/test/{range → core/range}/test_to_r.rb +0 -0
- data/test/{range → core/range}/test_within.rb +0 -0
- data/test/{regexp → core/regexp}/test_arity.rb +0 -0
- data/test/{regexp → core/regexp}/test_to_re.rb +0 -0
- data/test/{string → core/string}/test_align.rb +0 -0
- data/test/{string → core/string}/test_bracket.rb +0 -0
- data/test/core/string/test_bytes.rb +12 -0
- data/test/{string → core/string}/test_camelcase.rb +0 -0
- data/test/{string → core/string}/test_capitalized.rb +0 -0
- data/test/core/string/test_chars.rb +12 -0
- data/test/{string → core/string}/test_cleave.rb +0 -0
- data/test/{string → core/string}/test_divide.rb +0 -0
- data/test/core/string/test_each_char.rb +14 -0
- data/test/{string → core/string}/test_fold.rb +0 -0
- data/test/{string → core/string}/test_interpolate.rb +0 -0
- data/test/{string → core/string}/test_line_wrap.rb +0 -0
- data/test/core/string/test_lines.rb +11 -0
- data/test/{string → core/string}/test_mscan.rb +0 -0
- data/test/{string → core/string}/test_natcmp.rb +0 -0
- data/test/{string → core/string}/test_nchar.rb +0 -0
- data/test/{string → core/string}/test_range.rb +0 -0
- data/test/{string → core/string}/test_shatter.rb +0 -0
- data/test/{string → core/string}/test_snakecase.rb +0 -0
- data/test/{string → core/string}/test_subtract.rb +0 -0
- data/test/{string → core/string}/test_tab.rb +0 -0
- data/test/{string → core/string}/test_titlecase.rb +0 -0
- data/test/{string → core/string}/test_to_re.rb +0 -0
- data/test/core/string/test_to_time.rb +15 -0
- data/test/{string → core/string}/test_words.rb +0 -0
- data/test/{string → core/string}/test_xor.rb +0 -0
- data/test/{symbol → core/symbol}/test_chomp.rb +0 -0
- data/test/{symbol → core/symbol}/test_generate.rb +0 -0
- data/test/{symbol → core/symbol}/test_not.rb +0 -0
- data/test/core/symbol/test_succ.rb +13 -0
- data/test/core/symbol/test_to_proc.rb +32 -0
- data/test/{time → core/time}/test_change.rb +0 -0
- data/test/{time → core/time}/test_elapse.rb +0 -0
- data/test/core/time/test_hence.rb +13 -0
- data/test/core/time/test_round.rb +31 -0
- data/test/{time → core/time}/test_stamp.rb +0 -0
- data/test/core/time/test_to_date.rb +12 -0
- data/test/core/time/test_to_time.rb +12 -0
- data/test/core/time/test_trunc.rb +31 -0
- data/test/{test_basicobject.rb → lore/test_basicobject.rb} +0 -0
- data/test/{test_continuation.rb → lore/test_continuation.rb} +0 -0
- data/test/{test_date.rb → lore/test_date.rb} +0 -0
- data/test/{test_ostruct.rb → lore/test_ostruct.rb} +0 -0
- data/test/{test_1stclassmethod.rb → more/test_1stclassmethod.rb} +0 -0
- data/test/{test_advisable.rb → more/test_advisable.rb} +0 -0
- data/test/{test_annotations.rb → more/test_annotations.rb} +0 -0
- data/test/more/test_ansicode.rb +20 -0
- data/test/{test_arguments.rb → more/test_arguments.rb} +0 -0
- data/test/{test_association.rb → more/test_association.rb} +0 -0
- data/test/{test_autoarray.rb → more/test_autoarray.rb} +0 -0
- data/test/{test_bbcode.rb → more/test_bbcode.rb} +0 -0
- data/test/{test_binreadable.rb → more/test_binreadable.rb} +0 -0
- data/test/{test_blank.rb → more/test_blank.rb} +0 -0
- data/test/{test_boolean.rb → more/test_boolean.rb} +0 -0
- data/test/{test_buildable.rb → more/test_buildable.rb} +0 -0
- data/test/{test_bytes.rb → more/test_bytes.rb} +0 -0
- data/test/{test_cattr.rb → more/test_cattr.rb} +0 -0
- data/test/{test_class_extension.rb → more/test_class_extension.rb} +0 -0
- data/test/{test_classmethods.rb → more/test_classmethods.rb} +0 -0
- data/test/{test_cloneable.rb → more/test_cloneable.rb} +0 -0
- data/test/{test_command.rb → more/test_command.rb} +0 -0
- data/test/{test_coroutine.rb → more/test_coroutine.rb} +0 -0
- data/test/{test_crypt.rb → more/test_crypt.rb} +0 -0
- data/test/{test_dependency.rb → more/test_dependency.rb} +0 -0
- data/test/more/test_dictionary.rb +145 -0
- data/test/{test_elementor.rb → more/test_elementor.rb} +0 -0
- data/test/{test_elementwise.rb → more/test_elementwise.rb} +0 -0
- data/test/{test_enumerablepass.rb → more/test_enumerablepass.rb} +0 -0
- data/test/{test_equatable.rb → more/test_equatable.rb} +0 -0
- data/test/{test_functor.rb → more/test_functor.rb} +0 -0
- data/test/{test_getoptlong.rb → more/test_getoptlong.rb} +0 -0
- data/test/{test_infinity.rb → more/test_infinity.rb} +0 -0
- data/test/{test_inheritor.rb → more/test_inheritor.rb} +0 -0
- data/test/{test_instantiable.rb → more/test_instantiable.rb} +0 -0
- data/test/{test_instantise.rb → more/test_instantise.rb} +0 -0
- data/test/{test_interval.rb → more/test_interval.rb} +0 -0
- data/test/{test_linkedlist.rb → more/test_linkedlist.rb} +0 -0
- data/test/{test_lrucache.rb → more/test_lrucache.rb} +0 -0
- data/test/{test_memoize.rb → more/test_memoize.rb} +0 -0
- data/test/{test_metaid.rb → more/test_metaid.rb} +0 -0
- data/test/{test_methodspace.rb → more/test_methodspace.rb} +0 -0
- data/test/{test_multipliers.rb → more/test_multipliers.rb} +0 -0
- data/test/{test_multiton.rb → more/test_multiton.rb} +0 -0
- data/test/{test_opencascade.rb → more/test_opencascade.rb} +0 -0
- data/test/{test_openobject.rb → more/test_openobject.rb} +0 -0
- data/test/more/test_overload.rb +160 -0
- data/test/more/test_paramix.rb +167 -0
- data/test/{test_prototype.rb → more/test_prototype.rb} +0 -0
- data/test/{test_random.rb → more/test_random.rb} +0 -0
- data/test/{test_recorder.rb → more/test_recorder.rb} +0 -0
- data/test/{test_snapshot.rb → more/test_snapshot.rb} +0 -0
- data/test/{test_style.rb → more/test_style.rb} +0 -0
- data/test/{test_succ.rb → more/test_succ.rb} +0 -0
- data/test/{test_syncarray.rb → more/test_syncarray.rb} +0 -0
- data/test/{test_synchash.rb → more/test_synchash.rb} +0 -0
- data/test/{test_thread.rb → more/test_thread.rb} +0 -0
- data/test/{test_timer.rb → more/test_timer.rb} +0 -0
- data/test/{test_times.rb → more/test_times.rb} +0 -0
- data/test/{test_to_hash.rb → more/test_to_hash.rb} +0 -0
- data/test/{test_tuple.rb → more/test_tuple.rb} +0 -0
- data/test/{test_typecast.rb → more/test_typecast.rb} +0 -0
- data/test/{test_uninheritable.rb → more/test_uninheritable.rb} +0 -0
- data/test/{test_uri.rb → more/test_uri.rb} +0 -0
- data/test/{test_xoxo.rb → more/test_xoxo.rb} +0 -0
- metadata +3354 -1528
- data/NOTES +0 -58
- data/doc/html/api.css +0 -79
- data/doc/html/api/core/classes/Array.html +0 -894
- data/doc/html/api/core/classes/Binding.html +0 -419
- data/doc/html/api/core/classes/Class.html +0 -218
- data/doc/html/api/core/classes/Comparable.html +0 -261
- data/doc/html/api/core/classes/Dir.html +0 -397
- data/doc/html/api/core/classes/Enumerable.html +0 -1124
- data/doc/html/api/core/classes/Exception.html +0 -130
- data/doc/html/api/core/classes/File.html +0 -456
- data/doc/html/api/core/classes/FileTest.html +0 -118
- data/doc/html/api/core/classes/Float.html +0 -133
- data/doc/html/api/core/classes/Functor.html +0 -173
- data/doc/html/api/core/classes/Hash.html +0 -1992
- data/doc/html/api/core/classes/Indexable.html +0 -606
- data/doc/html/api/core/classes/Integer.html +0 -577
- data/doc/html/api/core/classes/Kernel.html +0 -2135
- data/doc/html/api/core/classes/MatchData.html +0 -203
- data/doc/html/api/core/classes/MissingArgument.html +0 -97
- data/doc/html/api/core/classes/Module.html +0 -1605
- data/doc/html/api/core/classes/Module/CloneExtensions.html +0 -188
- data/doc/html/api/core/classes/Object.html +0 -147
- data/doc/html/api/core/classes/Proc.html +0 -346
- data/doc/html/api/core/classes/Range.html +0 -360
- data/doc/html/api/core/classes/Regexp.html +0 -193
- data/doc/html/api/core/classes/Stackable.html +0 -264
- data/doc/html/api/core/classes/String.html +0 -2297
- data/doc/html/api/core/classes/String/Words.html +0 -330
- data/doc/html/api/core/classes/Time.html +0 -521
- data/doc/html/api/core/classes/UnboundMethod.html +0 -196
- data/doc/html/api/core/created.rid +0 -1
- data/doc/html/api/core/files/AUTHORS.html +0 -256
- data/doc/html/api/core/files/CHANGES.html +0 -275
- data/doc/html/api/core/files/COPYING.html +0 -462
- data/doc/html/api/core/files/MANIFEST.html +0 -597
- data/doc/html/api/core/files/NOTES.html +0 -164
- data/doc/html/api/core/files/README.html +0 -412
- data/doc/html/api/core/files/lib/facets/array/conjoin_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/array/delete_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/array/indexable_rb.html +0 -97
- data/doc/html/api/core/files/lib/facets/array/merge_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/array/not_empty_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/array/only_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/array/pad_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/array/product_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/array/rotate_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/array/select_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/array/splice_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/array/stackable_rb.html +0 -97
- data/doc/html/api/core/files/lib/facets/array/traverse_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/array_rb.html +0 -129
- data/doc/html/api/core/files/lib/facets/binding/caller_rb.html +0 -97
- data/doc/html/api/core/files/lib/facets/binding/defined_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/binding/local_variables_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/binding/opvars_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/binding/self_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/binding_rb.html +0 -99
- data/doc/html/api/core/files/lib/facets/bitmask_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/blank_rb.html +0 -97
- data/doc/html/api/core/files/lib/facets/boolean_rb.html +0 -126
- data/doc/html/api/core/files/lib/facets/callstack_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/class/descendents_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/class/prepend_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/class/subclasses_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/class_rb.html +0 -97
- data/doc/html/api/core/files/lib/facets/comparable/bound_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/comparable/cmp_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/comparable/comparable_rb.html +0 -109
- data/doc/html/api/core/files/lib/facets/comparable_rb.html +0 -99
- data/doc/html/api/core/files/lib/facets/dir/ascend_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/dir/descend_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/dir/multiglob_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/dir/parent_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/dir/recurse_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/dir_rb.html +0 -102
- data/doc/html/api/core/files/lib/facets/duplicable_rb.html +0 -100
- data/doc/html/api/core/files/lib/facets/enumerable/accumulate_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/enumerable/cluster_by_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/enumerable/collect_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/enumerable/divide_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/enumerable/duplicates_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/enumerable/each_by_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/enumerable/inject_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/enumerable/map_send_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/enumerable/mash_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/enumerable/mode_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/enumerable/modulate_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/enumerable/occur_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/enumerable/probability_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/enumerable/split_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/enumerable/sum_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/enumerable/uniq_by_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/enumerable_rb.html +0 -111
- data/doc/html/api/core/files/lib/facets/exception/detail_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/exception_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/file/null_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/file/read_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/file/rewrite_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/file/rootname_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/file/write_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/file_rb.html +0 -100
- data/doc/html/api/core/files/lib/facets/filetest/root_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/filetest_rb.html +0 -97
- data/doc/html/api/core/files/lib/facets/functor_rb.html +0 -151
- data/doc/html/api/core/files/lib/facets/hash/alias_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/argumentize_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/at_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/autonew_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/collate_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/delete_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/diff_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/except_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/insert_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/inverse_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/join_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/keys_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/mash_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/hash/merge_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/op_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/rekey_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/hash/select_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/slice_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/stringify_keys_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/hash/swap_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/symbolize_keys_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/hash/to_h_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/hash/to_proc_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/to_struct_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/traverse_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/update_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/weave_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/hash/zipnew_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/hash_rb.html +0 -118
- data/doc/html/api/core/files/lib/facets/indexable_rb.html +0 -113
- data/doc/html/api/core/files/lib/facets/integer/factorial_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/integer/multiple_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/integer/of_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/integer/ordinal_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/integer_rb.html +0 -100
- data/doc/html/api/core/files/lib/facets/kernel/__dir___rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/as_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/kernel/ask_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/attr_singleton_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/complete_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/constant_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/d_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/deep_copy_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/demo_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/ergo_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/kernel/here_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/in_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/instance_exec_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/kernel/instance_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/load_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/maybe_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/not_nil_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/object_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/p_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/populate_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/resc_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/respond_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/returning_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/silence_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/singleton_class_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/try_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/val_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel/with_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/kernel_rb.html +0 -115
- data/doc/html/api/core/files/lib/facets/matchdata/match_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/matchdata/matchset_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/matchdata_rb.html +0 -98
- data/doc/html/api/core/files/lib/facets/metaid_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module/abstract_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module/alias_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module/ancestor_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module/can_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module/class_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module/clone_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module/conflict_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module/include_function_module_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module/instance_methods_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module/is_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module/module_load_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module/nesting_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module/op_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module/pathize_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module/prepend_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module/revise_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/module_rb.html +0 -109
- data/doc/html/api/core/files/lib/facets/nilclass_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/numeric/approx_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/numeric/distance_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/numeric/round_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/numeric_rb.html +0 -98
- data/doc/html/api/core/files/lib/facets/proc/bind_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/proc/compose_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/proc/curry_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/proc/partial_rb.html +0 -125
- data/doc/html/api/core/files/lib/facets/proc/to_method_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/proc/update_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/proc_rb.html +0 -99
- data/doc/html/api/core/files/lib/facets/range/combine_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/range/overlap_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/range/to_r_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/range/umbrella_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/range/within_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/range_rb.html +0 -99
- data/doc/html/api/core/files/lib/facets/regexp/arity_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/regexp/to_re_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/regexp_rb.html +0 -98
- data/doc/html/api/core/files/lib/facets/ruby_rb.html +0 -110
- data/doc/html/api/core/files/lib/facets/stackable_rb.html +0 -120
- data/doc/html/api/core/files/lib/facets/string/align_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/bracket_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/camelcase_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/capitalized_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/chomp_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/cleave_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/divide_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/fold_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/interpolate_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/line_wrap_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/mscan_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/natcmp_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/nchar_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/range_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/rewrite_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/shatter_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/snakecase_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/splice_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/stylize_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/subtract_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/tab_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/titlecase_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/to_re_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/to_time_rb.html +0 -98
- data/doc/html/api/core/files/lib/facets/string/underscore_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string/words_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/string/xor_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/string_rb.html +0 -109
- data/doc/html/api/core/files/lib/facets/symbol/chomp_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/symbol/generate_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/symbol/not_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/symbol_rb.html +0 -98
- data/doc/html/api/core/files/lib/facets/time/ago_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/time/change_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/time/elapse_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/time/hence_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/time/set_rb.html +0 -96
- data/doc/html/api/core/files/lib/facets/time/stamp_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/time_rb.html +0 -99
- data/doc/html/api/core/files/lib/facets/to_hash_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/unboundmethod/arguments_rb.html +0 -92
- data/doc/html/api/core/files/lib/facets/unboundmethod_rb.html +0 -97
- data/doc/html/api/core/fr_class_index.html +0 -74
- data/doc/html/api/core/fr_file_index.html +0 -269
- data/doc/html/api/core/fr_method_index.html +0 -463
- data/doc/html/api/core/index.html +0 -26
- data/doc/html/api/more/classes/ANSICode.html +0 -495
- data/doc/html/api/more/classes/Advisable.html +0 -271
- data/doc/html/api/more/classes/Advisable/Method.html +0 -251
- data/doc/html/api/more/classes/Archive.html +0 -89
- data/doc/html/api/more/classes/Archive/Tar.html +0 -89
- data/doc/html/api/more/classes/Archive/Tar/Minitar.html +0 -470
- data/doc/html/api/more/classes/Archive/Tar/Minitar/Input.html +0 -380
- data/doc/html/api/more/classes/Archive/Tar/Minitar/Output.html +0 -218
- data/doc/html/api/more/classes/Archive/Tar/Minitar/Reader.html +0 -285
- data/doc/html/api/more/classes/Archive/Tar/Minitar/Writer.html +0 -419
- data/doc/html/api/more/classes/Association.html +0 -307
- data/doc/html/api/more/classes/Association/Kernel.html +0 -134
- data/doc/html/api/more/classes/Autoarray.html +0 -168
- data/doc/html/api/more/classes/BBCode.html +0 -534
- data/doc/html/api/more/classes/BasicObject.html +0 -260
- data/doc/html/api/more/classes/Behavior.html +0 -145
- data/doc/html/api/more/classes/BiCrypt.html +0 -543
- data/doc/html/api/more/classes/BigDuration.html +0 -327
- data/doc/html/api/more/classes/BinReadable.html +0 -536
- data/doc/html/api/more/classes/BinReadable/ByteOrder.html +0 -225
- data/doc/html/api/more/classes/Buildable.html +0 -154
- data/doc/html/api/more/classes/BuildingBlock.html +0 -362
- data/doc/html/api/more/classes/CGI.html +0 -187
- data/doc/html/api/more/classes/CLI.html +0 -108
- data/doc/html/api/more/classes/CLI/Arguments.html +0 -709
- data/doc/html/api/more/classes/CLI/Command.html +0 -436
- data/doc/html/api/more/classes/CLI/Command/UniversalOptions.html +0 -91
- data/doc/html/api/more/classes/CLI/NoCommandError.html +0 -113
- data/doc/html/api/more/classes/CLI/NoOptionError.html +0 -120
- data/doc/html/api/more/classes/CacheDecorator.html +0 -224
- data/doc/html/api/more/classes/Capsule.html +0 -410
- data/doc/html/api/more/classes/Capsule/MissingFile.html +0 -96
- data/doc/html/api/more/classes/Chain.html +0 -208
- data/doc/html/api/more/classes/Cloneable.html +0 -131
- data/doc/html/api/more/classes/Config.html +0 -137
- data/doc/html/api/more/classes/ConsoleUtils.html +0 -240
- data/doc/html/api/more/classes/Continuation.html +0 -115
- data/doc/html/api/more/classes/Coroutine.html +0 -286
- data/doc/html/api/more/classes/Crypt.html +0 -277
- data/doc/html/api/more/classes/CssFilter.html +0 -473
- data/doc/html/api/more/classes/CssTree.html +0 -149
- data/doc/html/api/more/classes/Date.html +0 -252
- data/doc/html/api/more/classes/Dictionary.html +0 -1247
- data/doc/html/api/more/classes/Downloader.html +0 -514
- data/doc/html/api/more/classes/Duration.html +0 -769
- data/doc/html/api/more/classes/Enumerable.html +0 -340
- data/doc/html/api/more/classes/Enumerable/Elementor.html +0 -172
- data/doc/html/api/more/classes/Enumerable/Enumerator.html +0 -118
- data/doc/html/api/more/classes/EnumerablePass.html +0 -216
- data/doc/html/api/more/classes/Equatable.html +0 -190
- data/doc/html/api/more/classes/EventHook.html +0 -176
- data/doc/html/api/more/classes/Expirable.html +0 -197
- data/doc/html/api/more/classes/File.html +0 -130
- data/doc/html/api/more/classes/FileList.html +0 -982
- data/doc/html/api/more/classes/FileShell.html +0 -774
- data/doc/html/api/more/classes/FileUtils.html +0 -454
- data/doc/html/api/more/classes/Fileable.html +0 -181
- data/doc/html/api/more/classes/Fileable/DSL.html +0 -306
- data/doc/html/api/more/classes/GetoptLong.html +0 -120
- data/doc/html/api/more/classes/GetoptLong/DSL.html +0 -210
- data/doc/html/api/more/classes/Hash2Xml.html +0 -177
- data/doc/html/api/more/classes/HtmlFilter.html +0 -850
- data/doc/html/api/more/classes/IORedirect.html +0 -222
- data/doc/html/api/more/classes/InfinityClass.html +0 -452
- data/doc/html/api/more/classes/InfinityClass/Numeric.html +0 -197
- data/doc/html/api/more/classes/InstanceReflection.html +0 -129
- data/doc/html/api/more/classes/Instantiable.html +0 -142
- data/doc/html/api/more/classes/Instantise.html +0 -162
- data/doc/html/api/more/classes/Interval.html +0 -879
- data/doc/html/api/more/classes/It.html +0 -207
- data/doc/html/api/more/classes/LRUCache.html +0 -464
- data/doc/html/api/more/classes/LRUCache/Item.html +0 -114
- data/doc/html/api/more/classes/LRUCache/Sentinel.html +0 -100
- data/doc/html/api/more/classes/Lazy.html +0 -96
- data/doc/html/api/more/classes/Lazy/Future.html +0 -100
- data/doc/html/api/more/classes/Lazy/Promise.html +0 -112
- data/doc/html/api/more/classes/Lazy/PromiseSafe.html +0 -99
- data/doc/html/api/more/classes/LinkedList.html +0 -494
- data/doc/html/api/more/classes/LinkedList/Node.html +0 -151
- data/doc/html/api/more/classes/Logger.html +0 -231
- data/doc/html/api/more/classes/Logger/Ansicolor.html +0 -279
- data/doc/html/api/more/classes/Logger/LogDevice.html +0 -123
- data/doc/html/api/more/classes/Module.html +0 -1410
- data/doc/html/api/more/classes/Multiton.html +0 -207
- data/doc/html/api/more/classes/Multiton/Inclusive.html +0 -128
- data/doc/html/api/more/classes/Multiton/MetaMethods.html +0 -270
- data/doc/html/api/more/classes/NackClass.html +0 -99
- data/doc/html/api/more/classes/Net/SMTP.html +0 -259
- data/doc/html/api/more/classes/NilClass.html +0 -227
- data/doc/html/api/more/classes/NullClass.html +0 -204
- data/doc/html/api/more/classes/Numeric.html +0 -1188
- data/doc/html/api/more/classes/ObjectReflection.html +0 -145
- data/doc/html/api/more/classes/OpEsc.html +0 -138
- data/doc/html/api/more/classes/OpenCascade.html +0 -144
- data/doc/html/api/more/classes/OpenCollection.html +0 -140
- data/doc/html/api/more/classes/OpenHash.html +0 -158
- data/doc/html/api/more/classes/OpenObject.html +0 -604
- data/doc/html/api/more/classes/OpenStruct.html +0 -413
- data/doc/html/api/more/classes/PQueue.html +0 -734
- data/doc/html/api/more/classes/PathList.html +0 -161
- data/doc/html/api/more/classes/PathList/Finder.html +0 -137
- data/doc/html/api/more/classes/Pathname.html +0 -178
- data/doc/html/api/more/classes/Pool.html +0 -206
- data/doc/html/api/more/classes/Proc.html +0 -138
- data/doc/html/api/more/classes/ProgressBar.html +0 -683
- data/doc/html/api/more/classes/Prototype.html +0 -245
- data/doc/html/api/more/classes/RWDelegator.html +0 -196
- data/doc/html/api/more/classes/Random.html +0 -164
- data/doc/html/api/more/classes/Random/Array.html +0 -341
- data/doc/html/api/more/classes/Random/Hash.html +0 -380
- data/doc/html/api/more/classes/Random/Object.html +0 -121
- data/doc/html/api/more/classes/Random/String.html +0 -301
- data/doc/html/api/more/classes/Random/String/Self.html +0 -155
- data/doc/html/api/more/classes/Recorder.html +0 -205
- data/doc/html/api/more/classes/RecursiveDependency.html +0 -92
- data/doc/html/api/more/classes/Reference.html +0 -198
- data/doc/html/api/more/classes/Registerable.html +0 -159
- data/doc/html/api/more/classes/Semaphore.html +0 -262
- data/doc/html/api/more/classes/Set.html +0 -119
- data/doc/html/api/more/classes/Settings.html +0 -290
- data/doc/html/api/more/classes/Settings/Setting.html +0 -225
- data/doc/html/api/more/classes/Settings/SettingCollection.html +0 -144
- data/doc/html/api/more/classes/Shellwords.html +0 -113
- data/doc/html/api/more/classes/SimpleStringIO.html +0 -137
- data/doc/html/api/more/classes/Snapshot.html +0 -196
- data/doc/html/api/more/classes/Snapshot/ValueHolder.html +0 -165
- data/doc/html/api/more/classes/String/Style.html +0 -695
- data/doc/html/api/more/classes/Struct.html +0 -132
- data/doc/html/api/more/classes/SyncArray.html +0 -129
- data/doc/html/api/more/classes/SyncHash.html +0 -158
- data/doc/html/api/more/classes/SyncHash/Delegator.html +0 -213
- data/doc/html/api/more/classes/SyncHash/Inheritor.html +0 -213
- data/doc/html/api/more/classes/System.html +0 -1119
- data/doc/html/api/more/classes/Timer.html +0 -466
- data/doc/html/api/more/classes/Timer/Dummy.html +0 -141
- data/doc/html/api/more/classes/TracePoint.html +0 -455
- data/doc/html/api/more/classes/Tuple.html +0 -902
- data/doc/html/api/more/classes/TypeCast.html +0 -158
- data/doc/html/api/more/classes/TypeCast/Class.html +0 -129
- data/doc/html/api/more/classes/TypeCast/Object.html +0 -119
- data/doc/html/api/more/classes/TypeCastException.html +0 -96
- data/doc/html/api/more/classes/URI.html +0 -455
- data/doc/html/api/more/classes/URI/Hash.html +0 -107
- data/doc/html/api/more/classes/URI/Kernel.html +0 -124
- data/doc/html/api/more/classes/Uninheritable.html +0 -122
- data/doc/html/api/more/classes/UploadUtils.html +0 -499
- data/doc/html/api/more/classes/VersionNumber.html +0 -384
- data/doc/html/api/more/classes/Weekdays.html +0 -248
- data/doc/html/api/more/classes/XOXO.html +0 -252
- data/doc/html/api/more/classes/ZipUtils.html +0 -437
- data/doc/html/api/more/classes/ZipUtils/DryRun.html +0 -225
- data/doc/html/api/more/classes/ZipUtils/NoWrite.html +0 -225
- data/doc/html/api/more/classes/ZipUtils/Verbose.html +0 -225
- data/doc/html/api/more/created.rid +0 -1
- data/doc/html/api/more/files/AUTHORS.html +0 -257
- data/doc/html/api/more/files/CHANGES.html +0 -274
- data/doc/html/api/more/files/COPYING.html +0 -462
- data/doc/html/api/more/files/MANIFEST.html +0 -597
- data/doc/html/api/more/files/NOTES.html +0 -166
- data/doc/html/api/more/files/README.html +0 -411
- data/doc/html/api/more/files/lib/facets/1stclassmethod_rb.html +0 -181
- data/doc/html/api/more/files/lib/facets/advisable_rb.html +0 -124
- data/doc/html/api/more/files/lib/facets/annotations_rb.html +0 -179
- data/doc/html/api/more/files/lib/facets/ansicode_rb.html +0 -199
- data/doc/html/api/more/files/lib/facets/arguments_rb.html +0 -142
- data/doc/html/api/more/files/lib/facets/association_rb.html +0 -158
- data/doc/html/api/more/files/lib/facets/attr_rb.html +0 -92
- data/doc/html/api/more/files/lib/facets/autoarray_rb.html +0 -125
- data/doc/html/api/more/files/lib/facets/autoreload_rb.html +0 -134
- data/doc/html/api/more/files/lib/facets/basicobject_rb.html +0 -190
- data/doc/html/api/more/files/lib/facets/bbcode_rb.html +0 -138
- data/doc/html/api/more/files/lib/facets/behavior_rb.html +0 -125
- data/doc/html/api/more/files/lib/facets/bicrypt_rb.html +0 -124
- data/doc/html/api/more/files/lib/facets/binreadable_rb.html +0 -141
- data/doc/html/api/more/files/lib/facets/buildable_rb.html +0 -228
- data/doc/html/api/more/files/lib/facets/bytes_rb.html +0 -170
- data/doc/html/api/more/files/lib/facets/cachedecorator_rb.html +0 -178
- data/doc/html/api/more/files/lib/facets/capsule_rb.html +0 -143
- data/doc/html/api/more/files/lib/facets/cattr_rb.html +0 -125
- data/doc/html/api/more/files/lib/facets/cgi_rb.html +0 -111
- data/doc/html/api/more/files/lib/facets/chain_rb.html +0 -114
- data/doc/html/api/more/files/lib/facets/class_extension_rb.html +0 -155
- data/doc/html/api/more/files/lib/facets/classmethods_rb.html +0 -213
- data/doc/html/api/more/files/lib/facets/cloneable_rb.html +0 -134
- data/doc/html/api/more/files/lib/facets/command_rb.html +0 -170
- data/doc/html/api/more/files/lib/facets/consoleutils_rb.html +0 -109
- data/doc/html/api/more/files/lib/facets/continuation_rb.html +0 -145
- data/doc/html/api/more/files/lib/facets/core_rb.html +0 -133
- data/doc/html/api/more/files/lib/facets/coroutine_rb.html +0 -163
- data/doc/html/api/more/files/lib/facets/crypt_rb.html +0 -141
- data/doc/html/api/more/files/lib/facets/cssfilter_rb.html +0 -120
- data/doc/html/api/more/files/lib/facets/daemonize_rb.html +0 -118
- data/doc/html/api/more/files/lib/facets/date_rb.html +0 -121
- data/doc/html/api/more/files/lib/facets/dependency_rb.html +0 -158
- data/doc/html/api/more/files/lib/facets/dictionary_rb.html +0 -198
- data/doc/html/api/more/files/lib/facets/downloader_rb.html +0 -137
- data/doc/html/api/more/files/lib/facets/duration_rb.html +0 -132
- data/doc/html/api/more/files/lib/facets/elementor_rb.html +0 -148
- data/doc/html/api/more/files/lib/facets/elementwise_rb.html +0 -96
- data/doc/html/api/more/files/lib/facets/enumerablepass_rb.html +0 -153
- data/doc/html/api/more/files/lib/facets/equatable_rb.html +0 -145
- data/doc/html/api/more/files/lib/facets/eventhook_rb.html +0 -141
- data/doc/html/api/more/files/lib/facets/expirable_rb.html +0 -116
- data/doc/html/api/more/files/lib/facets/fileable_rb.html +0 -138
- data/doc/html/api/more/files/lib/facets/filelist_rb.html +0 -164
- data/doc/html/api/more/files/lib/facets/fileshell_rb.html +0 -124
- data/doc/html/api/more/files/lib/facets/fileutils/head_rb.html +0 -96
- data/doc/html/api/more/files/lib/facets/fileutils/safe_ln_rb.html +0 -96
- data/doc/html/api/more/files/lib/facets/fileutils/slice_rb.html +0 -96
- data/doc/html/api/more/files/lib/facets/fileutils/tail_rb.html +0 -96
- data/doc/html/api/more/files/lib/facets/fileutils/wc_rb.html +0 -96
- data/doc/html/api/more/files/lib/facets/fileutils/whereis_rb.html +0 -96
- data/doc/html/api/more/files/lib/facets/fileutils/which_rb.html +0 -96
- data/doc/html/api/more/files/lib/facets/fileutils_rb.html +0 -131
- data/doc/html/api/more/files/lib/facets/float/round_rb.html +0 -96
- data/doc/html/api/more/files/lib/facets/getoptlong_rb.html +0 -135
- data/doc/html/api/more/files/lib/facets/heap_rb.html +0 -132
- data/doc/html/api/more/files/lib/facets/htmlfilter_rb.html +0 -153
- data/doc/html/api/more/files/lib/facets/infinity_rb.html +0 -153
- data/doc/html/api/more/files/lib/facets/inheritor_rb.html +0 -149
- data/doc/html/api/more/files/lib/facets/instantiable_rb.html +0 -119
- data/doc/html/api/more/files/lib/facets/instantise_rb.html +0 -145
- data/doc/html/api/more/files/lib/facets/interval_rb.html +0 -163
- data/doc/html/api/more/files/lib/facets/ioredirect_rb.html +0 -133
- data/doc/html/api/more/files/lib/facets/iteration_rb.html +0 -94
- data/doc/html/api/more/files/lib/facets/lazy_rb.html +0 -120
- data/doc/html/api/more/files/lib/facets/linkedlist_rb.html +0 -159
- data/doc/html/api/more/files/lib/facets/logger_rb.html +0 -142
- data/doc/html/api/more/files/lib/facets/lrucache_rb.html +0 -129
- data/doc/html/api/more/files/lib/facets/main_rb.html +0 -126
- data/doc/html/api/more/files/lib/facets/memoize_rb.html +0 -163
- data/doc/html/api/more/files/lib/facets/meta_rb.html +0 -96
- data/doc/html/api/more/files/lib/facets/methodspace_rb.html +0 -138
- data/doc/html/api/more/files/lib/facets/minitar_rb.html +0 -203
- data/doc/html/api/more/files/lib/facets/multipliers_rb.html +0 -149
- data/doc/html/api/more/files/lib/facets/multiton_rb.html +0 -187
- data/doc/html/api/more/files/lib/facets/nackclass_rb.html +0 -121
- data/doc/html/api/more/files/lib/facets/net/smtp_tls_rb.html +0 -143
- data/doc/html/api/more/files/lib/facets/nilstatus_rb.html +0 -92
- data/doc/html/api/more/files/lib/facets/nullclass_rb.html +0 -122
- data/doc/html/api/more/files/lib/facets/opencascade_rb.html +0 -156
- data/doc/html/api/more/files/lib/facets/opencollection_rb.html +0 -123
- data/doc/html/api/more/files/lib/facets/openhash_rb.html +0 -107
- data/doc/html/api/more/files/lib/facets/openobject_rb.html +0 -167
- data/doc/html/api/more/files/lib/facets/opesc_rb.html +0 -94
- data/doc/html/api/more/files/lib/facets/orderedhash_rb.html +0 -142
- data/doc/html/api/more/files/lib/facets/ostruct_rb.html +0 -135
- data/doc/html/api/more/files/lib/facets/overload_rb.html +0 -119
- data/doc/html/api/more/files/lib/facets/pathlist_rb.html +0 -133
- data/doc/html/api/more/files/lib/facets/pathname_rb.html +0 -155
- data/doc/html/api/more/files/lib/facets/pool_rb.html +0 -131
- data/doc/html/api/more/files/lib/facets/pqueue_rb.html +0 -129
- data/doc/html/api/more/files/lib/facets/progressbar_rb.html +0 -126
- data/doc/html/api/more/files/lib/facets/prototype_rb.html +0 -102
- data/doc/html/api/more/files/lib/facets/random_rb.html +0 -148
- data/doc/html/api/more/files/lib/facets/rbconfig_rb.html +0 -124
- data/doc/html/api/more/files/lib/facets/rbsystem_rb.html +0 -143
- data/doc/html/api/more/files/lib/facets/recorder_rb.html +0 -154
- data/doc/html/api/more/files/lib/facets/reference_rb.html +0 -130
- data/doc/html/api/more/files/lib/facets/reflection_rb.html +0 -119
- data/doc/html/api/more/files/lib/facets/registerable_rb.html +0 -98
- data/doc/html/api/more/files/lib/facets/rwdelegator_rb.html +0 -122
- data/doc/html/api/more/files/lib/facets/semaphore_rb.html +0 -120
- data/doc/html/api/more/files/lib/facets/set_rb.html +0 -96
- data/doc/html/api/more/files/lib/facets/settings_rb.html +0 -141
- data/doc/html/api/more/files/lib/facets/shellwords_rb.html +0 -124
- data/doc/html/api/more/files/lib/facets/snapshot_rb.html +0 -177
- data/doc/html/api/more/files/lib/facets/style_rb.html +0 -96
- data/doc/html/api/more/files/lib/facets/succ_rb.html +0 -92
- data/doc/html/api/more/files/lib/facets/syncarray_rb.html +0 -125
- data/doc/html/api/more/files/lib/facets/synchash_rb.html +0 -138
- data/doc/html/api/more/files/lib/facets/thread_rb.html +0 -132
- data/doc/html/api/more/files/lib/facets/timer_rb.html +0 -174
- data/doc/html/api/more/files/lib/facets/times_rb.html +0 -163
- data/doc/html/api/more/files/lib/facets/tracepoint_rb.html +0 -167
- data/doc/html/api/more/files/lib/facets/tuple_rb.html +0 -160
- data/doc/html/api/more/files/lib/facets/typecast_rb.html +0 -214
- data/doc/html/api/more/files/lib/facets/uninheritable_rb.html +0 -129
- data/doc/html/api/more/files/lib/facets/uploadutils_rb.html +0 -176
- data/doc/html/api/more/files/lib/facets/uri_rb.html +0 -125
- data/doc/html/api/more/files/lib/facets/version_rb.html +0 -132
- data/doc/html/api/more/files/lib/facets/xmlhash_rb.html +0 -97
- data/doc/html/api/more/files/lib/facets/xoxo_rb.html +0 -136
- data/doc/html/api/more/files/lib/facets/yaml_rb.html +0 -145
- data/doc/html/api/more/files/lib/facets/ziputils_rb.html +0 -133
- data/doc/html/api/more/fr_class_index.html +0 -200
- data/doc/html/api/more/fr_file_index.html +0 -177
- data/doc/html/api/more/fr_method_index.html +0 -1181
- data/doc/html/api/more/index.html +0 -26
- data/doc/html/authors.html +0 -178
- data/doc/html/changes.html +0 -193
- data/doc/html/copying.html +0 -384
- data/doc/html/img/APIdocs.png +0 -0
- data/doc/html/img/RubyFacets.png +0 -0
- data/doc/html/img/bomb.gif +0 -0
- data/doc/html/img/develop.gif +0 -0
- data/doc/html/img/email.gif +0 -0
- data/doc/html/img/fade_blue_down.gif +0 -0
- data/doc/html/img/fade_red_down.png +0 -0
- data/doc/html/img/folder.gif +0 -0
- data/doc/html/img/home.gif +0 -0
- data/doc/html/img/menu_bkg.png +0 -0
- data/doc/html/img/quill.gif +0 -0
- data/doc/html/img/ruby-h.png +0 -0
- data/doc/html/img/ruby.gif +0 -0
- data/doc/html/img/ruby.png +0 -0
- data/doc/html/img/source.gif +0 -0
- data/doc/html/index.html +0 -16
- data/doc/html/js/doclist.js +0 -20
- data/doc/html/js/jquery.js +0 -3408
- data/doc/html/list.json +0 -1
- data/doc/html/manifest.html +0 -519
- data/doc/html/menu.html +0 -70
- data/doc/html/notes.html +0 -86
- data/doc/html/rakefile.html +0 -45
- data/doc/html/readme.html +0 -327
- data/doc/html/style-rdoc.css +0 -208
- data/lib/facets.rb +0 -2
- data/lib/facets/ansicode.rb +0 -320
- data/lib/facets/arguments.rb +0 -349
- data/lib/facets/array.rb +0 -24
- data/lib/facets/array/product.rb +0 -15
- data/lib/facets/binding.rb +0 -6
- data/lib/facets/binding/caller.rb +0 -54
- data/lib/facets/binding/defined.rb +0 -13
- data/lib/facets/binding/local_variables.rb +0 -15
- data/lib/facets/binding/opvars.rb +0 -24
- data/lib/facets/binding/self.rb +0 -12
- data/lib/facets/class.rb +0 -4
- data/lib/facets/command.rb +0 -422
- data/lib/facets/comparable.rb +0 -6
- data/lib/facets/core.rb +0 -50
- data/lib/facets/dictionary.rb +0 -474
- data/lib/facets/dir.rb +0 -9
- data/lib/facets/enumerable.rb +0 -19
- data/lib/facets/enumerable/cluster_by.rb +0 -21
- data/lib/facets/file.rb +0 -7
- data/lib/facets/file/rewrite.rb +0 -54
- data/lib/facets/file/rootname.rb +0 -23
- data/lib/facets/filelist.rb +0 -499
- data/lib/facets/filetest.rb +0 -3
- data/lib/facets/fileutils/whereis.rb +0 -63
- data/lib/facets/hash.rb +0 -25
- data/lib/facets/hash/merge.rb +0 -74
- data/lib/facets/hash/rekey.rb +0 -59
- data/lib/facets/hash/slice.rb +0 -23
- data/lib/facets/hash/update.rb +0 -75
- data/lib/facets/integer.rb +0 -7
- data/lib/facets/kernel.rb +0 -29
- data/lib/facets/kernel/ask.rb +0 -27
- data/lib/facets/matchdata.rb +0 -6
- data/lib/facets/meta.rb +0 -23
- data/lib/facets/module.rb +0 -22
- data/lib/facets/module/conflict.rb +0 -56
- data/lib/facets/nilclass.rb +0 -3
- data/lib/facets/numeric.rb +0 -5
- data/lib/facets/overload.rb +0 -94
- data/lib/facets/paramix.rb +0 -187
- data/lib/facets/pathname.rb +0 -112
- data/lib/facets/proc.rb +0 -6
- data/lib/facets/range.rb +0 -6
- data/lib/facets/reflection.rb +0 -98
- data/lib/facets/regexp.rb +0 -5
- data/lib/facets/ruby.rb +0 -485
- data/lib/facets/string.rb +0 -28
- data/lib/facets/string/to_time.rb +0 -1
- data/lib/facets/symbol.rb +0 -5
- data/lib/facets/time.rb +0 -11
- data/lib/facets/time/change.rb +0 -99
- data/lib/facets/time/hence.rb +0 -56
- data/lib/facets/time/to_time.rb +0 -14
- data/lib/facets/unboundmethod.rb +0 -4
- data/lib/facets/yaml.rb +0 -66
- data/log/changelog-0.rdoc +0 -239
- data/log/changelog-1.rdoc +0 -450
- data/log/changelog.rdoc +0 -1173
- data/log/fixme.rdoc +0 -12
- data/log/testlog.txt +0 -645
- data/log/todo.rdoc +0 -237
- data/meta/authors +0 -48
- data/meta/contact +0 -1
- data/meta/created +0 -1
- data/meta/description +0 -8
- data/meta/download +0 -1
- data/meta/homepage +0 -1
- data/meta/mailinglist +0 -1
- data/meta/project.yaml +0 -31
- data/meta/slogan +0 -1
- data/meta/unixname +0 -1
- data/meta/version +0 -1
- data/script/conflicts +0 -63
- data/script/document +0 -231
- data/script/methods +0 -49
- data/script/test +0 -37
- data/setup.rb +0 -1478
- data/test/array/test_product.rb +0 -25
- data/test/hash/test_rekey.rb +0 -41
- data/test/hash/test_rekey2.rb +0 -37
- data/test/hash/test_update.rb +0 -40
- data/test/test_ansicode.rb +0 -20
- data/test/test_dictionary.rb +0 -122
- data/test/test_overload.rb +0 -120
- data/test/test_ruby.rb +0 -198
- data/test/test_ruby/array/test_combination.rb +0 -29
- data/test/test_ruby/array/test_permutation.rb +0 -14
- data/test/test_ruby/array/test_product.rb +0 -23
- data/test/test_ruby/kernel/test_tap.rb +0 -19
- data/test/test_ruby/symbol/test_succ.rb +0 -13
- data/test/time/test_to_time.rb +0 -16
@@ -0,0 +1,173 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html>
|
6
|
+
<head>
|
7
|
+
<title>Class: Functor</title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
+
|
11
|
+
<script language="JavaScript" type="text/javascript">
|
12
|
+
// <![CDATA[
|
13
|
+
|
14
|
+
function toggleSource( id )
|
15
|
+
{
|
16
|
+
var elem
|
17
|
+
var link
|
18
|
+
|
19
|
+
if( document.getElementById )
|
20
|
+
{
|
21
|
+
elem = document.getElementById( id )
|
22
|
+
link = document.getElementById( "l_" + id )
|
23
|
+
}
|
24
|
+
else if ( document.all )
|
25
|
+
{
|
26
|
+
elem = eval( "document.all." + id )
|
27
|
+
link = eval( "document.all.l_" + id )
|
28
|
+
}
|
29
|
+
else
|
30
|
+
return false;
|
31
|
+
|
32
|
+
if( elem.style.display == "block" )
|
33
|
+
{
|
34
|
+
elem.style.display = "none"
|
35
|
+
link.innerHTML = "show source"
|
36
|
+
}
|
37
|
+
else
|
38
|
+
{
|
39
|
+
elem.style.display = "block"
|
40
|
+
link.innerHTML = "hide source"
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
function openCode( url )
|
45
|
+
{
|
46
|
+
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
+
}
|
48
|
+
// ]]>
|
49
|
+
</script>
|
50
|
+
</head>
|
51
|
+
|
52
|
+
<body>
|
53
|
+
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
+
<td class="file-title"><span class="file-title-prefix">Class</span><br />Functor</td>
|
55
|
+
<td align="right">
|
56
|
+
<table cellspacing="0" cellpadding="2">
|
57
|
+
<tr valign="top">
|
58
|
+
<td>In:</td>
|
59
|
+
<td>
|
60
|
+
<a href="../files/lib/core/facets/functor_rb.html">lib/core/facets/functor.rb</a>
|
61
|
+
</td>
|
62
|
+
</tr>
|
63
|
+
<tr>
|
64
|
+
<td>Parent:</td>
|
65
|
+
<td>
|
66
|
+
<a href="Object.html">
|
67
|
+
Object
|
68
|
+
</a>
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</td>
|
73
|
+
</tr>
|
74
|
+
</table>
|
75
|
+
<!-- banner header -->
|
76
|
+
|
77
|
+
<div id="bodyContent">
|
78
|
+
<div id="content">
|
79
|
+
|
80
|
+
<div class="description"><p>
|
81
|
+
By definition a <a href="Functor.html">Functor</a> is simply a first class
|
82
|
+
method, but these are common in the form of Method and <a
|
83
|
+
href="Proc.html">Proc</a>. So for Ruby a <a href="Functor.html">Functor</a>
|
84
|
+
is a more specialized as a Higher-order function or Metafunction.
|
85
|
+
Essentally, a <a href="Functor.html">Functor</a> can vary its behavior
|
86
|
+
accorrding to the operation applied to it.
|
87
|
+
</p>
|
88
|
+
<pre>
|
89
|
+
f = Functor.new { |op, x| x.send(op, x) }
|
90
|
+
f + 1 #=> 2
|
91
|
+
f + 2 #=> 4
|
92
|
+
f + 3 #=> 6
|
93
|
+
f * 1 #=> 1
|
94
|
+
f * 2 #=> 4
|
95
|
+
f * 3 #=> 9
|
96
|
+
</pre>
|
97
|
+
</div>
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
<div class="sectiontitle">Methods</div>
|
102
|
+
<ul>
|
103
|
+
<li><a href="#M000424">method_missing</a></li>
|
104
|
+
<li><a href="#M000422">new</a></li>
|
105
|
+
<li><a href="#M000423">to_proc</a></li>
|
106
|
+
</ul>
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
<div class="sectiontitle">Public Class methods</div>
|
114
|
+
<div class="method">
|
115
|
+
<div class="title">
|
116
|
+
<a name="M000422"></a><b>new</b>(&function)
|
117
|
+
</div>
|
118
|
+
<div class="sourcecode">
|
119
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000422_source')" id="l_M000422_source">show source</a> ]</p>
|
120
|
+
<div id="M000422_source" class="dyn-source">
|
121
|
+
<pre>
|
122
|
+
<span class="ruby-comment cmt"># File lib/core/facets/functor.rb, line 63</span>
|
123
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">function</span>)
|
124
|
+
<span class="ruby-ivar">@function</span> = <span class="ruby-identifier">function</span>
|
125
|
+
<span class="ruby-keyword kw">end</span>
|
126
|
+
</pre>
|
127
|
+
</div>
|
128
|
+
</div>
|
129
|
+
</div>
|
130
|
+
<div class="sectiontitle">Public Instance methods</div>
|
131
|
+
<div class="method">
|
132
|
+
<div class="title">
|
133
|
+
<a name="M000424"></a><b>method_missing</b>(op, *args, &blk)
|
134
|
+
</div>
|
135
|
+
<div class="description">
|
136
|
+
<p>
|
137
|
+
Any action against the functor is processesd by the function.
|
138
|
+
</p>
|
139
|
+
</div>
|
140
|
+
<div class="sourcecode">
|
141
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000424_source')" id="l_M000424_source">show source</a> ]</p>
|
142
|
+
<div id="M000424_source" class="dyn-source">
|
143
|
+
<pre>
|
144
|
+
<span class="ruby-comment cmt"># File lib/core/facets/functor.rb, line 72</span>
|
145
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">op</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
146
|
+
<span class="ruby-ivar">@function</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">op</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
147
|
+
<span class="ruby-keyword kw">end</span>
|
148
|
+
</pre>
|
149
|
+
</div>
|
150
|
+
</div>
|
151
|
+
</div>
|
152
|
+
<div class="method">
|
153
|
+
<div class="title">
|
154
|
+
<a name="M000423"></a><b>to_proc</b>()
|
155
|
+
</div>
|
156
|
+
<div class="sourcecode">
|
157
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000423_source')" id="l_M000423_source">show source</a> ]</p>
|
158
|
+
<div id="M000423_source" class="dyn-source">
|
159
|
+
<pre>
|
160
|
+
<span class="ruby-comment cmt"># File lib/core/facets/functor.rb, line 67</span>
|
161
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc</span>
|
162
|
+
<span class="ruby-ivar">@function</span>
|
163
|
+
<span class="ruby-keyword kw">end</span>
|
164
|
+
</pre>
|
165
|
+
</div>
|
166
|
+
</div>
|
167
|
+
</div>
|
168
|
+
</div>
|
169
|
+
|
170
|
+
</div>
|
171
|
+
|
172
|
+
</body>
|
173
|
+
</html>
|
@@ -0,0 +1,3864 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html>
|
6
|
+
<head>
|
7
|
+
<title>Class: Hash</title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
+
|
11
|
+
<script language="JavaScript" type="text/javascript">
|
12
|
+
// <![CDATA[
|
13
|
+
|
14
|
+
function toggleSource( id )
|
15
|
+
{
|
16
|
+
var elem
|
17
|
+
var link
|
18
|
+
|
19
|
+
if( document.getElementById )
|
20
|
+
{
|
21
|
+
elem = document.getElementById( id )
|
22
|
+
link = document.getElementById( "l_" + id )
|
23
|
+
}
|
24
|
+
else if ( document.all )
|
25
|
+
{
|
26
|
+
elem = eval( "document.all." + id )
|
27
|
+
link = eval( "document.all.l_" + id )
|
28
|
+
}
|
29
|
+
else
|
30
|
+
return false;
|
31
|
+
|
32
|
+
if( elem.style.display == "block" )
|
33
|
+
{
|
34
|
+
elem.style.display = "none"
|
35
|
+
link.innerHTML = "show source"
|
36
|
+
}
|
37
|
+
else
|
38
|
+
{
|
39
|
+
elem.style.display = "block"
|
40
|
+
link.innerHTML = "hide source"
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
function openCode( url )
|
45
|
+
{
|
46
|
+
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
+
}
|
48
|
+
// ]]>
|
49
|
+
</script>
|
50
|
+
</head>
|
51
|
+
|
52
|
+
<body>
|
53
|
+
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
+
<td class="file-title"><span class="file-title-prefix">Class</span><br />Hash</td>
|
55
|
+
<td align="right">
|
56
|
+
<table cellspacing="0" cellpadding="2">
|
57
|
+
<tr valign="top">
|
58
|
+
<td>In:</td>
|
59
|
+
<td>
|
60
|
+
<a href="../files/lib/core/facets/to_hash_rb.html">lib/core/facets/to_hash.rb</a>
|
61
|
+
<a href="../files/lib/core/facets/hash/alias_rb.html">lib/core/facets/hash/alias.rb</a>
|
62
|
+
<a href="../files/lib/core/facets/hash/update_rb.html">lib/core/facets/hash/update.rb</a>
|
63
|
+
<a href="../files/lib/core/facets/hash/autonew_rb.html">lib/core/facets/hash/autonew.rb</a>
|
64
|
+
<a href="../files/lib/core/facets/hash/recursively_rb.html">lib/core/facets/hash/recursively.rb</a>
|
65
|
+
<a href="../files/lib/core/facets/hash/except_rb.html">lib/core/facets/hash/except.rb</a>
|
66
|
+
<a href="../files/lib/core/facets/hash/keys_rb.html">lib/core/facets/hash/keys.rb</a>
|
67
|
+
<a href="../files/lib/core/facets/hash/merge_rb.html">lib/core/facets/hash/merge.rb</a>
|
68
|
+
<a href="../files/lib/core/facets/hash/traverse_rb.html">lib/core/facets/hash/traverse.rb</a>
|
69
|
+
<a href="../files/lib/core/facets/hash/op_rb.html">lib/core/facets/hash/op.rb</a>
|
70
|
+
<a href="../files/lib/core/facets/hash/inverse_rb.html">lib/core/facets/hash/inverse.rb</a>
|
71
|
+
<a href="../files/lib/core/facets/hash/recursive_merge_rb.html">lib/core/facets/hash/recursive_merge.rb</a>
|
72
|
+
<a href="../files/lib/core/facets/hash/to_proc_rb.html">lib/core/facets/hash/to_proc.rb</a>
|
73
|
+
<a href="../files/lib/core/facets/hash/insert_rb.html">lib/core/facets/hash/insert.rb</a>
|
74
|
+
<a href="../files/lib/core/facets/hash/select_rb.html">lib/core/facets/hash/select.rb</a>
|
75
|
+
<a href="../files/lib/core/facets/hash/diff_rb.html">lib/core/facets/hash/diff.rb</a>
|
76
|
+
<a href="../files/lib/core/facets/hash/mash_rb.html">lib/core/facets/hash/mash.rb</a>
|
77
|
+
<a href="../files/lib/core/facets/hash/collate_rb.html">lib/core/facets/hash/collate.rb</a>
|
78
|
+
<a href="../files/lib/core/facets/hash/delete_rb.html">lib/core/facets/hash/delete.rb</a>
|
79
|
+
<a href="../files/lib/core/facets/hash/weave_rb.html">lib/core/facets/hash/weave.rb</a>
|
80
|
+
<a href="../files/lib/core/facets/hash/swap_rb.html">lib/core/facets/hash/swap.rb</a>
|
81
|
+
<a href="../files/lib/core/facets/hash/to_struct_rb.html">lib/core/facets/hash/to_struct.rb</a>
|
82
|
+
<a href="../files/lib/core/facets/hash/symbolize_keys_rb.html">lib/core/facets/hash/symbolize_keys.rb</a>
|
83
|
+
<a href="../files/lib/core/facets/hash/join_rb.html">lib/core/facets/hash/join.rb</a>
|
84
|
+
<a href="../files/lib/core/facets/hash/slice_rb.html">lib/core/facets/hash/slice.rb</a>
|
85
|
+
<a href="../files/lib/core/facets/hash/rekey_rb.html">lib/core/facets/hash/rekey.rb</a>
|
86
|
+
<a href="../files/lib/core/facets/hash/argumentize_rb.html">lib/core/facets/hash/argumentize.rb</a>
|
87
|
+
<a href="../files/lib/core/facets/hash/at_rb.html">lib/core/facets/hash/at.rb</a>
|
88
|
+
<a href="../files/lib/core/facets/hash/alias_rb.html">lib/core/facets/hash/alias.rb</a>
|
89
|
+
<a href="../files/lib/core/facets/hash/update_rb.html">lib/core/facets/hash/update.rb</a>
|
90
|
+
<a href="../files/lib/core/facets/hash/autonew_rb.html">lib/core/facets/hash/autonew.rb</a>
|
91
|
+
<a href="../files/lib/core/facets/hash/recursively_rb.html">lib/core/facets/hash/recursively.rb</a>
|
92
|
+
<a href="../files/lib/core/facets/hash/except_rb.html">lib/core/facets/hash/except.rb</a>
|
93
|
+
<a href="../files/lib/core/facets/hash/keys_rb.html">lib/core/facets/hash/keys.rb</a>
|
94
|
+
<a href="../files/lib/core/facets/hash/merge_rb.html">lib/core/facets/hash/merge.rb</a>
|
95
|
+
<a href="../files/lib/core/facets/hash/traverse_rb.html">lib/core/facets/hash/traverse.rb</a>
|
96
|
+
<a href="../files/lib/core/facets/hash/op_rb.html">lib/core/facets/hash/op.rb</a>
|
97
|
+
<a href="../files/lib/core/facets/hash/inverse_rb.html">lib/core/facets/hash/inverse.rb</a>
|
98
|
+
<a href="../files/lib/core/facets/hash/recursive_merge_rb.html">lib/core/facets/hash/recursive_merge.rb</a>
|
99
|
+
<a href="../files/lib/core/facets/hash/to_proc_rb.html">lib/core/facets/hash/to_proc.rb</a>
|
100
|
+
<a href="../files/lib/core/facets/hash/insert_rb.html">lib/core/facets/hash/insert.rb</a>
|
101
|
+
<a href="../files/lib/core/facets/hash/select_rb.html">lib/core/facets/hash/select.rb</a>
|
102
|
+
<a href="../files/lib/core/facets/hash/diff_rb.html">lib/core/facets/hash/diff.rb</a>
|
103
|
+
<a href="../files/lib/core/facets/hash/mash_rb.html">lib/core/facets/hash/mash.rb</a>
|
104
|
+
<a href="../files/lib/core/facets/hash/collate_rb.html">lib/core/facets/hash/collate.rb</a>
|
105
|
+
<a href="../files/lib/core/facets/hash/delete_rb.html">lib/core/facets/hash/delete.rb</a>
|
106
|
+
<a href="../files/lib/core/facets/hash/weave_rb.html">lib/core/facets/hash/weave.rb</a>
|
107
|
+
<a href="../files/lib/core/facets/hash/swap_rb.html">lib/core/facets/hash/swap.rb</a>
|
108
|
+
<a href="../files/lib/core/facets/hash/to_struct_rb.html">lib/core/facets/hash/to_struct.rb</a>
|
109
|
+
<a href="../files/lib/core/facets/hash/symbolize_keys_rb.html">lib/core/facets/hash/symbolize_keys.rb</a>
|
110
|
+
<a href="../files/lib/core/facets/hash/join_rb.html">lib/core/facets/hash/join.rb</a>
|
111
|
+
<a href="../files/lib/core/facets/hash/slice_rb.html">lib/core/facets/hash/slice.rb</a>
|
112
|
+
<a href="../files/lib/core/facets/hash/rekey_rb.html">lib/core/facets/hash/rekey.rb</a>
|
113
|
+
<a href="../files/lib/core/facets/hash/argumentize_rb.html">lib/core/facets/hash/argumentize.rb</a>
|
114
|
+
<a href="../files/lib/core/facets/hash/at_rb.html">lib/core/facets/hash/at.rb</a>
|
115
|
+
<a href="../files/lib/core/facets/blank_rb.html">lib/core/facets/blank.rb</a>
|
116
|
+
</td>
|
117
|
+
</tr>
|
118
|
+
<tr>
|
119
|
+
<td>Parent:</td>
|
120
|
+
<td>
|
121
|
+
<a href="Object.html">
|
122
|
+
Object
|
123
|
+
</a>
|
124
|
+
</td>
|
125
|
+
</tr>
|
126
|
+
</table>
|
127
|
+
</td>
|
128
|
+
</tr>
|
129
|
+
</table>
|
130
|
+
<!-- banner header -->
|
131
|
+
|
132
|
+
<div id="bodyContent">
|
133
|
+
<div id="content">
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
<div class="sectiontitle">Methods</div>
|
139
|
+
<ul>
|
140
|
+
<li><a href="#M000154">&</a></li>
|
141
|
+
<li><a href="#M000213">&</a></li>
|
142
|
+
<li><a href="#M000158">*</a></li>
|
143
|
+
<li><a href="#M000217">*</a></li>
|
144
|
+
<li><a href="#M000156">+</a></li>
|
145
|
+
<li><a href="#M000215">+</a></li>
|
146
|
+
<li><a href="#M000157">-</a></li>
|
147
|
+
<li><a href="#M000216">-</a></li>
|
148
|
+
<li><a href="#M000192"><<</a></li>
|
149
|
+
<li><a href="#M000133"><<</a></li>
|
150
|
+
<li><a href="#M000191">alias!</a></li>
|
151
|
+
<li><a href="#M000132">alias!</a></li>
|
152
|
+
<li><a href="#M000190">argumentize</a></li>
|
153
|
+
<li><a href="#M000249">argumentize</a></li>
|
154
|
+
<li><a href="#M000197">autonew</a></li>
|
155
|
+
<li><a href="#M000138">autonew</a></li>
|
156
|
+
<li><a href="#M000169">collate</a></li>
|
157
|
+
<li><a href="#M000228">collate</a></li>
|
158
|
+
<li><a href="#M000170">collate!</a></li>
|
159
|
+
<li><a href="#M000229">collate!</a></li>
|
160
|
+
<li><a href="#M000171">delete_unless</a></li>
|
161
|
+
<li><a href="#M000230">delete_unless</a></li>
|
162
|
+
<li><a href="#M000172">delete_values</a></li>
|
163
|
+
<li><a href="#M000231">delete_values</a></li>
|
164
|
+
<li><a href="#M000173">delete_values_at</a></li>
|
165
|
+
<li><a href="#M000232">delete_values_at</a></li>
|
166
|
+
<li><a href="#M000166">diff</a></li>
|
167
|
+
<li><a href="#M000225">diff</a></li>
|
168
|
+
<li><a href="#M000148">each_with_key</a></li>
|
169
|
+
<li><a href="#M000207">each_with_key</a></li>
|
170
|
+
<li><a href="#M000201">except</a></li>
|
171
|
+
<li><a href="#M000142">except</a></li>
|
172
|
+
<li><a href="#M000143">except!</a></li>
|
173
|
+
<li><a href="#M000202">except!</a></li>
|
174
|
+
<li><a href="#M000168">graph!</a></li>
|
175
|
+
<li><a href="#M000227">graph!</a></li>
|
176
|
+
<li><a href="#M000203">has_keys?</a></li>
|
177
|
+
<li><a href="#M000144">has_keys?</a></li>
|
178
|
+
<li><a href="#M000205">has_only_keys?</a></li>
|
179
|
+
<li><a href="#M000146">has_only_keys?</a></li>
|
180
|
+
<li><a href="#M000223">insert</a></li>
|
181
|
+
<li><a href="#M000164">insert</a></li>
|
182
|
+
<li><a href="#M000218">inverse</a></li>
|
183
|
+
<li><a href="#M000159">inverse</a></li>
|
184
|
+
<li><a href="#M000185">join</a></li>
|
185
|
+
<li><a href="#M000244">join</a></li>
|
186
|
+
<li><a href="#M000204">keys?</a></li>
|
187
|
+
<li><a href="#M000145">keys?</a></li>
|
188
|
+
<li><a href="#M000241">keys_to_s</a></li>
|
189
|
+
<li><a href="#M000182">keys_to_s</a></li>
|
190
|
+
<li><a href="#M000184">keys_to_s!</a></li>
|
191
|
+
<li><a href="#M000243">keys_to_s!</a></li>
|
192
|
+
<li><a href="#M000178">keys_to_sym</a></li>
|
193
|
+
<li><a href="#M000237">keys_to_sym</a></li>
|
194
|
+
<li><a href="#M000180">keys_to_sym!</a></li>
|
195
|
+
<li><a href="#M000239">keys_to_sym!</a></li>
|
196
|
+
<li><a href="#M000226">mash!</a></li>
|
197
|
+
<li><a href="#M000167">mash!</a></li>
|
198
|
+
<li><a href="#M000147">only_keys?</a></li>
|
199
|
+
<li><a href="#M000206">only_keys?</a></li>
|
200
|
+
<li><a href="#M000160">recursive_merge</a></li>
|
201
|
+
<li><a href="#M000219">recursive_merge</a></li>
|
202
|
+
<li><a href="#M000220">recursive_merge!</a></li>
|
203
|
+
<li><a href="#M000161">recursive_merge!</a></li>
|
204
|
+
<li><a href="#M000199">recursively</a></li>
|
205
|
+
<li><a href="#M000140">recursively</a></li>
|
206
|
+
<li><a href="#M000200">recursively!</a></li>
|
207
|
+
<li><a href="#M000141">recursively!</a></li>
|
208
|
+
<li><a href="#M000247">rekey</a></li>
|
209
|
+
<li><a href="#M000188">rekey</a></li>
|
210
|
+
<li><a href="#M000189">rekey!</a></li>
|
211
|
+
<li><a href="#M000248">rekey!</a></li>
|
212
|
+
<li><a href="#M000196">replace_each</a></li>
|
213
|
+
<li><a href="#M000137">replace_each</a></li>
|
214
|
+
<li><a href="#M000208">reverse_merge</a></li>
|
215
|
+
<li><a href="#M000149">reverse_merge</a></li>
|
216
|
+
<li><a href="#M000150">reverse_merge!</a></li>
|
217
|
+
<li><a href="#M000209">reverse_merge!</a></li>
|
218
|
+
<li><a href="#M000210">reverse_update</a></li>
|
219
|
+
<li><a href="#M000151">reverse_update</a></li>
|
220
|
+
<li><a href="#M000224">select!</a></li>
|
221
|
+
<li><a href="#M000165">select!</a></li>
|
222
|
+
<li><a href="#M000186">slice</a></li>
|
223
|
+
<li><a href="#M000245">slice</a></li>
|
224
|
+
<li><a href="#M000187">slice!</a></li>
|
225
|
+
<li><a href="#M000246">slice!</a></li>
|
226
|
+
<li><a href="#M000240">stringify_keys</a></li>
|
227
|
+
<li><a href="#M000181">stringify_keys</a></li>
|
228
|
+
<li><a href="#M000183">stringify_keys!</a></li>
|
229
|
+
<li><a href="#M000242">stringify_keys!</a></li>
|
230
|
+
<li><a href="#M000175">swap!</a></li>
|
231
|
+
<li><a href="#M000234">swap!</a></li>
|
232
|
+
<li><a href="#M000236">symbolize_keys</a></li>
|
233
|
+
<li><a href="#M000177">symbolize_keys</a></li>
|
234
|
+
<li><a href="#M000179">symbolize_keys!</a></li>
|
235
|
+
<li><a href="#M000238">symbolize_keys!</a></li>
|
236
|
+
<li><a href="#M000131">to_h</a></li>
|
237
|
+
<li><a href="#M000162">to_proc</a></li>
|
238
|
+
<li><a href="#M000221">to_proc</a></li>
|
239
|
+
<li><a href="#M000222">to_proc_with_reponse</a></li>
|
240
|
+
<li><a href="#M000163">to_proc_with_reponse</a></li>
|
241
|
+
<li><a href="#M000235">to_struct</a></li>
|
242
|
+
<li><a href="#M000176">to_struct</a></li>
|
243
|
+
<li><a href="#M000152">traverse</a></li>
|
244
|
+
<li><a href="#M000211">traverse</a></li>
|
245
|
+
<li><a href="#M000212">traverse!</a></li>
|
246
|
+
<li><a href="#M000153">traverse!</a></li>
|
247
|
+
<li><a href="#M000134">update_each</a></li>
|
248
|
+
<li><a href="#M000193">update_each</a></li>
|
249
|
+
<li><a href="#M000135">update_keys</a></li>
|
250
|
+
<li><a href="#M000194">update_keys</a></li>
|
251
|
+
<li><a href="#M000136">update_values</a></li>
|
252
|
+
<li><a href="#M000195">update_values</a></li>
|
253
|
+
<li><a href="#M000233">weave</a></li>
|
254
|
+
<li><a href="#M000174">weave</a></li>
|
255
|
+
<li><a href="#M000198">zipnew</a></li>
|
256
|
+
<li><a href="#M000139">zipnew</a></li>
|
257
|
+
<li><a href="#M000214">|</a></li>
|
258
|
+
<li><a href="#M000155">|</a></li>
|
259
|
+
</ul>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
<div class="sectiontitle">Public Class methods</div>
|
267
|
+
<div class="method">
|
268
|
+
<div class="title">
|
269
|
+
<a name="M000197"></a><b>autonew</b>(*args)
|
270
|
+
</div>
|
271
|
+
<div class="description">
|
272
|
+
<p>
|
273
|
+
<a href="Hash.html">Hash</a> which auto initializes it‘s children.
|
274
|
+
</p>
|
275
|
+
<pre>
|
276
|
+
ah = Hash.autonew
|
277
|
+
ah['section one']['param one'] = 4
|
278
|
+
ah['section one']['param two'] = 5
|
279
|
+
ah['section one']['param three'] = 2
|
280
|
+
ah['section one']['param four'] = 3
|
281
|
+
|
282
|
+
p ah
|
283
|
+
# {"section one"=>{"param one"=>4, "param four"=>3, "param three"=>2, "param two"=>5}}
|
284
|
+
|
285
|
+
p ah['section one'].keys
|
286
|
+
# ["param one", "param four", "param three", "param two"]
|
287
|
+
</pre>
|
288
|
+
<p>
|
289
|
+
CREDIT: Trans CREDIT: Jan Molic
|
290
|
+
</p>
|
291
|
+
</div>
|
292
|
+
<div class="sourcecode">
|
293
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000197_source')" id="l_M000197_source">show source</a> ]</p>
|
294
|
+
<div id="M000197_source" class="dyn-source">
|
295
|
+
<pre>
|
296
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/autonew.rb, line 20</span>
|
297
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">autonew</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
298
|
+
<span class="ruby-comment cmt">#new(*args){|a,k| a[k] = self.class::new(*args)}</span>
|
299
|
+
<span class="ruby-identifier">leet</span> = <span class="ruby-identifier">lambda</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">hsh</span>, <span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">new</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">leet</span> ) }
|
300
|
+
<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">leet</span>)
|
301
|
+
<span class="ruby-keyword kw">end</span>
|
302
|
+
</pre>
|
303
|
+
</div>
|
304
|
+
</div>
|
305
|
+
</div>
|
306
|
+
<div class="method">
|
307
|
+
<div class="title">
|
308
|
+
<a name="M000138"></a><b>autonew</b>(*args)
|
309
|
+
</div>
|
310
|
+
<div class="description">
|
311
|
+
<p>
|
312
|
+
<a href="Hash.html">Hash</a> which auto initializes it‘s children.
|
313
|
+
</p>
|
314
|
+
<pre>
|
315
|
+
ah = Hash.autonew
|
316
|
+
ah['section one']['param one'] = 4
|
317
|
+
ah['section one']['param two'] = 5
|
318
|
+
ah['section one']['param three'] = 2
|
319
|
+
ah['section one']['param four'] = 3
|
320
|
+
|
321
|
+
p ah
|
322
|
+
# {"section one"=>{"param one"=>4, "param four"=>3, "param three"=>2, "param two"=>5}}
|
323
|
+
|
324
|
+
p ah['section one'].keys
|
325
|
+
# ["param one", "param four", "param three", "param two"]
|
326
|
+
</pre>
|
327
|
+
<p>
|
328
|
+
CREDIT: Trans CREDIT: Jan Molic
|
329
|
+
</p>
|
330
|
+
</div>
|
331
|
+
<div class="sourcecode">
|
332
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000138_source')" id="l_M000138_source">show source</a> ]</p>
|
333
|
+
<div id="M000138_source" class="dyn-source">
|
334
|
+
<pre>
|
335
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/autonew.rb, line 20</span>
|
336
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">autonew</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
337
|
+
<span class="ruby-comment cmt">#new(*args){|a,k| a[k] = self.class::new(*args)}</span>
|
338
|
+
<span class="ruby-identifier">leet</span> = <span class="ruby-identifier">lambda</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">hsh</span>, <span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">new</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">leet</span> ) }
|
339
|
+
<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">leet</span>)
|
340
|
+
<span class="ruby-keyword kw">end</span>
|
341
|
+
</pre>
|
342
|
+
</div>
|
343
|
+
</div>
|
344
|
+
</div>
|
345
|
+
<div class="method">
|
346
|
+
<div class="title">
|
347
|
+
<a name="M000198"></a><b>zipnew</b>(keys,values)
|
348
|
+
</div>
|
349
|
+
<div class="description">
|
350
|
+
<p>
|
351
|
+
Creates a new hash from two arrays —a keys array and a values array.
|
352
|
+
</p>
|
353
|
+
<pre>
|
354
|
+
Hash.zipnew(["a","b","c"], [1,2,3])
|
355
|
+
#=> { "a"=>1, "b"=>2, "c"=>3 }
|
356
|
+
|
357
|
+
CREDIT: Trans
|
358
|
+
CREDIT: Ara T. Howard
|
359
|
+
</pre>
|
360
|
+
</div>
|
361
|
+
<div class="sourcecode">
|
362
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000198_source')" id="l_M000198_source">show source</a> ]</p>
|
363
|
+
<div id="M000198_source" class="dyn-source">
|
364
|
+
<pre>
|
365
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/autonew.rb, line 35</span>
|
366
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">zipnew</span>(<span class="ruby-identifier">keys</span>,<span class="ruby-identifier">values</span>) <span class="ruby-comment cmt"># or some better name</span>
|
367
|
+
<span class="ruby-identifier">h</span> = {}
|
368
|
+
<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">size</span>.<span class="ruby-identifier">times</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>[ <span class="ruby-identifier">keys</span>[<span class="ruby-identifier">i</span>] ] = <span class="ruby-identifier">values</span>[<span class="ruby-identifier">i</span>] }
|
369
|
+
<span class="ruby-identifier">h</span>
|
370
|
+
<span class="ruby-keyword kw">end</span>
|
371
|
+
</pre>
|
372
|
+
</div>
|
373
|
+
</div>
|
374
|
+
</div>
|
375
|
+
<div class="method">
|
376
|
+
<div class="title">
|
377
|
+
<a name="M000139"></a><b>zipnew</b>(keys,values)
|
378
|
+
</div>
|
379
|
+
<div class="description">
|
380
|
+
<p>
|
381
|
+
Creates a new hash from two arrays —a keys array and a values array.
|
382
|
+
</p>
|
383
|
+
<pre>
|
384
|
+
Hash.zipnew(["a","b","c"], [1,2,3])
|
385
|
+
#=> { "a"=>1, "b"=>2, "c"=>3 }
|
386
|
+
|
387
|
+
CREDIT: Trans
|
388
|
+
CREDIT: Ara T. Howard
|
389
|
+
</pre>
|
390
|
+
</div>
|
391
|
+
<div class="sourcecode">
|
392
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000139_source')" id="l_M000139_source">show source</a> ]</p>
|
393
|
+
<div id="M000139_source" class="dyn-source">
|
394
|
+
<pre>
|
395
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/autonew.rb, line 35</span>
|
396
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">zipnew</span>(<span class="ruby-identifier">keys</span>,<span class="ruby-identifier">values</span>) <span class="ruby-comment cmt"># or some better name</span>
|
397
|
+
<span class="ruby-identifier">h</span> = {}
|
398
|
+
<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">size</span>.<span class="ruby-identifier">times</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>[ <span class="ruby-identifier">keys</span>[<span class="ruby-identifier">i</span>] ] = <span class="ruby-identifier">values</span>[<span class="ruby-identifier">i</span>] }
|
399
|
+
<span class="ruby-identifier">h</span>
|
400
|
+
<span class="ruby-keyword kw">end</span>
|
401
|
+
</pre>
|
402
|
+
</div>
|
403
|
+
</div>
|
404
|
+
</div>
|
405
|
+
<div class="sectiontitle">Public Instance methods</div>
|
406
|
+
<div class="method">
|
407
|
+
<div class="title">
|
408
|
+
<a name="M000154"></a><b>&</b>(other)
|
409
|
+
</div>
|
410
|
+
<div class="description">
|
411
|
+
<p>
|
412
|
+
<a href="Hash.html">Hash</a> intersection. Two hashes intersect when their
|
413
|
+
pairs are equal.
|
414
|
+
</p>
|
415
|
+
<pre>
|
416
|
+
{:a=>1,:b=>2} & {:a=>1,:c=>3} #=> {:a=>1}
|
417
|
+
</pre>
|
418
|
+
<p>
|
419
|
+
A hash can also be intersected with an array to intersect keys only.
|
420
|
+
</p>
|
421
|
+
<pre>
|
422
|
+
{:a=>1,:b=>2} & [:a,:c] #=> {:a=>1}
|
423
|
+
</pre>
|
424
|
+
<p>
|
425
|
+
The later form is similar to pairs_at. The differ only in that pairs_at
|
426
|
+
will return a nil value for a key not in the hash, but #& will not.
|
427
|
+
</p>
|
428
|
+
<pre>
|
429
|
+
CREDIT: Trans
|
430
|
+
</pre>
|
431
|
+
</div>
|
432
|
+
<div class="sourcecode">
|
433
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000154_source')" id="l_M000154_source">show source</a> ]</p>
|
434
|
+
<div id="M000154_source" class="dyn-source">
|
435
|
+
<pre>
|
436
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 19</span>
|
437
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">&</span>(<span class="ruby-identifier">other</span>)
|
438
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">other</span>
|
439
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">Array</span>
|
440
|
+
<span class="ruby-identifier">k</span> = (<span class="ruby-identifier">keys</span> <span class="ruby-operator">&</span> <span class="ruby-identifier">other</span>)
|
441
|
+
<span class="ruby-constant">Hash</span>[<span class="ruby-operator">*</span>(<span class="ruby-identifier">k</span>.<span class="ruby-identifier">zip</span>(<span class="ruby-identifier">values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">k</span>)).<span class="ruby-identifier">flatten</span>)]
|
442
|
+
<span class="ruby-keyword kw">else</span>
|
443
|
+
<span class="ruby-identifier">x</span> = (<span class="ruby-identifier">to_a</span> <span class="ruby-operator">&</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">to_a</span>).<span class="ruby-identifier">inject</span>([]) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">a</span>, <span class="ruby-identifier">kv</span><span class="ruby-operator">|</span>
|
444
|
+
<span class="ruby-identifier">a</span>.<span class="ruby-identifier">concat</span> <span class="ruby-identifier">kv</span>; <span class="ruby-identifier">a</span>
|
445
|
+
<span class="ruby-keyword kw">end</span>
|
446
|
+
<span class="ruby-constant">Hash</span>[<span class="ruby-operator">*</span><span class="ruby-identifier">x</span>]
|
447
|
+
<span class="ruby-keyword kw">end</span>
|
448
|
+
<span class="ruby-keyword kw">end</span>
|
449
|
+
</pre>
|
450
|
+
</div>
|
451
|
+
</div>
|
452
|
+
</div>
|
453
|
+
<div class="method">
|
454
|
+
<div class="title">
|
455
|
+
<a name="M000213"></a><b>&</b>(other)
|
456
|
+
</div>
|
457
|
+
<div class="description">
|
458
|
+
<p>
|
459
|
+
<a href="Hash.html">Hash</a> intersection. Two hashes intersect when their
|
460
|
+
pairs are equal.
|
461
|
+
</p>
|
462
|
+
<pre>
|
463
|
+
{:a=>1,:b=>2} & {:a=>1,:c=>3} #=> {:a=>1}
|
464
|
+
</pre>
|
465
|
+
<p>
|
466
|
+
A hash can also be intersected with an array to intersect keys only.
|
467
|
+
</p>
|
468
|
+
<pre>
|
469
|
+
{:a=>1,:b=>2} & [:a,:c] #=> {:a=>1}
|
470
|
+
</pre>
|
471
|
+
<p>
|
472
|
+
The later form is similar to pairs_at. The differ only in that pairs_at
|
473
|
+
will return a nil value for a key not in the hash, but #& will not.
|
474
|
+
</p>
|
475
|
+
<pre>
|
476
|
+
CREDIT: Trans
|
477
|
+
</pre>
|
478
|
+
</div>
|
479
|
+
<div class="sourcecode">
|
480
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000213_source')" id="l_M000213_source">show source</a> ]</p>
|
481
|
+
<div id="M000213_source" class="dyn-source">
|
482
|
+
<pre>
|
483
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 19</span>
|
484
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">&</span>(<span class="ruby-identifier">other</span>)
|
485
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">other</span>
|
486
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">Array</span>
|
487
|
+
<span class="ruby-identifier">k</span> = (<span class="ruby-identifier">keys</span> <span class="ruby-operator">&</span> <span class="ruby-identifier">other</span>)
|
488
|
+
<span class="ruby-constant">Hash</span>[<span class="ruby-operator">*</span>(<span class="ruby-identifier">k</span>.<span class="ruby-identifier">zip</span>(<span class="ruby-identifier">values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">k</span>)).<span class="ruby-identifier">flatten</span>)]
|
489
|
+
<span class="ruby-keyword kw">else</span>
|
490
|
+
<span class="ruby-identifier">x</span> = (<span class="ruby-identifier">to_a</span> <span class="ruby-operator">&</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">to_a</span>).<span class="ruby-identifier">inject</span>([]) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">a</span>, <span class="ruby-identifier">kv</span><span class="ruby-operator">|</span>
|
491
|
+
<span class="ruby-identifier">a</span>.<span class="ruby-identifier">concat</span> <span class="ruby-identifier">kv</span>; <span class="ruby-identifier">a</span>
|
492
|
+
<span class="ruby-keyword kw">end</span>
|
493
|
+
<span class="ruby-constant">Hash</span>[<span class="ruby-operator">*</span><span class="ruby-identifier">x</span>]
|
494
|
+
<span class="ruby-keyword kw">end</span>
|
495
|
+
<span class="ruby-keyword kw">end</span>
|
496
|
+
</pre>
|
497
|
+
</div>
|
498
|
+
</div>
|
499
|
+
</div>
|
500
|
+
<div class="method">
|
501
|
+
<div class="title">
|
502
|
+
<a name="M000158"></a><b>*</b>(other)
|
503
|
+
</div>
|
504
|
+
<div class="description">
|
505
|
+
<p>
|
506
|
+
Like merge operator ’+’ but merges in reverse order.
|
507
|
+
</p>
|
508
|
+
<pre>
|
509
|
+
h1 = { :a=>1 }
|
510
|
+
h2 = { :a=>2, :b=>3 }
|
511
|
+
|
512
|
+
h1 + h2 #=> { :a=>2, :b=>3 }
|
513
|
+
h1 * h2 #=> { :a=>1, :b=>3 }
|
514
|
+
|
515
|
+
CREDIT: Trans
|
516
|
+
</pre>
|
517
|
+
</div>
|
518
|
+
<div class="sourcecode">
|
519
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000158_source')" id="l_M000158_source">show source</a> ]</p>
|
520
|
+
<div id="M000158_source" class="dyn-source">
|
521
|
+
<pre>
|
522
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 80</span>
|
523
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">*</span>(<span class="ruby-identifier">other</span>)
|
524
|
+
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-keyword kw">self</span>)
|
525
|
+
<span class="ruby-keyword kw">end</span>
|
526
|
+
</pre>
|
527
|
+
</div>
|
528
|
+
</div>
|
529
|
+
</div>
|
530
|
+
<div class="method">
|
531
|
+
<div class="title">
|
532
|
+
<a name="M000217"></a><b>*</b>(other)
|
533
|
+
</div>
|
534
|
+
<div class="description">
|
535
|
+
<p>
|
536
|
+
Like merge operator ’+’ but merges in reverse order.
|
537
|
+
</p>
|
538
|
+
<pre>
|
539
|
+
h1 = { :a=>1 }
|
540
|
+
h2 = { :a=>2, :b=>3 }
|
541
|
+
|
542
|
+
h1 + h2 #=> { :a=>2, :b=>3 }
|
543
|
+
h1 * h2 #=> { :a=>1, :b=>3 }
|
544
|
+
|
545
|
+
CREDIT: Trans
|
546
|
+
</pre>
|
547
|
+
</div>
|
548
|
+
<div class="sourcecode">
|
549
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000217_source')" id="l_M000217_source">show source</a> ]</p>
|
550
|
+
<div id="M000217_source" class="dyn-source">
|
551
|
+
<pre>
|
552
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 80</span>
|
553
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">*</span>(<span class="ruby-identifier">other</span>)
|
554
|
+
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-keyword kw">self</span>)
|
555
|
+
<span class="ruby-keyword kw">end</span>
|
556
|
+
</pre>
|
557
|
+
</div>
|
558
|
+
</div>
|
559
|
+
</div>
|
560
|
+
<div class="method">
|
561
|
+
<div class="title">
|
562
|
+
<a name="M000156"></a><b>+</b>(other)
|
563
|
+
</div>
|
564
|
+
<div class="description">
|
565
|
+
<p>
|
566
|
+
Operator for merge.
|
567
|
+
</p>
|
568
|
+
<pre>
|
569
|
+
CREDIT: Trans
|
570
|
+
</pre>
|
571
|
+
</div>
|
572
|
+
<div class="sourcecode">
|
573
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000156_source')" id="l_M000156_source">show source</a> ]</p>
|
574
|
+
<div id="M000156_source" class="dyn-source">
|
575
|
+
<pre>
|
576
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 44</span>
|
577
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</span>(<span class="ruby-identifier">other</span>)
|
578
|
+
<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">other</span>)
|
579
|
+
<span class="ruby-keyword kw">end</span>
|
580
|
+
</pre>
|
581
|
+
</div>
|
582
|
+
</div>
|
583
|
+
</div>
|
584
|
+
<div class="method">
|
585
|
+
<div class="title">
|
586
|
+
<a name="M000215"></a><b>+</b>(other)
|
587
|
+
</div>
|
588
|
+
<div class="description">
|
589
|
+
<p>
|
590
|
+
Operator for merge.
|
591
|
+
</p>
|
592
|
+
<pre>
|
593
|
+
CREDIT: Trans
|
594
|
+
</pre>
|
595
|
+
</div>
|
596
|
+
<div class="sourcecode">
|
597
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000215_source')" id="l_M000215_source">show source</a> ]</p>
|
598
|
+
<div id="M000215_source" class="dyn-source">
|
599
|
+
<pre>
|
600
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 44</span>
|
601
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</span>(<span class="ruby-identifier">other</span>)
|
602
|
+
<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">other</span>)
|
603
|
+
<span class="ruby-keyword kw">end</span>
|
604
|
+
</pre>
|
605
|
+
</div>
|
606
|
+
</div>
|
607
|
+
</div>
|
608
|
+
<div class="method">
|
609
|
+
<div class="title">
|
610
|
+
<a name="M000157"></a><b>-</b>(other)
|
611
|
+
</div>
|
612
|
+
<div class="description">
|
613
|
+
<p>
|
614
|
+
Operator for remove hash paris. If another hash is given the pairs are only
|
615
|
+
removed if both key and value are equal. If an array is given then matching
|
616
|
+
keys are removed.
|
617
|
+
</p>
|
618
|
+
<pre>
|
619
|
+
CREDIT: Trans
|
620
|
+
</pre>
|
621
|
+
</div>
|
622
|
+
<div class="sourcecode">
|
623
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000157_source')" id="l_M000157_source">show source</a> ]</p>
|
624
|
+
<div id="M000157_source" class="dyn-source">
|
625
|
+
<pre>
|
626
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 54</span>
|
627
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">other</span>)
|
628
|
+
<span class="ruby-identifier">h</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
629
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:to_ary</span>)
|
630
|
+
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">to_ary</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span>
|
631
|
+
<span class="ruby-identifier">h</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">k</span>)
|
632
|
+
<span class="ruby-keyword kw">end</span>
|
633
|
+
<span class="ruby-keyword kw">else</span>
|
634
|
+
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
635
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">h</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">k</span>)
|
636
|
+
<span class="ruby-identifier">h</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">k</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">h</span>[<span class="ruby-identifier">k</span>]
|
637
|
+
<span class="ruby-keyword kw">end</span>
|
638
|
+
<span class="ruby-keyword kw">end</span>
|
639
|
+
<span class="ruby-keyword kw">end</span>
|
640
|
+
<span class="ruby-identifier">h</span>
|
641
|
+
<span class="ruby-keyword kw">end</span>
|
642
|
+
</pre>
|
643
|
+
</div>
|
644
|
+
</div>
|
645
|
+
</div>
|
646
|
+
<div class="method">
|
647
|
+
<div class="title">
|
648
|
+
<a name="M000216"></a><b>-</b>(other)
|
649
|
+
</div>
|
650
|
+
<div class="description">
|
651
|
+
<p>
|
652
|
+
Operator for remove hash paris. If another hash is given the pairs are only
|
653
|
+
removed if both key and value are equal. If an array is given then matching
|
654
|
+
keys are removed.
|
655
|
+
</p>
|
656
|
+
<pre>
|
657
|
+
CREDIT: Trans
|
658
|
+
</pre>
|
659
|
+
</div>
|
660
|
+
<div class="sourcecode">
|
661
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000216_source')" id="l_M000216_source">show source</a> ]</p>
|
662
|
+
<div id="M000216_source" class="dyn-source">
|
663
|
+
<pre>
|
664
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 54</span>
|
665
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">other</span>)
|
666
|
+
<span class="ruby-identifier">h</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
667
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:to_ary</span>)
|
668
|
+
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">to_ary</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span>
|
669
|
+
<span class="ruby-identifier">h</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">k</span>)
|
670
|
+
<span class="ruby-keyword kw">end</span>
|
671
|
+
<span class="ruby-keyword kw">else</span>
|
672
|
+
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
673
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">h</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">k</span>)
|
674
|
+
<span class="ruby-identifier">h</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">k</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">h</span>[<span class="ruby-identifier">k</span>]
|
675
|
+
<span class="ruby-keyword kw">end</span>
|
676
|
+
<span class="ruby-keyword kw">end</span>
|
677
|
+
<span class="ruby-keyword kw">end</span>
|
678
|
+
<span class="ruby-identifier">h</span>
|
679
|
+
<span class="ruby-keyword kw">end</span>
|
680
|
+
</pre>
|
681
|
+
</div>
|
682
|
+
</div>
|
683
|
+
</div>
|
684
|
+
<div class="method">
|
685
|
+
<div class="title">
|
686
|
+
<a name="M000192"></a><b><<</b>(other)
|
687
|
+
</div>
|
688
|
+
<div class="description">
|
689
|
+
<p>
|
690
|
+
Can be used like update, or passed as two-element [key,value] array.
|
691
|
+
</p>
|
692
|
+
<pre>
|
693
|
+
CREDIT: Trans
|
694
|
+
</pre>
|
695
|
+
</div>
|
696
|
+
<div class="sourcecode">
|
697
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000192_source')" id="l_M000192_source">show source</a> ]</p>
|
698
|
+
<div id="M000192_source" class="dyn-source">
|
699
|
+
<pre>
|
700
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 8</span>
|
701
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">other</span>)
|
702
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:to_ary</span>)
|
703
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">store</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">other</span>)
|
704
|
+
<span class="ruby-keyword kw">else</span>
|
705
|
+
<span class="ruby-identifier">update</span>(<span class="ruby-identifier">other</span>)
|
706
|
+
<span class="ruby-keyword kw">end</span>
|
707
|
+
<span class="ruby-keyword kw">end</span>
|
708
|
+
</pre>
|
709
|
+
</div>
|
710
|
+
</div>
|
711
|
+
</div>
|
712
|
+
<div class="method">
|
713
|
+
<div class="title">
|
714
|
+
<a name="M000133"></a><b><<</b>(other)
|
715
|
+
</div>
|
716
|
+
<div class="description">
|
717
|
+
<p>
|
718
|
+
Can be used like update, or passed as two-element [key,value] array.
|
719
|
+
</p>
|
720
|
+
<pre>
|
721
|
+
CREDIT: Trans
|
722
|
+
</pre>
|
723
|
+
</div>
|
724
|
+
<div class="sourcecode">
|
725
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000133_source')" id="l_M000133_source">show source</a> ]</p>
|
726
|
+
<div id="M000133_source" class="dyn-source">
|
727
|
+
<pre>
|
728
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 8</span>
|
729
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">other</span>)
|
730
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:to_ary</span>)
|
731
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">store</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">other</span>)
|
732
|
+
<span class="ruby-keyword kw">else</span>
|
733
|
+
<span class="ruby-identifier">update</span>(<span class="ruby-identifier">other</span>)
|
734
|
+
<span class="ruby-keyword kw">end</span>
|
735
|
+
<span class="ruby-keyword kw">end</span>
|
736
|
+
</pre>
|
737
|
+
</div>
|
738
|
+
</div>
|
739
|
+
</div>
|
740
|
+
<div class="method">
|
741
|
+
<div class="title">
|
742
|
+
<a name="M000191"></a><b>alias!</b>(newkey, oldkey)
|
743
|
+
</div>
|
744
|
+
<div class="description">
|
745
|
+
<p>
|
746
|
+
Modifies the receiving <a href="Hash.html">Hash</a> so that the value
|
747
|
+
previously referred to by <em>oldkey</em> is also referenced by
|
748
|
+
<em>newkey</em>; <em>oldkey</em> is retained in the <a
|
749
|
+
href="Hash.html">Hash</a>. If <em>oldkey</em> does not exist as a key in
|
750
|
+
the <a href="Hash.html">Hash</a>, no change is effected.
|
751
|
+
</p>
|
752
|
+
<p>
|
753
|
+
Returns a reference to the <a href="Hash.html">Hash</a>.
|
754
|
+
</p>
|
755
|
+
<pre>
|
756
|
+
foo = { :name=>'Gavin', 'wife'=>:Lisa }
|
757
|
+
foo.alias!('name',:name) => { :name=>'Gavin', 'name'=>'Gavin', 'wife'=>:Lisa }
|
758
|
+
|
759
|
+
foo = { :name=>'Gavin', 'wife'=>:Lisa }
|
760
|
+
foo.alias!('spouse','wife') => { :name=>'Gavin', 'wife'=>:Lisa, 'spouse'=>:Lisa }
|
761
|
+
|
762
|
+
foo = { :name=>'Gavin', 'wife'=>:Lisa }
|
763
|
+
foo.alias!('bar','foo') => { :name=>'Gavin', 'wife'=>:Lisa }
|
764
|
+
</pre>
|
765
|
+
<p>
|
766
|
+
Note that if the <em>oldkey</em> is reassigned, the reference will no
|
767
|
+
longer exist, and the <em>newkey</em> will remain as it was.
|
768
|
+
</p>
|
769
|
+
<pre>
|
770
|
+
CREDIT: Gavin Sinclair
|
771
|
+
</pre>
|
772
|
+
<p>
|
773
|
+
TODO: Rename to aliaskey or something else.
|
774
|
+
</p>
|
775
|
+
</div>
|
776
|
+
<div class="sourcecode">
|
777
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000191_source')" id="l_M000191_source">show source</a> ]</p>
|
778
|
+
<div id="M000191_source" class="dyn-source">
|
779
|
+
<pre>
|
780
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/alias.rb, line 25</span>
|
781
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alias!</span>(<span class="ruby-identifier">newkey</span>, <span class="ruby-identifier">oldkey</span>)
|
782
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">newkey</span>] = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">oldkey</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">oldkey</span>)
|
783
|
+
<span class="ruby-keyword kw">self</span>
|
784
|
+
<span class="ruby-keyword kw">end</span>
|
785
|
+
</pre>
|
786
|
+
</div>
|
787
|
+
</div>
|
788
|
+
</div>
|
789
|
+
<div class="method">
|
790
|
+
<div class="title">
|
791
|
+
<a name="M000132"></a><b>alias!</b>(newkey, oldkey)
|
792
|
+
</div>
|
793
|
+
<div class="description">
|
794
|
+
<p>
|
795
|
+
Modifies the receiving <a href="Hash.html">Hash</a> so that the value
|
796
|
+
previously referred to by <em>oldkey</em> is also referenced by
|
797
|
+
<em>newkey</em>; <em>oldkey</em> is retained in the <a
|
798
|
+
href="Hash.html">Hash</a>. If <em>oldkey</em> does not exist as a key in
|
799
|
+
the <a href="Hash.html">Hash</a>, no change is effected.
|
800
|
+
</p>
|
801
|
+
<p>
|
802
|
+
Returns a reference to the <a href="Hash.html">Hash</a>.
|
803
|
+
</p>
|
804
|
+
<pre>
|
805
|
+
foo = { :name=>'Gavin', 'wife'=>:Lisa }
|
806
|
+
foo.alias!('name',:name) => { :name=>'Gavin', 'name'=>'Gavin', 'wife'=>:Lisa }
|
807
|
+
|
808
|
+
foo = { :name=>'Gavin', 'wife'=>:Lisa }
|
809
|
+
foo.alias!('spouse','wife') => { :name=>'Gavin', 'wife'=>:Lisa, 'spouse'=>:Lisa }
|
810
|
+
|
811
|
+
foo = { :name=>'Gavin', 'wife'=>:Lisa }
|
812
|
+
foo.alias!('bar','foo') => { :name=>'Gavin', 'wife'=>:Lisa }
|
813
|
+
</pre>
|
814
|
+
<p>
|
815
|
+
Note that if the <em>oldkey</em> is reassigned, the reference will no
|
816
|
+
longer exist, and the <em>newkey</em> will remain as it was.
|
817
|
+
</p>
|
818
|
+
<pre>
|
819
|
+
CREDIT: Gavin Sinclair
|
820
|
+
</pre>
|
821
|
+
<p>
|
822
|
+
TODO: Rename to aliaskey or something else.
|
823
|
+
</p>
|
824
|
+
</div>
|
825
|
+
<div class="sourcecode">
|
826
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000132_source')" id="l_M000132_source">show source</a> ]</p>
|
827
|
+
<div id="M000132_source" class="dyn-source">
|
828
|
+
<pre>
|
829
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/alias.rb, line 25</span>
|
830
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alias!</span>(<span class="ruby-identifier">newkey</span>, <span class="ruby-identifier">oldkey</span>)
|
831
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">newkey</span>] = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">oldkey</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">oldkey</span>)
|
832
|
+
<span class="ruby-keyword kw">self</span>
|
833
|
+
<span class="ruby-keyword kw">end</span>
|
834
|
+
</pre>
|
835
|
+
</div>
|
836
|
+
</div>
|
837
|
+
</div>
|
838
|
+
<div class="method">
|
839
|
+
<div class="title">
|
840
|
+
<a name="M000190"></a><b>argumentize</b>(args_field=nil)
|
841
|
+
</div>
|
842
|
+
<div class="description">
|
843
|
+
<p>
|
844
|
+
Turn a hash into arguments.
|
845
|
+
</p>
|
846
|
+
<pre>
|
847
|
+
h = { :list => [1,2], :base => "HI" }
|
848
|
+
h.argumentize #=> [ [], { :list => [1,2], :base => "HI" } ]
|
849
|
+
h.argumentize(:list) #=> [ [1,2], { :base => "HI" } ]
|
850
|
+
h.argumentize(:base) #=> [ ["HI"], { :list => [1,2] } ]
|
851
|
+
</pre>
|
852
|
+
</div>
|
853
|
+
<div class="sourcecode">
|
854
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000190_source')" id="l_M000190_source">show source</a> ]</p>
|
855
|
+
<div id="M000190_source" class="dyn-source">
|
856
|
+
<pre>
|
857
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/argumentize.rb, line 10</span>
|
858
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">argumentize</span>(<span class="ruby-identifier">args_field</span>=<span class="ruby-keyword kw">nil</span>)
|
859
|
+
<span class="ruby-identifier">config</span> = <span class="ruby-identifier">dup</span>
|
860
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args_field</span>
|
861
|
+
<span class="ruby-identifier">args</span> = [<span class="ruby-identifier">config</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">args_field</span>)].<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">compact</span>
|
862
|
+
<span class="ruby-keyword kw">else</span>
|
863
|
+
<span class="ruby-identifier">args</span> = []
|
864
|
+
<span class="ruby-keyword kw">end</span>
|
865
|
+
<span class="ruby-identifier">args</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">config</span>
|
866
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">args</span>
|
867
|
+
<span class="ruby-keyword kw">end</span>
|
868
|
+
</pre>
|
869
|
+
</div>
|
870
|
+
</div>
|
871
|
+
</div>
|
872
|
+
<div class="method">
|
873
|
+
<div class="title">
|
874
|
+
<a name="M000249"></a><b>argumentize</b>(args_field=nil)
|
875
|
+
</div>
|
876
|
+
<div class="description">
|
877
|
+
<p>
|
878
|
+
Turn a hash into arguments.
|
879
|
+
</p>
|
880
|
+
<pre>
|
881
|
+
h = { :list => [1,2], :base => "HI" }
|
882
|
+
h.argumentize #=> [ [], { :list => [1,2], :base => "HI" } ]
|
883
|
+
h.argumentize(:list) #=> [ [1,2], { :base => "HI" } ]
|
884
|
+
h.argumentize(:base) #=> [ ["HI"], { :list => [1,2] } ]
|
885
|
+
</pre>
|
886
|
+
</div>
|
887
|
+
<div class="sourcecode">
|
888
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000249_source')" id="l_M000249_source">show source</a> ]</p>
|
889
|
+
<div id="M000249_source" class="dyn-source">
|
890
|
+
<pre>
|
891
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/argumentize.rb, line 10</span>
|
892
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">argumentize</span>(<span class="ruby-identifier">args_field</span>=<span class="ruby-keyword kw">nil</span>)
|
893
|
+
<span class="ruby-identifier">config</span> = <span class="ruby-identifier">dup</span>
|
894
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args_field</span>
|
895
|
+
<span class="ruby-identifier">args</span> = [<span class="ruby-identifier">config</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">args_field</span>)].<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">compact</span>
|
896
|
+
<span class="ruby-keyword kw">else</span>
|
897
|
+
<span class="ruby-identifier">args</span> = []
|
898
|
+
<span class="ruby-keyword kw">end</span>
|
899
|
+
<span class="ruby-identifier">args</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">config</span>
|
900
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">args</span>
|
901
|
+
<span class="ruby-keyword kw">end</span>
|
902
|
+
</pre>
|
903
|
+
</div>
|
904
|
+
</div>
|
905
|
+
</div>
|
906
|
+
<div class="method">
|
907
|
+
<div class="title">
|
908
|
+
<a name="M000169"></a><b>collate</b>(other_hash)
|
909
|
+
</div>
|
910
|
+
<div class="description">
|
911
|
+
<p>
|
912
|
+
Merge the values of this hash with those from another, setting all values
|
913
|
+
to be arrays representing the values from both hashes.
|
914
|
+
</p>
|
915
|
+
<pre>
|
916
|
+
{ :a=>1, :b=>2 }.collate :a=>3, :b=>4, :c=>5
|
917
|
+
#=> { :a=>[1,3], :b=>[2,4], :c=>[5] }
|
918
|
+
|
919
|
+
CREDIT: Gavin Kistner (Phrogz)
|
920
|
+
</pre>
|
921
|
+
</div>
|
922
|
+
<div class="sourcecode">
|
923
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000169_source')" id="l_M000169_source">show source</a> ]</p>
|
924
|
+
<div id="M000169_source" class="dyn-source">
|
925
|
+
<pre>
|
926
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/collate.rb, line 11</span>
|
927
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collate</span>(<span class="ruby-identifier">other_hash</span>)
|
928
|
+
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">collate!</span>(<span class="ruby-identifier">other_hash</span>)
|
929
|
+
<span class="ruby-keyword kw">end</span>
|
930
|
+
</pre>
|
931
|
+
</div>
|
932
|
+
</div>
|
933
|
+
</div>
|
934
|
+
<div class="method">
|
935
|
+
<div class="title">
|
936
|
+
<a name="M000228"></a><b>collate</b>(other_hash)
|
937
|
+
</div>
|
938
|
+
<div class="description">
|
939
|
+
<p>
|
940
|
+
Merge the values of this hash with those from another, setting all values
|
941
|
+
to be arrays representing the values from both hashes.
|
942
|
+
</p>
|
943
|
+
<pre>
|
944
|
+
{ :a=>1, :b=>2 }.collate :a=>3, :b=>4, :c=>5
|
945
|
+
#=> { :a=>[1,3], :b=>[2,4], :c=>[5] }
|
946
|
+
|
947
|
+
CREDIT: Gavin Kistner (Phrogz)
|
948
|
+
</pre>
|
949
|
+
</div>
|
950
|
+
<div class="sourcecode">
|
951
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000228_source')" id="l_M000228_source">show source</a> ]</p>
|
952
|
+
<div id="M000228_source" class="dyn-source">
|
953
|
+
<pre>
|
954
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/collate.rb, line 11</span>
|
955
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collate</span>(<span class="ruby-identifier">other_hash</span>)
|
956
|
+
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">collate!</span>(<span class="ruby-identifier">other_hash</span>)
|
957
|
+
<span class="ruby-keyword kw">end</span>
|
958
|
+
</pre>
|
959
|
+
</div>
|
960
|
+
</div>
|
961
|
+
</div>
|
962
|
+
<div class="method">
|
963
|
+
<div class="title">
|
964
|
+
<a name="M000170"></a><b>collate!</b>(other_hash)
|
965
|
+
</div>
|
966
|
+
<div class="description">
|
967
|
+
<p>
|
968
|
+
The same as <a href="Hash.html#M000169">collate</a>, but modifies the
|
969
|
+
receiver in place.
|
970
|
+
</p>
|
971
|
+
</div>
|
972
|
+
<div class="sourcecode">
|
973
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000170_source')" id="l_M000170_source">show source</a> ]</p>
|
974
|
+
<div id="M000170_source" class="dyn-source">
|
975
|
+
<pre>
|
976
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/collate.rb, line 17</span>
|
977
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collate!</span>(<span class="ruby-identifier">other_hash</span>)
|
978
|
+
<span class="ruby-comment cmt"># Prepare, ensuring every existing key is already an Array</span>
|
979
|
+
<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
980
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
981
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
|
982
|
+
<span class="ruby-keyword kw">else</span>
|
983
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] = [<span class="ruby-identifier">value</span>]
|
984
|
+
<span class="ruby-keyword kw">end</span>
|
985
|
+
<span class="ruby-keyword kw">end</span>
|
986
|
+
<span class="ruby-comment cmt"># Collate with values from other_hash</span>
|
987
|
+
<span class="ruby-identifier">other_hash</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
988
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>]
|
989
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
990
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">concat</span>( <span class="ruby-identifier">value</span> )
|
991
|
+
<span class="ruby-keyword kw">else</span>
|
992
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] <span class="ruby-operator"><<</span> <span class="ruby-identifier">value</span>
|
993
|
+
<span class="ruby-keyword kw">end</span>
|
994
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
995
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
|
996
|
+
<span class="ruby-keyword kw">else</span>
|
997
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] = [<span class="ruby-identifier">value</span>]
|
998
|
+
<span class="ruby-keyword kw">end</span>
|
999
|
+
<span class="ruby-keyword kw">end</span>
|
1000
|
+
<span class="ruby-comment cmt">#each{ |key, value| value.uniq! } if options[ :uniq ]</span>
|
1001
|
+
<span class="ruby-keyword kw">self</span>
|
1002
|
+
<span class="ruby-keyword kw">end</span>
|
1003
|
+
</pre>
|
1004
|
+
</div>
|
1005
|
+
</div>
|
1006
|
+
</div>
|
1007
|
+
<div class="method">
|
1008
|
+
<div class="title">
|
1009
|
+
<a name="M000229"></a><b>collate!</b>(other_hash)
|
1010
|
+
</div>
|
1011
|
+
<div class="description">
|
1012
|
+
<p>
|
1013
|
+
The same as <a href="Hash.html#M000169">collate</a>, but modifies the
|
1014
|
+
receiver in place.
|
1015
|
+
</p>
|
1016
|
+
</div>
|
1017
|
+
<div class="sourcecode">
|
1018
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000229_source')" id="l_M000229_source">show source</a> ]</p>
|
1019
|
+
<div id="M000229_source" class="dyn-source">
|
1020
|
+
<pre>
|
1021
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/collate.rb, line 17</span>
|
1022
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collate!</span>(<span class="ruby-identifier">other_hash</span>)
|
1023
|
+
<span class="ruby-comment cmt"># Prepare, ensuring every existing key is already an Array</span>
|
1024
|
+
<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
1025
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
1026
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
|
1027
|
+
<span class="ruby-keyword kw">else</span>
|
1028
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] = [<span class="ruby-identifier">value</span>]
|
1029
|
+
<span class="ruby-keyword kw">end</span>
|
1030
|
+
<span class="ruby-keyword kw">end</span>
|
1031
|
+
<span class="ruby-comment cmt"># Collate with values from other_hash</span>
|
1032
|
+
<span class="ruby-identifier">other_hash</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
1033
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>]
|
1034
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
1035
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">concat</span>( <span class="ruby-identifier">value</span> )
|
1036
|
+
<span class="ruby-keyword kw">else</span>
|
1037
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] <span class="ruby-operator"><<</span> <span class="ruby-identifier">value</span>
|
1038
|
+
<span class="ruby-keyword kw">end</span>
|
1039
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
1040
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
|
1041
|
+
<span class="ruby-keyword kw">else</span>
|
1042
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] = [<span class="ruby-identifier">value</span>]
|
1043
|
+
<span class="ruby-keyword kw">end</span>
|
1044
|
+
<span class="ruby-keyword kw">end</span>
|
1045
|
+
<span class="ruby-comment cmt">#each{ |key, value| value.uniq! } if options[ :uniq ]</span>
|
1046
|
+
<span class="ruby-keyword kw">self</span>
|
1047
|
+
<span class="ruby-keyword kw">end</span>
|
1048
|
+
</pre>
|
1049
|
+
</div>
|
1050
|
+
</div>
|
1051
|
+
</div>
|
1052
|
+
<div class="method">
|
1053
|
+
<div class="title">
|
1054
|
+
<a name="M000171"></a><b>delete_unless</b>( {|| ...}
|
1055
|
+
</div>
|
1056
|
+
<div class="description">
|
1057
|
+
<p>
|
1058
|
+
Inverse of delete_if.
|
1059
|
+
</p>
|
1060
|
+
<pre>
|
1061
|
+
CREDIT: Daniel Schierbeck
|
1062
|
+
</pre>
|
1063
|
+
</div>
|
1064
|
+
<div class="sourcecode">
|
1065
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000171_source')" id="l_M000171_source">show source</a> ]</p>
|
1066
|
+
<div id="M000171_source" class="dyn-source">
|
1067
|
+
<pre>
|
1068
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/delete.rb, line 11</span>
|
1069
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_unless</span> <span class="ruby-comment cmt">#:yield:</span>
|
1070
|
+
<span class="ruby-identifier">delete_if</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span> <span class="ruby-operator">!</span> <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>) }
|
1071
|
+
<span class="ruby-keyword kw">end</span>
|
1072
|
+
</pre>
|
1073
|
+
</div>
|
1074
|
+
</div>
|
1075
|
+
</div>
|
1076
|
+
<div class="method">
|
1077
|
+
<div class="title">
|
1078
|
+
<a name="M000230"></a><b>delete_unless</b>( {|| ...}
|
1079
|
+
</div>
|
1080
|
+
<div class="description">
|
1081
|
+
<p>
|
1082
|
+
Inverse of delete_if.
|
1083
|
+
</p>
|
1084
|
+
<pre>
|
1085
|
+
CREDIT: Daniel Schierbeck
|
1086
|
+
</pre>
|
1087
|
+
</div>
|
1088
|
+
<div class="sourcecode">
|
1089
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000230_source')" id="l_M000230_source">show source</a> ]</p>
|
1090
|
+
<div id="M000230_source" class="dyn-source">
|
1091
|
+
<pre>
|
1092
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/delete.rb, line 11</span>
|
1093
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_unless</span> <span class="ruby-comment cmt">#:yield:</span>
|
1094
|
+
<span class="ruby-identifier">delete_if</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span> <span class="ruby-operator">!</span> <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>) }
|
1095
|
+
<span class="ruby-keyword kw">end</span>
|
1096
|
+
</pre>
|
1097
|
+
</div>
|
1098
|
+
</div>
|
1099
|
+
</div>
|
1100
|
+
<div class="method">
|
1101
|
+
<div class="title">
|
1102
|
+
<a name="M000172"></a><b>delete_values</b>(*values)
|
1103
|
+
</div>
|
1104
|
+
<div class="description">
|
1105
|
+
<p>
|
1106
|
+
Minor modification to Ruby‘s Hash#delete method allowing it to take
|
1107
|
+
multiple keys.
|
1108
|
+
</p>
|
1109
|
+
<pre>
|
1110
|
+
hsh = { :a => 1, :b => 2 }
|
1111
|
+
hsh.delete_values(1)
|
1112
|
+
hsh #=> { :b => 2 }
|
1113
|
+
|
1114
|
+
CREDIT: Daniel Schierbeck
|
1115
|
+
</pre>
|
1116
|
+
</div>
|
1117
|
+
<div class="sourcecode">
|
1118
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000172_source')" id="l_M000172_source">show source</a> ]</p>
|
1119
|
+
<div id="M000172_source" class="dyn-source">
|
1120
|
+
<pre>
|
1121
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/delete.rb, line 24</span>
|
1122
|
+
<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>)
|
1123
|
+
<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">map</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">key</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">values</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">key</span>)) }
|
1124
|
+
<span class="ruby-keyword kw">end</span>
|
1125
|
+
</pre>
|
1126
|
+
</div>
|
1127
|
+
</div>
|
1128
|
+
</div>
|
1129
|
+
<div class="method">
|
1130
|
+
<div class="title">
|
1131
|
+
<a name="M000231"></a><b>delete_values</b>(*values)
|
1132
|
+
</div>
|
1133
|
+
<div class="description">
|
1134
|
+
<p>
|
1135
|
+
Minor modification to Ruby‘s Hash#delete method allowing it to take
|
1136
|
+
multiple keys.
|
1137
|
+
</p>
|
1138
|
+
<pre>
|
1139
|
+
hsh = { :a => 1, :b => 2 }
|
1140
|
+
hsh.delete_values(1)
|
1141
|
+
hsh #=> { :b => 2 }
|
1142
|
+
|
1143
|
+
CREDIT: Daniel Schierbeck
|
1144
|
+
</pre>
|
1145
|
+
</div>
|
1146
|
+
<div class="sourcecode">
|
1147
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000231_source')" id="l_M000231_source">show source</a> ]</p>
|
1148
|
+
<div id="M000231_source" class="dyn-source">
|
1149
|
+
<pre>
|
1150
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/delete.rb, line 24</span>
|
1151
|
+
<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>)
|
1152
|
+
<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">map</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">key</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">values</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">key</span>)) }
|
1153
|
+
<span class="ruby-keyword kw">end</span>
|
1154
|
+
</pre>
|
1155
|
+
</div>
|
1156
|
+
</div>
|
1157
|
+
</div>
|
1158
|
+
<div class="method">
|
1159
|
+
<div class="title">
|
1160
|
+
<a name="M000173"></a><b>delete_values_at</b>(*keys, &yld)
|
1161
|
+
</div>
|
1162
|
+
<div class="description">
|
1163
|
+
<p>
|
1164
|
+
Minor modification to Ruby‘s Hash#delete method allowing it to take
|
1165
|
+
multiple keys.
|
1166
|
+
</p>
|
1167
|
+
<p>
|
1168
|
+
This works niely with hash#[] and <a href="Hash.html">Hash</a>#[]= facets.
|
1169
|
+
</p>
|
1170
|
+
<pre>
|
1171
|
+
hsh[:a, :b, :c] = 1, 2, 3
|
1172
|
+
|
1173
|
+
a, b, c = hsh.delete_values_at(:a, :b, :c)
|
1174
|
+
|
1175
|
+
[a, b, c] #=> [1, 2, 3]
|
1176
|
+
hsh #=> {}
|
1177
|
+
|
1178
|
+
CREDIT: Daniel Schierbeck
|
1179
|
+
</pre>
|
1180
|
+
</div>
|
1181
|
+
<div class="sourcecode">
|
1182
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000173_source')" id="l_M000173_source">show source</a> ]</p>
|
1183
|
+
<div id="M000173_source" class="dyn-source">
|
1184
|
+
<pre>
|
1185
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/delete.rb, line 42</span>
|
1186
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keys</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span>)
|
1187
|
+
<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">key</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span>) }
|
1188
|
+
<span class="ruby-keyword kw">end</span>
|
1189
|
+
</pre>
|
1190
|
+
</div>
|
1191
|
+
</div>
|
1192
|
+
</div>
|
1193
|
+
<div class="method">
|
1194
|
+
<div class="title">
|
1195
|
+
<a name="M000232"></a><b>delete_values_at</b>(*keys, &yld)
|
1196
|
+
</div>
|
1197
|
+
<div class="description">
|
1198
|
+
<p>
|
1199
|
+
Minor modification to Ruby‘s Hash#delete method allowing it to take
|
1200
|
+
multiple keys.
|
1201
|
+
</p>
|
1202
|
+
<p>
|
1203
|
+
This works niely with hash#[] and <a href="Hash.html">Hash</a>#[]= facets.
|
1204
|
+
</p>
|
1205
|
+
<pre>
|
1206
|
+
hsh[:a, :b, :c] = 1, 2, 3
|
1207
|
+
|
1208
|
+
a, b, c = hsh.delete_values_at(:a, :b, :c)
|
1209
|
+
|
1210
|
+
[a, b, c] #=> [1, 2, 3]
|
1211
|
+
hsh #=> {}
|
1212
|
+
|
1213
|
+
CREDIT: Daniel Schierbeck
|
1214
|
+
</pre>
|
1215
|
+
</div>
|
1216
|
+
<div class="sourcecode">
|
1217
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000232_source')" id="l_M000232_source">show source</a> ]</p>
|
1218
|
+
<div id="M000232_source" class="dyn-source">
|
1219
|
+
<pre>
|
1220
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/delete.rb, line 42</span>
|
1221
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keys</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span>)
|
1222
|
+
<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">key</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span>) }
|
1223
|
+
<span class="ruby-keyword kw">end</span>
|
1224
|
+
</pre>
|
1225
|
+
</div>
|
1226
|
+
</div>
|
1227
|
+
</div>
|
1228
|
+
<div class="method">
|
1229
|
+
<div class="title">
|
1230
|
+
<a name="M000166"></a><b>diff</b>(hash)
|
1231
|
+
</div>
|
1232
|
+
<div class="description">
|
1233
|
+
<p>
|
1234
|
+
Difference comparison of two hashes.
|
1235
|
+
</p>
|
1236
|
+
</div>
|
1237
|
+
<div class="sourcecode">
|
1238
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000166_source')" id="l_M000166_source">show source</a> ]</p>
|
1239
|
+
<div id="M000166_source" class="dyn-source">
|
1240
|
+
<pre>
|
1241
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/diff.rb, line 5</span>
|
1242
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff</span>(<span class="ruby-identifier">hash</span>)
|
1243
|
+
<span class="ruby-identifier">h1</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">delete_if</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">==</span> <span class="ruby-identifier">v</span> }
|
1244
|
+
<span class="ruby-identifier">h2</span> = <span class="ruby-identifier">hash</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">delete_if</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">k</span>) }
|
1245
|
+
<span class="ruby-identifier">h1</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">h2</span>)
|
1246
|
+
<span class="ruby-keyword kw">end</span>
|
1247
|
+
</pre>
|
1248
|
+
</div>
|
1249
|
+
</div>
|
1250
|
+
</div>
|
1251
|
+
<div class="method">
|
1252
|
+
<div class="title">
|
1253
|
+
<a name="M000225"></a><b>diff</b>(hash)
|
1254
|
+
</div>
|
1255
|
+
<div class="description">
|
1256
|
+
<p>
|
1257
|
+
Difference comparison of two hashes.
|
1258
|
+
</p>
|
1259
|
+
</div>
|
1260
|
+
<div class="sourcecode">
|
1261
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000225_source')" id="l_M000225_source">show source</a> ]</p>
|
1262
|
+
<div id="M000225_source" class="dyn-source">
|
1263
|
+
<pre>
|
1264
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/diff.rb, line 5</span>
|
1265
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff</span>(<span class="ruby-identifier">hash</span>)
|
1266
|
+
<span class="ruby-identifier">h1</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">delete_if</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">==</span> <span class="ruby-identifier">v</span> }
|
1267
|
+
<span class="ruby-identifier">h2</span> = <span class="ruby-identifier">hash</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">delete_if</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">k</span>) }
|
1268
|
+
<span class="ruby-identifier">h1</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">h2</span>)
|
1269
|
+
<span class="ruby-keyword kw">end</span>
|
1270
|
+
</pre>
|
1271
|
+
</div>
|
1272
|
+
</div>
|
1273
|
+
</div>
|
1274
|
+
<div class="method">
|
1275
|
+
<div class="title">
|
1276
|
+
<a name="M000148"></a><b>each_with_key</b>( &yld )
|
1277
|
+
</div>
|
1278
|
+
<div class="description">
|
1279
|
+
<p>
|
1280
|
+
Each with key is like each_pair but reverses the order the parameters to
|
1281
|
+
[value,key] instead of [key,value].
|
1282
|
+
</p>
|
1283
|
+
<pre>
|
1284
|
+
CREDIT: Trans
|
1285
|
+
</pre>
|
1286
|
+
</div>
|
1287
|
+
<div class="sourcecode">
|
1288
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000148_source')" id="l_M000148_source">show source</a> ]</p>
|
1289
|
+
<div id="M000148_source" class="dyn-source">
|
1290
|
+
<pre>
|
1291
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/keys.rb, line 40</span>
|
1292
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_with_key</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span> )
|
1293
|
+
<span class="ruby-identifier">each_pair</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">yld</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">v</span>,<span class="ruby-identifier">k</span>) }
|
1294
|
+
<span class="ruby-keyword kw">end</span>
|
1295
|
+
</pre>
|
1296
|
+
</div>
|
1297
|
+
</div>
|
1298
|
+
</div>
|
1299
|
+
<div class="method">
|
1300
|
+
<div class="title">
|
1301
|
+
<a name="M000207"></a><b>each_with_key</b>( &yld )
|
1302
|
+
</div>
|
1303
|
+
<div class="description">
|
1304
|
+
<p>
|
1305
|
+
Each with key is like each_pair but reverses the order the parameters to
|
1306
|
+
[value,key] instead of [key,value].
|
1307
|
+
</p>
|
1308
|
+
<pre>
|
1309
|
+
CREDIT: Trans
|
1310
|
+
</pre>
|
1311
|
+
</div>
|
1312
|
+
<div class="sourcecode">
|
1313
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000207_source')" id="l_M000207_source">show source</a> ]</p>
|
1314
|
+
<div id="M000207_source" class="dyn-source">
|
1315
|
+
<pre>
|
1316
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/keys.rb, line 40</span>
|
1317
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_with_key</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span> )
|
1318
|
+
<span class="ruby-identifier">each_pair</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">yld</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">v</span>,<span class="ruby-identifier">k</span>) }
|
1319
|
+
<span class="ruby-keyword kw">end</span>
|
1320
|
+
</pre>
|
1321
|
+
</div>
|
1322
|
+
</div>
|
1323
|
+
</div>
|
1324
|
+
<div class="method">
|
1325
|
+
<div class="title">
|
1326
|
+
<a name="M000201"></a><b>except</b>(*less_keys)
|
1327
|
+
</div>
|
1328
|
+
<div class="description">
|
1329
|
+
<p>
|
1330
|
+
Returns a new hash less the given keys.
|
1331
|
+
</p>
|
1332
|
+
</div>
|
1333
|
+
<div class="sourcecode">
|
1334
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000201_source')" id="l_M000201_source">show source</a> ]</p>
|
1335
|
+
<div id="M000201_source" class="dyn-source">
|
1336
|
+
<pre>
|
1337
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/except.rb, line 5</span>
|
1338
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">except</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">less_keys</span>)
|
1339
|
+
<span class="ruby-identifier">slice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keys</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">less_keys</span>)
|
1340
|
+
<span class="ruby-keyword kw">end</span>
|
1341
|
+
</pre>
|
1342
|
+
</div>
|
1343
|
+
</div>
|
1344
|
+
</div>
|
1345
|
+
<div class="method">
|
1346
|
+
<div class="title">
|
1347
|
+
<a name="M000142"></a><b>except</b>(*less_keys)
|
1348
|
+
</div>
|
1349
|
+
<div class="description">
|
1350
|
+
<p>
|
1351
|
+
Returns a new hash less the given keys.
|
1352
|
+
</p>
|
1353
|
+
</div>
|
1354
|
+
<div class="sourcecode">
|
1355
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000142_source')" id="l_M000142_source">show source</a> ]</p>
|
1356
|
+
<div id="M000142_source" class="dyn-source">
|
1357
|
+
<pre>
|
1358
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/except.rb, line 5</span>
|
1359
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">except</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">less_keys</span>)
|
1360
|
+
<span class="ruby-identifier">slice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keys</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">less_keys</span>)
|
1361
|
+
<span class="ruby-keyword kw">end</span>
|
1362
|
+
</pre>
|
1363
|
+
</div>
|
1364
|
+
</div>
|
1365
|
+
</div>
|
1366
|
+
<div class="method">
|
1367
|
+
<div class="title">
|
1368
|
+
<a name="M000143"></a><b>except!</b>(*less_keys)
|
1369
|
+
</div>
|
1370
|
+
<div class="description">
|
1371
|
+
<p>
|
1372
|
+
Replaces hash with new hash less the given keys. This returns the hash of
|
1373
|
+
keys removed.
|
1374
|
+
</p>
|
1375
|
+
<pre>
|
1376
|
+
h = {:a=>1, :b=>2, :c=>3}
|
1377
|
+
h.except!(:a) #=> {:a=>1}
|
1378
|
+
h #=> {:b=>2,:c=>3}
|
1379
|
+
</pre>
|
1380
|
+
</div>
|
1381
|
+
<div class="sourcecode">
|
1382
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000143_source')" id="l_M000143_source">show source</a> ]</p>
|
1383
|
+
<div id="M000143_source" class="dyn-source">
|
1384
|
+
<pre>
|
1385
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/except.rb, line 16</span>
|
1386
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">except!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">less_keys</span>)
|
1387
|
+
<span class="ruby-identifier">removed</span> = <span class="ruby-identifier">slice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">less_keys</span>)
|
1388
|
+
<span class="ruby-identifier">replace</span>(<span class="ruby-identifier">except</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">less_keys</span>))
|
1389
|
+
<span class="ruby-identifier">removed</span>
|
1390
|
+
<span class="ruby-keyword kw">end</span>
|
1391
|
+
</pre>
|
1392
|
+
</div>
|
1393
|
+
</div>
|
1394
|
+
</div>
|
1395
|
+
<div class="method">
|
1396
|
+
<div class="title">
|
1397
|
+
<a name="M000202"></a><b>except!</b>(*less_keys)
|
1398
|
+
</div>
|
1399
|
+
<div class="description">
|
1400
|
+
<p>
|
1401
|
+
Replaces hash with new hash less the given keys. This returns the hash of
|
1402
|
+
keys removed.
|
1403
|
+
</p>
|
1404
|
+
<pre>
|
1405
|
+
h = {:a=>1, :b=>2, :c=>3}
|
1406
|
+
h.except!(:a) #=> {:a=>1}
|
1407
|
+
h #=> {:b=>2,:c=>3}
|
1408
|
+
</pre>
|
1409
|
+
</div>
|
1410
|
+
<div class="sourcecode">
|
1411
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000202_source')" id="l_M000202_source">show source</a> ]</p>
|
1412
|
+
<div id="M000202_source" class="dyn-source">
|
1413
|
+
<pre>
|
1414
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/except.rb, line 16</span>
|
1415
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">except!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">less_keys</span>)
|
1416
|
+
<span class="ruby-identifier">removed</span> = <span class="ruby-identifier">slice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">less_keys</span>)
|
1417
|
+
<span class="ruby-identifier">replace</span>(<span class="ruby-identifier">except</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">less_keys</span>))
|
1418
|
+
<span class="ruby-identifier">removed</span>
|
1419
|
+
<span class="ruby-keyword kw">end</span>
|
1420
|
+
</pre>
|
1421
|
+
</div>
|
1422
|
+
</div>
|
1423
|
+
</div>
|
1424
|
+
<div class="method">
|
1425
|
+
<div class="title">
|
1426
|
+
<a name="M000168"></a><b>graph!</b>(&yld)
|
1427
|
+
</div>
|
1428
|
+
<div class="description">
|
1429
|
+
<p>
|
1430
|
+
Alias for mash!
|
1431
|
+
</p>
|
1432
|
+
</div>
|
1433
|
+
</div>
|
1434
|
+
<div class="method">
|
1435
|
+
<div class="title">
|
1436
|
+
<a name="M000227"></a><b>graph!</b>(&yld)
|
1437
|
+
</div>
|
1438
|
+
<div class="description">
|
1439
|
+
<p>
|
1440
|
+
Alias for mash!
|
1441
|
+
</p>
|
1442
|
+
</div>
|
1443
|
+
</div>
|
1444
|
+
<div class="method">
|
1445
|
+
<div class="title">
|
1446
|
+
<a name="M000203"></a><b>has_keys?</b>(*check_keys)
|
1447
|
+
</div>
|
1448
|
+
<div class="description">
|
1449
|
+
<p>
|
1450
|
+
Returns true or false whether the hash contains the given keys.
|
1451
|
+
</p>
|
1452
|
+
<pre>
|
1453
|
+
h = { :a => 1, :b => 2 }
|
1454
|
+
h.has_keys?( :a ) #=> true
|
1455
|
+
h.has_keys?( :c ) #=> false
|
1456
|
+
|
1457
|
+
CREDIT: Trans
|
1458
|
+
</pre>
|
1459
|
+
</div>
|
1460
|
+
<div class="sourcecode">
|
1461
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000203_source')" id="l_M000203_source">show source</a> ]</p>
|
1462
|
+
<div id="M000203_source" class="dyn-source">
|
1463
|
+
<pre>
|
1464
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/keys.rb, line 12</span>
|
1465
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_keys?</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">check_keys</span>)
|
1466
|
+
<span class="ruby-identifier">unknown_keys</span> = <span class="ruby-identifier">check_keys</span> <span class="ruby-operator">-</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">keys</span>
|
1467
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">unknown_keys</span>.<span class="ruby-identifier">empty?</span>
|
1468
|
+
<span class="ruby-keyword kw">end</span>
|
1469
|
+
</pre>
|
1470
|
+
</div>
|
1471
|
+
</div>
|
1472
|
+
</div>
|
1473
|
+
<div class="method">
|
1474
|
+
<div class="title">
|
1475
|
+
<a name="M000144"></a><b>has_keys?</b>(*check_keys)
|
1476
|
+
</div>
|
1477
|
+
<div class="description">
|
1478
|
+
<p>
|
1479
|
+
Returns true or false whether the hash contains the given keys.
|
1480
|
+
</p>
|
1481
|
+
<pre>
|
1482
|
+
h = { :a => 1, :b => 2 }
|
1483
|
+
h.has_keys?( :a ) #=> true
|
1484
|
+
h.has_keys?( :c ) #=> false
|
1485
|
+
|
1486
|
+
CREDIT: Trans
|
1487
|
+
</pre>
|
1488
|
+
</div>
|
1489
|
+
<div class="aka">
|
1490
|
+
This method is also aliased as
|
1491
|
+
<a href="Hash.html#M000145">keys?</a>
|
1492
|
+
<a href="Hash.html#M000204">keys?</a>
|
1493
|
+
</div>
|
1494
|
+
<div class="sourcecode">
|
1495
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000144_source')" id="l_M000144_source">show source</a> ]</p>
|
1496
|
+
<div id="M000144_source" class="dyn-source">
|
1497
|
+
<pre>
|
1498
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/keys.rb, line 12</span>
|
1499
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_keys?</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">check_keys</span>)
|
1500
|
+
<span class="ruby-identifier">unknown_keys</span> = <span class="ruby-identifier">check_keys</span> <span class="ruby-operator">-</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">keys</span>
|
1501
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">unknown_keys</span>.<span class="ruby-identifier">empty?</span>
|
1502
|
+
<span class="ruby-keyword kw">end</span>
|
1503
|
+
</pre>
|
1504
|
+
</div>
|
1505
|
+
</div>
|
1506
|
+
</div>
|
1507
|
+
<div class="method">
|
1508
|
+
<div class="title">
|
1509
|
+
<a name="M000205"></a><b>has_only_keys?</b>(*check_keys)
|
1510
|
+
</div>
|
1511
|
+
<div class="description">
|
1512
|
+
<p>
|
1513
|
+
Returns true if the hash contains <em>only</em> the given keys, otherwise
|
1514
|
+
false.
|
1515
|
+
</p>
|
1516
|
+
<pre>
|
1517
|
+
h = { :a => 1, :b => 2 }
|
1518
|
+
h.has_only_keys?( :a, :b ) #=> true
|
1519
|
+
h.has_only_keys?( :a ) #=> false
|
1520
|
+
|
1521
|
+
CREDIT: Trans
|
1522
|
+
</pre>
|
1523
|
+
</div>
|
1524
|
+
<div class="sourcecode">
|
1525
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000205_source')" id="l_M000205_source">show source</a> ]</p>
|
1526
|
+
<div id="M000205_source" class="dyn-source">
|
1527
|
+
<pre>
|
1528
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/keys.rb, line 28</span>
|
1529
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_only_keys?</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">check_keys</span>)
|
1530
|
+
<span class="ruby-identifier">unknown_keys</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">keys</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">check_keys</span>
|
1531
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">unknown_keys</span>.<span class="ruby-identifier">empty?</span>
|
1532
|
+
<span class="ruby-keyword kw">end</span>
|
1533
|
+
</pre>
|
1534
|
+
</div>
|
1535
|
+
</div>
|
1536
|
+
</div>
|
1537
|
+
<div class="method">
|
1538
|
+
<div class="title">
|
1539
|
+
<a name="M000146"></a><b>has_only_keys?</b>(*check_keys)
|
1540
|
+
</div>
|
1541
|
+
<div class="description">
|
1542
|
+
<p>
|
1543
|
+
Returns true if the hash contains <em>only</em> the given keys, otherwise
|
1544
|
+
false.
|
1545
|
+
</p>
|
1546
|
+
<pre>
|
1547
|
+
h = { :a => 1, :b => 2 }
|
1548
|
+
h.has_only_keys?( :a, :b ) #=> true
|
1549
|
+
h.has_only_keys?( :a ) #=> false
|
1550
|
+
|
1551
|
+
CREDIT: Trans
|
1552
|
+
</pre>
|
1553
|
+
</div>
|
1554
|
+
<div class="aka">
|
1555
|
+
This method is also aliased as
|
1556
|
+
<a href="Hash.html#M000147">only_keys?</a>
|
1557
|
+
<a href="Hash.html#M000206">only_keys?</a>
|
1558
|
+
</div>
|
1559
|
+
<div class="sourcecode">
|
1560
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000146_source')" id="l_M000146_source">show source</a> ]</p>
|
1561
|
+
<div id="M000146_source" class="dyn-source">
|
1562
|
+
<pre>
|
1563
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/keys.rb, line 28</span>
|
1564
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_only_keys?</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">check_keys</span>)
|
1565
|
+
<span class="ruby-identifier">unknown_keys</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">keys</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">check_keys</span>
|
1566
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">unknown_keys</span>.<span class="ruby-identifier">empty?</span>
|
1567
|
+
<span class="ruby-keyword kw">end</span>
|
1568
|
+
</pre>
|
1569
|
+
</div>
|
1570
|
+
</div>
|
1571
|
+
</div>
|
1572
|
+
<div class="method">
|
1573
|
+
<div class="title">
|
1574
|
+
<a name="M000223"></a><b>insert</b>(name, value)
|
1575
|
+
</div>
|
1576
|
+
<div class="description">
|
1577
|
+
<p>
|
1578
|
+
As with store but only if the key isn‘t already in the hash.
|
1579
|
+
</p>
|
1580
|
+
<p>
|
1581
|
+
TODO: Would store? be a better name?
|
1582
|
+
</p>
|
1583
|
+
<pre>
|
1584
|
+
CREDIT: Trans
|
1585
|
+
</pre>
|
1586
|
+
</div>
|
1587
|
+
<div class="sourcecode">
|
1588
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000223_source')" id="l_M000223_source">show source</a> ]</p>
|
1589
|
+
<div id="M000223_source" class="dyn-source">
|
1590
|
+
<pre>
|
1591
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/insert.rb, line 10</span>
|
1592
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
|
1593
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">key?</span>(<span class="ruby-identifier">name</span>)
|
1594
|
+
<span class="ruby-keyword kw">false</span>
|
1595
|
+
<span class="ruby-keyword kw">else</span>
|
1596
|
+
<span class="ruby-identifier">store</span>(<span class="ruby-identifier">name</span>,<span class="ruby-identifier">value</span>)
|
1597
|
+
<span class="ruby-keyword kw">true</span>
|
1598
|
+
<span class="ruby-keyword kw">end</span>
|
1599
|
+
<span class="ruby-keyword kw">end</span>
|
1600
|
+
</pre>
|
1601
|
+
</div>
|
1602
|
+
</div>
|
1603
|
+
</div>
|
1604
|
+
<div class="method">
|
1605
|
+
<div class="title">
|
1606
|
+
<a name="M000164"></a><b>insert</b>(name, value)
|
1607
|
+
</div>
|
1608
|
+
<div class="description">
|
1609
|
+
<p>
|
1610
|
+
As with store but only if the key isn‘t already in the hash.
|
1611
|
+
</p>
|
1612
|
+
<p>
|
1613
|
+
TODO: Would store? be a better name?
|
1614
|
+
</p>
|
1615
|
+
<pre>
|
1616
|
+
CREDIT: Trans
|
1617
|
+
</pre>
|
1618
|
+
</div>
|
1619
|
+
<div class="sourcecode">
|
1620
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000164_source')" id="l_M000164_source">show source</a> ]</p>
|
1621
|
+
<div id="M000164_source" class="dyn-source">
|
1622
|
+
<pre>
|
1623
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/insert.rb, line 10</span>
|
1624
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
|
1625
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">key?</span>(<span class="ruby-identifier">name</span>)
|
1626
|
+
<span class="ruby-keyword kw">false</span>
|
1627
|
+
<span class="ruby-keyword kw">else</span>
|
1628
|
+
<span class="ruby-identifier">store</span>(<span class="ruby-identifier">name</span>,<span class="ruby-identifier">value</span>)
|
1629
|
+
<span class="ruby-keyword kw">true</span>
|
1630
|
+
<span class="ruby-keyword kw">end</span>
|
1631
|
+
<span class="ruby-keyword kw">end</span>
|
1632
|
+
</pre>
|
1633
|
+
</div>
|
1634
|
+
</div>
|
1635
|
+
</div>
|
1636
|
+
<div class="method">
|
1637
|
+
<div class="title">
|
1638
|
+
<a name="M000218"></a><b>inverse</b>()
|
1639
|
+
</div>
|
1640
|
+
<div class="description">
|
1641
|
+
<p>
|
1642
|
+
Create a "true" <a href="Hash.html#M000159">inverse</a> hash by
|
1643
|
+
storing mutliple values in Arrays.
|
1644
|
+
</p>
|
1645
|
+
<pre>
|
1646
|
+
h = {"a"=>3, "b"=>3, "c"=>3, "d"=>2, "e"=>9, "f"=>3, "g"=>9}
|
1647
|
+
|
1648
|
+
h.invert #=> {2=>"d", 3=>"f", 9=>"g"}
|
1649
|
+
h.inverse #=> {2=>"d", 3=>["f", "c", "b", "a"], 9=>["g", "e"]}
|
1650
|
+
h.inverse.inverse #=> {"a"=>3, "b"=>3, "c"=>3, "d"=>2, "e"=>9, "f"=>3, "g"=>9}
|
1651
|
+
h.inverse.inverse == h #=> true
|
1652
|
+
|
1653
|
+
CREDIT: Tilo Sloboda
|
1654
|
+
</pre>
|
1655
|
+
</div>
|
1656
|
+
<div class="sourcecode">
|
1657
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000218_source')" id="l_M000218_source">show source</a> ]</p>
|
1658
|
+
<div id="M000218_source" class="dyn-source">
|
1659
|
+
<pre>
|
1660
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/inverse.rb, line 14</span>
|
1661
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inverse</span>
|
1662
|
+
<span class="ruby-identifier">i</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
|
1663
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">each_pair</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
1664
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-constant">Array</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">v</span>)
|
1665
|
+
<span class="ruby-identifier">v</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span> <span class="ruby-identifier">i</span>[<span class="ruby-identifier">x</span>] = ( <span class="ruby-identifier">i</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">x</span>) <span class="ruby-operator">?</span> [<span class="ruby-identifier">k</span>,<span class="ruby-identifier">i</span>[<span class="ruby-identifier">x</span>]].<span class="ruby-identifier">flatten</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">k</span> ) }
|
1666
|
+
<span class="ruby-keyword kw">else</span>
|
1667
|
+
<span class="ruby-identifier">i</span>[<span class="ruby-identifier">v</span>] = ( <span class="ruby-identifier">i</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">v</span>) <span class="ruby-operator">?</span> [<span class="ruby-identifier">k</span>,<span class="ruby-identifier">i</span>[<span class="ruby-identifier">v</span>]].<span class="ruby-identifier">flatten</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">k</span> )
|
1668
|
+
<span class="ruby-keyword kw">end</span>
|
1669
|
+
}
|
1670
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">i</span>
|
1671
|
+
<span class="ruby-keyword kw">end</span>
|
1672
|
+
</pre>
|
1673
|
+
</div>
|
1674
|
+
</div>
|
1675
|
+
</div>
|
1676
|
+
<div class="method">
|
1677
|
+
<div class="title">
|
1678
|
+
<a name="M000159"></a><b>inverse</b>()
|
1679
|
+
</div>
|
1680
|
+
<div class="description">
|
1681
|
+
<p>
|
1682
|
+
Create a "true" <a href="Hash.html#M000159">inverse</a> hash by
|
1683
|
+
storing mutliple values in Arrays.
|
1684
|
+
</p>
|
1685
|
+
<pre>
|
1686
|
+
h = {"a"=>3, "b"=>3, "c"=>3, "d"=>2, "e"=>9, "f"=>3, "g"=>9}
|
1687
|
+
|
1688
|
+
h.invert #=> {2=>"d", 3=>"f", 9=>"g"}
|
1689
|
+
h.inverse #=> {2=>"d", 3=>["f", "c", "b", "a"], 9=>["g", "e"]}
|
1690
|
+
h.inverse.inverse #=> {"a"=>3, "b"=>3, "c"=>3, "d"=>2, "e"=>9, "f"=>3, "g"=>9}
|
1691
|
+
h.inverse.inverse == h #=> true
|
1692
|
+
|
1693
|
+
CREDIT: Tilo Sloboda
|
1694
|
+
</pre>
|
1695
|
+
</div>
|
1696
|
+
<div class="sourcecode">
|
1697
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000159_source')" id="l_M000159_source">show source</a> ]</p>
|
1698
|
+
<div id="M000159_source" class="dyn-source">
|
1699
|
+
<pre>
|
1700
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/inverse.rb, line 14</span>
|
1701
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inverse</span>
|
1702
|
+
<span class="ruby-identifier">i</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
|
1703
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">each_pair</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
1704
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-constant">Array</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">v</span>)
|
1705
|
+
<span class="ruby-identifier">v</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span> <span class="ruby-identifier">i</span>[<span class="ruby-identifier">x</span>] = ( <span class="ruby-identifier">i</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">x</span>) <span class="ruby-operator">?</span> [<span class="ruby-identifier">k</span>,<span class="ruby-identifier">i</span>[<span class="ruby-identifier">x</span>]].<span class="ruby-identifier">flatten</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">k</span> ) }
|
1706
|
+
<span class="ruby-keyword kw">else</span>
|
1707
|
+
<span class="ruby-identifier">i</span>[<span class="ruby-identifier">v</span>] = ( <span class="ruby-identifier">i</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">v</span>) <span class="ruby-operator">?</span> [<span class="ruby-identifier">k</span>,<span class="ruby-identifier">i</span>[<span class="ruby-identifier">v</span>]].<span class="ruby-identifier">flatten</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">k</span> )
|
1708
|
+
<span class="ruby-keyword kw">end</span>
|
1709
|
+
}
|
1710
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">i</span>
|
1711
|
+
<span class="ruby-keyword kw">end</span>
|
1712
|
+
</pre>
|
1713
|
+
</div>
|
1714
|
+
</div>
|
1715
|
+
</div>
|
1716
|
+
<div class="method">
|
1717
|
+
<div class="title">
|
1718
|
+
<a name="M000185"></a><b>join</b>(pair_divider='', elem_divider='')
|
1719
|
+
</div>
|
1720
|
+
<div class="description">
|
1721
|
+
<p>
|
1722
|
+
Like Array#join but specialized to <a href="Hash.html">Hash</a>.
|
1723
|
+
</p>
|
1724
|
+
<pre>
|
1725
|
+
CREDIT: Mauricio Fernandez
|
1726
|
+
</pre>
|
1727
|
+
</div>
|
1728
|
+
<div class="sourcecode">
|
1729
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000185_source')" id="l_M000185_source">show source</a> ]</p>
|
1730
|
+
<div id="M000185_source" class="dyn-source">
|
1731
|
+
<pre>
|
1732
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/join.rb, line 7</span>
|
1733
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">join</span>(<span class="ruby-identifier">pair_divider</span>=<span class="ruby-value str">''</span>, <span class="ruby-identifier">elem_divider</span>=<span class="ruby-value str">''</span>)
|
1734
|
+
<span class="ruby-identifier">s</span> = []
|
1735
|
+
<span class="ruby-identifier">each_pair</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{k}#{pair_divider}#{v}"</span> }
|
1736
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">elem_divider</span>)
|
1737
|
+
<span class="ruby-keyword kw">end</span>
|
1738
|
+
</pre>
|
1739
|
+
</div>
|
1740
|
+
</div>
|
1741
|
+
</div>
|
1742
|
+
<div class="method">
|
1743
|
+
<div class="title">
|
1744
|
+
<a name="M000244"></a><b>join</b>(pair_divider='', elem_divider='')
|
1745
|
+
</div>
|
1746
|
+
<div class="description">
|
1747
|
+
<p>
|
1748
|
+
Like Array#join but specialized to <a href="Hash.html">Hash</a>.
|
1749
|
+
</p>
|
1750
|
+
<pre>
|
1751
|
+
CREDIT: Mauricio Fernandez
|
1752
|
+
</pre>
|
1753
|
+
</div>
|
1754
|
+
<div class="sourcecode">
|
1755
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000244_source')" id="l_M000244_source">show source</a> ]</p>
|
1756
|
+
<div id="M000244_source" class="dyn-source">
|
1757
|
+
<pre>
|
1758
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/join.rb, line 7</span>
|
1759
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">join</span>(<span class="ruby-identifier">pair_divider</span>=<span class="ruby-value str">''</span>, <span class="ruby-identifier">elem_divider</span>=<span class="ruby-value str">''</span>)
|
1760
|
+
<span class="ruby-identifier">s</span> = []
|
1761
|
+
<span class="ruby-identifier">each_pair</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{k}#{pair_divider}#{v}"</span> }
|
1762
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">elem_divider</span>)
|
1763
|
+
<span class="ruby-keyword kw">end</span>
|
1764
|
+
</pre>
|
1765
|
+
</div>
|
1766
|
+
</div>
|
1767
|
+
</div>
|
1768
|
+
<div class="method">
|
1769
|
+
<div class="title">
|
1770
|
+
<a name="M000204"></a><b>keys?</b>(*check_keys)
|
1771
|
+
</div>
|
1772
|
+
<div class="description">
|
1773
|
+
<p>
|
1774
|
+
Alias for has_keys?
|
1775
|
+
</p>
|
1776
|
+
</div>
|
1777
|
+
</div>
|
1778
|
+
<div class="method">
|
1779
|
+
<div class="title">
|
1780
|
+
<a name="M000145"></a><b>keys?</b>(*check_keys)
|
1781
|
+
</div>
|
1782
|
+
<div class="description">
|
1783
|
+
<p>
|
1784
|
+
Alias for has_keys?
|
1785
|
+
</p>
|
1786
|
+
</div>
|
1787
|
+
</div>
|
1788
|
+
<div class="method">
|
1789
|
+
<div class="title">
|
1790
|
+
<a name="M000241"></a><b>keys_to_s</b>(&filter)
|
1791
|
+
</div>
|
1792
|
+
<div class="description">
|
1793
|
+
<p>
|
1794
|
+
Alias for <a href="Hash.html#M000181">stringify_keys</a>
|
1795
|
+
</p>
|
1796
|
+
</div>
|
1797
|
+
</div>
|
1798
|
+
<div class="method">
|
1799
|
+
<div class="title">
|
1800
|
+
<a name="M000182"></a><b>keys_to_s</b>(&filter)
|
1801
|
+
</div>
|
1802
|
+
<div class="description">
|
1803
|
+
<p>
|
1804
|
+
Alias for <a href="Hash.html#M000181">stringify_keys</a>
|
1805
|
+
</p>
|
1806
|
+
</div>
|
1807
|
+
</div>
|
1808
|
+
<div class="method">
|
1809
|
+
<div class="title">
|
1810
|
+
<a name="M000184"></a><b>keys_to_s!</b>(&filter)
|
1811
|
+
</div>
|
1812
|
+
<div class="description">
|
1813
|
+
<p>
|
1814
|
+
Alias for <a href="Hash.html#M000181">stringify_keys</a>!
|
1815
|
+
</p>
|
1816
|
+
</div>
|
1817
|
+
</div>
|
1818
|
+
<div class="method">
|
1819
|
+
<div class="title">
|
1820
|
+
<a name="M000243"></a><b>keys_to_s!</b>(&filter)
|
1821
|
+
</div>
|
1822
|
+
<div class="description">
|
1823
|
+
<p>
|
1824
|
+
Alias for <a href="Hash.html#M000181">stringify_keys</a>!
|
1825
|
+
</p>
|
1826
|
+
</div>
|
1827
|
+
</div>
|
1828
|
+
<div class="method">
|
1829
|
+
<div class="title">
|
1830
|
+
<a name="M000178"></a><b>keys_to_sym</b>(&filter)
|
1831
|
+
</div>
|
1832
|
+
<div class="description">
|
1833
|
+
<p>
|
1834
|
+
Alias for <a href="Hash.html#M000177">symbolize_keys</a>
|
1835
|
+
</p>
|
1836
|
+
</div>
|
1837
|
+
</div>
|
1838
|
+
<div class="method">
|
1839
|
+
<div class="title">
|
1840
|
+
<a name="M000237"></a><b>keys_to_sym</b>(&filter)
|
1841
|
+
</div>
|
1842
|
+
<div class="description">
|
1843
|
+
<p>
|
1844
|
+
Alias for <a href="Hash.html#M000177">symbolize_keys</a>
|
1845
|
+
</p>
|
1846
|
+
</div>
|
1847
|
+
</div>
|
1848
|
+
<div class="method">
|
1849
|
+
<div class="title">
|
1850
|
+
<a name="M000180"></a><b>keys_to_sym!</b>(&filter)
|
1851
|
+
</div>
|
1852
|
+
<div class="description">
|
1853
|
+
<p>
|
1854
|
+
Alias for <a href="Hash.html#M000177">symbolize_keys</a>!
|
1855
|
+
</p>
|
1856
|
+
</div>
|
1857
|
+
</div>
|
1858
|
+
<div class="method">
|
1859
|
+
<div class="title">
|
1860
|
+
<a name="M000239"></a><b>keys_to_sym!</b>(&filter)
|
1861
|
+
</div>
|
1862
|
+
<div class="description">
|
1863
|
+
<p>
|
1864
|
+
Alias for <a href="Hash.html#M000177">symbolize_keys</a>!
|
1865
|
+
</p>
|
1866
|
+
</div>
|
1867
|
+
</div>
|
1868
|
+
<div class="method">
|
1869
|
+
<div class="title">
|
1870
|
+
<a name="M000226"></a><b>mash!</b>(&yld)
|
1871
|
+
</div>
|
1872
|
+
<div class="description">
|
1873
|
+
<p>
|
1874
|
+
In place version of mash.
|
1875
|
+
</p>
|
1876
|
+
<pre>
|
1877
|
+
NOTE: Hash#mash! is only useful for Hash. It is not generally
|
1878
|
+
applicable to Enumerable.
|
1879
|
+
</pre>
|
1880
|
+
</div>
|
1881
|
+
<div class="sourcecode">
|
1882
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000226_source')" id="l_M000226_source">show source</a> ]</p>
|
1883
|
+
<div id="M000226_source" class="dyn-source">
|
1884
|
+
<pre>
|
1885
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/mash.rb, line 10</span>
|
1886
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mash!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">yld</span>)
|
1887
|
+
<span class="ruby-identifier">replace</span>(<span class="ruby-identifier">mash</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">yld</span>))
|
1888
|
+
<span class="ruby-keyword kw">end</span>
|
1889
|
+
</pre>
|
1890
|
+
</div>
|
1891
|
+
</div>
|
1892
|
+
</div>
|
1893
|
+
<div class="method">
|
1894
|
+
<div class="title">
|
1895
|
+
<a name="M000167"></a><b>mash!</b>(&yld)
|
1896
|
+
</div>
|
1897
|
+
<div class="description">
|
1898
|
+
<p>
|
1899
|
+
In place version of mash.
|
1900
|
+
</p>
|
1901
|
+
<pre>
|
1902
|
+
NOTE: Hash#mash! is only useful for Hash. It is not generally
|
1903
|
+
applicable to Enumerable.
|
1904
|
+
</pre>
|
1905
|
+
</div>
|
1906
|
+
<div class="aka">
|
1907
|
+
This method is also aliased as
|
1908
|
+
<a href="Hash.html#M000168">graph!</a>
|
1909
|
+
<a href="Hash.html#M000227">graph!</a>
|
1910
|
+
</div>
|
1911
|
+
<div class="sourcecode">
|
1912
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000167_source')" id="l_M000167_source">show source</a> ]</p>
|
1913
|
+
<div id="M000167_source" class="dyn-source">
|
1914
|
+
<pre>
|
1915
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/mash.rb, line 10</span>
|
1916
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mash!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">yld</span>)
|
1917
|
+
<span class="ruby-identifier">replace</span>(<span class="ruby-identifier">mash</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">yld</span>))
|
1918
|
+
<span class="ruby-keyword kw">end</span>
|
1919
|
+
</pre>
|
1920
|
+
</div>
|
1921
|
+
</div>
|
1922
|
+
</div>
|
1923
|
+
<div class="method">
|
1924
|
+
<div class="title">
|
1925
|
+
<a name="M000147"></a><b>only_keys?</b>(*check_keys)
|
1926
|
+
</div>
|
1927
|
+
<div class="description">
|
1928
|
+
<p>
|
1929
|
+
Alias for has_only_keys?
|
1930
|
+
</p>
|
1931
|
+
</div>
|
1932
|
+
</div>
|
1933
|
+
<div class="method">
|
1934
|
+
<div class="title">
|
1935
|
+
<a name="M000206"></a><b>only_keys?</b>(*check_keys)
|
1936
|
+
</div>
|
1937
|
+
<div class="description">
|
1938
|
+
<p>
|
1939
|
+
Alias for has_only_keys?
|
1940
|
+
</p>
|
1941
|
+
</div>
|
1942
|
+
</div>
|
1943
|
+
<div class="method">
|
1944
|
+
<div class="title">
|
1945
|
+
<a name="M000160"></a><b>recursive_merge</b>(other)
|
1946
|
+
</div>
|
1947
|
+
<div class="description">
|
1948
|
+
<p>
|
1949
|
+
Same as Hash#merge but <a href="Hash.html#M000140">recursively</a> merges
|
1950
|
+
sub-hashes.
|
1951
|
+
</p>
|
1952
|
+
</div>
|
1953
|
+
<div class="sourcecode">
|
1954
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000160_source')" id="l_M000160_source">show source</a> ]</p>
|
1955
|
+
<div id="M000160_source" class="dyn-source">
|
1956
|
+
<pre>
|
1957
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/recursive_merge.rb, line 5</span>
|
1958
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursive_merge</span>(<span class="ruby-identifier">other</span>)
|
1959
|
+
<span class="ruby-identifier">hash</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
1960
|
+
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
1961
|
+
<span class="ruby-identifier">myval</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>]
|
1962
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">myval</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
|
1963
|
+
<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">myval</span>.<span class="ruby-identifier">recursive_merge</span>(<span class="ruby-identifier">value</span>)
|
1964
|
+
<span class="ruby-keyword kw">else</span>
|
1965
|
+
<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
|
1966
|
+
<span class="ruby-keyword kw">end</span>
|
1967
|
+
<span class="ruby-keyword kw">end</span>
|
1968
|
+
<span class="ruby-identifier">hash</span>
|
1969
|
+
<span class="ruby-keyword kw">end</span>
|
1970
|
+
</pre>
|
1971
|
+
</div>
|
1972
|
+
</div>
|
1973
|
+
</div>
|
1974
|
+
<div class="method">
|
1975
|
+
<div class="title">
|
1976
|
+
<a name="M000219"></a><b>recursive_merge</b>(other)
|
1977
|
+
</div>
|
1978
|
+
<div class="description">
|
1979
|
+
<p>
|
1980
|
+
Same as Hash#merge but <a href="Hash.html#M000140">recursively</a> merges
|
1981
|
+
sub-hashes.
|
1982
|
+
</p>
|
1983
|
+
</div>
|
1984
|
+
<div class="sourcecode">
|
1985
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000219_source')" id="l_M000219_source">show source</a> ]</p>
|
1986
|
+
<div id="M000219_source" class="dyn-source">
|
1987
|
+
<pre>
|
1988
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/recursive_merge.rb, line 5</span>
|
1989
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursive_merge</span>(<span class="ruby-identifier">other</span>)
|
1990
|
+
<span class="ruby-identifier">hash</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
1991
|
+
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
1992
|
+
<span class="ruby-identifier">myval</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>]
|
1993
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">myval</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
|
1994
|
+
<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">myval</span>.<span class="ruby-identifier">recursive_merge</span>(<span class="ruby-identifier">value</span>)
|
1995
|
+
<span class="ruby-keyword kw">else</span>
|
1996
|
+
<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
|
1997
|
+
<span class="ruby-keyword kw">end</span>
|
1998
|
+
<span class="ruby-keyword kw">end</span>
|
1999
|
+
<span class="ruby-identifier">hash</span>
|
2000
|
+
<span class="ruby-keyword kw">end</span>
|
2001
|
+
</pre>
|
2002
|
+
</div>
|
2003
|
+
</div>
|
2004
|
+
</div>
|
2005
|
+
<div class="method">
|
2006
|
+
<div class="title">
|
2007
|
+
<a name="M000220"></a><b>recursive_merge!</b>(other)
|
2008
|
+
</div>
|
2009
|
+
<div class="description">
|
2010
|
+
<p>
|
2011
|
+
Same as Hash#merge! but <a href="Hash.html#M000140">recursively</a> merges
|
2012
|
+
sub-hashes.
|
2013
|
+
</p>
|
2014
|
+
</div>
|
2015
|
+
<div class="sourcecode">
|
2016
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000220_source')" id="l_M000220_source">show source</a> ]</p>
|
2017
|
+
<div id="M000220_source" class="dyn-source">
|
2018
|
+
<pre>
|
2019
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/recursive_merge.rb, line 20</span>
|
2020
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursive_merge!</span>(<span class="ruby-identifier">other</span>)
|
2021
|
+
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
2022
|
+
<span class="ruby-identifier">myval</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>]
|
2023
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">myval</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
|
2024
|
+
<span class="ruby-identifier">myval</span>.<span class="ruby-identifier">recursive_merge!</span>(<span class="ruby-identifier">value</span>)
|
2025
|
+
<span class="ruby-keyword kw">else</span>
|
2026
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
|
2027
|
+
<span class="ruby-keyword kw">end</span>
|
2028
|
+
<span class="ruby-keyword kw">end</span>
|
2029
|
+
<span class="ruby-keyword kw">self</span>
|
2030
|
+
<span class="ruby-keyword kw">end</span>
|
2031
|
+
</pre>
|
2032
|
+
</div>
|
2033
|
+
</div>
|
2034
|
+
</div>
|
2035
|
+
<div class="method">
|
2036
|
+
<div class="title">
|
2037
|
+
<a name="M000161"></a><b>recursive_merge!</b>(other)
|
2038
|
+
</div>
|
2039
|
+
<div class="description">
|
2040
|
+
<p>
|
2041
|
+
Same as Hash#merge! but <a href="Hash.html#M000140">recursively</a> merges
|
2042
|
+
sub-hashes.
|
2043
|
+
</p>
|
2044
|
+
</div>
|
2045
|
+
<div class="sourcecode">
|
2046
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000161_source')" id="l_M000161_source">show source</a> ]</p>
|
2047
|
+
<div id="M000161_source" class="dyn-source">
|
2048
|
+
<pre>
|
2049
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/recursive_merge.rb, line 20</span>
|
2050
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursive_merge!</span>(<span class="ruby-identifier">other</span>)
|
2051
|
+
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
2052
|
+
<span class="ruby-identifier">myval</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>]
|
2053
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">myval</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
|
2054
|
+
<span class="ruby-identifier">myval</span>.<span class="ruby-identifier">recursive_merge!</span>(<span class="ruby-identifier">value</span>)
|
2055
|
+
<span class="ruby-keyword kw">else</span>
|
2056
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
|
2057
|
+
<span class="ruby-keyword kw">end</span>
|
2058
|
+
<span class="ruby-keyword kw">end</span>
|
2059
|
+
<span class="ruby-keyword kw">self</span>
|
2060
|
+
<span class="ruby-keyword kw">end</span>
|
2061
|
+
</pre>
|
2062
|
+
</div>
|
2063
|
+
</div>
|
2064
|
+
</div>
|
2065
|
+
<div class="method">
|
2066
|
+
<div class="title">
|
2067
|
+
<a name="M000199"></a><b>recursively</b>() {|h| ...}
|
2068
|
+
</div>
|
2069
|
+
<div class="description">
|
2070
|
+
<p>
|
2071
|
+
Apply a block to hash, and <a href="Hash.html#M000140">recursively</a>
|
2072
|
+
apply that block to each subhash.
|
2073
|
+
</p>
|
2074
|
+
<pre>
|
2075
|
+
h = {:a=>1, :b=>{:b1=>1, :b2=>2}}
|
2076
|
+
h.recursively{|h| h.rekey(&:to_s) }
|
2077
|
+
=> {"a"=>1, "b"=>{"b1"=>1, "b2"=>2}}
|
2078
|
+
</pre>
|
2079
|
+
</div>
|
2080
|
+
<div class="sourcecode">
|
2081
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000199_source')" id="l_M000199_source">show source</a> ]</p>
|
2082
|
+
<div id="M000199_source" class="dyn-source">
|
2083
|
+
<pre>
|
2084
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/recursively.rb, line 10</span>
|
2085
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
2086
|
+
<span class="ruby-identifier">h</span> = <span class="ruby-identifier">inject</span>({}) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">hash</span>, (<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)<span class="ruby-operator">|</span>
|
2087
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
|
2088
|
+
<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>.<span class="ruby-identifier">recursively</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
2089
|
+
<span class="ruby-keyword kw">else</span>
|
2090
|
+
<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
|
2091
|
+
<span class="ruby-keyword kw">end</span>
|
2092
|
+
<span class="ruby-identifier">hash</span>
|
2093
|
+
<span class="ruby-keyword kw">end</span>
|
2094
|
+
<span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">h</span>
|
2095
|
+
<span class="ruby-keyword kw">end</span>
|
2096
|
+
</pre>
|
2097
|
+
</div>
|
2098
|
+
</div>
|
2099
|
+
</div>
|
2100
|
+
<div class="method">
|
2101
|
+
<div class="title">
|
2102
|
+
<a name="M000140"></a><b>recursively</b>() {|h| ...}
|
2103
|
+
</div>
|
2104
|
+
<div class="description">
|
2105
|
+
<p>
|
2106
|
+
Apply a block to hash, and <a href="Hash.html#M000140">recursively</a>
|
2107
|
+
apply that block to each subhash.
|
2108
|
+
</p>
|
2109
|
+
<pre>
|
2110
|
+
h = {:a=>1, :b=>{:b1=>1, :b2=>2}}
|
2111
|
+
h.recursively{|h| h.rekey(&:to_s) }
|
2112
|
+
=> {"a"=>1, "b"=>{"b1"=>1, "b2"=>2}}
|
2113
|
+
</pre>
|
2114
|
+
</div>
|
2115
|
+
<div class="sourcecode">
|
2116
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000140_source')" id="l_M000140_source">show source</a> ]</p>
|
2117
|
+
<div id="M000140_source" class="dyn-source">
|
2118
|
+
<pre>
|
2119
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/recursively.rb, line 10</span>
|
2120
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
2121
|
+
<span class="ruby-identifier">h</span> = <span class="ruby-identifier">inject</span>({}) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">hash</span>, (<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)<span class="ruby-operator">|</span>
|
2122
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
|
2123
|
+
<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>.<span class="ruby-identifier">recursively</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
2124
|
+
<span class="ruby-keyword kw">else</span>
|
2125
|
+
<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
|
2126
|
+
<span class="ruby-keyword kw">end</span>
|
2127
|
+
<span class="ruby-identifier">hash</span>
|
2128
|
+
<span class="ruby-keyword kw">end</span>
|
2129
|
+
<span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">h</span>
|
2130
|
+
<span class="ruby-keyword kw">end</span>
|
2131
|
+
</pre>
|
2132
|
+
</div>
|
2133
|
+
</div>
|
2134
|
+
</div>
|
2135
|
+
<div class="method">
|
2136
|
+
<div class="title">
|
2137
|
+
<a name="M000200"></a><b>recursively!</b>(&block)
|
2138
|
+
</div>
|
2139
|
+
<div class="sourcecode">
|
2140
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000200_source')" id="l_M000200_source">show source</a> ]</p>
|
2141
|
+
<div id="M000200_source" class="dyn-source">
|
2142
|
+
<pre>
|
2143
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/recursively.rb, line 24</span>
|
2144
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
2145
|
+
<span class="ruby-identifier">replace</span>(<span class="ruby-identifier">recursively</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>))
|
2146
|
+
<span class="ruby-keyword kw">end</span>
|
2147
|
+
</pre>
|
2148
|
+
</div>
|
2149
|
+
</div>
|
2150
|
+
</div>
|
2151
|
+
<div class="method">
|
2152
|
+
<div class="title">
|
2153
|
+
<a name="M000141"></a><b>recursively!</b>(&block)
|
2154
|
+
</div>
|
2155
|
+
<div class="sourcecode">
|
2156
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000141_source')" id="l_M000141_source">show source</a> ]</p>
|
2157
|
+
<div id="M000141_source" class="dyn-source">
|
2158
|
+
<pre>
|
2159
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/recursively.rb, line 24</span>
|
2160
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
2161
|
+
<span class="ruby-identifier">replace</span>(<span class="ruby-identifier">recursively</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>))
|
2162
|
+
<span class="ruby-keyword kw">end</span>
|
2163
|
+
</pre>
|
2164
|
+
</div>
|
2165
|
+
</div>
|
2166
|
+
</div>
|
2167
|
+
<div class="method">
|
2168
|
+
<div class="title">
|
2169
|
+
<a name="M000247"></a><b>rekey</b>(*args, &block)
|
2170
|
+
</div>
|
2171
|
+
<div class="description">
|
2172
|
+
<p>
|
2173
|
+
<a href="Hash.html#M000188">rekey</a>(to_key, from_key) <a
|
2174
|
+
href="Hash.html#M000188">rekey</a>{ |key| … }
|
2175
|
+
</p>
|
2176
|
+
<p>
|
2177
|
+
If two keys are given, then the second key is changed to the first.
|
2178
|
+
</p>
|
2179
|
+
<pre>
|
2180
|
+
foo = { :a=>1, :b=>2 }
|
2181
|
+
foo.rekey('a',:a) #=> { 'a'=>1, :b=>2 }
|
2182
|
+
foo.rekey('b',:b) #=> { 'a'=>1, 'b'=>2 }
|
2183
|
+
foo.rekey('foo','bar') #=> { 'a'=>1, 'b'=>2 }
|
2184
|
+
</pre>
|
2185
|
+
<p>
|
2186
|
+
If a block is given, converts all keys in the <a href="Hash.html">Hash</a>
|
2187
|
+
accroding to the given block. If the block returns <tt>nil</tt> for given
|
2188
|
+
key, then that key will be left intact.
|
2189
|
+
</p>
|
2190
|
+
<pre>
|
2191
|
+
foo = { :name=>'Gavin', :wife=>:Lisa }
|
2192
|
+
foo.rekey{ |k| k.to_s } #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2193
|
+
foo.inspect #=> { :name =>"Gavin", :wife=>:Lisa }
|
2194
|
+
|
2195
|
+
CREDIT: Trans
|
2196
|
+
CREDIT: Gavin Kistner
|
2197
|
+
</pre>
|
2198
|
+
</div>
|
2199
|
+
<div class="sourcecode">
|
2200
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000247_source')" id="l_M000247_source">show source</a> ]</p>
|
2201
|
+
<div id="M000247_source" class="dyn-source">
|
2202
|
+
<pre>
|
2203
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/rekey.rb, line 27</span>
|
2204
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rekey</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
2205
|
+
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">rekey!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
2206
|
+
<span class="ruby-keyword kw">end</span>
|
2207
|
+
</pre>
|
2208
|
+
</div>
|
2209
|
+
</div>
|
2210
|
+
</div>
|
2211
|
+
<div class="method">
|
2212
|
+
<div class="title">
|
2213
|
+
<a name="M000188"></a><b>rekey</b>(*args, &block)
|
2214
|
+
</div>
|
2215
|
+
<div class="description">
|
2216
|
+
<p>
|
2217
|
+
<a href="Hash.html#M000188">rekey</a>(to_key, from_key) <a
|
2218
|
+
href="Hash.html#M000188">rekey</a>{ |key| … }
|
2219
|
+
</p>
|
2220
|
+
<p>
|
2221
|
+
If two keys are given, then the second key is changed to the first.
|
2222
|
+
</p>
|
2223
|
+
<pre>
|
2224
|
+
foo = { :a=>1, :b=>2 }
|
2225
|
+
foo.rekey('a',:a) #=> { 'a'=>1, :b=>2 }
|
2226
|
+
foo.rekey('b',:b) #=> { 'a'=>1, 'b'=>2 }
|
2227
|
+
foo.rekey('foo','bar') #=> { 'a'=>1, 'b'=>2 }
|
2228
|
+
</pre>
|
2229
|
+
<p>
|
2230
|
+
If a block is given, converts all keys in the <a href="Hash.html">Hash</a>
|
2231
|
+
accroding to the given block. If the block returns <tt>nil</tt> for given
|
2232
|
+
key, then that key will be left intact.
|
2233
|
+
</p>
|
2234
|
+
<pre>
|
2235
|
+
foo = { :name=>'Gavin', :wife=>:Lisa }
|
2236
|
+
foo.rekey{ |k| k.to_s } #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2237
|
+
foo.inspect #=> { :name =>"Gavin", :wife=>:Lisa }
|
2238
|
+
|
2239
|
+
CREDIT: Trans
|
2240
|
+
CREDIT: Gavin Kistner
|
2241
|
+
</pre>
|
2242
|
+
</div>
|
2243
|
+
<div class="sourcecode">
|
2244
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000188_source')" id="l_M000188_source">show source</a> ]</p>
|
2245
|
+
<div id="M000188_source" class="dyn-source">
|
2246
|
+
<pre>
|
2247
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/rekey.rb, line 27</span>
|
2248
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rekey</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
2249
|
+
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">rekey!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
2250
|
+
<span class="ruby-keyword kw">end</span>
|
2251
|
+
</pre>
|
2252
|
+
</div>
|
2253
|
+
</div>
|
2254
|
+
</div>
|
2255
|
+
<div class="method">
|
2256
|
+
<div class="title">
|
2257
|
+
<a name="M000189"></a><b>rekey!</b>(*args, &block)
|
2258
|
+
</div>
|
2259
|
+
<div class="description">
|
2260
|
+
<p>
|
2261
|
+
Synonym for <a href="Hash.html#M000188">Hash#rekey</a>, but modifies the
|
2262
|
+
receiver in place (and returns it).
|
2263
|
+
</p>
|
2264
|
+
<pre>
|
2265
|
+
foo = { :name=>'Gavin', :wife=>:Lisa }
|
2266
|
+
foo.rekey!{ |k| k.to_s } #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2267
|
+
foo.inspect #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2268
|
+
|
2269
|
+
CREDIT: Trans
|
2270
|
+
CREDIT: Gavin Kistner
|
2271
|
+
</pre>
|
2272
|
+
</div>
|
2273
|
+
<div class="sourcecode">
|
2274
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000189_source')" id="l_M000189_source">show source</a> ]</p>
|
2275
|
+
<div id="M000189_source" class="dyn-source">
|
2276
|
+
<pre>
|
2277
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/rekey.rb, line 40</span>
|
2278
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rekey!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
2279
|
+
<span class="ruby-comment cmt"># for backward comptability (TODO: DEPRECATE).</span>
|
2280
|
+
<span class="ruby-identifier">block</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">pop</span>.<span class="ruby-identifier">to_sym</span>.<span class="ruby-identifier">to_proc</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
2281
|
+
<span class="ruby-comment cmt"># if no args use block.</span>
|
2282
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span>
|
2283
|
+
<span class="ruby-identifier">block</span> = <span class="ruby-identifier">lambda</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span>} <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block</span>
|
2284
|
+
<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span>
|
2285
|
+
<span class="ruby-identifier">nk</span> = <span class="ruby-identifier">block</span>[<span class="ruby-identifier">k</span>]
|
2286
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">nk</span>]=<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">k</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">nk</span>
|
2287
|
+
<span class="ruby-keyword kw">end</span>
|
2288
|
+
<span class="ruby-keyword kw">else</span>
|
2289
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"3 for 2"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
|
2290
|
+
<span class="ruby-identifier">to</span>, <span class="ruby-identifier">from</span> = <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
|
2291
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">to</span>] = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">from</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">from</span>)
|
2292
|
+
<span class="ruby-keyword kw">end</span>
|
2293
|
+
<span class="ruby-keyword kw">self</span>
|
2294
|
+
<span class="ruby-keyword kw">end</span>
|
2295
|
+
</pre>
|
2296
|
+
</div>
|
2297
|
+
</div>
|
2298
|
+
</div>
|
2299
|
+
<div class="method">
|
2300
|
+
<div class="title">
|
2301
|
+
<a name="M000248"></a><b>rekey!</b>(*args, &block)
|
2302
|
+
</div>
|
2303
|
+
<div class="description">
|
2304
|
+
<p>
|
2305
|
+
Synonym for <a href="Hash.html#M000188">Hash#rekey</a>, but modifies the
|
2306
|
+
receiver in place (and returns it).
|
2307
|
+
</p>
|
2308
|
+
<pre>
|
2309
|
+
foo = { :name=>'Gavin', :wife=>:Lisa }
|
2310
|
+
foo.rekey!{ |k| k.to_s } #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2311
|
+
foo.inspect #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2312
|
+
|
2313
|
+
CREDIT: Trans
|
2314
|
+
CREDIT: Gavin Kistner
|
2315
|
+
</pre>
|
2316
|
+
</div>
|
2317
|
+
<div class="sourcecode">
|
2318
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000248_source')" id="l_M000248_source">show source</a> ]</p>
|
2319
|
+
<div id="M000248_source" class="dyn-source">
|
2320
|
+
<pre>
|
2321
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/rekey.rb, line 40</span>
|
2322
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rekey!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
2323
|
+
<span class="ruby-comment cmt"># for backward comptability (TODO: DEPRECATE).</span>
|
2324
|
+
<span class="ruby-identifier">block</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">pop</span>.<span class="ruby-identifier">to_sym</span>.<span class="ruby-identifier">to_proc</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
2325
|
+
<span class="ruby-comment cmt"># if no args use block.</span>
|
2326
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span>
|
2327
|
+
<span class="ruby-identifier">block</span> = <span class="ruby-identifier">lambda</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span>} <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block</span>
|
2328
|
+
<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span>
|
2329
|
+
<span class="ruby-identifier">nk</span> = <span class="ruby-identifier">block</span>[<span class="ruby-identifier">k</span>]
|
2330
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">nk</span>]=<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">k</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">nk</span>
|
2331
|
+
<span class="ruby-keyword kw">end</span>
|
2332
|
+
<span class="ruby-keyword kw">else</span>
|
2333
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"3 for 2"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
|
2334
|
+
<span class="ruby-identifier">to</span>, <span class="ruby-identifier">from</span> = <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
|
2335
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">to</span>] = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">from</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">from</span>)
|
2336
|
+
<span class="ruby-keyword kw">end</span>
|
2337
|
+
<span class="ruby-keyword kw">self</span>
|
2338
|
+
<span class="ruby-keyword kw">end</span>
|
2339
|
+
</pre>
|
2340
|
+
</div>
|
2341
|
+
</div>
|
2342
|
+
</div>
|
2343
|
+
<div class="method">
|
2344
|
+
<div class="title">
|
2345
|
+
<a name="M000196"></a><b>replace_each</b>( {|| ...}
|
2346
|
+
</div>
|
2347
|
+
<div class="description">
|
2348
|
+
<p>
|
2349
|
+
Same as <a href="Hash.html#M000134">update_each</a>, but deletes the key
|
2350
|
+
element first.
|
2351
|
+
</p>
|
2352
|
+
<pre>
|
2353
|
+
CREDIT: Trans
|
2354
|
+
</pre>
|
2355
|
+
</div>
|
2356
|
+
<div class="sourcecode">
|
2357
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000196_source')" id="l_M000196_source">show source</a> ]</p>
|
2358
|
+
<div id="M000196_source" class="dyn-source">
|
2359
|
+
<pre>
|
2360
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 66</span>
|
2361
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">replace_each</span> <span class="ruby-comment cmt"># :yield:</span>
|
2362
|
+
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
2363
|
+
<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">k</span>)
|
2364
|
+
<span class="ruby-identifier">update</span>(<span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>))
|
2365
|
+
<span class="ruby-keyword kw">end</span>
|
2366
|
+
<span class="ruby-keyword kw">self</span>
|
2367
|
+
<span class="ruby-keyword kw">end</span>
|
2368
|
+
</pre>
|
2369
|
+
</div>
|
2370
|
+
</div>
|
2371
|
+
</div>
|
2372
|
+
<div class="method">
|
2373
|
+
<div class="title">
|
2374
|
+
<a name="M000137"></a><b>replace_each</b>( {|| ...}
|
2375
|
+
</div>
|
2376
|
+
<div class="description">
|
2377
|
+
<p>
|
2378
|
+
Same as <a href="Hash.html#M000134">update_each</a>, but deletes the key
|
2379
|
+
element first.
|
2380
|
+
</p>
|
2381
|
+
<pre>
|
2382
|
+
CREDIT: Trans
|
2383
|
+
</pre>
|
2384
|
+
</div>
|
2385
|
+
<div class="sourcecode">
|
2386
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000137_source')" id="l_M000137_source">show source</a> ]</p>
|
2387
|
+
<div id="M000137_source" class="dyn-source">
|
2388
|
+
<pre>
|
2389
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 66</span>
|
2390
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">replace_each</span> <span class="ruby-comment cmt"># :yield:</span>
|
2391
|
+
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
2392
|
+
<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">k</span>)
|
2393
|
+
<span class="ruby-identifier">update</span>(<span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>))
|
2394
|
+
<span class="ruby-keyword kw">end</span>
|
2395
|
+
<span class="ruby-keyword kw">self</span>
|
2396
|
+
<span class="ruby-keyword kw">end</span>
|
2397
|
+
</pre>
|
2398
|
+
</div>
|
2399
|
+
</div>
|
2400
|
+
</div>
|
2401
|
+
<div class="method">
|
2402
|
+
<div class="title">
|
2403
|
+
<a name="M000208"></a><b>reverse_merge</b>(other)
|
2404
|
+
</div>
|
2405
|
+
<div class="description">
|
2406
|
+
<p>
|
2407
|
+
Allows for reverse merging where its the keys in the calling hash that wins
|
2408
|
+
over those in the <tt>other_hash</tt>. This is particularly useful for
|
2409
|
+
initializing an incoming option hash with default values:
|
2410
|
+
</p>
|
2411
|
+
<pre>
|
2412
|
+
def setup(options = {})
|
2413
|
+
options.reverse_merge! :size => 25, :velocity => 10
|
2414
|
+
end
|
2415
|
+
</pre>
|
2416
|
+
<p>
|
2417
|
+
The default :size and :velocity is only set if the <tt>options</tt> passed
|
2418
|
+
in doesn‘t already have those keys set.
|
2419
|
+
</p>
|
2420
|
+
</div>
|
2421
|
+
<div class="sourcecode">
|
2422
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000208_source')" id="l_M000208_source">show source</a> ]</p>
|
2423
|
+
<div id="M000208_source" class="dyn-source">
|
2424
|
+
<pre>
|
2425
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/merge.rb, line 15</span>
|
2426
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse_merge</span>(<span class="ruby-identifier">other</span>)
|
2427
|
+
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-keyword kw">self</span>)
|
2428
|
+
<span class="ruby-keyword kw">end</span>
|
2429
|
+
</pre>
|
2430
|
+
</div>
|
2431
|
+
</div>
|
2432
|
+
</div>
|
2433
|
+
<div class="method">
|
2434
|
+
<div class="title">
|
2435
|
+
<a name="M000149"></a><b>reverse_merge</b>(other)
|
2436
|
+
</div>
|
2437
|
+
<div class="description">
|
2438
|
+
<p>
|
2439
|
+
Allows for reverse merging where its the keys in the calling hash that wins
|
2440
|
+
over those in the <tt>other_hash</tt>. This is particularly useful for
|
2441
|
+
initializing an incoming option hash with default values:
|
2442
|
+
</p>
|
2443
|
+
<pre>
|
2444
|
+
def setup(options = {})
|
2445
|
+
options.reverse_merge! :size => 25, :velocity => 10
|
2446
|
+
end
|
2447
|
+
</pre>
|
2448
|
+
<p>
|
2449
|
+
The default :size and :velocity is only set if the <tt>options</tt> passed
|
2450
|
+
in doesn‘t already have those keys set.
|
2451
|
+
</p>
|
2452
|
+
</div>
|
2453
|
+
<div class="sourcecode">
|
2454
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000149_source')" id="l_M000149_source">show source</a> ]</p>
|
2455
|
+
<div id="M000149_source" class="dyn-source">
|
2456
|
+
<pre>
|
2457
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/merge.rb, line 15</span>
|
2458
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse_merge</span>(<span class="ruby-identifier">other</span>)
|
2459
|
+
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-keyword kw">self</span>)
|
2460
|
+
<span class="ruby-keyword kw">end</span>
|
2461
|
+
</pre>
|
2462
|
+
</div>
|
2463
|
+
</div>
|
2464
|
+
</div>
|
2465
|
+
<div class="method">
|
2466
|
+
<div class="title">
|
2467
|
+
<a name="M000150"></a><b>reverse_merge!</b>(other)
|
2468
|
+
</div>
|
2469
|
+
<div class="description">
|
2470
|
+
<p>
|
2471
|
+
Inplace form of <a href="Hash.html#M000149">reverse_merge</a>.
|
2472
|
+
</p>
|
2473
|
+
</div>
|
2474
|
+
<div class="aka">
|
2475
|
+
This method is also aliased as
|
2476
|
+
<a href="Hash.html#M000151">reverse_update</a>
|
2477
|
+
<a href="Hash.html#M000210">reverse_update</a>
|
2478
|
+
</div>
|
2479
|
+
<div class="sourcecode">
|
2480
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000150_source')" id="l_M000150_source">show source</a> ]</p>
|
2481
|
+
<div id="M000150_source" class="dyn-source">
|
2482
|
+
<pre>
|
2483
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/merge.rb, line 21</span>
|
2484
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse_merge!</span>(<span class="ruby-identifier">other</span>)
|
2485
|
+
<span class="ruby-identifier">replace</span>(<span class="ruby-identifier">reverse_merge</span>(<span class="ruby-identifier">other</span>))
|
2486
|
+
<span class="ruby-keyword kw">end</span>
|
2487
|
+
</pre>
|
2488
|
+
</div>
|
2489
|
+
</div>
|
2490
|
+
</div>
|
2491
|
+
<div class="method">
|
2492
|
+
<div class="title">
|
2493
|
+
<a name="M000209"></a><b>reverse_merge!</b>(other)
|
2494
|
+
</div>
|
2495
|
+
<div class="description">
|
2496
|
+
<p>
|
2497
|
+
Inplace form of <a href="Hash.html#M000149">reverse_merge</a>.
|
2498
|
+
</p>
|
2499
|
+
</div>
|
2500
|
+
<div class="sourcecode">
|
2501
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000209_source')" id="l_M000209_source">show source</a> ]</p>
|
2502
|
+
<div id="M000209_source" class="dyn-source">
|
2503
|
+
<pre>
|
2504
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/merge.rb, line 21</span>
|
2505
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse_merge!</span>(<span class="ruby-identifier">other</span>)
|
2506
|
+
<span class="ruby-identifier">replace</span>(<span class="ruby-identifier">reverse_merge</span>(<span class="ruby-identifier">other</span>))
|
2507
|
+
<span class="ruby-keyword kw">end</span>
|
2508
|
+
</pre>
|
2509
|
+
</div>
|
2510
|
+
</div>
|
2511
|
+
</div>
|
2512
|
+
<div class="method">
|
2513
|
+
<div class="title">
|
2514
|
+
<a name="M000210"></a><b>reverse_update</b>(other)
|
2515
|
+
</div>
|
2516
|
+
<div class="description">
|
2517
|
+
<p>
|
2518
|
+
Alias for <a href="Hash.html#M000149">reverse_merge</a>!
|
2519
|
+
</p>
|
2520
|
+
</div>
|
2521
|
+
</div>
|
2522
|
+
<div class="method">
|
2523
|
+
<div class="title">
|
2524
|
+
<a name="M000151"></a><b>reverse_update</b>(other)
|
2525
|
+
</div>
|
2526
|
+
<div class="description">
|
2527
|
+
<p>
|
2528
|
+
Alias for <a href="Hash.html#M000149">reverse_merge</a>!
|
2529
|
+
</p>
|
2530
|
+
</div>
|
2531
|
+
</div>
|
2532
|
+
<div class="method">
|
2533
|
+
<div class="title">
|
2534
|
+
<a name="M000224"></a><b>select!</b>() {|k,v| ...}
|
2535
|
+
</div>
|
2536
|
+
<div class="description">
|
2537
|
+
<p>
|
2538
|
+
In-place version of Hash#select. The opposite of the built-in Hash#reject!.
|
2539
|
+
</p>
|
2540
|
+
<pre>
|
2541
|
+
CREDIT Gavin Sinclair
|
2542
|
+
CREDIT Noah Gibbs
|
2543
|
+
</pre>
|
2544
|
+
</div>
|
2545
|
+
<div class="sourcecode">
|
2546
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000224_source')" id="l_M000224_source">show source</a> ]</p>
|
2547
|
+
<div id="M000224_source" class="dyn-source">
|
2548
|
+
<pre>
|
2549
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/select.rb, line 9</span>
|
2550
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select!</span>
|
2551
|
+
<span class="ruby-identifier">reject!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">not</span> <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>) }
|
2552
|
+
<span class="ruby-keyword kw">end</span>
|
2553
|
+
</pre>
|
2554
|
+
</div>
|
2555
|
+
</div>
|
2556
|
+
</div>
|
2557
|
+
<div class="method">
|
2558
|
+
<div class="title">
|
2559
|
+
<a name="M000165"></a><b>select!</b>() {|k,v| ...}
|
2560
|
+
</div>
|
2561
|
+
<div class="description">
|
2562
|
+
<p>
|
2563
|
+
In-place version of Hash#select. The opposite of the built-in Hash#reject!.
|
2564
|
+
</p>
|
2565
|
+
<pre>
|
2566
|
+
CREDIT Gavin Sinclair
|
2567
|
+
CREDIT Noah Gibbs
|
2568
|
+
</pre>
|
2569
|
+
</div>
|
2570
|
+
<div class="sourcecode">
|
2571
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000165_source')" id="l_M000165_source">show source</a> ]</p>
|
2572
|
+
<div id="M000165_source" class="dyn-source">
|
2573
|
+
<pre>
|
2574
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/select.rb, line 9</span>
|
2575
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select!</span>
|
2576
|
+
<span class="ruby-identifier">reject!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">not</span> <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>) }
|
2577
|
+
<span class="ruby-keyword kw">end</span>
|
2578
|
+
</pre>
|
2579
|
+
</div>
|
2580
|
+
</div>
|
2581
|
+
</div>
|
2582
|
+
<div class="method">
|
2583
|
+
<div class="title">
|
2584
|
+
<a name="M000186"></a><b>slice</b>(*keep_keys)
|
2585
|
+
</div>
|
2586
|
+
<div class="description">
|
2587
|
+
<p>
|
2588
|
+
Returns a new hash with only the given keys.
|
2589
|
+
</p>
|
2590
|
+
</div>
|
2591
|
+
<div class="sourcecode">
|
2592
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000186_source')" id="l_M000186_source">show source</a> ]</p>
|
2593
|
+
<div id="M000186_source" class="dyn-source">
|
2594
|
+
<pre>
|
2595
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/slice.rb, line 7</span>
|
2596
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">slice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keep_keys</span>)
|
2597
|
+
<span class="ruby-identifier">h</span> = {}
|
2598
|
+
<span class="ruby-identifier">keep_keys</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span>
|
2599
|
+
<span class="ruby-identifier">h</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">key</span>)
|
2600
|
+
<span class="ruby-keyword kw">end</span>
|
2601
|
+
<span class="ruby-identifier">h</span>
|
2602
|
+
<span class="ruby-keyword kw">end</span>
|
2603
|
+
</pre>
|
2604
|
+
</div>
|
2605
|
+
</div>
|
2606
|
+
</div>
|
2607
|
+
<div class="method">
|
2608
|
+
<div class="title">
|
2609
|
+
<a name="M000245"></a><b>slice</b>(*keep_keys)
|
2610
|
+
</div>
|
2611
|
+
<div class="description">
|
2612
|
+
<p>
|
2613
|
+
Returns a new hash with only the given keys.
|
2614
|
+
</p>
|
2615
|
+
</div>
|
2616
|
+
<div class="sourcecode">
|
2617
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000245_source')" id="l_M000245_source">show source</a> ]</p>
|
2618
|
+
<div id="M000245_source" class="dyn-source">
|
2619
|
+
<pre>
|
2620
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/slice.rb, line 7</span>
|
2621
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">slice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keep_keys</span>)
|
2622
|
+
<span class="ruby-identifier">h</span> = {}
|
2623
|
+
<span class="ruby-identifier">keep_keys</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span>
|
2624
|
+
<span class="ruby-identifier">h</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">key</span>)
|
2625
|
+
<span class="ruby-keyword kw">end</span>
|
2626
|
+
<span class="ruby-identifier">h</span>
|
2627
|
+
<span class="ruby-keyword kw">end</span>
|
2628
|
+
</pre>
|
2629
|
+
</div>
|
2630
|
+
</div>
|
2631
|
+
</div>
|
2632
|
+
<div class="method">
|
2633
|
+
<div class="title">
|
2634
|
+
<a name="M000187"></a><b>slice!</b>(*keep_keys)
|
2635
|
+
</div>
|
2636
|
+
<div class="description">
|
2637
|
+
<p>
|
2638
|
+
Replaces hash with a new hash having only the given keys. This return the
|
2639
|
+
hash of keys removed.
|
2640
|
+
</p>
|
2641
|
+
</div>
|
2642
|
+
<div class="sourcecode">
|
2643
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000187_source')" id="l_M000187_source">show source</a> ]</p>
|
2644
|
+
<div id="M000187_source" class="dyn-source">
|
2645
|
+
<pre>
|
2646
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/slice.rb, line 18</span>
|
2647
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">slice!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keep_keys</span>)
|
2648
|
+
<span class="ruby-identifier">removed</span> = <span class="ruby-identifier">except</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keep_keys</span>)
|
2649
|
+
<span class="ruby-identifier">replace</span>(<span class="ruby-identifier">slice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keep_keys</span>))
|
2650
|
+
<span class="ruby-identifier">removed</span>
|
2651
|
+
<span class="ruby-keyword kw">end</span>
|
2652
|
+
</pre>
|
2653
|
+
</div>
|
2654
|
+
</div>
|
2655
|
+
</div>
|
2656
|
+
<div class="method">
|
2657
|
+
<div class="title">
|
2658
|
+
<a name="M000246"></a><b>slice!</b>(*keep_keys)
|
2659
|
+
</div>
|
2660
|
+
<div class="description">
|
2661
|
+
<p>
|
2662
|
+
Replaces hash with a new hash having only the given keys. This return the
|
2663
|
+
hash of keys removed.
|
2664
|
+
</p>
|
2665
|
+
</div>
|
2666
|
+
<div class="sourcecode">
|
2667
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000246_source')" id="l_M000246_source">show source</a> ]</p>
|
2668
|
+
<div id="M000246_source" class="dyn-source">
|
2669
|
+
<pre>
|
2670
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/slice.rb, line 18</span>
|
2671
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">slice!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keep_keys</span>)
|
2672
|
+
<span class="ruby-identifier">removed</span> = <span class="ruby-identifier">except</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keep_keys</span>)
|
2673
|
+
<span class="ruby-identifier">replace</span>(<span class="ruby-identifier">slice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keep_keys</span>))
|
2674
|
+
<span class="ruby-identifier">removed</span>
|
2675
|
+
<span class="ruby-keyword kw">end</span>
|
2676
|
+
</pre>
|
2677
|
+
</div>
|
2678
|
+
</div>
|
2679
|
+
</div>
|
2680
|
+
<div class="method">
|
2681
|
+
<div class="title">
|
2682
|
+
<a name="M000240"></a><b>stringify_keys</b>(&filter)
|
2683
|
+
</div>
|
2684
|
+
<div class="description">
|
2685
|
+
<p>
|
2686
|
+
Converts all keys in the <a href="Hash.html">Hash</a> to Strings, returning
|
2687
|
+
a new <a href="Hash.html">Hash</a>. With a <tt>filter</tt> parameter,
|
2688
|
+
limits conversion to only a certain selection of keys.
|
2689
|
+
</p>
|
2690
|
+
<pre>
|
2691
|
+
foo = { :name=>'Gavin', :wife=>:Lisa }
|
2692
|
+
foo.stringify_keys #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2693
|
+
foo.inspect #=> { :name =>"Gavin", :wife=>:Lisa }
|
2694
|
+
</pre>
|
2695
|
+
<p>
|
2696
|
+
This method is considered archaic. Use <a
|
2697
|
+
href="Hash.html#M000188">rekey</a> instead.
|
2698
|
+
</p>
|
2699
|
+
</div>
|
2700
|
+
<div class="sourcecode">
|
2701
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000240_source')" id="l_M000240_source">show source</a> ]</p>
|
2702
|
+
<div id="M000240_source" class="dyn-source">
|
2703
|
+
<pre>
|
2704
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 59</span>
|
2705
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stringify_keys</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">filter</span>)
|
2706
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filter</span>
|
2707
|
+
<span class="ruby-identifier">rekey</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filter</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> }
|
2708
|
+
<span class="ruby-keyword kw">else</span>
|
2709
|
+
<span class="ruby-identifier">rekey</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> }
|
2710
|
+
<span class="ruby-keyword kw">end</span>
|
2711
|
+
<span class="ruby-keyword kw">end</span>
|
2712
|
+
</pre>
|
2713
|
+
</div>
|
2714
|
+
</div>
|
2715
|
+
</div>
|
2716
|
+
<div class="method">
|
2717
|
+
<div class="title">
|
2718
|
+
<a name="M000181"></a><b>stringify_keys</b>(&filter)
|
2719
|
+
</div>
|
2720
|
+
<div class="description">
|
2721
|
+
<p>
|
2722
|
+
Converts all keys in the <a href="Hash.html">Hash</a> to Strings, returning
|
2723
|
+
a new <a href="Hash.html">Hash</a>. With a <tt>filter</tt> parameter,
|
2724
|
+
limits conversion to only a certain selection of keys.
|
2725
|
+
</p>
|
2726
|
+
<pre>
|
2727
|
+
foo = { :name=>'Gavin', :wife=>:Lisa }
|
2728
|
+
foo.stringify_keys #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2729
|
+
foo.inspect #=> { :name =>"Gavin", :wife=>:Lisa }
|
2730
|
+
</pre>
|
2731
|
+
<p>
|
2732
|
+
This method is considered archaic. Use <a
|
2733
|
+
href="Hash.html#M000188">rekey</a> instead.
|
2734
|
+
</p>
|
2735
|
+
</div>
|
2736
|
+
<div class="aka">
|
2737
|
+
This method is also aliased as
|
2738
|
+
<a href="Hash.html#M000182">keys_to_s</a>
|
2739
|
+
<a href="Hash.html#M000241">keys_to_s</a>
|
2740
|
+
</div>
|
2741
|
+
<div class="sourcecode">
|
2742
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000181_source')" id="l_M000181_source">show source</a> ]</p>
|
2743
|
+
<div id="M000181_source" class="dyn-source">
|
2744
|
+
<pre>
|
2745
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 59</span>
|
2746
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stringify_keys</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">filter</span>)
|
2747
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filter</span>
|
2748
|
+
<span class="ruby-identifier">rekey</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filter</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> }
|
2749
|
+
<span class="ruby-keyword kw">else</span>
|
2750
|
+
<span class="ruby-identifier">rekey</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> }
|
2751
|
+
<span class="ruby-keyword kw">end</span>
|
2752
|
+
<span class="ruby-keyword kw">end</span>
|
2753
|
+
</pre>
|
2754
|
+
</div>
|
2755
|
+
</div>
|
2756
|
+
</div>
|
2757
|
+
<div class="method">
|
2758
|
+
<div class="title">
|
2759
|
+
<a name="M000183"></a><b>stringify_keys!</b>(&filter)
|
2760
|
+
</div>
|
2761
|
+
<div class="description">
|
2762
|
+
<p>
|
2763
|
+
Synonym for <a href="Hash.html#M000181">Hash#stringify_keys</a>, but
|
2764
|
+
modifies the receiver in place and returns it. With a <tt>filter</tt>
|
2765
|
+
parameter, limits conversion to only a certain selection of keys.
|
2766
|
+
</p>
|
2767
|
+
<pre>
|
2768
|
+
foo = { :name=>'Gavin', :wife=>:Lisa }
|
2769
|
+
foo.stringify_keys! #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2770
|
+
foo.inspect #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2771
|
+
</pre>
|
2772
|
+
<p>
|
2773
|
+
This method is considered archaic. Use <a
|
2774
|
+
href="Hash.html#M000188">rekey</a> instead.
|
2775
|
+
</p>
|
2776
|
+
</div>
|
2777
|
+
<div class="aka">
|
2778
|
+
This method is also aliased as
|
2779
|
+
<a href="Hash.html#M000184">keys_to_s!</a>
|
2780
|
+
<a href="Hash.html#M000243">keys_to_s!</a>
|
2781
|
+
</div>
|
2782
|
+
<div class="sourcecode">
|
2783
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000183_source')" id="l_M000183_source">show source</a> ]</p>
|
2784
|
+
<div id="M000183_source" class="dyn-source">
|
2785
|
+
<pre>
|
2786
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 78</span>
|
2787
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stringify_keys!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">filter</span>)
|
2788
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filter</span>
|
2789
|
+
<span class="ruby-identifier">rekey!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filter</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> }
|
2790
|
+
<span class="ruby-keyword kw">else</span>
|
2791
|
+
<span class="ruby-identifier">rekey!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> }
|
2792
|
+
<span class="ruby-keyword kw">end</span>
|
2793
|
+
<span class="ruby-keyword kw">end</span>
|
2794
|
+
</pre>
|
2795
|
+
</div>
|
2796
|
+
</div>
|
2797
|
+
</div>
|
2798
|
+
<div class="method">
|
2799
|
+
<div class="title">
|
2800
|
+
<a name="M000242"></a><b>stringify_keys!</b>(&filter)
|
2801
|
+
</div>
|
2802
|
+
<div class="description">
|
2803
|
+
<p>
|
2804
|
+
Synonym for <a href="Hash.html#M000181">Hash#stringify_keys</a>, but
|
2805
|
+
modifies the receiver in place and returns it. With a <tt>filter</tt>
|
2806
|
+
parameter, limits conversion to only a certain selection of keys.
|
2807
|
+
</p>
|
2808
|
+
<pre>
|
2809
|
+
foo = { :name=>'Gavin', :wife=>:Lisa }
|
2810
|
+
foo.stringify_keys! #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2811
|
+
foo.inspect #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2812
|
+
</pre>
|
2813
|
+
<p>
|
2814
|
+
This method is considered archaic. Use <a
|
2815
|
+
href="Hash.html#M000188">rekey</a> instead.
|
2816
|
+
</p>
|
2817
|
+
</div>
|
2818
|
+
<div class="sourcecode">
|
2819
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000242_source')" id="l_M000242_source">show source</a> ]</p>
|
2820
|
+
<div id="M000242_source" class="dyn-source">
|
2821
|
+
<pre>
|
2822
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 78</span>
|
2823
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stringify_keys!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">filter</span>)
|
2824
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filter</span>
|
2825
|
+
<span class="ruby-identifier">rekey!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filter</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> }
|
2826
|
+
<span class="ruby-keyword kw">else</span>
|
2827
|
+
<span class="ruby-identifier">rekey!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> }
|
2828
|
+
<span class="ruby-keyword kw">end</span>
|
2829
|
+
<span class="ruby-keyword kw">end</span>
|
2830
|
+
</pre>
|
2831
|
+
</div>
|
2832
|
+
</div>
|
2833
|
+
</div>
|
2834
|
+
<div class="method">
|
2835
|
+
<div class="title">
|
2836
|
+
<a name="M000175"></a><b>swap!</b>(key1, key2)
|
2837
|
+
</div>
|
2838
|
+
<div class="description">
|
2839
|
+
<p>
|
2840
|
+
Swap the values of a pair of keys in place.
|
2841
|
+
</p>
|
2842
|
+
<pre>
|
2843
|
+
{:a=>1,:b=>2}.swap!(:a,:b) #=> {:a=>2,:b=>1}
|
2844
|
+
</pre>
|
2845
|
+
<p>
|
2846
|
+
CREDIT: Gavin Sinclair
|
2847
|
+
</p>
|
2848
|
+
</div>
|
2849
|
+
<div class="sourcecode">
|
2850
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000175_source')" id="l_M000175_source">show source</a> ]</p>
|
2851
|
+
<div id="M000175_source" class="dyn-source">
|
2852
|
+
<pre>
|
2853
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/swap.rb, line 9</span>
|
2854
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">swap!</span>(<span class="ruby-identifier">key1</span>, <span class="ruby-identifier">key2</span>)
|
2855
|
+
<span class="ruby-identifier">tmp</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key1</span>]
|
2856
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key1</span>] = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key2</span>]
|
2857
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key2</span>] = <span class="ruby-identifier">tmp</span>
|
2858
|
+
<span class="ruby-keyword kw">self</span>
|
2859
|
+
<span class="ruby-keyword kw">end</span>
|
2860
|
+
</pre>
|
2861
|
+
</div>
|
2862
|
+
</div>
|
2863
|
+
</div>
|
2864
|
+
<div class="method">
|
2865
|
+
<div class="title">
|
2866
|
+
<a name="M000234"></a><b>swap!</b>(key1, key2)
|
2867
|
+
</div>
|
2868
|
+
<div class="description">
|
2869
|
+
<p>
|
2870
|
+
Swap the values of a pair of keys in place.
|
2871
|
+
</p>
|
2872
|
+
<pre>
|
2873
|
+
{:a=>1,:b=>2}.swap!(:a,:b) #=> {:a=>2,:b=>1}
|
2874
|
+
</pre>
|
2875
|
+
<p>
|
2876
|
+
CREDIT: Gavin Sinclair
|
2877
|
+
</p>
|
2878
|
+
</div>
|
2879
|
+
<div class="sourcecode">
|
2880
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000234_source')" id="l_M000234_source">show source</a> ]</p>
|
2881
|
+
<div id="M000234_source" class="dyn-source">
|
2882
|
+
<pre>
|
2883
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/swap.rb, line 9</span>
|
2884
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">swap!</span>(<span class="ruby-identifier">key1</span>, <span class="ruby-identifier">key2</span>)
|
2885
|
+
<span class="ruby-identifier">tmp</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key1</span>]
|
2886
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key1</span>] = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key2</span>]
|
2887
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key2</span>] = <span class="ruby-identifier">tmp</span>
|
2888
|
+
<span class="ruby-keyword kw">self</span>
|
2889
|
+
<span class="ruby-keyword kw">end</span>
|
2890
|
+
</pre>
|
2891
|
+
</div>
|
2892
|
+
</div>
|
2893
|
+
</div>
|
2894
|
+
<div class="method">
|
2895
|
+
<div class="title">
|
2896
|
+
<a name="M000236"></a><b>symbolize_keys</b>(&filter)
|
2897
|
+
</div>
|
2898
|
+
<div class="description">
|
2899
|
+
<p>
|
2900
|
+
Converts all keys in the <a href="Hash.html">Hash</a> to Symbols, returning
|
2901
|
+
a new <a href="Hash.html">Hash</a>. With a <tt>filter</tt>, limits
|
2902
|
+
conversion to only a certain selection of keys.
|
2903
|
+
</p>
|
2904
|
+
<pre>
|
2905
|
+
foo = { :name=>'Gavin', 'wife'=>:Lisa }
|
2906
|
+
foo.symbolize_keys #=> { :name=>"Gavin", :wife=>:Lisa }
|
2907
|
+
foo.inspect #=> { "name" =>"Gavin", "wife"=>:Lisa }
|
2908
|
+
</pre>
|
2909
|
+
<p>
|
2910
|
+
This method is considered archaic. Use <a
|
2911
|
+
href="Hash.html#M000188">rekey</a> instead.
|
2912
|
+
</p>
|
2913
|
+
</div>
|
2914
|
+
<div class="sourcecode">
|
2915
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000236_source')" id="l_M000236_source">show source</a> ]</p>
|
2916
|
+
<div id="M000236_source" class="dyn-source">
|
2917
|
+
<pre>
|
2918
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 14</span>
|
2919
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">symbolize_keys</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">filter</span>)
|
2920
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filter</span>
|
2921
|
+
<span class="ruby-identifier">rekey</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filter</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> }
|
2922
|
+
<span class="ruby-keyword kw">else</span>
|
2923
|
+
<span class="ruby-identifier">rekey</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span> }
|
2924
|
+
<span class="ruby-keyword kw">end</span>
|
2925
|
+
<span class="ruby-keyword kw">end</span>
|
2926
|
+
</pre>
|
2927
|
+
</div>
|
2928
|
+
</div>
|
2929
|
+
</div>
|
2930
|
+
<div class="method">
|
2931
|
+
<div class="title">
|
2932
|
+
<a name="M000177"></a><b>symbolize_keys</b>(&filter)
|
2933
|
+
</div>
|
2934
|
+
<div class="description">
|
2935
|
+
<p>
|
2936
|
+
Converts all keys in the <a href="Hash.html">Hash</a> to Symbols, returning
|
2937
|
+
a new <a href="Hash.html">Hash</a>. With a <tt>filter</tt>, limits
|
2938
|
+
conversion to only a certain selection of keys.
|
2939
|
+
</p>
|
2940
|
+
<pre>
|
2941
|
+
foo = { :name=>'Gavin', 'wife'=>:Lisa }
|
2942
|
+
foo.symbolize_keys #=> { :name=>"Gavin", :wife=>:Lisa }
|
2943
|
+
foo.inspect #=> { "name" =>"Gavin", "wife"=>:Lisa }
|
2944
|
+
</pre>
|
2945
|
+
<p>
|
2946
|
+
This method is considered archaic. Use <a
|
2947
|
+
href="Hash.html#M000188">rekey</a> instead.
|
2948
|
+
</p>
|
2949
|
+
</div>
|
2950
|
+
<div class="aka">
|
2951
|
+
This method is also aliased as
|
2952
|
+
<a href="Hash.html#M000178">keys_to_sym</a>
|
2953
|
+
<a href="Hash.html#M000237">keys_to_sym</a>
|
2954
|
+
</div>
|
2955
|
+
<div class="sourcecode">
|
2956
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000177_source')" id="l_M000177_source">show source</a> ]</p>
|
2957
|
+
<div id="M000177_source" class="dyn-source">
|
2958
|
+
<pre>
|
2959
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 14</span>
|
2960
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">symbolize_keys</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">filter</span>)
|
2961
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filter</span>
|
2962
|
+
<span class="ruby-identifier">rekey</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filter</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> }
|
2963
|
+
<span class="ruby-keyword kw">else</span>
|
2964
|
+
<span class="ruby-identifier">rekey</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span> }
|
2965
|
+
<span class="ruby-keyword kw">end</span>
|
2966
|
+
<span class="ruby-keyword kw">end</span>
|
2967
|
+
</pre>
|
2968
|
+
</div>
|
2969
|
+
</div>
|
2970
|
+
</div>
|
2971
|
+
<div class="method">
|
2972
|
+
<div class="title">
|
2973
|
+
<a name="M000179"></a><b>symbolize_keys!</b>(&filter)
|
2974
|
+
</div>
|
2975
|
+
<div class="description">
|
2976
|
+
<p>
|
2977
|
+
Synonym for <a href="Hash.html#M000177">Hash#symbolize_keys</a>, but
|
2978
|
+
modifies the receiver in place and returns it. With a <tt>filter</tt>
|
2979
|
+
parameter, limits conversion to only a certain selection of keys.
|
2980
|
+
</p>
|
2981
|
+
<pre>
|
2982
|
+
foo = { 'name'=>'Gavin', 'wife'=>:Lisa }
|
2983
|
+
foo.symbolize_keys! #=> { :name=>"Gavin", :wife=>:Lisa }
|
2984
|
+
foo.inspect #=> { :name=>"Gavin", :wife=>:Lisa }
|
2985
|
+
</pre>
|
2986
|
+
<p>
|
2987
|
+
This method is considered archaic. Use <a
|
2988
|
+
href="Hash.html#M000188">rekey</a> instead.
|
2989
|
+
</p>
|
2990
|
+
</div>
|
2991
|
+
<div class="aka">
|
2992
|
+
This method is also aliased as
|
2993
|
+
<a href="Hash.html#M000180">keys_to_sym!</a>
|
2994
|
+
<a href="Hash.html#M000239">keys_to_sym!</a>
|
2995
|
+
</div>
|
2996
|
+
<div class="sourcecode">
|
2997
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000179_source')" id="l_M000179_source">show source</a> ]</p>
|
2998
|
+
<div id="M000179_source" class="dyn-source">
|
2999
|
+
<pre>
|
3000
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 39</span>
|
3001
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">symbolize_keys!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">filter</span>)
|
3002
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filter</span>
|
3003
|
+
<span class="ruby-identifier">rekey!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filter</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> }
|
3004
|
+
<span class="ruby-keyword kw">else</span>
|
3005
|
+
<span class="ruby-identifier">rekey!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span> }
|
3006
|
+
<span class="ruby-keyword kw">end</span>
|
3007
|
+
|
3008
|
+
<span class="ruby-keyword kw">end</span>
|
3009
|
+
</pre>
|
3010
|
+
</div>
|
3011
|
+
</div>
|
3012
|
+
</div>
|
3013
|
+
<div class="method">
|
3014
|
+
<div class="title">
|
3015
|
+
<a name="M000238"></a><b>symbolize_keys!</b>(&filter)
|
3016
|
+
</div>
|
3017
|
+
<div class="description">
|
3018
|
+
<p>
|
3019
|
+
Synonym for <a href="Hash.html#M000177">Hash#symbolize_keys</a>, but
|
3020
|
+
modifies the receiver in place and returns it. With a <tt>filter</tt>
|
3021
|
+
parameter, limits conversion to only a certain selection of keys.
|
3022
|
+
</p>
|
3023
|
+
<pre>
|
3024
|
+
foo = { 'name'=>'Gavin', 'wife'=>:Lisa }
|
3025
|
+
foo.symbolize_keys! #=> { :name=>"Gavin", :wife=>:Lisa }
|
3026
|
+
foo.inspect #=> { :name=>"Gavin", :wife=>:Lisa }
|
3027
|
+
</pre>
|
3028
|
+
<p>
|
3029
|
+
This method is considered archaic. Use <a
|
3030
|
+
href="Hash.html#M000188">rekey</a> instead.
|
3031
|
+
</p>
|
3032
|
+
</div>
|
3033
|
+
<div class="sourcecode">
|
3034
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000238_source')" id="l_M000238_source">show source</a> ]</p>
|
3035
|
+
<div id="M000238_source" class="dyn-source">
|
3036
|
+
<pre>
|
3037
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 39</span>
|
3038
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">symbolize_keys!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">filter</span>)
|
3039
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filter</span>
|
3040
|
+
<span class="ruby-identifier">rekey!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filter</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> }
|
3041
|
+
<span class="ruby-keyword kw">else</span>
|
3042
|
+
<span class="ruby-identifier">rekey!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span> }
|
3043
|
+
<span class="ruby-keyword kw">end</span>
|
3044
|
+
|
3045
|
+
<span class="ruby-keyword kw">end</span>
|
3046
|
+
</pre>
|
3047
|
+
</div>
|
3048
|
+
</div>
|
3049
|
+
</div>
|
3050
|
+
<div class="method">
|
3051
|
+
<div class="title">
|
3052
|
+
<a name="M000131"></a><b>to_h</b>()
|
3053
|
+
</div>
|
3054
|
+
<div class="description">
|
3055
|
+
<p>
|
3056
|
+
Return a rehashing of <em>self</em>.
|
3057
|
+
</p>
|
3058
|
+
<pre>
|
3059
|
+
{"a"=>1,"b"=>2}.to_h #=> {"b"=>2,"a"=>1}
|
3060
|
+
</pre>
|
3061
|
+
<p>
|
3062
|
+
CREDIT: Forian Gross
|
3063
|
+
</p>
|
3064
|
+
</div>
|
3065
|
+
<div class="sourcecode">
|
3066
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000131_source')" id="l_M000131_source">show source</a> ]</p>
|
3067
|
+
<div id="M000131_source" class="dyn-source">
|
3068
|
+
<pre>
|
3069
|
+
<span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 54</span>
|
3070
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>; <span class="ruby-identifier">rehash</span>; <span class="ruby-keyword kw">end</span>
|
3071
|
+
</pre>
|
3072
|
+
</div>
|
3073
|
+
</div>
|
3074
|
+
</div>
|
3075
|
+
<div class="method">
|
3076
|
+
<div class="title">
|
3077
|
+
<a name="M000162"></a><b>to_proc</b>()
|
3078
|
+
</div>
|
3079
|
+
<div class="description">
|
3080
|
+
<p>
|
3081
|
+
Constructs a <a href="Proc.html">Proc</a> object from a hash such that the
|
3082
|
+
parameter of the <a href="Proc.html">Proc</a> is assigned the hash keys as
|
3083
|
+
attributes.
|
3084
|
+
</p>
|
3085
|
+
<pre>
|
3086
|
+
h = { :a => 1 }
|
3087
|
+
p = h.to_proc
|
3088
|
+
o = OpenStruct.new
|
3089
|
+
p.call(o)
|
3090
|
+
o.a #=> 1
|
3091
|
+
</pre>
|
3092
|
+
<p>
|
3093
|
+
CREDIT: Trans
|
3094
|
+
</p>
|
3095
|
+
</div>
|
3096
|
+
<div class="sourcecode">
|
3097
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000162_source')" id="l_M000162_source">show source</a> ]</p>
|
3098
|
+
<div id="M000162_source" class="dyn-source">
|
3099
|
+
<pre>
|
3100
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/to_proc.rb, line 15</span>
|
3101
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc</span>
|
3102
|
+
<span class="ruby-identifier">lambda</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">o</span><span class="ruby-operator">|</span>
|
3103
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
3104
|
+
<span class="ruby-identifier">ke</span> = <span class="ruby-node">"#{k}="</span>
|
3105
|
+
<span class="ruby-identifier">o</span>.<span class="ruby-identifier">__send__</span>(<span class="ruby-identifier">ke</span>, <span class="ruby-identifier">v</span>)
|
3106
|
+
<span class="ruby-keyword kw">end</span>
|
3107
|
+
<span class="ruby-keyword kw">end</span>
|
3108
|
+
<span class="ruby-keyword kw">end</span>
|
3109
|
+
</pre>
|
3110
|
+
</div>
|
3111
|
+
</div>
|
3112
|
+
</div>
|
3113
|
+
<div class="method">
|
3114
|
+
<div class="title">
|
3115
|
+
<a name="M000221"></a><b>to_proc</b>()
|
3116
|
+
</div>
|
3117
|
+
<div class="description">
|
3118
|
+
<p>
|
3119
|
+
Constructs a <a href="Proc.html">Proc</a> object from a hash such that the
|
3120
|
+
parameter of the <a href="Proc.html">Proc</a> is assigned the hash keys as
|
3121
|
+
attributes.
|
3122
|
+
</p>
|
3123
|
+
<pre>
|
3124
|
+
h = { :a => 1 }
|
3125
|
+
p = h.to_proc
|
3126
|
+
o = OpenStruct.new
|
3127
|
+
p.call(o)
|
3128
|
+
o.a #=> 1
|
3129
|
+
</pre>
|
3130
|
+
<p>
|
3131
|
+
CREDIT: Trans
|
3132
|
+
</p>
|
3133
|
+
</div>
|
3134
|
+
<div class="sourcecode">
|
3135
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000221_source')" id="l_M000221_source">show source</a> ]</p>
|
3136
|
+
<div id="M000221_source" class="dyn-source">
|
3137
|
+
<pre>
|
3138
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/to_proc.rb, line 15</span>
|
3139
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc</span>
|
3140
|
+
<span class="ruby-identifier">lambda</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">o</span><span class="ruby-operator">|</span>
|
3141
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
3142
|
+
<span class="ruby-identifier">ke</span> = <span class="ruby-node">"#{k}="</span>
|
3143
|
+
<span class="ruby-identifier">o</span>.<span class="ruby-identifier">__send__</span>(<span class="ruby-identifier">ke</span>, <span class="ruby-identifier">v</span>)
|
3144
|
+
<span class="ruby-keyword kw">end</span>
|
3145
|
+
<span class="ruby-keyword kw">end</span>
|
3146
|
+
<span class="ruby-keyword kw">end</span>
|
3147
|
+
</pre>
|
3148
|
+
</div>
|
3149
|
+
</div>
|
3150
|
+
</div>
|
3151
|
+
<div class="method">
|
3152
|
+
<div class="title">
|
3153
|
+
<a name="M000222"></a><b>to_proc_with_reponse</b>()
|
3154
|
+
</div>
|
3155
|
+
<div class="description">
|
3156
|
+
<p>
|
3157
|
+
A fault-tolerent version of <a href="Hash.html#M000162">to_proc</a>.
|
3158
|
+
</p>
|
3159
|
+
<p>
|
3160
|
+
It works just like <a href="Hash.html#M000162">to_proc</a>, but the block
|
3161
|
+
will make sure# the object responds to the assignment.
|
3162
|
+
</p>
|
3163
|
+
<p>
|
3164
|
+
CREDIT: Trans
|
3165
|
+
</p>
|
3166
|
+
</div>
|
3167
|
+
<div class="sourcecode">
|
3168
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000222_source')" id="l_M000222_source">show source</a> ]</p>
|
3169
|
+
<div id="M000222_source" class="dyn-source">
|
3170
|
+
<pre>
|
3171
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/to_proc.rb, line 31</span>
|
3172
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc_with_reponse</span>
|
3173
|
+
<span class="ruby-identifier">lambda</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">o</span><span class="ruby-operator">|</span>
|
3174
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
3175
|
+
<span class="ruby-identifier">ke</span> = <span class="ruby-node">"#{k}="</span>
|
3176
|
+
<span class="ruby-identifier">o</span>.<span class="ruby-identifier">__send__</span>(<span class="ruby-identifier">ke</span>, <span class="ruby-identifier">v</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">ke</span>)
|
3177
|
+
<span class="ruby-keyword kw">end</span>
|
3178
|
+
<span class="ruby-keyword kw">end</span>
|
3179
|
+
<span class="ruby-keyword kw">end</span>
|
3180
|
+
</pre>
|
3181
|
+
</div>
|
3182
|
+
</div>
|
3183
|
+
</div>
|
3184
|
+
<div class="method">
|
3185
|
+
<div class="title">
|
3186
|
+
<a name="M000163"></a><b>to_proc_with_reponse</b>()
|
3187
|
+
</div>
|
3188
|
+
<div class="description">
|
3189
|
+
<p>
|
3190
|
+
A fault-tolerent version of <a href="Hash.html#M000162">to_proc</a>.
|
3191
|
+
</p>
|
3192
|
+
<p>
|
3193
|
+
It works just like <a href="Hash.html#M000162">to_proc</a>, but the block
|
3194
|
+
will make sure# the object responds to the assignment.
|
3195
|
+
</p>
|
3196
|
+
<p>
|
3197
|
+
CREDIT: Trans
|
3198
|
+
</p>
|
3199
|
+
</div>
|
3200
|
+
<div class="sourcecode">
|
3201
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000163_source')" id="l_M000163_source">show source</a> ]</p>
|
3202
|
+
<div id="M000163_source" class="dyn-source">
|
3203
|
+
<pre>
|
3204
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/to_proc.rb, line 31</span>
|
3205
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc_with_reponse</span>
|
3206
|
+
<span class="ruby-identifier">lambda</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">o</span><span class="ruby-operator">|</span>
|
3207
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
3208
|
+
<span class="ruby-identifier">ke</span> = <span class="ruby-node">"#{k}="</span>
|
3209
|
+
<span class="ruby-identifier">o</span>.<span class="ruby-identifier">__send__</span>(<span class="ruby-identifier">ke</span>, <span class="ruby-identifier">v</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">ke</span>)
|
3210
|
+
<span class="ruby-keyword kw">end</span>
|
3211
|
+
<span class="ruby-keyword kw">end</span>
|
3212
|
+
<span class="ruby-keyword kw">end</span>
|
3213
|
+
</pre>
|
3214
|
+
</div>
|
3215
|
+
</div>
|
3216
|
+
</div>
|
3217
|
+
<div class="method">
|
3218
|
+
<div class="title">
|
3219
|
+
<a name="M000235"></a><b>to_struct</b>(struct_name)
|
3220
|
+
</div>
|
3221
|
+
<div class="description">
|
3222
|
+
<p>
|
3223
|
+
A method to convert a <a href="Hash.html">Hash</a> into a Struct.
|
3224
|
+
</p>
|
3225
|
+
<pre>
|
3226
|
+
h = {:name=>"Dan","age"=>33,"rank"=>"SrA","grade"=>"E4"}
|
3227
|
+
s = h.to_struct("Foo")
|
3228
|
+
</pre>
|
3229
|
+
<p>
|
3230
|
+
TODO: Is this robust enough considerd hashes aren‘t ordered?
|
3231
|
+
</p>
|
3232
|
+
<pre>
|
3233
|
+
CREDIT: Daniel Berger
|
3234
|
+
</pre>
|
3235
|
+
</div>
|
3236
|
+
<div class="sourcecode">
|
3237
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000235_source')" id="l_M000235_source">show source</a> ]</p>
|
3238
|
+
<div id="M000235_source" class="dyn-source">
|
3239
|
+
<pre>
|
3240
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/to_struct.rb, line 12</span>
|
3241
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_struct</span>(<span class="ruby-identifier">struct_name</span>)
|
3242
|
+
<span class="ruby-constant">Struct</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">struct_name</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">keys</span>).<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">values</span>)
|
3243
|
+
<span class="ruby-keyword kw">end</span>
|
3244
|
+
</pre>
|
3245
|
+
</div>
|
3246
|
+
</div>
|
3247
|
+
</div>
|
3248
|
+
<div class="method">
|
3249
|
+
<div class="title">
|
3250
|
+
<a name="M000176"></a><b>to_struct</b>(struct_name)
|
3251
|
+
</div>
|
3252
|
+
<div class="description">
|
3253
|
+
<p>
|
3254
|
+
A method to convert a <a href="Hash.html">Hash</a> into a Struct.
|
3255
|
+
</p>
|
3256
|
+
<pre>
|
3257
|
+
h = {:name=>"Dan","age"=>33,"rank"=>"SrA","grade"=>"E4"}
|
3258
|
+
s = h.to_struct("Foo")
|
3259
|
+
</pre>
|
3260
|
+
<p>
|
3261
|
+
TODO: Is this robust enough considerd hashes aren‘t ordered?
|
3262
|
+
</p>
|
3263
|
+
<pre>
|
3264
|
+
CREDIT: Daniel Berger
|
3265
|
+
</pre>
|
3266
|
+
</div>
|
3267
|
+
<div class="sourcecode">
|
3268
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000176_source')" id="l_M000176_source">show source</a> ]</p>
|
3269
|
+
<div id="M000176_source" class="dyn-source">
|
3270
|
+
<pre>
|
3271
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/to_struct.rb, line 12</span>
|
3272
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_struct</span>(<span class="ruby-identifier">struct_name</span>)
|
3273
|
+
<span class="ruby-constant">Struct</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">struct_name</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">keys</span>).<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">values</span>)
|
3274
|
+
<span class="ruby-keyword kw">end</span>
|
3275
|
+
</pre>
|
3276
|
+
</div>
|
3277
|
+
</div>
|
3278
|
+
</div>
|
3279
|
+
<div class="method">
|
3280
|
+
<div class="title">
|
3281
|
+
<a name="M000152"></a><b>traverse</b>(&b)
|
3282
|
+
</div>
|
3283
|
+
<div class="description">
|
3284
|
+
<p>
|
3285
|
+
Returns a new hash created by traversing the hash and its subhashes,
|
3286
|
+
executing the given block on the key and value. The block should return a
|
3287
|
+
2-element array of the form +[key, value]+.
|
3288
|
+
</p>
|
3289
|
+
<pre>
|
3290
|
+
h = { "A"=>"A", "B"=>"B" }
|
3291
|
+
g = h.traverse { |k,v| [k.downcase, v] }
|
3292
|
+
g #=> { "a"=>"A", "b"=>"B" }
|
3293
|
+
</pre>
|
3294
|
+
<p>
|
3295
|
+
TODO: Contrast these to recursibely —we may not need both.
|
3296
|
+
</p>
|
3297
|
+
<p>
|
3298
|
+
TODO: Testing value to see if it is a <a href="Hash.html">Hash</a> also
|
3299
|
+
catches subclasses of <a href="Hash.html">Hash</a>.
|
3300
|
+
</p>
|
3301
|
+
<pre>
|
3302
|
+
This is probably not the right thing to do and should catch Hashes only (?)
|
3303
|
+
|
3304
|
+
CREDIT: Trans
|
3305
|
+
</pre>
|
3306
|
+
</div>
|
3307
|
+
<div class="sourcecode">
|
3308
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000152_source')" id="l_M000152_source">show source</a> ]</p>
|
3309
|
+
<div id="M000152_source" class="dyn-source">
|
3310
|
+
<pre>
|
3311
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/traverse.rb, line 18</span>
|
3312
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
3313
|
+
<span class="ruby-identifier">inject</span>({}) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">h</span>,(<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>)<span class="ruby-operator">|</span>
|
3314
|
+
<span class="ruby-identifier">v</span> = ( <span class="ruby-constant">Hash</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">v</span> <span class="ruby-value">? </span><span class="ruby-identifier">v</span>.<span class="ruby-identifier">traverse</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">v</span> )
|
3315
|
+
<span class="ruby-identifier">nk</span>, <span class="ruby-identifier">nv</span> = <span class="ruby-identifier">b</span>[<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>]
|
3316
|
+
<span class="ruby-identifier">h</span>[<span class="ruby-identifier">nk</span>] = <span class="ruby-identifier">nv</span> <span class="ruby-comment cmt">#( Hash === v ? v.traverse(base,&b) : nv )</span>
|
3317
|
+
<span class="ruby-identifier">h</span>
|
3318
|
+
<span class="ruby-keyword kw">end</span>
|
3319
|
+
<span class="ruby-keyword kw">end</span>
|
3320
|
+
</pre>
|
3321
|
+
</div>
|
3322
|
+
</div>
|
3323
|
+
</div>
|
3324
|
+
<div class="method">
|
3325
|
+
<div class="title">
|
3326
|
+
<a name="M000211"></a><b>traverse</b>(&b)
|
3327
|
+
</div>
|
3328
|
+
<div class="description">
|
3329
|
+
<p>
|
3330
|
+
Returns a new hash created by traversing the hash and its subhashes,
|
3331
|
+
executing the given block on the key and value. The block should return a
|
3332
|
+
2-element array of the form +[key, value]+.
|
3333
|
+
</p>
|
3334
|
+
<pre>
|
3335
|
+
h = { "A"=>"A", "B"=>"B" }
|
3336
|
+
g = h.traverse { |k,v| [k.downcase, v] }
|
3337
|
+
g #=> { "a"=>"A", "b"=>"B" }
|
3338
|
+
</pre>
|
3339
|
+
<p>
|
3340
|
+
TODO: Contrast these to recursibely —we may not need both.
|
3341
|
+
</p>
|
3342
|
+
<p>
|
3343
|
+
TODO: Testing value to see if it is a <a href="Hash.html">Hash</a> also
|
3344
|
+
catches subclasses of <a href="Hash.html">Hash</a>.
|
3345
|
+
</p>
|
3346
|
+
<pre>
|
3347
|
+
This is probably not the right thing to do and should catch Hashes only (?)
|
3348
|
+
|
3349
|
+
CREDIT: Trans
|
3350
|
+
</pre>
|
3351
|
+
</div>
|
3352
|
+
<div class="sourcecode">
|
3353
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000211_source')" id="l_M000211_source">show source</a> ]</p>
|
3354
|
+
<div id="M000211_source" class="dyn-source">
|
3355
|
+
<pre>
|
3356
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/traverse.rb, line 18</span>
|
3357
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
3358
|
+
<span class="ruby-identifier">inject</span>({}) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">h</span>,(<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>)<span class="ruby-operator">|</span>
|
3359
|
+
<span class="ruby-identifier">v</span> = ( <span class="ruby-constant">Hash</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">v</span> <span class="ruby-value">? </span><span class="ruby-identifier">v</span>.<span class="ruby-identifier">traverse</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">v</span> )
|
3360
|
+
<span class="ruby-identifier">nk</span>, <span class="ruby-identifier">nv</span> = <span class="ruby-identifier">b</span>[<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>]
|
3361
|
+
<span class="ruby-identifier">h</span>[<span class="ruby-identifier">nk</span>] = <span class="ruby-identifier">nv</span> <span class="ruby-comment cmt">#( Hash === v ? v.traverse(base,&b) : nv )</span>
|
3362
|
+
<span class="ruby-identifier">h</span>
|
3363
|
+
<span class="ruby-keyword kw">end</span>
|
3364
|
+
<span class="ruby-keyword kw">end</span>
|
3365
|
+
</pre>
|
3366
|
+
</div>
|
3367
|
+
</div>
|
3368
|
+
</div>
|
3369
|
+
<div class="method">
|
3370
|
+
<div class="title">
|
3371
|
+
<a name="M000212"></a><b>traverse!</b>(&b)
|
3372
|
+
</div>
|
3373
|
+
<div class="description">
|
3374
|
+
<p>
|
3375
|
+
In place version of <a href="Hash.html#M000152">traverse</a>, which
|
3376
|
+
traverses the hash and its subhashes, executing the given block on the key
|
3377
|
+
and value.
|
3378
|
+
</p>
|
3379
|
+
<pre>
|
3380
|
+
h = { "A"=>"A", "B"=>"B" }
|
3381
|
+
h.traverse! { |k,v| [k.downcase, v] }
|
3382
|
+
h #=> { "a"=>"A", "b"=>"B" }
|
3383
|
+
|
3384
|
+
CREDIT: Trans
|
3385
|
+
</pre>
|
3386
|
+
</div>
|
3387
|
+
<div class="sourcecode">
|
3388
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000212_source')" id="l_M000212_source">show source</a> ]</p>
|
3389
|
+
<div id="M000212_source" class="dyn-source">
|
3390
|
+
<pre>
|
3391
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/traverse.rb, line 36</span>
|
3392
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
3393
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">replace</span>( <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">traverse</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>) )
|
3394
|
+
<span class="ruby-keyword kw">end</span>
|
3395
|
+
</pre>
|
3396
|
+
</div>
|
3397
|
+
</div>
|
3398
|
+
</div>
|
3399
|
+
<div class="method">
|
3400
|
+
<div class="title">
|
3401
|
+
<a name="M000153"></a><b>traverse!</b>(&b)
|
3402
|
+
</div>
|
3403
|
+
<div class="description">
|
3404
|
+
<p>
|
3405
|
+
In place version of <a href="Hash.html#M000152">traverse</a>, which
|
3406
|
+
traverses the hash and its subhashes, executing the given block on the key
|
3407
|
+
and value.
|
3408
|
+
</p>
|
3409
|
+
<pre>
|
3410
|
+
h = { "A"=>"A", "B"=>"B" }
|
3411
|
+
h.traverse! { |k,v| [k.downcase, v] }
|
3412
|
+
h #=> { "a"=>"A", "b"=>"B" }
|
3413
|
+
|
3414
|
+
CREDIT: Trans
|
3415
|
+
</pre>
|
3416
|
+
</div>
|
3417
|
+
<div class="sourcecode">
|
3418
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000153_source')" id="l_M000153_source">show source</a> ]</p>
|
3419
|
+
<div id="M000153_source" class="dyn-source">
|
3420
|
+
<pre>
|
3421
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/traverse.rb, line 36</span>
|
3422
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
3423
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">replace</span>( <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">traverse</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>) )
|
3424
|
+
<span class="ruby-keyword kw">end</span>
|
3425
|
+
</pre>
|
3426
|
+
</div>
|
3427
|
+
</div>
|
3428
|
+
</div>
|
3429
|
+
<div class="method">
|
3430
|
+
<div class="title">
|
3431
|
+
<a name="M000134"></a><b>update_each</b>( {|| ...}
|
3432
|
+
</div>
|
3433
|
+
<div class="description">
|
3434
|
+
<p>
|
3435
|
+
Iterates through each pair and updates a the hash in place. This is
|
3436
|
+
formally equivalent to mash! But does not use mash to accomplish the task.
|
3437
|
+
Hence <a href="Hash.html#M000134">update_each</a> is probably a touch
|
3438
|
+
faster.
|
3439
|
+
</p>
|
3440
|
+
<pre>
|
3441
|
+
CREDIT: Trans
|
3442
|
+
</pre>
|
3443
|
+
</div>
|
3444
|
+
<div class="sourcecode">
|
3445
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000134_source')" id="l_M000134_source">show source</a> ]</p>
|
3446
|
+
<div id="M000134_source" class="dyn-source">
|
3447
|
+
<pre>
|
3448
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 23</span>
|
3449
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_each</span> <span class="ruby-comment cmt"># :yield:</span>
|
3450
|
+
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
3451
|
+
<span class="ruby-identifier">update</span>(<span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>))
|
3452
|
+
<span class="ruby-keyword kw">end</span>
|
3453
|
+
<span class="ruby-keyword kw">self</span>
|
3454
|
+
<span class="ruby-keyword kw">end</span>
|
3455
|
+
</pre>
|
3456
|
+
</div>
|
3457
|
+
</div>
|
3458
|
+
</div>
|
3459
|
+
<div class="method">
|
3460
|
+
<div class="title">
|
3461
|
+
<a name="M000193"></a><b>update_each</b>( {|| ...}
|
3462
|
+
</div>
|
3463
|
+
<div class="description">
|
3464
|
+
<p>
|
3465
|
+
Iterates through each pair and updates a the hash in place. This is
|
3466
|
+
formally equivalent to mash! But does not use mash to accomplish the task.
|
3467
|
+
Hence <a href="Hash.html#M000134">update_each</a> is probably a touch
|
3468
|
+
faster.
|
3469
|
+
</p>
|
3470
|
+
<pre>
|
3471
|
+
CREDIT: Trans
|
3472
|
+
</pre>
|
3473
|
+
</div>
|
3474
|
+
<div class="sourcecode">
|
3475
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000193_source')" id="l_M000193_source">show source</a> ]</p>
|
3476
|
+
<div id="M000193_source" class="dyn-source">
|
3477
|
+
<pre>
|
3478
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 23</span>
|
3479
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_each</span> <span class="ruby-comment cmt"># :yield:</span>
|
3480
|
+
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
3481
|
+
<span class="ruby-identifier">update</span>(<span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>))
|
3482
|
+
<span class="ruby-keyword kw">end</span>
|
3483
|
+
<span class="ruby-keyword kw">self</span>
|
3484
|
+
<span class="ruby-keyword kw">end</span>
|
3485
|
+
</pre>
|
3486
|
+
</div>
|
3487
|
+
</div>
|
3488
|
+
</div>
|
3489
|
+
<div class="method">
|
3490
|
+
<div class="title">
|
3491
|
+
<a name="M000135"></a><b>update_keys</b>( {|| ...}
|
3492
|
+
</div>
|
3493
|
+
<div class="description">
|
3494
|
+
<p>
|
3495
|
+
Iterate over hash updating just the keys.
|
3496
|
+
</p>
|
3497
|
+
<pre>
|
3498
|
+
h = {:a=>1, :b=>2}
|
3499
|
+
h.update_keys{ |k| "#{k}!" }
|
3500
|
+
h #=> { "a!"=>1, "b!"=>2 }
|
3501
|
+
|
3502
|
+
CREDIT: Trans
|
3503
|
+
</pre>
|
3504
|
+
</div>
|
3505
|
+
<div class="sourcecode">
|
3506
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000135_source')" id="l_M000135_source">show source</a> ]</p>
|
3507
|
+
<div id="M000135_source" class="dyn-source">
|
3508
|
+
<pre>
|
3509
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 38</span>
|
3510
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_keys</span> <span class="ruby-comment cmt">#:yield:</span>
|
3511
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
3512
|
+
<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">old_key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">store</span>(<span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">old_key</span>), <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">old_key</span>)) }
|
3513
|
+
<span class="ruby-keyword kw">else</span>
|
3514
|
+
<span class="ruby-identifier">to_enum</span>(<span class="ruby-identifier">:update_keys</span>)
|
3515
|
+
<span class="ruby-keyword kw">end</span>
|
3516
|
+
<span class="ruby-keyword kw">end</span>
|
3517
|
+
</pre>
|
3518
|
+
</div>
|
3519
|
+
</div>
|
3520
|
+
</div>
|
3521
|
+
<div class="method">
|
3522
|
+
<div class="title">
|
3523
|
+
<a name="M000194"></a><b>update_keys</b>( {|| ...}
|
3524
|
+
</div>
|
3525
|
+
<div class="description">
|
3526
|
+
<p>
|
3527
|
+
Iterate over hash updating just the keys.
|
3528
|
+
</p>
|
3529
|
+
<pre>
|
3530
|
+
h = {:a=>1, :b=>2}
|
3531
|
+
h.update_keys{ |k| "#{k}!" }
|
3532
|
+
h #=> { "a!"=>1, "b!"=>2 }
|
3533
|
+
|
3534
|
+
CREDIT: Trans
|
3535
|
+
</pre>
|
3536
|
+
</div>
|
3537
|
+
<div class="sourcecode">
|
3538
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000194_source')" id="l_M000194_source">show source</a> ]</p>
|
3539
|
+
<div id="M000194_source" class="dyn-source">
|
3540
|
+
<pre>
|
3541
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 38</span>
|
3542
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_keys</span> <span class="ruby-comment cmt">#:yield:</span>
|
3543
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
3544
|
+
<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">old_key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">store</span>(<span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">old_key</span>), <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">old_key</span>)) }
|
3545
|
+
<span class="ruby-keyword kw">else</span>
|
3546
|
+
<span class="ruby-identifier">to_enum</span>(<span class="ruby-identifier">:update_keys</span>)
|
3547
|
+
<span class="ruby-keyword kw">end</span>
|
3548
|
+
<span class="ruby-keyword kw">end</span>
|
3549
|
+
</pre>
|
3550
|
+
</div>
|
3551
|
+
</div>
|
3552
|
+
</div>
|
3553
|
+
<div class="method">
|
3554
|
+
<div class="title">
|
3555
|
+
<a name="M000136"></a><b>update_values</b>( {|| ...}
|
3556
|
+
</div>
|
3557
|
+
<div class="description">
|
3558
|
+
<p>
|
3559
|
+
Iterate over hash updating just the values.
|
3560
|
+
</p>
|
3561
|
+
<pre>
|
3562
|
+
h = {:a=>1, :b=>2}
|
3563
|
+
h.update_values{ |v| v+1 }
|
3564
|
+
h #=> { a:=>2, :b=>3 }
|
3565
|
+
|
3566
|
+
CREDIT: Trans
|
3567
|
+
</pre>
|
3568
|
+
</div>
|
3569
|
+
<div class="sourcecode">
|
3570
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000136_source')" id="l_M000136_source">show source</a> ]</p>
|
3571
|
+
<div id="M000136_source" class="dyn-source">
|
3572
|
+
<pre>
|
3573
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 54</span>
|
3574
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_values</span> <span class="ruby-comment cmt">#:yield:</span>
|
3575
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
3576
|
+
<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">store</span>(<span class="ruby-identifier">k</span>, <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">v</span>)) }
|
3577
|
+
<span class="ruby-keyword kw">else</span>
|
3578
|
+
<span class="ruby-identifier">to_enum</span>(<span class="ruby-identifier">:update_values</span>)
|
3579
|
+
<span class="ruby-keyword kw">end</span>
|
3580
|
+
<span class="ruby-keyword kw">end</span>
|
3581
|
+
</pre>
|
3582
|
+
</div>
|
3583
|
+
</div>
|
3584
|
+
</div>
|
3585
|
+
<div class="method">
|
3586
|
+
<div class="title">
|
3587
|
+
<a name="M000195"></a><b>update_values</b>( {|| ...}
|
3588
|
+
</div>
|
3589
|
+
<div class="description">
|
3590
|
+
<p>
|
3591
|
+
Iterate over hash updating just the values.
|
3592
|
+
</p>
|
3593
|
+
<pre>
|
3594
|
+
h = {:a=>1, :b=>2}
|
3595
|
+
h.update_values{ |v| v+1 }
|
3596
|
+
h #=> { a:=>2, :b=>3 }
|
3597
|
+
|
3598
|
+
CREDIT: Trans
|
3599
|
+
</pre>
|
3600
|
+
</div>
|
3601
|
+
<div class="sourcecode">
|
3602
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000195_source')" id="l_M000195_source">show source</a> ]</p>
|
3603
|
+
<div id="M000195_source" class="dyn-source">
|
3604
|
+
<pre>
|
3605
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 54</span>
|
3606
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_values</span> <span class="ruby-comment cmt">#:yield:</span>
|
3607
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
3608
|
+
<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">store</span>(<span class="ruby-identifier">k</span>, <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">v</span>)) }
|
3609
|
+
<span class="ruby-keyword kw">else</span>
|
3610
|
+
<span class="ruby-identifier">to_enum</span>(<span class="ruby-identifier">:update_values</span>)
|
3611
|
+
<span class="ruby-keyword kw">end</span>
|
3612
|
+
<span class="ruby-keyword kw">end</span>
|
3613
|
+
</pre>
|
3614
|
+
</div>
|
3615
|
+
</div>
|
3616
|
+
</div>
|
3617
|
+
<div class="method">
|
3618
|
+
<div class="title">
|
3619
|
+
<a name="M000233"></a><b>weave</b>(h)
|
3620
|
+
</div>
|
3621
|
+
<div class="description">
|
3622
|
+
<p>
|
3623
|
+
Weave is a very uniqe hash operator. I is designed to merge to complex
|
3624
|
+
hashes in according to sensible, regular pattern. The effect is akin to
|
3625
|
+
inheritance.
|
3626
|
+
</p>
|
3627
|
+
<p>
|
3628
|
+
Two hashes are weaved together to produce a new hash. The two hashes need
|
3629
|
+
to be compatible according to the following rules for each node:
|
3630
|
+
</p>
|
3631
|
+
<pre>
|
3632
|
+
<tt>
|
3633
|
+
hash, hash => hash (recursive +)
|
3634
|
+
hash, array => error
|
3635
|
+
hash, value => error
|
3636
|
+
array, hash => error
|
3637
|
+
array, array => array + array
|
3638
|
+
array, value => array << value
|
3639
|
+
value, hash => error
|
3640
|
+
value, array => array.unshift(valueB)
|
3641
|
+
value1, value2 => value2
|
3642
|
+
</tt>
|
3643
|
+
</pre>
|
3644
|
+
<p>
|
3645
|
+
Here is a basic example:
|
3646
|
+
</p>
|
3647
|
+
<pre>
|
3648
|
+
h1 = { :a => 1, :b => [ 1 ], :c => { :x => 1 } }
|
3649
|
+
=> {:b=>[1], :c=>{:x=>1}, :a=>1}
|
3650
|
+
|
3651
|
+
h2 = { :a => 2, :b => [ 2 ], :c => { :x => 2 } }
|
3652
|
+
=> {:b=>[2], :c=>{:x=>2}, :a=>2}
|
3653
|
+
|
3654
|
+
h1.weave(h2)
|
3655
|
+
=> {:b=>[1, 2], :c=>{:x=>2}, :a=>2}
|
3656
|
+
</pre>
|
3657
|
+
<p>
|
3658
|
+
Weave follows the most expected pattern of unifying two complex hashes. It
|
3659
|
+
is especially useful for implementing overridable configuration schemes.
|
3660
|
+
</p>
|
3661
|
+
<pre>
|
3662
|
+
CREDIT: Thomas Sawyer
|
3663
|
+
</pre>
|
3664
|
+
</div>
|
3665
|
+
<div class="sourcecode">
|
3666
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000233_source')" id="l_M000233_source">show source</a> ]</p>
|
3667
|
+
<div id="M000233_source" class="dyn-source">
|
3668
|
+
<pre>
|
3669
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/weave.rb, line 40</span>
|
3670
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">weave</span>(<span class="ruby-identifier">h</span>)
|
3671
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"Hash expected"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">h</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Hash</span>)
|
3672
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">clone</span>
|
3673
|
+
<span class="ruby-identifier">h</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">node</span><span class="ruby-operator">|</span>
|
3674
|
+
<span class="ruby-identifier">node_is_hash</span> = <span class="ruby-identifier">node</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Hash</span>)
|
3675
|
+
<span class="ruby-identifier">node_is_array</span> = <span class="ruby-identifier">node</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Array</span>)
|
3676
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">k</span>)
|
3677
|
+
<span class="ruby-identifier">self_node_is_hash</span> = <span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>].<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Hash</span>)
|
3678
|
+
<span class="ruby-identifier">self_node_is_array</span> = <span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>].<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Array</span>)
|
3679
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">self_node_is_hash</span>
|
3680
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">node_is_hash</span>
|
3681
|
+
<span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>].<span class="ruby-identifier">weave</span>(<span class="ruby-identifier">node</span>)
|
3682
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">node_is_array</span>
|
3683
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'Incompatible hash addition'</span> <span class="ruby-comment cmt">#self[k] = node</span>
|
3684
|
+
<span class="ruby-keyword kw">else</span>
|
3685
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'Incompatible hash addition'</span> <span class="ruby-comment cmt">#self[k] = node</span>
|
3686
|
+
<span class="ruby-keyword kw">end</span>
|
3687
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">self_node_is_array</span>
|
3688
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">node_is_hash</span>
|
3689
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'Incompatible hash addition'</span> <span class="ruby-comment cmt">#self[k] = node</span>
|
3690
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">node_is_array</span>
|
3691
|
+
<span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">+=</span> <span class="ruby-identifier">node</span>
|
3692
|
+
<span class="ruby-keyword kw">else</span>
|
3693
|
+
<span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator"><<</span> <span class="ruby-identifier">node</span>
|
3694
|
+
<span class="ruby-keyword kw">end</span>
|
3695
|
+
<span class="ruby-keyword kw">else</span>
|
3696
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">node_is_hash</span>
|
3697
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'Incompatible hash addition'</span> <span class="ruby-comment cmt">#self[k] = node</span>
|
3698
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">node_is_array</span>
|
3699
|
+
<span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>].<span class="ruby-identifier">unshift</span>( <span class="ruby-identifier">node</span> )
|
3700
|
+
<span class="ruby-keyword kw">else</span>
|
3701
|
+
<span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">node</span>
|
3702
|
+
<span class="ruby-keyword kw">end</span>
|
3703
|
+
<span class="ruby-keyword kw">end</span>
|
3704
|
+
<span class="ruby-keyword kw">else</span>
|
3705
|
+
<span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">node</span>
|
3706
|
+
<span class="ruby-keyword kw">end</span>
|
3707
|
+
}
|
3708
|
+
<span class="ruby-identifier">s</span>
|
3709
|
+
<span class="ruby-keyword kw">end</span>
|
3710
|
+
</pre>
|
3711
|
+
</div>
|
3712
|
+
</div>
|
3713
|
+
</div>
|
3714
|
+
<div class="method">
|
3715
|
+
<div class="title">
|
3716
|
+
<a name="M000174"></a><b>weave</b>(h)
|
3717
|
+
</div>
|
3718
|
+
<div class="description">
|
3719
|
+
<p>
|
3720
|
+
Weave is a very uniqe hash operator. I is designed to merge to complex
|
3721
|
+
hashes in according to sensible, regular pattern. The effect is akin to
|
3722
|
+
inheritance.
|
3723
|
+
</p>
|
3724
|
+
<p>
|
3725
|
+
Two hashes are weaved together to produce a new hash. The two hashes need
|
3726
|
+
to be compatible according to the following rules for each node:
|
3727
|
+
</p>
|
3728
|
+
<pre>
|
3729
|
+
<tt>
|
3730
|
+
hash, hash => hash (recursive +)
|
3731
|
+
hash, array => error
|
3732
|
+
hash, value => error
|
3733
|
+
array, hash => error
|
3734
|
+
array, array => array + array
|
3735
|
+
array, value => array << value
|
3736
|
+
value, hash => error
|
3737
|
+
value, array => array.unshift(valueB)
|
3738
|
+
value1, value2 => value2
|
3739
|
+
</tt>
|
3740
|
+
</pre>
|
3741
|
+
<p>
|
3742
|
+
Here is a basic example:
|
3743
|
+
</p>
|
3744
|
+
<pre>
|
3745
|
+
h1 = { :a => 1, :b => [ 1 ], :c => { :x => 1 } }
|
3746
|
+
=> {:b=>[1], :c=>{:x=>1}, :a=>1}
|
3747
|
+
|
3748
|
+
h2 = { :a => 2, :b => [ 2 ], :c => { :x => 2 } }
|
3749
|
+
=> {:b=>[2], :c=>{:x=>2}, :a=>2}
|
3750
|
+
|
3751
|
+
h1.weave(h2)
|
3752
|
+
=> {:b=>[1, 2], :c=>{:x=>2}, :a=>2}
|
3753
|
+
</pre>
|
3754
|
+
<p>
|
3755
|
+
Weave follows the most expected pattern of unifying two complex hashes. It
|
3756
|
+
is especially useful for implementing overridable configuration schemes.
|
3757
|
+
</p>
|
3758
|
+
<pre>
|
3759
|
+
CREDIT: Thomas Sawyer
|
3760
|
+
</pre>
|
3761
|
+
</div>
|
3762
|
+
<div class="sourcecode">
|
3763
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000174_source')" id="l_M000174_source">show source</a> ]</p>
|
3764
|
+
<div id="M000174_source" class="dyn-source">
|
3765
|
+
<pre>
|
3766
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/weave.rb, line 40</span>
|
3767
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">weave</span>(<span class="ruby-identifier">h</span>)
|
3768
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"Hash expected"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">h</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Hash</span>)
|
3769
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">clone</span>
|
3770
|
+
<span class="ruby-identifier">h</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">node</span><span class="ruby-operator">|</span>
|
3771
|
+
<span class="ruby-identifier">node_is_hash</span> = <span class="ruby-identifier">node</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Hash</span>)
|
3772
|
+
<span class="ruby-identifier">node_is_array</span> = <span class="ruby-identifier">node</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Array</span>)
|
3773
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">k</span>)
|
3774
|
+
<span class="ruby-identifier">self_node_is_hash</span> = <span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>].<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Hash</span>)
|
3775
|
+
<span class="ruby-identifier">self_node_is_array</span> = <span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>].<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Array</span>)
|
3776
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">self_node_is_hash</span>
|
3777
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">node_is_hash</span>
|
3778
|
+
<span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>].<span class="ruby-identifier">weave</span>(<span class="ruby-identifier">node</span>)
|
3779
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">node_is_array</span>
|
3780
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'Incompatible hash addition'</span> <span class="ruby-comment cmt">#self[k] = node</span>
|
3781
|
+
<span class="ruby-keyword kw">else</span>
|
3782
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'Incompatible hash addition'</span> <span class="ruby-comment cmt">#self[k] = node</span>
|
3783
|
+
<span class="ruby-keyword kw">end</span>
|
3784
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">self_node_is_array</span>
|
3785
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">node_is_hash</span>
|
3786
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'Incompatible hash addition'</span> <span class="ruby-comment cmt">#self[k] = node</span>
|
3787
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">node_is_array</span>
|
3788
|
+
<span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">+=</span> <span class="ruby-identifier">node</span>
|
3789
|
+
<span class="ruby-keyword kw">else</span>
|
3790
|
+
<span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator"><<</span> <span class="ruby-identifier">node</span>
|
3791
|
+
<span class="ruby-keyword kw">end</span>
|
3792
|
+
<span class="ruby-keyword kw">else</span>
|
3793
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">node_is_hash</span>
|
3794
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'Incompatible hash addition'</span> <span class="ruby-comment cmt">#self[k] = node</span>
|
3795
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">node_is_array</span>
|
3796
|
+
<span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>].<span class="ruby-identifier">unshift</span>( <span class="ruby-identifier">node</span> )
|
3797
|
+
<span class="ruby-keyword kw">else</span>
|
3798
|
+
<span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">node</span>
|
3799
|
+
<span class="ruby-keyword kw">end</span>
|
3800
|
+
<span class="ruby-keyword kw">end</span>
|
3801
|
+
<span class="ruby-keyword kw">else</span>
|
3802
|
+
<span class="ruby-identifier">s</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">node</span>
|
3803
|
+
<span class="ruby-keyword kw">end</span>
|
3804
|
+
}
|
3805
|
+
<span class="ruby-identifier">s</span>
|
3806
|
+
<span class="ruby-keyword kw">end</span>
|
3807
|
+
</pre>
|
3808
|
+
</div>
|
3809
|
+
</div>
|
3810
|
+
</div>
|
3811
|
+
<div class="method">
|
3812
|
+
<div class="title">
|
3813
|
+
<a name="M000214"></a><b>|</b>(other)
|
3814
|
+
</div>
|
3815
|
+
<div class="description">
|
3816
|
+
<p>
|
3817
|
+
Operator for <a href="Hash.html#M000149">reverse_merge</a>.
|
3818
|
+
</p>
|
3819
|
+
<pre>
|
3820
|
+
CREDIT: Trans
|
3821
|
+
</pre>
|
3822
|
+
</div>
|
3823
|
+
<div class="sourcecode">
|
3824
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000214_source')" id="l_M000214_source">show source</a> ]</p>
|
3825
|
+
<div id="M000214_source" class="dyn-source">
|
3826
|
+
<pre>
|
3827
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 36</span>
|
3828
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">|</span>(<span class="ruby-identifier">other</span>)
|
3829
|
+
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-keyword kw">self</span>)
|
3830
|
+
<span class="ruby-keyword kw">end</span>
|
3831
|
+
</pre>
|
3832
|
+
</div>
|
3833
|
+
</div>
|
3834
|
+
</div>
|
3835
|
+
<div class="method">
|
3836
|
+
<div class="title">
|
3837
|
+
<a name="M000155"></a><b>|</b>(other)
|
3838
|
+
</div>
|
3839
|
+
<div class="description">
|
3840
|
+
<p>
|
3841
|
+
Operator for <a href="Hash.html#M000149">reverse_merge</a>.
|
3842
|
+
</p>
|
3843
|
+
<pre>
|
3844
|
+
CREDIT: Trans
|
3845
|
+
</pre>
|
3846
|
+
</div>
|
3847
|
+
<div class="sourcecode">
|
3848
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000155_source')" id="l_M000155_source">show source</a> ]</p>
|
3849
|
+
<div id="M000155_source" class="dyn-source">
|
3850
|
+
<pre>
|
3851
|
+
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 36</span>
|
3852
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">|</span>(<span class="ruby-identifier">other</span>)
|
3853
|
+
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-keyword kw">self</span>)
|
3854
|
+
<span class="ruby-keyword kw">end</span>
|
3855
|
+
</pre>
|
3856
|
+
</div>
|
3857
|
+
</div>
|
3858
|
+
</div>
|
3859
|
+
</div>
|
3860
|
+
|
3861
|
+
</div>
|
3862
|
+
|
3863
|
+
</body>
|
3864
|
+
</html>
|