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,289 @@
|
|
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: Regexp</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 />Regexp</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/regexp/to_re_rb.html">lib/core/facets/regexp/to_re.rb</a>
|
61
|
+
<a href="../files/lib/core/facets/regexp/arity_rb.html">lib/core/facets/regexp/arity.rb</a>
|
62
|
+
<a href="../files/lib/core/facets/regexp/to_re_rb.html">lib/core/facets/regexp/to_re.rb</a>
|
63
|
+
<a href="../files/lib/core/facets/regexp/arity_rb.html">lib/core/facets/regexp/arity.rb</a>
|
64
|
+
</td>
|
65
|
+
</tr>
|
66
|
+
<tr>
|
67
|
+
<td>Parent:</td>
|
68
|
+
<td>
|
69
|
+
<a href="Object.html">
|
70
|
+
Object
|
71
|
+
</a>
|
72
|
+
</td>
|
73
|
+
</tr>
|
74
|
+
</table>
|
75
|
+
</td>
|
76
|
+
</tr>
|
77
|
+
</table>
|
78
|
+
<!-- banner header -->
|
79
|
+
|
80
|
+
<div id="bodyContent">
|
81
|
+
<div id="content">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
<div class="sectiontitle">Methods</div>
|
87
|
+
<ul>
|
88
|
+
<li><a href="#M000055">arity</a></li>
|
89
|
+
<li><a href="#M000052">arity</a></li>
|
90
|
+
<li><a href="#M000051">to_re</a></li>
|
91
|
+
<li><a href="#M000054">to_re</a></li>
|
92
|
+
<li><a href="#M000053">to_regexp</a></li>
|
93
|
+
<li><a href="#M000050">to_regexp</a></li>
|
94
|
+
</ul>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
<div class="sectiontitle">Public Instance methods</div>
|
102
|
+
<div class="method">
|
103
|
+
<div class="title">
|
104
|
+
<a name="M000055"></a><b>arity</b>()
|
105
|
+
</div>
|
106
|
+
<div class="description">
|
107
|
+
<p>
|
108
|
+
Returns the number of backreferencing subexpressions.
|
109
|
+
</p>
|
110
|
+
<pre>
|
111
|
+
/(a)(b)(c)/.arity #=> 3
|
112
|
+
/(a(b(c)))/.arity #=> 3
|
113
|
+
</pre>
|
114
|
+
<p>
|
115
|
+
Note that this is not perfect, especially with regards to \x and embedded
|
116
|
+
comments.
|
117
|
+
</p>
|
118
|
+
<pre>
|
119
|
+
CREDIT: Trans
|
120
|
+
</pre>
|
121
|
+
</div>
|
122
|
+
<div class="sourcecode">
|
123
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000055_source')" id="l_M000055_source">show source</a> ]</p>
|
124
|
+
<div id="M000055_source" class="dyn-source">
|
125
|
+
<pre>
|
126
|
+
<span class="ruby-comment cmt"># File lib/core/facets/regexp/arity.rb, line 13</span>
|
127
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">arity</span>
|
128
|
+
<span class="ruby-identifier">source</span>.<span class="ruby-identifier">scan</span>( <span class="ruby-regexp re">/(?!\\)[(](?!\?[#=:!>-imx])/</span> ).<span class="ruby-identifier">length</span>
|
129
|
+
<span class="ruby-keyword kw">end</span>
|
130
|
+
</pre>
|
131
|
+
</div>
|
132
|
+
</div>
|
133
|
+
</div>
|
134
|
+
<div class="method">
|
135
|
+
<div class="title">
|
136
|
+
<a name="M000052"></a><b>arity</b>()
|
137
|
+
</div>
|
138
|
+
<div class="description">
|
139
|
+
<p>
|
140
|
+
Returns the number of backreferencing subexpressions.
|
141
|
+
</p>
|
142
|
+
<pre>
|
143
|
+
/(a)(b)(c)/.arity #=> 3
|
144
|
+
/(a(b(c)))/.arity #=> 3
|
145
|
+
</pre>
|
146
|
+
<p>
|
147
|
+
Note that this is not perfect, especially with regards to \x and embedded
|
148
|
+
comments.
|
149
|
+
</p>
|
150
|
+
<pre>
|
151
|
+
CREDIT: Trans
|
152
|
+
</pre>
|
153
|
+
</div>
|
154
|
+
<div class="sourcecode">
|
155
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000052_source')" id="l_M000052_source">show source</a> ]</p>
|
156
|
+
<div id="M000052_source" class="dyn-source">
|
157
|
+
<pre>
|
158
|
+
<span class="ruby-comment cmt"># File lib/core/facets/regexp/arity.rb, line 13</span>
|
159
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">arity</span>
|
160
|
+
<span class="ruby-identifier">source</span>.<span class="ruby-identifier">scan</span>( <span class="ruby-regexp re">/(?!\\)[(](?!\?[#=:!>-imx])/</span> ).<span class="ruby-identifier">length</span>
|
161
|
+
<span class="ruby-keyword kw">end</span>
|
162
|
+
</pre>
|
163
|
+
</div>
|
164
|
+
</div>
|
165
|
+
</div>
|
166
|
+
<div class="method">
|
167
|
+
<div class="title">
|
168
|
+
<a name="M000051"></a><b>to_re</b>(esc=false)
|
169
|
+
</div>
|
170
|
+
<div class="description">
|
171
|
+
<p>
|
172
|
+
Simply returns itself. Helpful when converting strings to regular
|
173
|
+
expressions, where regexp might occur as well —in the same vien as
|
174
|
+
using to_s on symbols. The parameter is actaully a dummy parameter to
|
175
|
+
coincide with <a href="String.html#M000486">String#to_re</a>.
|
176
|
+
</p>
|
177
|
+
<pre>
|
178
|
+
/abc/.to_re #=> /abc/
|
179
|
+
</pre>
|
180
|
+
<p>
|
181
|
+
CREDIT: Trans
|
182
|
+
</p>
|
183
|
+
</div>
|
184
|
+
<div class="sourcecode">
|
185
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000051_source')" id="l_M000051_source">show source</a> ]</p>
|
186
|
+
<div id="M000051_source" class="dyn-source">
|
187
|
+
<pre>
|
188
|
+
<span class="ruby-comment cmt"># File lib/core/facets/regexp/to_re.rb, line 24</span>
|
189
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_re</span>(<span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">false</span>)
|
190
|
+
<span class="ruby-keyword kw">self</span> <span class="ruby-comment cmt"># Of course, things really should know how to say "I" ;)</span>
|
191
|
+
<span class="ruby-keyword kw">end</span>
|
192
|
+
</pre>
|
193
|
+
</div>
|
194
|
+
</div>
|
195
|
+
</div>
|
196
|
+
<div class="method">
|
197
|
+
<div class="title">
|
198
|
+
<a name="M000054"></a><b>to_re</b>(esc=false)
|
199
|
+
</div>
|
200
|
+
<div class="description">
|
201
|
+
<p>
|
202
|
+
Simply returns itself. Helpful when converting strings to regular
|
203
|
+
expressions, where regexp might occur as well —in the same vien as
|
204
|
+
using to_s on symbols. The parameter is actaully a dummy parameter to
|
205
|
+
coincide with <a href="String.html#M000486">String#to_re</a>.
|
206
|
+
</p>
|
207
|
+
<pre>
|
208
|
+
/abc/.to_re #=> /abc/
|
209
|
+
</pre>
|
210
|
+
<p>
|
211
|
+
CREDIT: Trans
|
212
|
+
</p>
|
213
|
+
</div>
|
214
|
+
<div class="sourcecode">
|
215
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000054_source')" id="l_M000054_source">show source</a> ]</p>
|
216
|
+
<div id="M000054_source" class="dyn-source">
|
217
|
+
<pre>
|
218
|
+
<span class="ruby-comment cmt"># File lib/core/facets/regexp/to_re.rb, line 24</span>
|
219
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_re</span>(<span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">false</span>)
|
220
|
+
<span class="ruby-keyword kw">self</span> <span class="ruby-comment cmt"># Of course, things really should know how to say "I" ;)</span>
|
221
|
+
<span class="ruby-keyword kw">end</span>
|
222
|
+
</pre>
|
223
|
+
</div>
|
224
|
+
</div>
|
225
|
+
</div>
|
226
|
+
<div class="method">
|
227
|
+
<div class="title">
|
228
|
+
<a name="M000053"></a><b>to_regexp</b>()
|
229
|
+
</div>
|
230
|
+
<div class="description">
|
231
|
+
<p>
|
232
|
+
Like <a href="Regexp.html#M000051">to_re</a>, but following Ruby‘s
|
233
|
+
formal definitions, only a Regular expression type object will respond to
|
234
|
+
this.
|
235
|
+
</p>
|
236
|
+
<p>
|
237
|
+
Note that to be of much real use this should be defined in core Ruby.
|
238
|
+
</p>
|
239
|
+
<p>
|
240
|
+
CREDIT: Florian Gross
|
241
|
+
</p>
|
242
|
+
</div>
|
243
|
+
<div class="sourcecode">
|
244
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000053_source')" id="l_M000053_source">show source</a> ]</p>
|
245
|
+
<div id="M000053_source" class="dyn-source">
|
246
|
+
<pre>
|
247
|
+
<span class="ruby-comment cmt"># File lib/core/facets/regexp/to_re.rb, line 10</span>
|
248
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_regexp</span>
|
249
|
+
<span class="ruby-keyword kw">self</span>
|
250
|
+
<span class="ruby-keyword kw">end</span>
|
251
|
+
</pre>
|
252
|
+
</div>
|
253
|
+
</div>
|
254
|
+
</div>
|
255
|
+
<div class="method">
|
256
|
+
<div class="title">
|
257
|
+
<a name="M000050"></a><b>to_regexp</b>()
|
258
|
+
</div>
|
259
|
+
<div class="description">
|
260
|
+
<p>
|
261
|
+
Like <a href="Regexp.html#M000051">to_re</a>, but following Ruby‘s
|
262
|
+
formal definitions, only a Regular expression type object will respond to
|
263
|
+
this.
|
264
|
+
</p>
|
265
|
+
<p>
|
266
|
+
Note that to be of much real use this should be defined in core Ruby.
|
267
|
+
</p>
|
268
|
+
<p>
|
269
|
+
CREDIT: Florian Gross
|
270
|
+
</p>
|
271
|
+
</div>
|
272
|
+
<div class="sourcecode">
|
273
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000050_source')" id="l_M000050_source">show source</a> ]</p>
|
274
|
+
<div id="M000050_source" class="dyn-source">
|
275
|
+
<pre>
|
276
|
+
<span class="ruby-comment cmt"># File lib/core/facets/regexp/to_re.rb, line 10</span>
|
277
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_regexp</span>
|
278
|
+
<span class="ruby-keyword kw">self</span>
|
279
|
+
<span class="ruby-keyword kw">end</span>
|
280
|
+
</pre>
|
281
|
+
</div>
|
282
|
+
</div>
|
283
|
+
</div>
|
284
|
+
</div>
|
285
|
+
|
286
|
+
</div>
|
287
|
+
|
288
|
+
</body>
|
289
|
+
</html>
|
@@ -0,0 +1,3913 @@
|
|
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: String</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 />String</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/metaid_rb.html">lib/core/facets/metaid.rb</a>
|
61
|
+
<a href="../files/lib/core/facets/boolean_rb.html">lib/core/facets/boolean.rb</a>
|
62
|
+
<a href="../files/lib/core/facets/comparable/bound_rb.html">lib/core/facets/comparable/bound.rb</a>
|
63
|
+
<a href="../files/lib/core/facets/comparable/cmp_rb.html">lib/core/facets/comparable/cmp.rb</a>
|
64
|
+
<a href="../files/lib/core/facets/comparable/bound_rb.html">lib/core/facets/comparable/bound.rb</a>
|
65
|
+
<a href="../files/lib/core/facets/comparable/cmp_rb.html">lib/core/facets/comparable/cmp.rb</a>
|
66
|
+
<a href="../files/lib/core/facets/string/shatter_rb.html">lib/core/facets/string/shatter.rb</a>
|
67
|
+
<a href="../files/lib/core/facets/string/to_re_rb.html">lib/core/facets/string/to_re.rb</a>
|
68
|
+
<a href="../files/lib/core/facets/string/fold_rb.html">lib/core/facets/string/fold.rb</a>
|
69
|
+
<a href="../files/lib/core/facets/string/start_with_rb.html">lib/core/facets/string/start_with.rb</a>
|
70
|
+
<a href="../files/lib/core/facets/string/camelcase_rb.html">lib/core/facets/string/camelcase.rb</a>
|
71
|
+
<a href="../files/lib/core/facets/string/lines_rb.html">lib/core/facets/string/lines.rb</a>
|
72
|
+
<a href="../files/lib/core/facets/string/align_rb.html">lib/core/facets/string/align.rb</a>
|
73
|
+
<a href="../files/lib/core/facets/string/tab_rb.html">lib/core/facets/string/tab.rb</a>
|
74
|
+
<a href="../files/lib/core/facets/string/range_rb.html">lib/core/facets/string/range.rb</a>
|
75
|
+
<a href="../files/lib/core/facets/string/snakecase_rb.html">lib/core/facets/string/snakecase.rb</a>
|
76
|
+
<a href="../files/lib/core/facets/string/each_char_rb.html">lib/core/facets/string/each_char.rb</a>
|
77
|
+
<a href="../files/lib/core/facets/string/divide_rb.html">lib/core/facets/string/divide.rb</a>
|
78
|
+
<a href="../files/lib/core/facets/string/mscan_rb.html">lib/core/facets/string/mscan.rb</a>
|
79
|
+
<a href="../files/lib/core/facets/string/capitalized_rb.html">lib/core/facets/string/capitalized.rb</a>
|
80
|
+
<a href="../files/lib/core/facets/string/natcmp_rb.html">lib/core/facets/string/natcmp.rb</a>
|
81
|
+
<a href="../files/lib/core/facets/string/bytes_rb.html">lib/core/facets/string/bytes.rb</a>
|
82
|
+
<a href="../files/lib/core/facets/string/subtract_rb.html">lib/core/facets/string/subtract.rb</a>
|
83
|
+
<a href="../files/lib/core/facets/string/titlecase_rb.html">lib/core/facets/string/titlecase.rb</a>
|
84
|
+
<a href="../files/lib/core/facets/string/words_rb.html">lib/core/facets/string/words.rb</a>
|
85
|
+
<a href="../files/lib/core/facets/string/interpolate_rb.html">lib/core/facets/string/interpolate.rb</a>
|
86
|
+
<a href="../files/lib/core/facets/string/cleave_rb.html">lib/core/facets/string/cleave.rb</a>
|
87
|
+
<a href="../files/lib/core/facets/string/to_time_rb.html">lib/core/facets/string/to_time.rb</a>
|
88
|
+
<a href="../files/lib/core/facets/string/line_wrap_rb.html">lib/core/facets/string/line_wrap.rb</a>
|
89
|
+
<a href="../files/lib/core/facets/string/bracket_rb.html">lib/core/facets/string/bracket.rb</a>
|
90
|
+
<a href="../files/lib/core/facets/string/chars_rb.html">lib/core/facets/string/chars.rb</a>
|
91
|
+
<a href="../files/lib/core/facets/string/chomp_rb.html">lib/core/facets/string/chomp.rb</a>
|
92
|
+
<a href="../files/lib/core/facets/string/splice_rb.html">lib/core/facets/string/splice.rb</a>
|
93
|
+
<a href="../files/lib/core/facets/string/rewrite_rb.html">lib/core/facets/string/rewrite.rb</a>
|
94
|
+
<a href="../files/lib/core/facets/string/nchar_rb.html">lib/core/facets/string/nchar.rb</a>
|
95
|
+
<a href="../files/lib/core/facets/string/xor_rb.html">lib/core/facets/string/xor.rb</a>
|
96
|
+
<a href="../files/lib/core/facets/string/shatter_rb.html">lib/core/facets/string/shatter.rb</a>
|
97
|
+
<a href="../files/lib/core/facets/string/to_re_rb.html">lib/core/facets/string/to_re.rb</a>
|
98
|
+
<a href="../files/lib/core/facets/string/fold_rb.html">lib/core/facets/string/fold.rb</a>
|
99
|
+
<a href="../files/lib/core/facets/string/start_with_rb.html">lib/core/facets/string/start_with.rb</a>
|
100
|
+
<a href="../files/lib/core/facets/string/camelcase_rb.html">lib/core/facets/string/camelcase.rb</a>
|
101
|
+
<a href="../files/lib/core/facets/string/lines_rb.html">lib/core/facets/string/lines.rb</a>
|
102
|
+
<a href="../files/lib/core/facets/string/align_rb.html">lib/core/facets/string/align.rb</a>
|
103
|
+
<a href="../files/lib/core/facets/string/tab_rb.html">lib/core/facets/string/tab.rb</a>
|
104
|
+
<a href="../files/lib/core/facets/string/range_rb.html">lib/core/facets/string/range.rb</a>
|
105
|
+
<a href="../files/lib/core/facets/string/snakecase_rb.html">lib/core/facets/string/snakecase.rb</a>
|
106
|
+
<a href="../files/lib/core/facets/string/each_char_rb.html">lib/core/facets/string/each_char.rb</a>
|
107
|
+
<a href="../files/lib/core/facets/string/divide_rb.html">lib/core/facets/string/divide.rb</a>
|
108
|
+
<a href="../files/lib/core/facets/string/mscan_rb.html">lib/core/facets/string/mscan.rb</a>
|
109
|
+
<a href="../files/lib/core/facets/string/capitalized_rb.html">lib/core/facets/string/capitalized.rb</a>
|
110
|
+
<a href="../files/lib/core/facets/string/natcmp_rb.html">lib/core/facets/string/natcmp.rb</a>
|
111
|
+
<a href="../files/lib/core/facets/string/bytes_rb.html">lib/core/facets/string/bytes.rb</a>
|
112
|
+
<a href="../files/lib/core/facets/string/subtract_rb.html">lib/core/facets/string/subtract.rb</a>
|
113
|
+
<a href="../files/lib/core/facets/string/titlecase_rb.html">lib/core/facets/string/titlecase.rb</a>
|
114
|
+
<a href="../files/lib/core/facets/string/words_rb.html">lib/core/facets/string/words.rb</a>
|
115
|
+
<a href="../files/lib/core/facets/string/interpolate_rb.html">lib/core/facets/string/interpolate.rb</a>
|
116
|
+
<a href="../files/lib/core/facets/string/cleave_rb.html">lib/core/facets/string/cleave.rb</a>
|
117
|
+
<a href="../files/lib/core/facets/string/to_time_rb.html">lib/core/facets/string/to_time.rb</a>
|
118
|
+
<a href="../files/lib/core/facets/string/line_wrap_rb.html">lib/core/facets/string/line_wrap.rb</a>
|
119
|
+
<a href="../files/lib/core/facets/string/bracket_rb.html">lib/core/facets/string/bracket.rb</a>
|
120
|
+
<a href="../files/lib/core/facets/string/chars_rb.html">lib/core/facets/string/chars.rb</a>
|
121
|
+
<a href="../files/lib/core/facets/string/chomp_rb.html">lib/core/facets/string/chomp.rb</a>
|
122
|
+
<a href="../files/lib/core/facets/string/splice_rb.html">lib/core/facets/string/splice.rb</a>
|
123
|
+
<a href="../files/lib/core/facets/string/rewrite_rb.html">lib/core/facets/string/rewrite.rb</a>
|
124
|
+
<a href="../files/lib/core/facets/string/nchar_rb.html">lib/core/facets/string/nchar.rb</a>
|
125
|
+
<a href="../files/lib/core/facets/string/xor_rb.html">lib/core/facets/string/xor.rb</a>
|
126
|
+
<a href="../files/lib/core/facets/blank_rb.html">lib/core/facets/blank.rb</a>
|
127
|
+
</td>
|
128
|
+
</tr>
|
129
|
+
<tr>
|
130
|
+
<td>Parent:</td>
|
131
|
+
<td>
|
132
|
+
<a href="Object.html">
|
133
|
+
Object
|
134
|
+
</a>
|
135
|
+
</td>
|
136
|
+
</tr>
|
137
|
+
</table>
|
138
|
+
</td>
|
139
|
+
</tr>
|
140
|
+
</table>
|
141
|
+
<!-- banner header -->
|
142
|
+
|
143
|
+
<div id="bodyContent">
|
144
|
+
<div id="content">
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
<div class="sectiontitle">Methods</div>
|
150
|
+
<ul>
|
151
|
+
<li><a href="#M000517">-</a></li>
|
152
|
+
<li><a href="#M000568">-</a></li>
|
153
|
+
<li><a href="#M000586">^</a></li>
|
154
|
+
<li><a href="#M000535">^</a></li>
|
155
|
+
<li><a href="#M000493">align</a></li>
|
156
|
+
<li><a href="#M000544">align</a></li>
|
157
|
+
<li><a href="#M000547">align_center</a></li>
|
158
|
+
<li><a href="#M000496">align_center</a></li>
|
159
|
+
<li><a href="#M000546">align_left</a></li>
|
160
|
+
<li><a href="#M000495">align_left</a></li>
|
161
|
+
<li><a href="#M000494">align_right</a></li>
|
162
|
+
<li><a href="#M000545">align_right</a></li>
|
163
|
+
<li><a href="#M000587">blank?</a></li>
|
164
|
+
<li><a href="#M000574">bracket</a></li>
|
165
|
+
<li><a href="#M000523">bracket</a></li>
|
166
|
+
<li><a href="#M000575">bracket!</a></li>
|
167
|
+
<li><a href="#M000524">bracket!</a></li>
|
168
|
+
<li><a href="#M000567">bytes</a></li>
|
169
|
+
<li><a href="#M000516">bytes</a></li>
|
170
|
+
<li><a href="#M000491">camelcase</a></li>
|
171
|
+
<li><a href="#M000542">camelcase</a></li>
|
172
|
+
<li><a href="#M000512">capitalized?</a></li>
|
173
|
+
<li><a href="#M000563">capitalized?</a></li>
|
174
|
+
<li><a href="#M000580">chars</a></li>
|
175
|
+
<li><a href="#M000529">chars</a></li>
|
176
|
+
<li><a href="#M000520">cleave</a></li>
|
177
|
+
<li><a href="#M000571">cleave</a></li>
|
178
|
+
<li><a href="#M000484">cmp</a></li>
|
179
|
+
<li><a href="#M000482">cmp</a></li>
|
180
|
+
<li><a href="#M000528">dequote</a></li>
|
181
|
+
<li><a href="#M000579">dequote</a></li>
|
182
|
+
<li><a href="#M000510">divide</a></li>
|
183
|
+
<li><a href="#M000561">divide</a></li>
|
184
|
+
<li><a href="#M000564">downcase?</a></li>
|
185
|
+
<li><a href="#M000513">downcase?</a></li>
|
186
|
+
<li><a href="#M000560">each_char</a></li>
|
187
|
+
<li><a href="#M000509">each_char</a></li>
|
188
|
+
<li><a href="#M000541">end_with?</a></li>
|
189
|
+
<li><a href="#M000490">end_with?</a></li>
|
190
|
+
<li><a href="#M000550">expand_tabs</a></li>
|
191
|
+
<li><a href="#M000499">expand_tabs</a></li>
|
192
|
+
<li><a href="#M000539">fold</a></li>
|
193
|
+
<li><a href="#M000488">fold</a></li>
|
194
|
+
<li><a href="#M000501">indent</a></li>
|
195
|
+
<li><a href="#M000552">indent</a></li>
|
196
|
+
<li><a href="#M000507">index_all</a></li>
|
197
|
+
<li><a href="#M000558">index_all</a></li>
|
198
|
+
<li><a href="#M000570">interpolate</a></li>
|
199
|
+
<li><a href="#M000519">interpolate</a></li>
|
200
|
+
<li><a href="#M000581">lchomp</a></li>
|
201
|
+
<li><a href="#M000530">lchomp</a></li>
|
202
|
+
<li><a href="#M000582">lchomp!</a></li>
|
203
|
+
<li><a href="#M000531">lchomp!</a></li>
|
204
|
+
<li><a href="#M000573">line_wrap</a></li>
|
205
|
+
<li><a href="#M000522">line_wrap</a></li>
|
206
|
+
<li><a href="#M000543">lines</a></li>
|
207
|
+
<li><a href="#M000492">lines</a></li>
|
208
|
+
<li><a href="#M000503">margin</a></li>
|
209
|
+
<li><a href="#M000554">margin</a></li>
|
210
|
+
<li><a href="#M000562">mscan</a></li>
|
211
|
+
<li><a href="#M000511">mscan</a></li>
|
212
|
+
<li><a href="#M000515">natcmp</a></li>
|
213
|
+
<li><a href="#M000566">natcmp</a></li>
|
214
|
+
<li><a href="#M000585">nchar</a></li>
|
215
|
+
<li><a href="#M000534">nchar</a></li>
|
216
|
+
<li><a href="#M000553">outdent</a></li>
|
217
|
+
<li><a href="#M000502">outdent</a></li>
|
218
|
+
<li><a href="#M000527">quote</a></li>
|
219
|
+
<li><a href="#M000578">quote</a></li>
|
220
|
+
<li><a href="#M000504">range</a></li>
|
221
|
+
<li><a href="#M000555">range</a></li>
|
222
|
+
<li><a href="#M000556">range_all</a></li>
|
223
|
+
<li><a href="#M000505">range_all</a></li>
|
224
|
+
<li><a href="#M000557">range_of_line</a></li>
|
225
|
+
<li><a href="#M000506">range_of_line</a></li>
|
226
|
+
<li><a href="#M000584">rewrite</a></li>
|
227
|
+
<li><a href="#M000533">rewrite</a></li>
|
228
|
+
<li><a href="#M000485">shatter</a></li>
|
229
|
+
<li><a href="#M000536">shatter</a></li>
|
230
|
+
<li><a href="#M000508">snakecase</a></li>
|
231
|
+
<li><a href="#M000559">snakecase</a></li>
|
232
|
+
<li><a href="#M000583">splice</a></li>
|
233
|
+
<li><a href="#M000532">splice</a></li>
|
234
|
+
<li><a href="#M000489">start_with?</a></li>
|
235
|
+
<li><a href="#M000540">start_with?</a></li>
|
236
|
+
<li><a href="#M000548">tab</a></li>
|
237
|
+
<li><a href="#M000497">tab</a></li>
|
238
|
+
<li><a href="#M000549">taballto</a></li>
|
239
|
+
<li><a href="#M000498">taballto</a></li>
|
240
|
+
<li><a href="#M000551">tabto</a></li>
|
241
|
+
<li><a href="#M000500">tabto</a></li>
|
242
|
+
<li><a href="#M000569">titlecase</a></li>
|
243
|
+
<li><a href="#M000518">titlecase</a></li>
|
244
|
+
<li><a href="#M000480">to_b</a></li>
|
245
|
+
<li><a href="#M000486">to_re</a></li>
|
246
|
+
<li><a href="#M000537">to_re</a></li>
|
247
|
+
<li><a href="#M000538">to_rx</a></li>
|
248
|
+
<li><a href="#M000487">to_rx</a></li>
|
249
|
+
<li><a href="#M000483">to_s</a></li>
|
250
|
+
<li><a href="#M000481">to_s</a></li>
|
251
|
+
<li><a href="#M000521">to_time</a></li>
|
252
|
+
<li><a href="#M000572">to_time</a></li>
|
253
|
+
<li><a href="#M000576">unbracket</a></li>
|
254
|
+
<li><a href="#M000525">unbracket</a></li>
|
255
|
+
<li><a href="#M000526">unbracket!</a></li>
|
256
|
+
<li><a href="#M000577">unbracket!</a></li>
|
257
|
+
<li><a href="#M000514">upcase?</a></li>
|
258
|
+
<li><a href="#M000565">upcase?</a></li>
|
259
|
+
<li><a href="#M000479">variablize</a></li>
|
260
|
+
</ul>
|
261
|
+
|
262
|
+
<div class="sectiontitle">Included Modules</div>
|
263
|
+
<ul>
|
264
|
+
<li><a href="String/Words.html">Words</a></li>
|
265
|
+
<li><a href="String/Words.html">Words</a></li>
|
266
|
+
</ul>
|
267
|
+
|
268
|
+
|
269
|
+
<div class="sectiontitle">Classes and Modules</div>
|
270
|
+
Module <a href="String/Words.html" class="link">String::Words</a><br />
|
271
|
+
|
272
|
+
|
273
|
+
<div class="sectiontitle">Constants</div>
|
274
|
+
<table border='0' cellpadding='5'>
|
275
|
+
<tr valign='top'>
|
276
|
+
<td class="attr-name">BRA2KET</td>
|
277
|
+
<td>=</td>
|
278
|
+
<td class="attr-value">{ '['=>']', '('=>')', '{'=>'}', '<'=>'>' }</td>
|
279
|
+
</tr>
|
280
|
+
<tr valign='top'>
|
281
|
+
<td class="attr-name">BRA2KET</td>
|
282
|
+
<td>=</td>
|
283
|
+
<td class="attr-value">{ '['=>']', '('=>')', '{'=>'}', '<'=>'>' }</td>
|
284
|
+
</tr>
|
285
|
+
</table>
|
286
|
+
|
287
|
+
|
288
|
+
<div class="sectiontitle">Public Class methods</div>
|
289
|
+
<div class="method">
|
290
|
+
<div class="title">
|
291
|
+
<a name="M000570"></a><b>interpolate</b>(&str)
|
292
|
+
</div>
|
293
|
+
<div class="description">
|
294
|
+
<p>
|
295
|
+
Interpolate. Provides a means of extenally using Ruby string interpolation
|
296
|
+
mechinism.
|
297
|
+
</p>
|
298
|
+
<pre>
|
299
|
+
try = "hello"
|
300
|
+
str = "\#{try}!!!"
|
301
|
+
String.interpolate{ str } #=> "hello!!!"
|
302
|
+
|
303
|
+
NOTE: The block neccessary in order to get
|
304
|
+
then binding of the caller.
|
305
|
+
|
306
|
+
CREDIT: Trans
|
307
|
+
</pre>
|
308
|
+
</div>
|
309
|
+
<div class="sourcecode">
|
310
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000570_source')" id="l_M000570_source">show source</a> ]</p>
|
311
|
+
<div id="M000570_source" class="dyn-source">
|
312
|
+
<pre>
|
313
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/interpolate.rb, line 15</span>
|
314
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">interpolate</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">str</span>)
|
315
|
+
<span class="ruby-identifier">eval</span> <span class="ruby-node">"%{#{str.call}}"</span>, <span class="ruby-identifier">str</span>.<span class="ruby-identifier">binding</span>
|
316
|
+
<span class="ruby-keyword kw">end</span>
|
317
|
+
</pre>
|
318
|
+
</div>
|
319
|
+
</div>
|
320
|
+
</div>
|
321
|
+
<div class="method">
|
322
|
+
<div class="title">
|
323
|
+
<a name="M000519"></a><b>interpolate</b>(&str)
|
324
|
+
</div>
|
325
|
+
<div class="description">
|
326
|
+
<p>
|
327
|
+
Interpolate. Provides a means of extenally using Ruby string interpolation
|
328
|
+
mechinism.
|
329
|
+
</p>
|
330
|
+
<pre>
|
331
|
+
try = "hello"
|
332
|
+
str = "\#{try}!!!"
|
333
|
+
String.interpolate{ str } #=> "hello!!!"
|
334
|
+
|
335
|
+
NOTE: The block neccessary in order to get
|
336
|
+
then binding of the caller.
|
337
|
+
|
338
|
+
CREDIT: Trans
|
339
|
+
</pre>
|
340
|
+
</div>
|
341
|
+
<div class="sourcecode">
|
342
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000519_source')" id="l_M000519_source">show source</a> ]</p>
|
343
|
+
<div id="M000519_source" class="dyn-source">
|
344
|
+
<pre>
|
345
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/interpolate.rb, line 15</span>
|
346
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">interpolate</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">str</span>)
|
347
|
+
<span class="ruby-identifier">eval</span> <span class="ruby-node">"%{#{str.call}}"</span>, <span class="ruby-identifier">str</span>.<span class="ruby-identifier">binding</span>
|
348
|
+
<span class="ruby-keyword kw">end</span>
|
349
|
+
</pre>
|
350
|
+
</div>
|
351
|
+
</div>
|
352
|
+
</div>
|
353
|
+
<div class="sectiontitle">Public Instance methods</div>
|
354
|
+
<div class="method">
|
355
|
+
<div class="title">
|
356
|
+
<a name="M000517"></a><b>-</b>(pattern)
|
357
|
+
</div>
|
358
|
+
<div class="description">
|
359
|
+
<p>
|
360
|
+
Removes occurances of a string or regexp.
|
361
|
+
</p>
|
362
|
+
<pre>
|
363
|
+
"HELLO HELLO" - "LL" #=> "HEO HEO"
|
364
|
+
|
365
|
+
CREDIT: Benjamin David Oakes
|
366
|
+
</pre>
|
367
|
+
</div>
|
368
|
+
<div class="sourcecode">
|
369
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000517_source')" id="l_M000517_source">show source</a> ]</p>
|
370
|
+
<div id="M000517_source" class="dyn-source">
|
371
|
+
<pre>
|
372
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/subtract.rb, line 9</span>
|
373
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">pattern</span>)
|
374
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-identifier">pattern</span>, <span class="ruby-value str">''</span>)
|
375
|
+
<span class="ruby-keyword kw">end</span>
|
376
|
+
</pre>
|
377
|
+
</div>
|
378
|
+
</div>
|
379
|
+
</div>
|
380
|
+
<div class="method">
|
381
|
+
<div class="title">
|
382
|
+
<a name="M000568"></a><b>-</b>(pattern)
|
383
|
+
</div>
|
384
|
+
<div class="description">
|
385
|
+
<p>
|
386
|
+
Removes occurances of a string or regexp.
|
387
|
+
</p>
|
388
|
+
<pre>
|
389
|
+
"HELLO HELLO" - "LL" #=> "HEO HEO"
|
390
|
+
|
391
|
+
CREDIT: Benjamin David Oakes
|
392
|
+
</pre>
|
393
|
+
</div>
|
394
|
+
<div class="sourcecode">
|
395
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000568_source')" id="l_M000568_source">show source</a> ]</p>
|
396
|
+
<div id="M000568_source" class="dyn-source">
|
397
|
+
<pre>
|
398
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/subtract.rb, line 9</span>
|
399
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">pattern</span>)
|
400
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-identifier">pattern</span>, <span class="ruby-value str">''</span>)
|
401
|
+
<span class="ruby-keyword kw">end</span>
|
402
|
+
</pre>
|
403
|
+
</div>
|
404
|
+
</div>
|
405
|
+
</div>
|
406
|
+
<div class="method">
|
407
|
+
<div class="title">
|
408
|
+
<a name="M000586"></a><b>^</b>(aString)
|
409
|
+
</div>
|
410
|
+
<div class="description">
|
411
|
+
<p>
|
412
|
+
XOR two string.
|
413
|
+
</p>
|
414
|
+
<p>
|
415
|
+
TODO: This is used by crypt.rb, it needs to be documented.
|
416
|
+
</p>
|
417
|
+
</div>
|
418
|
+
<div class="sourcecode">
|
419
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000586_source')" id="l_M000586_source">show source</a> ]</p>
|
420
|
+
<div id="M000586_source" class="dyn-source">
|
421
|
+
<pre>
|
422
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/xor.rb, line 7</span>
|
423
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">^</span>(<span class="ruby-identifier">aString</span>)
|
424
|
+
<span class="ruby-identifier">a</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'C'</span><span class="ruby-operator">*</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span>))
|
425
|
+
<span class="ruby-identifier">b</span> = <span class="ruby-identifier">aString</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'C'</span><span class="ruby-operator">*</span>(<span class="ruby-identifier">aString</span>.<span class="ruby-identifier">length</span>))
|
426
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">b</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">length</span>)
|
427
|
+
(<span class="ruby-identifier">a</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">length</span>).<span class="ruby-identifier">times</span> { <span class="ruby-identifier">b</span> <span class="ruby-operator"><<</span> <span class="ruby-value">0</span> }
|
428
|
+
<span class="ruby-keyword kw">end</span>
|
429
|
+
<span class="ruby-identifier">xor</span> = <span class="ruby-value str">""</span>
|
430
|
+
<span class="ruby-value">0</span>.<span class="ruby-identifier">upto</span>(<span class="ruby-identifier">a</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">pos</span><span class="ruby-operator">|</span>
|
431
|
+
<span class="ruby-identifier">x</span> = <span class="ruby-identifier">a</span>[<span class="ruby-identifier">pos</span>] <span class="ruby-operator">^</span> <span class="ruby-identifier">b</span>[<span class="ruby-identifier">pos</span>]
|
432
|
+
<span class="ruby-identifier">xor</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">chr</span>()
|
433
|
+
}
|
434
|
+
<span class="ruby-keyword kw">return</span>(<span class="ruby-identifier">xor</span>)
|
435
|
+
<span class="ruby-keyword kw">end</span>
|
436
|
+
</pre>
|
437
|
+
</div>
|
438
|
+
</div>
|
439
|
+
</div>
|
440
|
+
<div class="method">
|
441
|
+
<div class="title">
|
442
|
+
<a name="M000535"></a><b>^</b>(aString)
|
443
|
+
</div>
|
444
|
+
<div class="description">
|
445
|
+
<p>
|
446
|
+
XOR two string.
|
447
|
+
</p>
|
448
|
+
<p>
|
449
|
+
TODO: This is used by crypt.rb, it needs to be documented.
|
450
|
+
</p>
|
451
|
+
</div>
|
452
|
+
<div class="sourcecode">
|
453
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000535_source')" id="l_M000535_source">show source</a> ]</p>
|
454
|
+
<div id="M000535_source" class="dyn-source">
|
455
|
+
<pre>
|
456
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/xor.rb, line 7</span>
|
457
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">^</span>(<span class="ruby-identifier">aString</span>)
|
458
|
+
<span class="ruby-identifier">a</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'C'</span><span class="ruby-operator">*</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span>))
|
459
|
+
<span class="ruby-identifier">b</span> = <span class="ruby-identifier">aString</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'C'</span><span class="ruby-operator">*</span>(<span class="ruby-identifier">aString</span>.<span class="ruby-identifier">length</span>))
|
460
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">b</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">length</span>)
|
461
|
+
(<span class="ruby-identifier">a</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">length</span>).<span class="ruby-identifier">times</span> { <span class="ruby-identifier">b</span> <span class="ruby-operator"><<</span> <span class="ruby-value">0</span> }
|
462
|
+
<span class="ruby-keyword kw">end</span>
|
463
|
+
<span class="ruby-identifier">xor</span> = <span class="ruby-value str">""</span>
|
464
|
+
<span class="ruby-value">0</span>.<span class="ruby-identifier">upto</span>(<span class="ruby-identifier">a</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">pos</span><span class="ruby-operator">|</span>
|
465
|
+
<span class="ruby-identifier">x</span> = <span class="ruby-identifier">a</span>[<span class="ruby-identifier">pos</span>] <span class="ruby-operator">^</span> <span class="ruby-identifier">b</span>[<span class="ruby-identifier">pos</span>]
|
466
|
+
<span class="ruby-identifier">xor</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">chr</span>()
|
467
|
+
}
|
468
|
+
<span class="ruby-keyword kw">return</span>(<span class="ruby-identifier">xor</span>)
|
469
|
+
<span class="ruby-keyword kw">end</span>
|
470
|
+
</pre>
|
471
|
+
</div>
|
472
|
+
</div>
|
473
|
+
</div>
|
474
|
+
<div class="method">
|
475
|
+
<div class="title">
|
476
|
+
<a name="M000493"></a><b>align</b>(direction, n, sep="\n", c=' ')
|
477
|
+
</div>
|
478
|
+
<div class="sourcecode">
|
479
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000493_source')" id="l_M000493_source">show source</a> ]</p>
|
480
|
+
<div id="M000493_source" class="dyn-source">
|
481
|
+
<pre>
|
482
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 3</span>
|
483
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
484
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">direction</span>
|
485
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:right</span>
|
486
|
+
<span class="ruby-identifier">align_right</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
487
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:left</span>
|
488
|
+
<span class="ruby-identifier">align_left</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
489
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:center</span>
|
490
|
+
<span class="ruby-identifier">align_center</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
491
|
+
<span class="ruby-keyword kw">else</span>
|
492
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>
|
493
|
+
<span class="ruby-keyword kw">end</span>
|
494
|
+
<span class="ruby-keyword kw">end</span>
|
495
|
+
</pre>
|
496
|
+
</div>
|
497
|
+
</div>
|
498
|
+
</div>
|
499
|
+
<div class="method">
|
500
|
+
<div class="title">
|
501
|
+
<a name="M000544"></a><b>align</b>(direction, n, sep="\n", c=' ')
|
502
|
+
</div>
|
503
|
+
<div class="sourcecode">
|
504
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000544_source')" id="l_M000544_source">show source</a> ]</p>
|
505
|
+
<div id="M000544_source" class="dyn-source">
|
506
|
+
<pre>
|
507
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 3</span>
|
508
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
509
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">direction</span>
|
510
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:right</span>
|
511
|
+
<span class="ruby-identifier">align_right</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
512
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:left</span>
|
513
|
+
<span class="ruby-identifier">align_left</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
514
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:center</span>
|
515
|
+
<span class="ruby-identifier">align_center</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
516
|
+
<span class="ruby-keyword kw">else</span>
|
517
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>
|
518
|
+
<span class="ruby-keyword kw">end</span>
|
519
|
+
<span class="ruby-keyword kw">end</span>
|
520
|
+
</pre>
|
521
|
+
</div>
|
522
|
+
</div>
|
523
|
+
</div>
|
524
|
+
<div class="method">
|
525
|
+
<div class="title">
|
526
|
+
<a name="M000547"></a><b>align_center</b>(n, sep="\n", c=' ')
|
527
|
+
</div>
|
528
|
+
<div class="description">
|
529
|
+
<p>
|
530
|
+
Centers each line of a string.
|
531
|
+
</p>
|
532
|
+
<p>
|
533
|
+
The defualt alignment seperation is a new line ("/n") This can be
|
534
|
+
changed as can be the padding string which defaults to a single space
|
535
|
+
(’ ’).
|
536
|
+
</p>
|
537
|
+
<pre>
|
538
|
+
s = <<-EOS
|
539
|
+
This is a test
|
540
|
+
and
|
541
|
+
so on
|
542
|
+
EOS
|
543
|
+
|
544
|
+
puts s.align_center(14)
|
545
|
+
</pre>
|
546
|
+
<p>
|
547
|
+
<em>produces</em>
|
548
|
+
</p>
|
549
|
+
<pre>
|
550
|
+
This is a test
|
551
|
+
and
|
552
|
+
so on
|
553
|
+
|
554
|
+
CREDIT: Trans
|
555
|
+
</pre>
|
556
|
+
</div>
|
557
|
+
<div class="sourcecode">
|
558
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000547_source')" id="l_M000547_source">show source</a> ]</p>
|
559
|
+
<div id="M000547_source" class="dyn-source">
|
560
|
+
<pre>
|
561
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 97</span>
|
562
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_center</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
563
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">center</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sep</span><span class="ruby-operator">==</span><span class="ruby-keyword kw">nil</span>
|
564
|
+
<span class="ruby-identifier">q</span> = <span class="ruby-identifier">split</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>).<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
|
565
|
+
<span class="ruby-identifier">line</span>.<span class="ruby-identifier">center</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>)
|
566
|
+
}
|
567
|
+
<span class="ruby-identifier">q</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>)
|
568
|
+
<span class="ruby-keyword kw">end</span>
|
569
|
+
</pre>
|
570
|
+
</div>
|
571
|
+
</div>
|
572
|
+
</div>
|
573
|
+
<div class="method">
|
574
|
+
<div class="title">
|
575
|
+
<a name="M000496"></a><b>align_center</b>(n, sep="\n", c=' ')
|
576
|
+
</div>
|
577
|
+
<div class="description">
|
578
|
+
<p>
|
579
|
+
Centers each line of a string.
|
580
|
+
</p>
|
581
|
+
<p>
|
582
|
+
The defualt alignment seperation is a new line ("/n") This can be
|
583
|
+
changed as can be the padding string which defaults to a single space
|
584
|
+
(’ ’).
|
585
|
+
</p>
|
586
|
+
<pre>
|
587
|
+
s = <<-EOS
|
588
|
+
This is a test
|
589
|
+
and
|
590
|
+
so on
|
591
|
+
EOS
|
592
|
+
|
593
|
+
puts s.align_center(14)
|
594
|
+
</pre>
|
595
|
+
<p>
|
596
|
+
<em>produces</em>
|
597
|
+
</p>
|
598
|
+
<pre>
|
599
|
+
This is a test
|
600
|
+
and
|
601
|
+
so on
|
602
|
+
|
603
|
+
CREDIT: Trans
|
604
|
+
</pre>
|
605
|
+
</div>
|
606
|
+
<div class="sourcecode">
|
607
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000496_source')" id="l_M000496_source">show source</a> ]</p>
|
608
|
+
<div id="M000496_source" class="dyn-source">
|
609
|
+
<pre>
|
610
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 97</span>
|
611
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_center</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
612
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">center</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sep</span><span class="ruby-operator">==</span><span class="ruby-keyword kw">nil</span>
|
613
|
+
<span class="ruby-identifier">q</span> = <span class="ruby-identifier">split</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>).<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
|
614
|
+
<span class="ruby-identifier">line</span>.<span class="ruby-identifier">center</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>)
|
615
|
+
}
|
616
|
+
<span class="ruby-identifier">q</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>)
|
617
|
+
<span class="ruby-keyword kw">end</span>
|
618
|
+
</pre>
|
619
|
+
</div>
|
620
|
+
</div>
|
621
|
+
</div>
|
622
|
+
<div class="method">
|
623
|
+
<div class="title">
|
624
|
+
<a name="M000546"></a><b>align_left</b>(n, sep="\n", c=' ')
|
625
|
+
</div>
|
626
|
+
<div class="description">
|
627
|
+
<p>
|
628
|
+
Align a string to the left.
|
629
|
+
</p>
|
630
|
+
<p>
|
631
|
+
The defualt alignment seperation is a new line ("/n") This can be
|
632
|
+
changes as can be the padding string which defaults to a single space
|
633
|
+
(’ ’).
|
634
|
+
</p>
|
635
|
+
<pre>
|
636
|
+
s = <<-EOS
|
637
|
+
This is a test
|
638
|
+
and
|
639
|
+
so on
|
640
|
+
EOS
|
641
|
+
|
642
|
+
puts s.align_left(2)
|
643
|
+
</pre>
|
644
|
+
<p>
|
645
|
+
<em>produces</em>
|
646
|
+
</p>
|
647
|
+
<pre>
|
648
|
+
This is a test
|
649
|
+
and
|
650
|
+
so on
|
651
|
+
|
652
|
+
CREDIT: Trans
|
653
|
+
</pre>
|
654
|
+
</div>
|
655
|
+
<div class="sourcecode">
|
656
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000546_source')" id="l_M000546_source">show source</a> ]</p>
|
657
|
+
<div id="M000546_source" class="dyn-source">
|
658
|
+
<pre>
|
659
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 67</span>
|
660
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_left</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
661
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">ljust</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sep</span><span class="ruby-operator">==</span><span class="ruby-keyword kw">nil</span>
|
662
|
+
<span class="ruby-identifier">q</span> = <span class="ruby-identifier">split</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>).<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
|
663
|
+
<span class="ruby-identifier">line</span>.<span class="ruby-identifier">ljust</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>)
|
664
|
+
}
|
665
|
+
<span class="ruby-identifier">q</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>)
|
666
|
+
<span class="ruby-keyword kw">end</span>
|
667
|
+
</pre>
|
668
|
+
</div>
|
669
|
+
</div>
|
670
|
+
</div>
|
671
|
+
<div class="method">
|
672
|
+
<div class="title">
|
673
|
+
<a name="M000495"></a><b>align_left</b>(n, sep="\n", c=' ')
|
674
|
+
</div>
|
675
|
+
<div class="description">
|
676
|
+
<p>
|
677
|
+
Align a string to the left.
|
678
|
+
</p>
|
679
|
+
<p>
|
680
|
+
The defualt alignment seperation is a new line ("/n") This can be
|
681
|
+
changes as can be the padding string which defaults to a single space
|
682
|
+
(’ ’).
|
683
|
+
</p>
|
684
|
+
<pre>
|
685
|
+
s = <<-EOS
|
686
|
+
This is a test
|
687
|
+
and
|
688
|
+
so on
|
689
|
+
EOS
|
690
|
+
|
691
|
+
puts s.align_left(2)
|
692
|
+
</pre>
|
693
|
+
<p>
|
694
|
+
<em>produces</em>
|
695
|
+
</p>
|
696
|
+
<pre>
|
697
|
+
This is a test
|
698
|
+
and
|
699
|
+
so on
|
700
|
+
|
701
|
+
CREDIT: Trans
|
702
|
+
</pre>
|
703
|
+
</div>
|
704
|
+
<div class="sourcecode">
|
705
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000495_source')" id="l_M000495_source">show source</a> ]</p>
|
706
|
+
<div id="M000495_source" class="dyn-source">
|
707
|
+
<pre>
|
708
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 67</span>
|
709
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_left</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
710
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">ljust</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sep</span><span class="ruby-operator">==</span><span class="ruby-keyword kw">nil</span>
|
711
|
+
<span class="ruby-identifier">q</span> = <span class="ruby-identifier">split</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>).<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
|
712
|
+
<span class="ruby-identifier">line</span>.<span class="ruby-identifier">ljust</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>)
|
713
|
+
}
|
714
|
+
<span class="ruby-identifier">q</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>)
|
715
|
+
<span class="ruby-keyword kw">end</span>
|
716
|
+
</pre>
|
717
|
+
</div>
|
718
|
+
</div>
|
719
|
+
</div>
|
720
|
+
<div class="method">
|
721
|
+
<div class="title">
|
722
|
+
<a name="M000494"></a><b>align_right</b>(n, sep="\n", c=' ')
|
723
|
+
</div>
|
724
|
+
<div class="description">
|
725
|
+
<p>
|
726
|
+
Align a string to the right. The defualt alignment seperation is a new line
|
727
|
+
("/n") This can be changes as can be the padding string which
|
728
|
+
defaults to a single space (’ ’).
|
729
|
+
</p>
|
730
|
+
<pre>
|
731
|
+
s = <<-EOS
|
732
|
+
This is a test
|
733
|
+
and
|
734
|
+
so on
|
735
|
+
EOS
|
736
|
+
|
737
|
+
puts s.align_right(2)
|
738
|
+
</pre>
|
739
|
+
<p>
|
740
|
+
<em>produces</em>
|
741
|
+
</p>
|
742
|
+
<pre>
|
743
|
+
This is a test
|
744
|
+
and
|
745
|
+
so on
|
746
|
+
|
747
|
+
CREDIT: Trans
|
748
|
+
</pre>
|
749
|
+
</div>
|
750
|
+
<div class="sourcecode">
|
751
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000494_source')" id="l_M000494_source">show source</a> ]</p>
|
752
|
+
<div id="M000494_source" class="dyn-source">
|
753
|
+
<pre>
|
754
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 37</span>
|
755
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_right</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
756
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">rjust</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sep</span><span class="ruby-operator">==</span><span class="ruby-keyword kw">nil</span>
|
757
|
+
<span class="ruby-identifier">q</span> = <span class="ruby-identifier">split</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>).<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
|
758
|
+
<span class="ruby-identifier">line</span>.<span class="ruby-identifier">rjust</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>)
|
759
|
+
}
|
760
|
+
<span class="ruby-identifier">q</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>)
|
761
|
+
<span class="ruby-keyword kw">end</span>
|
762
|
+
</pre>
|
763
|
+
</div>
|
764
|
+
</div>
|
765
|
+
</div>
|
766
|
+
<div class="method">
|
767
|
+
<div class="title">
|
768
|
+
<a name="M000545"></a><b>align_right</b>(n, sep="\n", c=' ')
|
769
|
+
</div>
|
770
|
+
<div class="description">
|
771
|
+
<p>
|
772
|
+
Align a string to the right. The defualt alignment seperation is a new line
|
773
|
+
("/n") This can be changes as can be the padding string which
|
774
|
+
defaults to a single space (’ ’).
|
775
|
+
</p>
|
776
|
+
<pre>
|
777
|
+
s = <<-EOS
|
778
|
+
This is a test
|
779
|
+
and
|
780
|
+
so on
|
781
|
+
EOS
|
782
|
+
|
783
|
+
puts s.align_right(2)
|
784
|
+
</pre>
|
785
|
+
<p>
|
786
|
+
<em>produces</em>
|
787
|
+
</p>
|
788
|
+
<pre>
|
789
|
+
This is a test
|
790
|
+
and
|
791
|
+
so on
|
792
|
+
|
793
|
+
CREDIT: Trans
|
794
|
+
</pre>
|
795
|
+
</div>
|
796
|
+
<div class="sourcecode">
|
797
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000545_source')" id="l_M000545_source">show source</a> ]</p>
|
798
|
+
<div id="M000545_source" class="dyn-source">
|
799
|
+
<pre>
|
800
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 37</span>
|
801
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_right</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
802
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">rjust</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sep</span><span class="ruby-operator">==</span><span class="ruby-keyword kw">nil</span>
|
803
|
+
<span class="ruby-identifier">q</span> = <span class="ruby-identifier">split</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>).<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
|
804
|
+
<span class="ruby-identifier">line</span>.<span class="ruby-identifier">rjust</span>(<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_i</span>,<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>)
|
805
|
+
}
|
806
|
+
<span class="ruby-identifier">q</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">sep</span>.<span class="ruby-identifier">to_s</span>)
|
807
|
+
<span class="ruby-keyword kw">end</span>
|
808
|
+
</pre>
|
809
|
+
</div>
|
810
|
+
</div>
|
811
|
+
</div>
|
812
|
+
<div class="method">
|
813
|
+
<div class="title">
|
814
|
+
<a name="M000587"></a><b>blank?</b>()
|
815
|
+
</div>
|
816
|
+
<div class="description">
|
817
|
+
<p>
|
818
|
+
Is this string just whitespace?
|
819
|
+
</p>
|
820
|
+
<pre>
|
821
|
+
"abc".blank? #=> false
|
822
|
+
" ".blank? #=> true
|
823
|
+
</pre>
|
824
|
+
</div>
|
825
|
+
<div class="sourcecode">
|
826
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000587_source')" id="l_M000587_source">show source</a> ]</p>
|
827
|
+
<div id="M000587_source" class="dyn-source">
|
828
|
+
<pre>
|
829
|
+
<span class="ruby-comment cmt"># File lib/core/facets/blank.rb, line 50</span>
|
830
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blank?</span>
|
831
|
+
<span class="ruby-keyword kw">self</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/\S/</span>
|
832
|
+
<span class="ruby-keyword kw">end</span>
|
833
|
+
</pre>
|
834
|
+
</div>
|
835
|
+
</div>
|
836
|
+
</div>
|
837
|
+
<div class="method">
|
838
|
+
<div class="title">
|
839
|
+
<a name="M000574"></a><b>bracket</b>(bra, ket=nil)
|
840
|
+
</div>
|
841
|
+
<div class="description">
|
842
|
+
<p>
|
843
|
+
Return a new string embraced by given brakets. If only one <a
|
844
|
+
href="String.html#M000523">bracket</a> char is given it will be placed on
|
845
|
+
either side.
|
846
|
+
</p>
|
847
|
+
<pre>
|
848
|
+
"wrap me".bracket('{') #=> "{wrap me}"
|
849
|
+
"wrap me".bracket('--','!') #=> "--wrap me!"
|
850
|
+
|
851
|
+
CREDIT: Trans
|
852
|
+
</pre>
|
853
|
+
</div>
|
854
|
+
<div class="sourcecode">
|
855
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000574_source')" id="l_M000574_source">show source</a> ]</p>
|
856
|
+
<div id="M000574_source" class="dyn-source">
|
857
|
+
<pre>
|
858
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 14</span>
|
859
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bracket</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
|
860
|
+
<span class="ruby-comment cmt">#ket = String.bra2ket[$&] if ! ket && /^[\[({<]$/ =~ bra</span>
|
861
|
+
<span class="ruby-identifier">ket</span> = <span class="ruby-constant">BRA2KET</span>[<span class="ruby-identifier">bra</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">ket</span>
|
862
|
+
<span class="ruby-node">"#{bra}#{self}#{ket ? ket : bra}"</span>
|
863
|
+
<span class="ruby-keyword kw">end</span>
|
864
|
+
</pre>
|
865
|
+
</div>
|
866
|
+
</div>
|
867
|
+
</div>
|
868
|
+
<div class="method">
|
869
|
+
<div class="title">
|
870
|
+
<a name="M000523"></a><b>bracket</b>(bra, ket=nil)
|
871
|
+
</div>
|
872
|
+
<div class="description">
|
873
|
+
<p>
|
874
|
+
Return a new string embraced by given brakets. If only one <a
|
875
|
+
href="String.html#M000523">bracket</a> char is given it will be placed on
|
876
|
+
either side.
|
877
|
+
</p>
|
878
|
+
<pre>
|
879
|
+
"wrap me".bracket('{') #=> "{wrap me}"
|
880
|
+
"wrap me".bracket('--','!') #=> "--wrap me!"
|
881
|
+
|
882
|
+
CREDIT: Trans
|
883
|
+
</pre>
|
884
|
+
</div>
|
885
|
+
<div class="sourcecode">
|
886
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000523_source')" id="l_M000523_source">show source</a> ]</p>
|
887
|
+
<div id="M000523_source" class="dyn-source">
|
888
|
+
<pre>
|
889
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 14</span>
|
890
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bracket</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
|
891
|
+
<span class="ruby-comment cmt">#ket = String.bra2ket[$&] if ! ket && /^[\[({<]$/ =~ bra</span>
|
892
|
+
<span class="ruby-identifier">ket</span> = <span class="ruby-constant">BRA2KET</span>[<span class="ruby-identifier">bra</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">ket</span>
|
893
|
+
<span class="ruby-node">"#{bra}#{self}#{ket ? ket : bra}"</span>
|
894
|
+
<span class="ruby-keyword kw">end</span>
|
895
|
+
</pre>
|
896
|
+
</div>
|
897
|
+
</div>
|
898
|
+
</div>
|
899
|
+
<div class="method">
|
900
|
+
<div class="title">
|
901
|
+
<a name="M000575"></a><b>bracket!</b>(bra, ket=nil)
|
902
|
+
</div>
|
903
|
+
<div class="description">
|
904
|
+
<p>
|
905
|
+
Inplace version of braket.
|
906
|
+
</p>
|
907
|
+
<pre>
|
908
|
+
CREDIT: Trans
|
909
|
+
</pre>
|
910
|
+
</div>
|
911
|
+
<div class="sourcecode">
|
912
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000575_source')" id="l_M000575_source">show source</a> ]</p>
|
913
|
+
<div id="M000575_source" class="dyn-source">
|
914
|
+
<pre>
|
915
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 24</span>
|
916
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bracket!</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
|
917
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">replace</span>(<span class="ruby-identifier">bracket</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>))
|
918
|
+
<span class="ruby-keyword kw">end</span>
|
919
|
+
</pre>
|
920
|
+
</div>
|
921
|
+
</div>
|
922
|
+
</div>
|
923
|
+
<div class="method">
|
924
|
+
<div class="title">
|
925
|
+
<a name="M000524"></a><b>bracket!</b>(bra, ket=nil)
|
926
|
+
</div>
|
927
|
+
<div class="description">
|
928
|
+
<p>
|
929
|
+
Inplace version of braket.
|
930
|
+
</p>
|
931
|
+
<pre>
|
932
|
+
CREDIT: Trans
|
933
|
+
</pre>
|
934
|
+
</div>
|
935
|
+
<div class="sourcecode">
|
936
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000524_source')" id="l_M000524_source">show source</a> ]</p>
|
937
|
+
<div id="M000524_source" class="dyn-source">
|
938
|
+
<pre>
|
939
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 24</span>
|
940
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bracket!</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
|
941
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">replace</span>(<span class="ruby-identifier">bracket</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>))
|
942
|
+
<span class="ruby-keyword kw">end</span>
|
943
|
+
</pre>
|
944
|
+
</div>
|
945
|
+
</div>
|
946
|
+
</div>
|
947
|
+
<div class="method">
|
948
|
+
<div class="title">
|
949
|
+
<a name="M000567"></a><b>bytes</b>()
|
950
|
+
</div>
|
951
|
+
<div class="description">
|
952
|
+
<p>
|
953
|
+
Upacks string into <a href="String.html#M000516">bytes</a>.
|
954
|
+
</p>
|
955
|
+
</div>
|
956
|
+
<div class="sourcecode">
|
957
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000567_source')" id="l_M000567_source">show source</a> ]</p>
|
958
|
+
<div id="M000567_source" class="dyn-source">
|
959
|
+
<pre>
|
960
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/bytes.rb, line 8</span>
|
961
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bytes</span>
|
962
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'C*'</span>)
|
963
|
+
<span class="ruby-keyword kw">end</span>
|
964
|
+
</pre>
|
965
|
+
</div>
|
966
|
+
</div>
|
967
|
+
</div>
|
968
|
+
<div class="method">
|
969
|
+
<div class="title">
|
970
|
+
<a name="M000516"></a><b>bytes</b>()
|
971
|
+
</div>
|
972
|
+
<div class="description">
|
973
|
+
<p>
|
974
|
+
Upacks string into <a href="String.html#M000516">bytes</a>.
|
975
|
+
</p>
|
976
|
+
</div>
|
977
|
+
<div class="sourcecode">
|
978
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000516_source')" id="l_M000516_source">show source</a> ]</p>
|
979
|
+
<div id="M000516_source" class="dyn-source">
|
980
|
+
<pre>
|
981
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/bytes.rb, line 8</span>
|
982
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bytes</span>
|
983
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'C*'</span>)
|
984
|
+
<span class="ruby-keyword kw">end</span>
|
985
|
+
</pre>
|
986
|
+
</div>
|
987
|
+
</div>
|
988
|
+
</div>
|
989
|
+
<div class="method">
|
990
|
+
<div class="title">
|
991
|
+
<a name="M000491"></a><b>camelcase</b>(upcase_first_letter=true)
|
992
|
+
</div>
|
993
|
+
<div class="description">
|
994
|
+
<p>
|
995
|
+
Converts a string to <a href="String.html#M000491">camelcase</a>.
|
996
|
+
</p>
|
997
|
+
<p>
|
998
|
+
By default <a href="String.html#M000491">camelcase</a> convert to
|
999
|
+
UpperCamelCase, If an argument is set to <tt>false</tt>, then <a
|
1000
|
+
href="String.html#M000491">camelcase</a> will produce lowerCamelCase.
|
1001
|
+
</p>
|
1002
|
+
<p>
|
1003
|
+
<tt><a href="String.html#M000491">camelcase</a></tt> also converts
|
1004
|
+
’/’ to ’::’ which is useful for converting paths to
|
1005
|
+
namespaces.
|
1006
|
+
</p>
|
1007
|
+
<p>
|
1008
|
+
Examples
|
1009
|
+
</p>
|
1010
|
+
<pre>
|
1011
|
+
"camel_case".camelcase #=> "CamelCase"
|
1012
|
+
"camel/case".camelcase #=> "Camel::Case"
|
1013
|
+
"camel_case".camelcase(false) #=> "camelCase"
|
1014
|
+
</pre>
|
1015
|
+
</div>
|
1016
|
+
<div class="sourcecode">
|
1017
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000491_source')" id="l_M000491_source">show source</a> ]</p>
|
1018
|
+
<div id="M000491_source" class="dyn-source">
|
1019
|
+
<pre>
|
1020
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/camelcase.rb, line 16</span>
|
1021
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">camelcase</span>(<span class="ruby-identifier">upcase_first_letter</span>=<span class="ruby-keyword kw">true</span>)
|
1022
|
+
<span class="ruby-identifier">up</span> = <span class="ruby-identifier">upcase_first_letter</span>
|
1023
|
+
<span class="ruby-identifier">str</span> = <span class="ruby-identifier">dup</span>
|
1024
|
+
<span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/\/(.?)/</span>){ <span class="ruby-node">"::#{$1.upcase}"</span> } <span class="ruby-comment cmt"># NOT SO SURE ABOUT THIS -T</span>
|
1025
|
+
<span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/(?:_+|-+)([a-z])/</span>){ <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">upcase</span> }
|
1026
|
+
<span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/(\A|\s)([a-z])/</span>){ <span class="ruby-identifier">$1</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">$2</span>.<span class="ruby-identifier">upcase</span> } <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">up</span>
|
1027
|
+
<span class="ruby-identifier">str</span>
|
1028
|
+
<span class="ruby-keyword kw">end</span>
|
1029
|
+
</pre>
|
1030
|
+
</div>
|
1031
|
+
</div>
|
1032
|
+
</div>
|
1033
|
+
<div class="method">
|
1034
|
+
<div class="title">
|
1035
|
+
<a name="M000542"></a><b>camelcase</b>(upcase_first_letter=true)
|
1036
|
+
</div>
|
1037
|
+
<div class="description">
|
1038
|
+
<p>
|
1039
|
+
Converts a string to <a href="String.html#M000491">camelcase</a>.
|
1040
|
+
</p>
|
1041
|
+
<p>
|
1042
|
+
By default <a href="String.html#M000491">camelcase</a> convert to
|
1043
|
+
UpperCamelCase, If an argument is set to <tt>false</tt>, then <a
|
1044
|
+
href="String.html#M000491">camelcase</a> will produce lowerCamelCase.
|
1045
|
+
</p>
|
1046
|
+
<p>
|
1047
|
+
<tt><a href="String.html#M000491">camelcase</a></tt> also converts
|
1048
|
+
’/’ to ’::’ which is useful for converting paths to
|
1049
|
+
namespaces.
|
1050
|
+
</p>
|
1051
|
+
<p>
|
1052
|
+
Examples
|
1053
|
+
</p>
|
1054
|
+
<pre>
|
1055
|
+
"camel_case".camelcase #=> "CamelCase"
|
1056
|
+
"camel/case".camelcase #=> "Camel::Case"
|
1057
|
+
"camel_case".camelcase(false) #=> "camelCase"
|
1058
|
+
</pre>
|
1059
|
+
</div>
|
1060
|
+
<div class="sourcecode">
|
1061
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000542_source')" id="l_M000542_source">show source</a> ]</p>
|
1062
|
+
<div id="M000542_source" class="dyn-source">
|
1063
|
+
<pre>
|
1064
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/camelcase.rb, line 16</span>
|
1065
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">camelcase</span>(<span class="ruby-identifier">upcase_first_letter</span>=<span class="ruby-keyword kw">true</span>)
|
1066
|
+
<span class="ruby-identifier">up</span> = <span class="ruby-identifier">upcase_first_letter</span>
|
1067
|
+
<span class="ruby-identifier">str</span> = <span class="ruby-identifier">dup</span>
|
1068
|
+
<span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/\/(.?)/</span>){ <span class="ruby-node">"::#{$1.upcase}"</span> } <span class="ruby-comment cmt"># NOT SO SURE ABOUT THIS -T</span>
|
1069
|
+
<span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/(?:_+|-+)([a-z])/</span>){ <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">upcase</span> }
|
1070
|
+
<span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/(\A|\s)([a-z])/</span>){ <span class="ruby-identifier">$1</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">$2</span>.<span class="ruby-identifier">upcase</span> } <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">up</span>
|
1071
|
+
<span class="ruby-identifier">str</span>
|
1072
|
+
<span class="ruby-keyword kw">end</span>
|
1073
|
+
</pre>
|
1074
|
+
</div>
|
1075
|
+
</div>
|
1076
|
+
</div>
|
1077
|
+
<div class="method">
|
1078
|
+
<div class="title">
|
1079
|
+
<a name="M000512"></a><b>capitalized?</b>()
|
1080
|
+
</div>
|
1081
|
+
<div class="description">
|
1082
|
+
<p>
|
1083
|
+
Return true if the string is capitalized, otherwise false.
|
1084
|
+
</p>
|
1085
|
+
<pre>
|
1086
|
+
"THIS".capitalized? #=> true
|
1087
|
+
"This".capitalized? #=> true
|
1088
|
+
"this".capitalized? #=> false
|
1089
|
+
|
1090
|
+
CREDIT: Phil Tomson
|
1091
|
+
</pre>
|
1092
|
+
</div>
|
1093
|
+
<div class="sourcecode">
|
1094
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000512_source')" id="l_M000512_source">show source</a> ]</p>
|
1095
|
+
<div id="M000512_source" class="dyn-source">
|
1096
|
+
<pre>
|
1097
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 11</span>
|
1098
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">capitalized?</span>
|
1099
|
+
<span class="ruby-keyword kw">self</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^[A-Z]/</span>
|
1100
|
+
<span class="ruby-keyword kw">end</span>
|
1101
|
+
</pre>
|
1102
|
+
</div>
|
1103
|
+
</div>
|
1104
|
+
</div>
|
1105
|
+
<div class="method">
|
1106
|
+
<div class="title">
|
1107
|
+
<a name="M000563"></a><b>capitalized?</b>()
|
1108
|
+
</div>
|
1109
|
+
<div class="description">
|
1110
|
+
<p>
|
1111
|
+
Return true if the string is capitalized, otherwise false.
|
1112
|
+
</p>
|
1113
|
+
<pre>
|
1114
|
+
"THIS".capitalized? #=> true
|
1115
|
+
"This".capitalized? #=> true
|
1116
|
+
"this".capitalized? #=> false
|
1117
|
+
|
1118
|
+
CREDIT: Phil Tomson
|
1119
|
+
</pre>
|
1120
|
+
</div>
|
1121
|
+
<div class="sourcecode">
|
1122
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000563_source')" id="l_M000563_source">show source</a> ]</p>
|
1123
|
+
<div id="M000563_source" class="dyn-source">
|
1124
|
+
<pre>
|
1125
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 11</span>
|
1126
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">capitalized?</span>
|
1127
|
+
<span class="ruby-keyword kw">self</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^[A-Z]/</span>
|
1128
|
+
<span class="ruby-keyword kw">end</span>
|
1129
|
+
</pre>
|
1130
|
+
</div>
|
1131
|
+
</div>
|
1132
|
+
</div>
|
1133
|
+
<div class="method">
|
1134
|
+
<div class="title">
|
1135
|
+
<a name="M000580"></a><b>chars</b>()
|
1136
|
+
</div>
|
1137
|
+
<div class="description">
|
1138
|
+
<p>
|
1139
|
+
Returns an array of characters.
|
1140
|
+
</p>
|
1141
|
+
<pre>
|
1142
|
+
"abc".chars #=> ["a","b","c"]
|
1143
|
+
</pre>
|
1144
|
+
</div>
|
1145
|
+
<div class="sourcecode">
|
1146
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000580_source')" id="l_M000580_source">show source</a> ]</p>
|
1147
|
+
<div id="M000580_source" class="dyn-source">
|
1148
|
+
<pre>
|
1149
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/chars.rb, line 9</span>
|
1150
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chars</span>
|
1151
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">//</span>)
|
1152
|
+
<span class="ruby-keyword kw">end</span>
|
1153
|
+
</pre>
|
1154
|
+
</div>
|
1155
|
+
</div>
|
1156
|
+
</div>
|
1157
|
+
<div class="method">
|
1158
|
+
<div class="title">
|
1159
|
+
<a name="M000529"></a><b>chars</b>()
|
1160
|
+
</div>
|
1161
|
+
<div class="description">
|
1162
|
+
<p>
|
1163
|
+
Returns an array of characters.
|
1164
|
+
</p>
|
1165
|
+
<pre>
|
1166
|
+
"abc".chars #=> ["a","b","c"]
|
1167
|
+
</pre>
|
1168
|
+
</div>
|
1169
|
+
<div class="sourcecode">
|
1170
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000529_source')" id="l_M000529_source">show source</a> ]</p>
|
1171
|
+
<div id="M000529_source" class="dyn-source">
|
1172
|
+
<pre>
|
1173
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/chars.rb, line 9</span>
|
1174
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chars</span>
|
1175
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">//</span>)
|
1176
|
+
<span class="ruby-keyword kw">end</span>
|
1177
|
+
</pre>
|
1178
|
+
</div>
|
1179
|
+
</div>
|
1180
|
+
</div>
|
1181
|
+
<div class="method">
|
1182
|
+
<div class="title">
|
1183
|
+
<a name="M000520"></a><b>cleave</b>(threshold=nil, len=nil)
|
1184
|
+
</div>
|
1185
|
+
<div class="description">
|
1186
|
+
<p>
|
1187
|
+
Cleave a string. Break a string in two parts at the nearest whitespace.
|
1188
|
+
</p>
|
1189
|
+
<pre>
|
1190
|
+
CREDIT: Trans
|
1191
|
+
</pre>
|
1192
|
+
</div>
|
1193
|
+
<div class="sourcecode">
|
1194
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000520_source')" id="l_M000520_source">show source</a> ]</p>
|
1195
|
+
<div id="M000520_source" class="dyn-source">
|
1196
|
+
<pre>
|
1197
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/cleave.rb, line 8</span>
|
1198
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cleave</span>(<span class="ruby-identifier">threshold</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">len</span>=<span class="ruby-keyword kw">nil</span>)
|
1199
|
+
<span class="ruby-identifier">l</span> = (<span class="ruby-identifier">len</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">size</span> <span class="ruby-operator">/</span> <span class="ruby-value">2</span>)
|
1200
|
+
<span class="ruby-identifier">t</span> = <span class="ruby-identifier">threshold</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">size</span>
|
1201
|
+
|
1202
|
+
<span class="ruby-identifier">h1</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">l</span>]
|
1203
|
+
<span class="ruby-identifier">h2</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">l</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
|
1204
|
+
|
1205
|
+
<span class="ruby-identifier">i1</span> = <span class="ruby-identifier">h1</span>.<span class="ruby-identifier">rindex</span>(<span class="ruby-regexp re">/\s/</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
|
1206
|
+
<span class="ruby-identifier">d1</span> = (<span class="ruby-identifier">i1</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">l</span>).<span class="ruby-identifier">abs</span>
|
1207
|
+
|
1208
|
+
<span class="ruby-identifier">d2</span> = <span class="ruby-identifier">h2</span>.<span class="ruby-identifier">index</span>(<span class="ruby-regexp re">/\s/</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">l</span>
|
1209
|
+
<span class="ruby-identifier">i2</span> = <span class="ruby-identifier">d2</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">l</span>
|
1210
|
+
|
1211
|
+
<span class="ruby-identifier">d1</span> = (<span class="ruby-identifier">i1</span><span class="ruby-operator">-</span><span class="ruby-identifier">l</span>).<span class="ruby-identifier">abs</span>
|
1212
|
+
<span class="ruby-identifier">d2</span> = (<span class="ruby-identifier">i2</span><span class="ruby-operator">-</span><span class="ruby-identifier">l</span>).<span class="ruby-identifier">abs</span>
|
1213
|
+
|
1214
|
+
<span class="ruby-keyword kw">if</span> [<span class="ruby-identifier">d1</span>, <span class="ruby-identifier">d2</span>].<span class="ruby-identifier">min</span> <span class="ruby-operator">></span> <span class="ruby-identifier">t</span>
|
1215
|
+
<span class="ruby-identifier">i</span> = <span class="ruby-identifier">t</span>
|
1216
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">d1</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">d2</span>
|
1217
|
+
<span class="ruby-identifier">i</span> = <span class="ruby-identifier">i1</span>
|
1218
|
+
<span class="ruby-keyword kw">else</span>
|
1219
|
+
<span class="ruby-identifier">i</span> = <span class="ruby-identifier">i2</span>
|
1220
|
+
<span class="ruby-keyword kw">end</span>
|
1221
|
+
|
1222
|
+
<span class="ruby-comment cmt">#dup.insert(l, "\n").gsub(/^\s+|\s+$/, '')</span>
|
1223
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-identifier">i</span>].<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">strip</span>, <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">i</span><span class="ruby-operator">+</span><span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>].<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">strip</span>
|
1224
|
+
<span class="ruby-keyword kw">end</span>
|
1225
|
+
</pre>
|
1226
|
+
</div>
|
1227
|
+
</div>
|
1228
|
+
</div>
|
1229
|
+
<div class="method">
|
1230
|
+
<div class="title">
|
1231
|
+
<a name="M000571"></a><b>cleave</b>(threshold=nil, len=nil)
|
1232
|
+
</div>
|
1233
|
+
<div class="description">
|
1234
|
+
<p>
|
1235
|
+
Cleave a string. Break a string in two parts at the nearest whitespace.
|
1236
|
+
</p>
|
1237
|
+
<pre>
|
1238
|
+
CREDIT: Trans
|
1239
|
+
</pre>
|
1240
|
+
</div>
|
1241
|
+
<div class="sourcecode">
|
1242
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000571_source')" id="l_M000571_source">show source</a> ]</p>
|
1243
|
+
<div id="M000571_source" class="dyn-source">
|
1244
|
+
<pre>
|
1245
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/cleave.rb, line 8</span>
|
1246
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cleave</span>(<span class="ruby-identifier">threshold</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">len</span>=<span class="ruby-keyword kw">nil</span>)
|
1247
|
+
<span class="ruby-identifier">l</span> = (<span class="ruby-identifier">len</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">size</span> <span class="ruby-operator">/</span> <span class="ruby-value">2</span>)
|
1248
|
+
<span class="ruby-identifier">t</span> = <span class="ruby-identifier">threshold</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">size</span>
|
1249
|
+
|
1250
|
+
<span class="ruby-identifier">h1</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">l</span>]
|
1251
|
+
<span class="ruby-identifier">h2</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">l</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
|
1252
|
+
|
1253
|
+
<span class="ruby-identifier">i1</span> = <span class="ruby-identifier">h1</span>.<span class="ruby-identifier">rindex</span>(<span class="ruby-regexp re">/\s/</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
|
1254
|
+
<span class="ruby-identifier">d1</span> = (<span class="ruby-identifier">i1</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">l</span>).<span class="ruby-identifier">abs</span>
|
1255
|
+
|
1256
|
+
<span class="ruby-identifier">d2</span> = <span class="ruby-identifier">h2</span>.<span class="ruby-identifier">index</span>(<span class="ruby-regexp re">/\s/</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">l</span>
|
1257
|
+
<span class="ruby-identifier">i2</span> = <span class="ruby-identifier">d2</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">l</span>
|
1258
|
+
|
1259
|
+
<span class="ruby-identifier">d1</span> = (<span class="ruby-identifier">i1</span><span class="ruby-operator">-</span><span class="ruby-identifier">l</span>).<span class="ruby-identifier">abs</span>
|
1260
|
+
<span class="ruby-identifier">d2</span> = (<span class="ruby-identifier">i2</span><span class="ruby-operator">-</span><span class="ruby-identifier">l</span>).<span class="ruby-identifier">abs</span>
|
1261
|
+
|
1262
|
+
<span class="ruby-keyword kw">if</span> [<span class="ruby-identifier">d1</span>, <span class="ruby-identifier">d2</span>].<span class="ruby-identifier">min</span> <span class="ruby-operator">></span> <span class="ruby-identifier">t</span>
|
1263
|
+
<span class="ruby-identifier">i</span> = <span class="ruby-identifier">t</span>
|
1264
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">d1</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">d2</span>
|
1265
|
+
<span class="ruby-identifier">i</span> = <span class="ruby-identifier">i1</span>
|
1266
|
+
<span class="ruby-keyword kw">else</span>
|
1267
|
+
<span class="ruby-identifier">i</span> = <span class="ruby-identifier">i2</span>
|
1268
|
+
<span class="ruby-keyword kw">end</span>
|
1269
|
+
|
1270
|
+
<span class="ruby-comment cmt">#dup.insert(l, "\n").gsub(/^\s+|\s+$/, '')</span>
|
1271
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-identifier">i</span>].<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">strip</span>, <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">i</span><span class="ruby-operator">+</span><span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>].<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">strip</span>
|
1272
|
+
<span class="ruby-keyword kw">end</span>
|
1273
|
+
</pre>
|
1274
|
+
</div>
|
1275
|
+
</div>
|
1276
|
+
</div>
|
1277
|
+
<div class="method">
|
1278
|
+
<div class="title">
|
1279
|
+
<a name="M000484"></a><b>cmp</b>(other)
|
1280
|
+
</div>
|
1281
|
+
<div class="description">
|
1282
|
+
<p>
|
1283
|
+
Compare method that takes length into account. Unlike #<=>, this is
|
1284
|
+
compatible with succ.
|
1285
|
+
</p>
|
1286
|
+
<pre>
|
1287
|
+
"abc".cmp("abc") #=> 0
|
1288
|
+
"abcd".cmp("abc") #=> 1
|
1289
|
+
"abc".cmp("abcd") #=> -1
|
1290
|
+
"xyz".cmp("abc") #=> 1
|
1291
|
+
|
1292
|
+
CREDIT Peter Vanbroekhoven
|
1293
|
+
</pre>
|
1294
|
+
</div>
|
1295
|
+
<div class="sourcecode">
|
1296
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000484_source')" id="l_M000484_source">show source</a> ]</p>
|
1297
|
+
<div id="M000484_source" class="dyn-source">
|
1298
|
+
<pre>
|
1299
|
+
<span class="ruby-comment cmt"># File lib/core/facets/comparable/cmp.rb, line 31</span>
|
1300
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmp</span>(<span class="ruby-identifier">other</span>)
|
1301
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-value">-1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">length</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">length</span>
|
1302
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">length</span>
|
1303
|
+
<span class="ruby-keyword kw">self</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">other</span> <span class="ruby-comment cmt"># alphabetic compare</span>
|
1304
|
+
<span class="ruby-keyword kw">end</span>
|
1305
|
+
</pre>
|
1306
|
+
</div>
|
1307
|
+
</div>
|
1308
|
+
</div>
|
1309
|
+
<div class="method">
|
1310
|
+
<div class="title">
|
1311
|
+
<a name="M000482"></a><b>cmp</b>(other)
|
1312
|
+
</div>
|
1313
|
+
<div class="description">
|
1314
|
+
<p>
|
1315
|
+
Compare method that takes length into account. Unlike #<=>, this is
|
1316
|
+
compatible with succ.
|
1317
|
+
</p>
|
1318
|
+
<pre>
|
1319
|
+
"abc".cmp("abc") #=> 0
|
1320
|
+
"abcd".cmp("abc") #=> 1
|
1321
|
+
"abc".cmp("abcd") #=> -1
|
1322
|
+
"xyz".cmp("abc") #=> 1
|
1323
|
+
|
1324
|
+
CREDIT Peter Vanbroekhoven
|
1325
|
+
</pre>
|
1326
|
+
</div>
|
1327
|
+
<div class="sourcecode">
|
1328
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000482_source')" id="l_M000482_source">show source</a> ]</p>
|
1329
|
+
<div id="M000482_source" class="dyn-source">
|
1330
|
+
<pre>
|
1331
|
+
<span class="ruby-comment cmt"># File lib/core/facets/comparable/cmp.rb, line 31</span>
|
1332
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmp</span>(<span class="ruby-identifier">other</span>)
|
1333
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-value">-1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">length</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">length</span>
|
1334
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">length</span>
|
1335
|
+
<span class="ruby-keyword kw">self</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">other</span> <span class="ruby-comment cmt"># alphabetic compare</span>
|
1336
|
+
<span class="ruby-keyword kw">end</span>
|
1337
|
+
</pre>
|
1338
|
+
</div>
|
1339
|
+
</div>
|
1340
|
+
</div>
|
1341
|
+
<div class="method">
|
1342
|
+
<div class="title">
|
1343
|
+
<a name="M000528"></a><b>dequote</b>()
|
1344
|
+
</div>
|
1345
|
+
<div class="description">
|
1346
|
+
<p>
|
1347
|
+
Remove quotes from string.
|
1348
|
+
</p>
|
1349
|
+
<pre>
|
1350
|
+
"'hi'".dequite #=> "hi"
|
1351
|
+
|
1352
|
+
CREDIT: Trans
|
1353
|
+
</pre>
|
1354
|
+
</div>
|
1355
|
+
<div class="sourcecode">
|
1356
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000528_source')" id="l_M000528_source">show source</a> ]</p>
|
1357
|
+
<div id="M000528_source" class="dyn-source">
|
1358
|
+
<pre>
|
1359
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 88</span>
|
1360
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dequote</span>
|
1361
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
1362
|
+
|
1363
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>]
|
1364
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">"'"</span>, <span class="ruby-value str">'"'</span>, <span class="ruby-value str">'`'</span>
|
1365
|
+
<span class="ruby-identifier">s</span>[<span class="ruby-value">0</span>] = <span class="ruby-value str">''</span>
|
1366
|
+
<span class="ruby-keyword kw">end</span>
|
1367
|
+
|
1368
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">-1</span>,<span class="ruby-value">1</span>]
|
1369
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">"'"</span>, <span class="ruby-value str">'"'</span>, <span class="ruby-value str">'`'</span>
|
1370
|
+
<span class="ruby-identifier">s</span>[<span class="ruby-value">-1</span>] = <span class="ruby-value str">''</span>
|
1371
|
+
<span class="ruby-keyword kw">end</span>
|
1372
|
+
|
1373
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
|
1374
|
+
<span class="ruby-keyword kw">end</span>
|
1375
|
+
</pre>
|
1376
|
+
</div>
|
1377
|
+
</div>
|
1378
|
+
</div>
|
1379
|
+
<div class="method">
|
1380
|
+
<div class="title">
|
1381
|
+
<a name="M000579"></a><b>dequote</b>()
|
1382
|
+
</div>
|
1383
|
+
<div class="description">
|
1384
|
+
<p>
|
1385
|
+
Remove quotes from string.
|
1386
|
+
</p>
|
1387
|
+
<pre>
|
1388
|
+
"'hi'".dequite #=> "hi"
|
1389
|
+
|
1390
|
+
CREDIT: Trans
|
1391
|
+
</pre>
|
1392
|
+
</div>
|
1393
|
+
<div class="sourcecode">
|
1394
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000579_source')" id="l_M000579_source">show source</a> ]</p>
|
1395
|
+
<div id="M000579_source" class="dyn-source">
|
1396
|
+
<pre>
|
1397
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 88</span>
|
1398
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dequote</span>
|
1399
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
1400
|
+
|
1401
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>]
|
1402
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">"'"</span>, <span class="ruby-value str">'"'</span>, <span class="ruby-value str">'`'</span>
|
1403
|
+
<span class="ruby-identifier">s</span>[<span class="ruby-value">0</span>] = <span class="ruby-value str">''</span>
|
1404
|
+
<span class="ruby-keyword kw">end</span>
|
1405
|
+
|
1406
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">-1</span>,<span class="ruby-value">1</span>]
|
1407
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">"'"</span>, <span class="ruby-value str">'"'</span>, <span class="ruby-value str">'`'</span>
|
1408
|
+
<span class="ruby-identifier">s</span>[<span class="ruby-value">-1</span>] = <span class="ruby-value str">''</span>
|
1409
|
+
<span class="ruby-keyword kw">end</span>
|
1410
|
+
|
1411
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
|
1412
|
+
<span class="ruby-keyword kw">end</span>
|
1413
|
+
</pre>
|
1414
|
+
</div>
|
1415
|
+
</div>
|
1416
|
+
</div>
|
1417
|
+
<div class="method">
|
1418
|
+
<div class="title">
|
1419
|
+
<a name="M000510"></a><b>divide</b>( re )
|
1420
|
+
</div>
|
1421
|
+
<div class="description">
|
1422
|
+
<p>
|
1423
|
+
Breaks a string up into an array based on a regular expression. Similar to
|
1424
|
+
scan, but includes the matches.
|
1425
|
+
</p>
|
1426
|
+
<pre>
|
1427
|
+
s = "<p>This<b>is</b>a test.</p>"
|
1428
|
+
s.divide( /\<.*?\>/ )
|
1429
|
+
</pre>
|
1430
|
+
<p>
|
1431
|
+
<em>produces</em>
|
1432
|
+
</p>
|
1433
|
+
<pre>
|
1434
|
+
["<p>This", "<b>is", "</b>a test.", "</p>"]
|
1435
|
+
|
1436
|
+
CREDIT: Trans
|
1437
|
+
</pre>
|
1438
|
+
</div>
|
1439
|
+
<div class="sourcecode">
|
1440
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000510_source')" id="l_M000510_source">show source</a> ]</p>
|
1441
|
+
<div id="M000510_source" class="dyn-source">
|
1442
|
+
<pre>
|
1443
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/divide.rb, line 15</span>
|
1444
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divide</span>( <span class="ruby-identifier">re</span> )
|
1445
|
+
<span class="ruby-identifier">re2</span> = <span class="ruby-node">/#{re}.*?(?=#{re}|\Z)/</span>
|
1446
|
+
<span class="ruby-identifier">scan</span>(<span class="ruby-identifier">re2</span>) <span class="ruby-comment cmt">#{re}(?=#{re})/)</span>
|
1447
|
+
<span class="ruby-keyword kw">end</span>
|
1448
|
+
</pre>
|
1449
|
+
</div>
|
1450
|
+
</div>
|
1451
|
+
</div>
|
1452
|
+
<div class="method">
|
1453
|
+
<div class="title">
|
1454
|
+
<a name="M000561"></a><b>divide</b>( re )
|
1455
|
+
</div>
|
1456
|
+
<div class="description">
|
1457
|
+
<p>
|
1458
|
+
Breaks a string up into an array based on a regular expression. Similar to
|
1459
|
+
scan, but includes the matches.
|
1460
|
+
</p>
|
1461
|
+
<pre>
|
1462
|
+
s = "<p>This<b>is</b>a test.</p>"
|
1463
|
+
s.divide( /\<.*?\>/ )
|
1464
|
+
</pre>
|
1465
|
+
<p>
|
1466
|
+
<em>produces</em>
|
1467
|
+
</p>
|
1468
|
+
<pre>
|
1469
|
+
["<p>This", "<b>is", "</b>a test.", "</p>"]
|
1470
|
+
|
1471
|
+
CREDIT: Trans
|
1472
|
+
</pre>
|
1473
|
+
</div>
|
1474
|
+
<div class="sourcecode">
|
1475
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000561_source')" id="l_M000561_source">show source</a> ]</p>
|
1476
|
+
<div id="M000561_source" class="dyn-source">
|
1477
|
+
<pre>
|
1478
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/divide.rb, line 15</span>
|
1479
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divide</span>( <span class="ruby-identifier">re</span> )
|
1480
|
+
<span class="ruby-identifier">re2</span> = <span class="ruby-node">/#{re}.*?(?=#{re}|\Z)/</span>
|
1481
|
+
<span class="ruby-identifier">scan</span>(<span class="ruby-identifier">re2</span>) <span class="ruby-comment cmt">#{re}(?=#{re})/)</span>
|
1482
|
+
<span class="ruby-keyword kw">end</span>
|
1483
|
+
</pre>
|
1484
|
+
</div>
|
1485
|
+
</div>
|
1486
|
+
</div>
|
1487
|
+
<div class="method">
|
1488
|
+
<div class="title">
|
1489
|
+
<a name="M000564"></a><b>downcase?</b>()
|
1490
|
+
</div>
|
1491
|
+
<div class="description">
|
1492
|
+
<p>
|
1493
|
+
Return true if the string is lowercase (downcase), otherwise false.
|
1494
|
+
</p>
|
1495
|
+
<pre>
|
1496
|
+
"THIS".downcase? #=> false
|
1497
|
+
"This".downcase? #=> false
|
1498
|
+
"this".downcase? #=> true
|
1499
|
+
|
1500
|
+
CREDIT: Phil Tomson
|
1501
|
+
</pre>
|
1502
|
+
</div>
|
1503
|
+
<div class="sourcecode">
|
1504
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000564_source')" id="l_M000564_source">show source</a> ]</p>
|
1505
|
+
<div id="M000564_source" class="dyn-source">
|
1506
|
+
<pre>
|
1507
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 23</span>
|
1508
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">downcase?</span>
|
1509
|
+
<span class="ruby-identifier">downcase</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">self</span>
|
1510
|
+
<span class="ruby-keyword kw">end</span>
|
1511
|
+
</pre>
|
1512
|
+
</div>
|
1513
|
+
</div>
|
1514
|
+
</div>
|
1515
|
+
<div class="method">
|
1516
|
+
<div class="title">
|
1517
|
+
<a name="M000513"></a><b>downcase?</b>()
|
1518
|
+
</div>
|
1519
|
+
<div class="description">
|
1520
|
+
<p>
|
1521
|
+
Return true if the string is lowercase (downcase), otherwise false.
|
1522
|
+
</p>
|
1523
|
+
<pre>
|
1524
|
+
"THIS".downcase? #=> false
|
1525
|
+
"This".downcase? #=> false
|
1526
|
+
"this".downcase? #=> true
|
1527
|
+
|
1528
|
+
CREDIT: Phil Tomson
|
1529
|
+
</pre>
|
1530
|
+
</div>
|
1531
|
+
<div class="sourcecode">
|
1532
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000513_source')" id="l_M000513_source">show source</a> ]</p>
|
1533
|
+
<div id="M000513_source" class="dyn-source">
|
1534
|
+
<pre>
|
1535
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 23</span>
|
1536
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">downcase?</span>
|
1537
|
+
<span class="ruby-identifier">downcase</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">self</span>
|
1538
|
+
<span class="ruby-keyword kw">end</span>
|
1539
|
+
</pre>
|
1540
|
+
</div>
|
1541
|
+
</div>
|
1542
|
+
</div>
|
1543
|
+
<div class="method">
|
1544
|
+
<div class="title">
|
1545
|
+
<a name="M000560"></a><b>each_char</b>( {|| ...}
|
1546
|
+
</div>
|
1547
|
+
<div class="description">
|
1548
|
+
<p>
|
1549
|
+
Iterates through each character. This is a little faster than using <a
|
1550
|
+
href="String.html#M000529">chars</a> b/c it does not create the
|
1551
|
+
intermediate array.
|
1552
|
+
</p>
|
1553
|
+
<pre>
|
1554
|
+
a = ''
|
1555
|
+
"HELLO".each_character{ |c| a << #{c.downcase} }
|
1556
|
+
a #=> 'hello'
|
1557
|
+
</pre>
|
1558
|
+
</div>
|
1559
|
+
<div class="sourcecode">
|
1560
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000560_source')" id="l_M000560_source">show source</a> ]</p>
|
1561
|
+
<div id="M000560_source" class="dyn-source">
|
1562
|
+
<pre>
|
1563
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/each_char.rb, line 12</span>
|
1564
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_char</span> <span class="ruby-comment cmt"># :yield:</span>
|
1565
|
+
<span class="ruby-identifier">size</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
|
1566
|
+
<span class="ruby-keyword kw">yield</span>(<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">i</span>,<span class="ruby-value">1</span>])
|
1567
|
+
<span class="ruby-keyword kw">end</span>
|
1568
|
+
<span class="ruby-keyword kw">end</span>
|
1569
|
+
</pre>
|
1570
|
+
</div>
|
1571
|
+
</div>
|
1572
|
+
</div>
|
1573
|
+
<div class="method">
|
1574
|
+
<div class="title">
|
1575
|
+
<a name="M000509"></a><b>each_char</b>( {|| ...}
|
1576
|
+
</div>
|
1577
|
+
<div class="description">
|
1578
|
+
<p>
|
1579
|
+
Iterates through each character. This is a little faster than using <a
|
1580
|
+
href="String.html#M000529">chars</a> b/c it does not create the
|
1581
|
+
intermediate array.
|
1582
|
+
</p>
|
1583
|
+
<pre>
|
1584
|
+
a = ''
|
1585
|
+
"HELLO".each_character{ |c| a << #{c.downcase} }
|
1586
|
+
a #=> 'hello'
|
1587
|
+
</pre>
|
1588
|
+
</div>
|
1589
|
+
<div class="sourcecode">
|
1590
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000509_source')" id="l_M000509_source">show source</a> ]</p>
|
1591
|
+
<div id="M000509_source" class="dyn-source">
|
1592
|
+
<pre>
|
1593
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/each_char.rb, line 12</span>
|
1594
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_char</span> <span class="ruby-comment cmt"># :yield:</span>
|
1595
|
+
<span class="ruby-identifier">size</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
|
1596
|
+
<span class="ruby-keyword kw">yield</span>(<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">i</span>,<span class="ruby-value">1</span>])
|
1597
|
+
<span class="ruby-keyword kw">end</span>
|
1598
|
+
<span class="ruby-keyword kw">end</span>
|
1599
|
+
</pre>
|
1600
|
+
</div>
|
1601
|
+
</div>
|
1602
|
+
</div>
|
1603
|
+
<div class="method">
|
1604
|
+
<div class="title">
|
1605
|
+
<a name="M000541"></a><b>end_with?</b>(suffix)
|
1606
|
+
</div>
|
1607
|
+
<div class="description">
|
1608
|
+
<p>
|
1609
|
+
Does a string end with the given suffix?
|
1610
|
+
</p>
|
1611
|
+
<pre>
|
1612
|
+
"hello".ends_with?("lo") #=> true
|
1613
|
+
"hello".ends_with?("to") #=> false
|
1614
|
+
|
1615
|
+
CREDIT: Lucas Carlson
|
1616
|
+
CREDIT: Blaine Cook
|
1617
|
+
</pre>
|
1618
|
+
</div>
|
1619
|
+
<div class="sourcecode">
|
1620
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000541_source')" id="l_M000541_source">show source</a> ]</p>
|
1621
|
+
<div id="M000541_source" class="dyn-source">
|
1622
|
+
<pre>
|
1623
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/start_with.rb, line 25</span>
|
1624
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">end_with?</span>(<span class="ruby-identifier">suffix</span>)
|
1625
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rindex</span>(<span class="ruby-identifier">suffix</span>) <span class="ruby-operator">==</span> <span class="ruby-identifier">size</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">suffix</span>.<span class="ruby-identifier">size</span>
|
1626
|
+
<span class="ruby-keyword kw">end</span>
|
1627
|
+
</pre>
|
1628
|
+
</div>
|
1629
|
+
</div>
|
1630
|
+
</div>
|
1631
|
+
<div class="method">
|
1632
|
+
<div class="title">
|
1633
|
+
<a name="M000490"></a><b>end_with?</b>(suffix)
|
1634
|
+
</div>
|
1635
|
+
<div class="description">
|
1636
|
+
<p>
|
1637
|
+
Does a string end with the given suffix?
|
1638
|
+
</p>
|
1639
|
+
<pre>
|
1640
|
+
"hello".ends_with?("lo") #=> true
|
1641
|
+
"hello".ends_with?("to") #=> false
|
1642
|
+
|
1643
|
+
CREDIT: Lucas Carlson
|
1644
|
+
CREDIT: Blaine Cook
|
1645
|
+
</pre>
|
1646
|
+
</div>
|
1647
|
+
<div class="sourcecode">
|
1648
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000490_source')" id="l_M000490_source">show source</a> ]</p>
|
1649
|
+
<div id="M000490_source" class="dyn-source">
|
1650
|
+
<pre>
|
1651
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/start_with.rb, line 25</span>
|
1652
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">end_with?</span>(<span class="ruby-identifier">suffix</span>)
|
1653
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rindex</span>(<span class="ruby-identifier">suffix</span>) <span class="ruby-operator">==</span> <span class="ruby-identifier">size</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">suffix</span>.<span class="ruby-identifier">size</span>
|
1654
|
+
<span class="ruby-keyword kw">end</span>
|
1655
|
+
</pre>
|
1656
|
+
</div>
|
1657
|
+
</div>
|
1658
|
+
</div>
|
1659
|
+
<div class="method">
|
1660
|
+
<div class="title">
|
1661
|
+
<a name="M000550"></a><b>expand_tabs</b>(n=8)
|
1662
|
+
</div>
|
1663
|
+
<div class="description">
|
1664
|
+
<p>
|
1665
|
+
Expands tabs to <tt>n</tt> spaces. Non-destructive. If <tt>n</tt> is 0,
|
1666
|
+
then tabs are simply removed. Raises an exception if <tt>n</tt> is
|
1667
|
+
negative.
|
1668
|
+
</p>
|
1669
|
+
<p>
|
1670
|
+
Thanks to GGaramuno for a more efficient algorithm. Very nice.
|
1671
|
+
</p>
|
1672
|
+
<pre>
|
1673
|
+
CREDIT: Gavin Sinclair
|
1674
|
+
CREDIT: Noah Gibbs
|
1675
|
+
CREDIT: GGaramuno
|
1676
|
+
</pre>
|
1677
|
+
</div>
|
1678
|
+
<div class="sourcecode">
|
1679
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000550_source')" id="l_M000550_source">show source</a> ]</p>
|
1680
|
+
<div id="M000550_source" class="dyn-source">
|
1681
|
+
<pre>
|
1682
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 26</span>
|
1683
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expand_tabs</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">8</span>)
|
1684
|
+
<span class="ruby-identifier">n</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_int</span>
|
1685
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"n must be >= 0"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
1686
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\t/</span>, <span class="ruby-value str">""</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
1687
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\t/</span>, <span class="ruby-value str">" "</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
1688
|
+
<span class="ruby-identifier">str</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
1689
|
+
<span class="ruby-keyword kw">while</span>
|
1690
|
+
<span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/^([^\t\n]*)(\t+)/</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
1691
|
+
<span class="ruby-identifier">val</span> = ( <span class="ruby-identifier">n</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">$2</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">-</span> (<span class="ruby-identifier">$1</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">n</span>) )
|
1692
|
+
<span class="ruby-identifier">$1</span> <span class="ruby-operator"><<</span> (<span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">val</span>)
|
1693
|
+
}
|
1694
|
+
<span class="ruby-keyword kw">end</span>
|
1695
|
+
<span class="ruby-identifier">str</span>
|
1696
|
+
<span class="ruby-keyword kw">end</span>
|
1697
|
+
</pre>
|
1698
|
+
</div>
|
1699
|
+
</div>
|
1700
|
+
</div>
|
1701
|
+
<div class="method">
|
1702
|
+
<div class="title">
|
1703
|
+
<a name="M000499"></a><b>expand_tabs</b>(n=8)
|
1704
|
+
</div>
|
1705
|
+
<div class="description">
|
1706
|
+
<p>
|
1707
|
+
Expands tabs to <tt>n</tt> spaces. Non-destructive. If <tt>n</tt> is 0,
|
1708
|
+
then tabs are simply removed. Raises an exception if <tt>n</tt> is
|
1709
|
+
negative.
|
1710
|
+
</p>
|
1711
|
+
<p>
|
1712
|
+
Thanks to GGaramuno for a more efficient algorithm. Very nice.
|
1713
|
+
</p>
|
1714
|
+
<pre>
|
1715
|
+
CREDIT: Gavin Sinclair
|
1716
|
+
CREDIT: Noah Gibbs
|
1717
|
+
CREDIT: GGaramuno
|
1718
|
+
</pre>
|
1719
|
+
</div>
|
1720
|
+
<div class="sourcecode">
|
1721
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000499_source')" id="l_M000499_source">show source</a> ]</p>
|
1722
|
+
<div id="M000499_source" class="dyn-source">
|
1723
|
+
<pre>
|
1724
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 26</span>
|
1725
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expand_tabs</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">8</span>)
|
1726
|
+
<span class="ruby-identifier">n</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_int</span>
|
1727
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"n must be >= 0"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
1728
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\t/</span>, <span class="ruby-value str">""</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
1729
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\t/</span>, <span class="ruby-value str">" "</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
1730
|
+
<span class="ruby-identifier">str</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
1731
|
+
<span class="ruby-keyword kw">while</span>
|
1732
|
+
<span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/^([^\t\n]*)(\t+)/</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
1733
|
+
<span class="ruby-identifier">val</span> = ( <span class="ruby-identifier">n</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">$2</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">-</span> (<span class="ruby-identifier">$1</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">n</span>) )
|
1734
|
+
<span class="ruby-identifier">$1</span> <span class="ruby-operator"><<</span> (<span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">val</span>)
|
1735
|
+
}
|
1736
|
+
<span class="ruby-keyword kw">end</span>
|
1737
|
+
<span class="ruby-identifier">str</span>
|
1738
|
+
<span class="ruby-keyword kw">end</span>
|
1739
|
+
</pre>
|
1740
|
+
</div>
|
1741
|
+
</div>
|
1742
|
+
</div>
|
1743
|
+
<div class="method">
|
1744
|
+
<div class="title">
|
1745
|
+
<a name="M000539"></a><b>fold</b>(ignore_indented=false)
|
1746
|
+
</div>
|
1747
|
+
<div class="description">
|
1748
|
+
<p>
|
1749
|
+
Returns a new string with all new <a href="String.html#M000492">lines</a>
|
1750
|
+
removed from adjacent <a href="String.html#M000492">lines</a> of text.
|
1751
|
+
</p>
|
1752
|
+
<pre>
|
1753
|
+
s = "This is\na test.\n\nIt clumps\nlines of text."
|
1754
|
+
s.fold
|
1755
|
+
</pre>
|
1756
|
+
<p>
|
1757
|
+
<em>produces</em>
|
1758
|
+
</p>
|
1759
|
+
<pre>
|
1760
|
+
"This is a test.\n\nIt clumps lines of text. "
|
1761
|
+
</pre>
|
1762
|
+
<p>
|
1763
|
+
One arguable flaw with this, that might need a fix: if the given string
|
1764
|
+
ends in a newline, it is replaced with a single space.
|
1765
|
+
</p>
|
1766
|
+
<pre>
|
1767
|
+
CREDIT: Trans
|
1768
|
+
</pre>
|
1769
|
+
</div>
|
1770
|
+
<div class="sourcecode">
|
1771
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000539_source')" id="l_M000539_source">show source</a> ]</p>
|
1772
|
+
<div id="M000539_source" class="dyn-source">
|
1773
|
+
<pre>
|
1774
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/fold.rb, line 19</span>
|
1775
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fold</span>(<span class="ruby-identifier">ignore_indented</span>=<span class="ruby-keyword kw">false</span>)
|
1776
|
+
<span class="ruby-identifier">ns</span> = <span class="ruby-value str">''</span>
|
1777
|
+
<span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
|
1778
|
+
<span class="ruby-identifier">br</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-regexp re">/(\n\s*\n|\Z)/</span><span class="ruby-identifier">m</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span>
|
1779
|
+
<span class="ruby-identifier">b</span> = <span class="ruby-identifier">$~</span>.<span class="ruby-identifier">begin</span>(<span class="ruby-value">1</span>)
|
1780
|
+
<span class="ruby-identifier">e</span> = <span class="ruby-identifier">$~</span>.<span class="ruby-identifier">end</span>(<span class="ruby-value">1</span>)
|
1781
|
+
<span class="ruby-identifier">nl</span> = <span class="ruby-identifier">$&</span>
|
1782
|
+
<span class="ruby-identifier">tx</span> = <span class="ruby-identifier">slice</span>(<span class="ruby-identifier">i</span><span class="ruby-operator">...</span><span class="ruby-identifier">b</span>)
|
1783
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">ignore_indented</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">slice</span>(<span class="ruby-identifier">i</span><span class="ruby-operator">...</span><span class="ruby-identifier">b</span>) <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^[ ]+/</span>
|
1784
|
+
<span class="ruby-identifier">ns</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">tx</span>
|
1785
|
+
<span class="ruby-keyword kw">else</span>
|
1786
|
+
<span class="ruby-identifier">ns</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">tx</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/[ ]*\n+/</span>,<span class="ruby-value str">' '</span>)
|
1787
|
+
<span class="ruby-keyword kw">end</span>
|
1788
|
+
<span class="ruby-identifier">ns</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">nl</span>
|
1789
|
+
<span class="ruby-identifier">i</span> = <span class="ruby-identifier">e</span>
|
1790
|
+
<span class="ruby-keyword kw">end</span>
|
1791
|
+
<span class="ruby-identifier">ns</span>
|
1792
|
+
<span class="ruby-keyword kw">end</span>
|
1793
|
+
</pre>
|
1794
|
+
</div>
|
1795
|
+
</div>
|
1796
|
+
</div>
|
1797
|
+
<div class="method">
|
1798
|
+
<div class="title">
|
1799
|
+
<a name="M000488"></a><b>fold</b>(ignore_indented=false)
|
1800
|
+
</div>
|
1801
|
+
<div class="description">
|
1802
|
+
<p>
|
1803
|
+
Returns a new string with all new <a href="String.html#M000492">lines</a>
|
1804
|
+
removed from adjacent <a href="String.html#M000492">lines</a> of text.
|
1805
|
+
</p>
|
1806
|
+
<pre>
|
1807
|
+
s = "This is\na test.\n\nIt clumps\nlines of text."
|
1808
|
+
s.fold
|
1809
|
+
</pre>
|
1810
|
+
<p>
|
1811
|
+
<em>produces</em>
|
1812
|
+
</p>
|
1813
|
+
<pre>
|
1814
|
+
"This is a test.\n\nIt clumps lines of text. "
|
1815
|
+
</pre>
|
1816
|
+
<p>
|
1817
|
+
One arguable flaw with this, that might need a fix: if the given string
|
1818
|
+
ends in a newline, it is replaced with a single space.
|
1819
|
+
</p>
|
1820
|
+
<pre>
|
1821
|
+
CREDIT: Trans
|
1822
|
+
</pre>
|
1823
|
+
</div>
|
1824
|
+
<div class="sourcecode">
|
1825
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000488_source')" id="l_M000488_source">show source</a> ]</p>
|
1826
|
+
<div id="M000488_source" class="dyn-source">
|
1827
|
+
<pre>
|
1828
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/fold.rb, line 19</span>
|
1829
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fold</span>(<span class="ruby-identifier">ignore_indented</span>=<span class="ruby-keyword kw">false</span>)
|
1830
|
+
<span class="ruby-identifier">ns</span> = <span class="ruby-value str">''</span>
|
1831
|
+
<span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
|
1832
|
+
<span class="ruby-identifier">br</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-regexp re">/(\n\s*\n|\Z)/</span><span class="ruby-identifier">m</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span>
|
1833
|
+
<span class="ruby-identifier">b</span> = <span class="ruby-identifier">$~</span>.<span class="ruby-identifier">begin</span>(<span class="ruby-value">1</span>)
|
1834
|
+
<span class="ruby-identifier">e</span> = <span class="ruby-identifier">$~</span>.<span class="ruby-identifier">end</span>(<span class="ruby-value">1</span>)
|
1835
|
+
<span class="ruby-identifier">nl</span> = <span class="ruby-identifier">$&</span>
|
1836
|
+
<span class="ruby-identifier">tx</span> = <span class="ruby-identifier">slice</span>(<span class="ruby-identifier">i</span><span class="ruby-operator">...</span><span class="ruby-identifier">b</span>)
|
1837
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">ignore_indented</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">slice</span>(<span class="ruby-identifier">i</span><span class="ruby-operator">...</span><span class="ruby-identifier">b</span>) <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^[ ]+/</span>
|
1838
|
+
<span class="ruby-identifier">ns</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">tx</span>
|
1839
|
+
<span class="ruby-keyword kw">else</span>
|
1840
|
+
<span class="ruby-identifier">ns</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">tx</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/[ ]*\n+/</span>,<span class="ruby-value str">' '</span>)
|
1841
|
+
<span class="ruby-keyword kw">end</span>
|
1842
|
+
<span class="ruby-identifier">ns</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">nl</span>
|
1843
|
+
<span class="ruby-identifier">i</span> = <span class="ruby-identifier">e</span>
|
1844
|
+
<span class="ruby-keyword kw">end</span>
|
1845
|
+
<span class="ruby-identifier">ns</span>
|
1846
|
+
<span class="ruby-keyword kw">end</span>
|
1847
|
+
</pre>
|
1848
|
+
</div>
|
1849
|
+
</div>
|
1850
|
+
</div>
|
1851
|
+
<div class="method">
|
1852
|
+
<div class="title">
|
1853
|
+
<a name="M000501"></a><b>indent</b>(n)
|
1854
|
+
</div>
|
1855
|
+
<div class="description">
|
1856
|
+
<p>
|
1857
|
+
Indent left or right by n spaces. (This used to be called <a
|
1858
|
+
href="String.html#M000497">tab</a> and aliased as <a
|
1859
|
+
href="String.html#M000501">indent</a>.)
|
1860
|
+
</p>
|
1861
|
+
<pre>
|
1862
|
+
CREDIT: Gavin Sinclair
|
1863
|
+
CREDIT: Trans
|
1864
|
+
</pre>
|
1865
|
+
</div>
|
1866
|
+
<div class="sourcecode">
|
1867
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000501_source')" id="l_M000501_source">show source</a> ]</p>
|
1868
|
+
<div id="M000501_source" class="dyn-source">
|
1869
|
+
<pre>
|
1870
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 60</span>
|
1871
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">n</span>)
|
1872
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">>=</span> <span class="ruby-value">0</span>
|
1873
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/^/</span>, <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">n</span>)
|
1874
|
+
<span class="ruby-keyword kw">else</span>
|
1875
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-node">/^ {0,#{-n}}/</span>, <span class="ruby-value str">""</span>)
|
1876
|
+
<span class="ruby-keyword kw">end</span>
|
1877
|
+
<span class="ruby-keyword kw">end</span>
|
1878
|
+
</pre>
|
1879
|
+
</div>
|
1880
|
+
</div>
|
1881
|
+
</div>
|
1882
|
+
<div class="method">
|
1883
|
+
<div class="title">
|
1884
|
+
<a name="M000552"></a><b>indent</b>(n)
|
1885
|
+
</div>
|
1886
|
+
<div class="description">
|
1887
|
+
<p>
|
1888
|
+
Indent left or right by n spaces. (This used to be called <a
|
1889
|
+
href="String.html#M000497">tab</a> and aliased as <a
|
1890
|
+
href="String.html#M000501">indent</a>.)
|
1891
|
+
</p>
|
1892
|
+
<pre>
|
1893
|
+
CREDIT: Gavin Sinclair
|
1894
|
+
CREDIT: Trans
|
1895
|
+
</pre>
|
1896
|
+
</div>
|
1897
|
+
<div class="sourcecode">
|
1898
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000552_source')" id="l_M000552_source">show source</a> ]</p>
|
1899
|
+
<div id="M000552_source" class="dyn-source">
|
1900
|
+
<pre>
|
1901
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 60</span>
|
1902
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">n</span>)
|
1903
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">>=</span> <span class="ruby-value">0</span>
|
1904
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/^/</span>, <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">n</span>)
|
1905
|
+
<span class="ruby-keyword kw">else</span>
|
1906
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-node">/^ {0,#{-n}}/</span>, <span class="ruby-value str">""</span>)
|
1907
|
+
<span class="ruby-keyword kw">end</span>
|
1908
|
+
<span class="ruby-keyword kw">end</span>
|
1909
|
+
</pre>
|
1910
|
+
</div>
|
1911
|
+
</div>
|
1912
|
+
</div>
|
1913
|
+
<div class="method">
|
1914
|
+
<div class="title">
|
1915
|
+
<a name="M000507"></a><b>index_all</b>(s, reuse=false)
|
1916
|
+
</div>
|
1917
|
+
<div class="description">
|
1918
|
+
<p>
|
1919
|
+
Like index but returns an array of all index locations. The reuse flag
|
1920
|
+
allows the trailing portion of a match to be reused for subsquent matches.
|
1921
|
+
</p>
|
1922
|
+
<pre>
|
1923
|
+
"abcabcabc".index_all('a') #=> [0,3,6]
|
1924
|
+
|
1925
|
+
"bbb".index_all('bb', false) #=> [0]
|
1926
|
+
"bbb".index_all('bb', true) #=> [0,1]
|
1927
|
+
|
1928
|
+
TODO: Culd probably be defined for Indexable in general too.
|
1929
|
+
</pre>
|
1930
|
+
</div>
|
1931
|
+
<div class="sourcecode">
|
1932
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000507_source')" id="l_M000507_source">show source</a> ]</p>
|
1933
|
+
<div id="M000507_source" class="dyn-source">
|
1934
|
+
<pre>
|
1935
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 66</span>
|
1936
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index_all</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">reuse</span>=<span class="ruby-keyword kw">false</span>)
|
1937
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-identifier">s</span>)) <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">Regexp</span><span class="ruby-operator">===</span><span class="ruby-identifier">s</span>
|
1938
|
+
<span class="ruby-identifier">ia</span> = []; <span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
|
1939
|
+
<span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">i</span> = <span class="ruby-identifier">index</span>(<span class="ruby-identifier">s</span>,<span class="ruby-identifier">i</span>))
|
1940
|
+
<span class="ruby-identifier">ia</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">i</span>
|
1941
|
+
<span class="ruby-identifier">i</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">reuse</span> <span class="ruby-value">? </span><span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">$~</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">size</span>)
|
1942
|
+
<span class="ruby-keyword kw">end</span>
|
1943
|
+
<span class="ruby-identifier">ia</span>
|
1944
|
+
<span class="ruby-keyword kw">end</span>
|
1945
|
+
</pre>
|
1946
|
+
</div>
|
1947
|
+
</div>
|
1948
|
+
</div>
|
1949
|
+
<div class="method">
|
1950
|
+
<div class="title">
|
1951
|
+
<a name="M000558"></a><b>index_all</b>(s, reuse=false)
|
1952
|
+
</div>
|
1953
|
+
<div class="description">
|
1954
|
+
<p>
|
1955
|
+
Like index but returns an array of all index locations. The reuse flag
|
1956
|
+
allows the trailing portion of a match to be reused for subsquent matches.
|
1957
|
+
</p>
|
1958
|
+
<pre>
|
1959
|
+
"abcabcabc".index_all('a') #=> [0,3,6]
|
1960
|
+
|
1961
|
+
"bbb".index_all('bb', false) #=> [0]
|
1962
|
+
"bbb".index_all('bb', true) #=> [0,1]
|
1963
|
+
|
1964
|
+
TODO: Culd probably be defined for Indexable in general too.
|
1965
|
+
</pre>
|
1966
|
+
</div>
|
1967
|
+
<div class="sourcecode">
|
1968
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000558_source')" id="l_M000558_source">show source</a> ]</p>
|
1969
|
+
<div id="M000558_source" class="dyn-source">
|
1970
|
+
<pre>
|
1971
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 66</span>
|
1972
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index_all</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">reuse</span>=<span class="ruby-keyword kw">false</span>)
|
1973
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-identifier">s</span>)) <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">Regexp</span><span class="ruby-operator">===</span><span class="ruby-identifier">s</span>
|
1974
|
+
<span class="ruby-identifier">ia</span> = []; <span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
|
1975
|
+
<span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">i</span> = <span class="ruby-identifier">index</span>(<span class="ruby-identifier">s</span>,<span class="ruby-identifier">i</span>))
|
1976
|
+
<span class="ruby-identifier">ia</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">i</span>
|
1977
|
+
<span class="ruby-identifier">i</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">reuse</span> <span class="ruby-value">? </span><span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">$~</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">size</span>)
|
1978
|
+
<span class="ruby-keyword kw">end</span>
|
1979
|
+
<span class="ruby-identifier">ia</span>
|
1980
|
+
<span class="ruby-keyword kw">end</span>
|
1981
|
+
</pre>
|
1982
|
+
</div>
|
1983
|
+
</div>
|
1984
|
+
</div>
|
1985
|
+
<div class="method">
|
1986
|
+
<div class="title">
|
1987
|
+
<a name="M000581"></a><b>lchomp</b>(match)
|
1988
|
+
</div>
|
1989
|
+
<div class="description">
|
1990
|
+
<p>
|
1991
|
+
Left chomp.
|
1992
|
+
</p>
|
1993
|
+
<pre>
|
1994
|
+
"help".lchomp("h") #=> "elp"
|
1995
|
+
"help".lchomp("k") #=> "help"
|
1996
|
+
|
1997
|
+
CREDIT: Trans
|
1998
|
+
</pre>
|
1999
|
+
</div>
|
2000
|
+
<div class="sourcecode">
|
2001
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000581_source')" id="l_M000581_source">show source</a> ]</p>
|
2002
|
+
<div id="M000581_source" class="dyn-source">
|
2003
|
+
<pre>
|
2004
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 10</span>
|
2005
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp</span>(<span class="ruby-identifier">match</span>)
|
2006
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">index</span>(<span class="ruby-identifier">match</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
2007
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">match</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
|
2008
|
+
<span class="ruby-keyword kw">else</span>
|
2009
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
2010
|
+
<span class="ruby-keyword kw">end</span>
|
2011
|
+
<span class="ruby-keyword kw">end</span>
|
2012
|
+
</pre>
|
2013
|
+
</div>
|
2014
|
+
</div>
|
2015
|
+
</div>
|
2016
|
+
<div class="method">
|
2017
|
+
<div class="title">
|
2018
|
+
<a name="M000530"></a><b>lchomp</b>(match)
|
2019
|
+
</div>
|
2020
|
+
<div class="description">
|
2021
|
+
<p>
|
2022
|
+
Left chomp.
|
2023
|
+
</p>
|
2024
|
+
<pre>
|
2025
|
+
"help".lchomp("h") #=> "elp"
|
2026
|
+
"help".lchomp("k") #=> "help"
|
2027
|
+
|
2028
|
+
CREDIT: Trans
|
2029
|
+
</pre>
|
2030
|
+
</div>
|
2031
|
+
<div class="sourcecode">
|
2032
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000530_source')" id="l_M000530_source">show source</a> ]</p>
|
2033
|
+
<div id="M000530_source" class="dyn-source">
|
2034
|
+
<pre>
|
2035
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 10</span>
|
2036
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp</span>(<span class="ruby-identifier">match</span>)
|
2037
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">index</span>(<span class="ruby-identifier">match</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
2038
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">match</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
|
2039
|
+
<span class="ruby-keyword kw">else</span>
|
2040
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
2041
|
+
<span class="ruby-keyword kw">end</span>
|
2042
|
+
<span class="ruby-keyword kw">end</span>
|
2043
|
+
</pre>
|
2044
|
+
</div>
|
2045
|
+
</div>
|
2046
|
+
</div>
|
2047
|
+
<div class="method">
|
2048
|
+
<div class="title">
|
2049
|
+
<a name="M000582"></a><b>lchomp!</b>(match)
|
2050
|
+
</div>
|
2051
|
+
<div class="description">
|
2052
|
+
<p>
|
2053
|
+
In-place left chomp.
|
2054
|
+
</p>
|
2055
|
+
<pre>
|
2056
|
+
"help".lchomp("h") #=> "elp"
|
2057
|
+
"help".lchomp("k") #=> "help"
|
2058
|
+
|
2059
|
+
CREDIT: Trans
|
2060
|
+
</pre>
|
2061
|
+
</div>
|
2062
|
+
<div class="sourcecode">
|
2063
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000582_source')" id="l_M000582_source">show source</a> ]</p>
|
2064
|
+
<div id="M000582_source" class="dyn-source">
|
2065
|
+
<pre>
|
2066
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 25</span>
|
2067
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp!</span>(<span class="ruby-identifier">match</span>)
|
2068
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">index</span>(<span class="ruby-identifier">match</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
2069
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">match</span>.<span class="ruby-identifier">size</span>] = <span class="ruby-value str">''</span>
|
2070
|
+
<span class="ruby-keyword kw">self</span>
|
2071
|
+
<span class="ruby-keyword kw">end</span>
|
2072
|
+
<span class="ruby-keyword kw">end</span>
|
2073
|
+
</pre>
|
2074
|
+
</div>
|
2075
|
+
</div>
|
2076
|
+
</div>
|
2077
|
+
<div class="method">
|
2078
|
+
<div class="title">
|
2079
|
+
<a name="M000531"></a><b>lchomp!</b>(match)
|
2080
|
+
</div>
|
2081
|
+
<div class="description">
|
2082
|
+
<p>
|
2083
|
+
In-place left chomp.
|
2084
|
+
</p>
|
2085
|
+
<pre>
|
2086
|
+
"help".lchomp("h") #=> "elp"
|
2087
|
+
"help".lchomp("k") #=> "help"
|
2088
|
+
|
2089
|
+
CREDIT: Trans
|
2090
|
+
</pre>
|
2091
|
+
</div>
|
2092
|
+
<div class="sourcecode">
|
2093
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000531_source')" id="l_M000531_source">show source</a> ]</p>
|
2094
|
+
<div id="M000531_source" class="dyn-source">
|
2095
|
+
<pre>
|
2096
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 25</span>
|
2097
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp!</span>(<span class="ruby-identifier">match</span>)
|
2098
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">index</span>(<span class="ruby-identifier">match</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
2099
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">match</span>.<span class="ruby-identifier">size</span>] = <span class="ruby-value str">''</span>
|
2100
|
+
<span class="ruby-keyword kw">self</span>
|
2101
|
+
<span class="ruby-keyword kw">end</span>
|
2102
|
+
<span class="ruby-keyword kw">end</span>
|
2103
|
+
</pre>
|
2104
|
+
</div>
|
2105
|
+
</div>
|
2106
|
+
</div>
|
2107
|
+
<div class="method">
|
2108
|
+
<div class="title">
|
2109
|
+
<a name="M000573"></a><b>line_wrap</b>(width, tabs=4)
|
2110
|
+
</div>
|
2111
|
+
<div class="description">
|
2112
|
+
<p>
|
2113
|
+
Line wrap at width.
|
2114
|
+
</p>
|
2115
|
+
<pre>
|
2116
|
+
puts "1234567890".line_wrap(5)
|
2117
|
+
</pre>
|
2118
|
+
<p>
|
2119
|
+
<em>produces</em>
|
2120
|
+
</p>
|
2121
|
+
<pre>
|
2122
|
+
12345
|
2123
|
+
67890
|
2124
|
+
|
2125
|
+
CREDIT: Trans
|
2126
|
+
</pre>
|
2127
|
+
</div>
|
2128
|
+
<div class="sourcecode">
|
2129
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000573_source')" id="l_M000573_source">show source</a> ]</p>
|
2130
|
+
<div id="M000573_source" class="dyn-source">
|
2131
|
+
<pre>
|
2132
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/line_wrap.rb, line 14</span>
|
2133
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">line_wrap</span>(<span class="ruby-identifier">width</span>, <span class="ruby-identifier">tabs</span>=<span class="ruby-value">4</span>)
|
2134
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\t/</span>,<span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">tabs</span>) <span class="ruby-comment cmt"># tabs default to 4 spaces</span>
|
2135
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-identifier">s</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\n/</span>,<span class="ruby-value str">' '</span>)
|
2136
|
+
<span class="ruby-identifier">r</span> = <span class="ruby-identifier">s</span>.<span class="ruby-identifier">scan</span>( <span class="ruby-node">/.{1,#{width}}/</span> )
|
2137
|
+
<span class="ruby-identifier">r</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">"\n"</span>) <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span>
|
2138
|
+
<span class="ruby-keyword kw">end</span>
|
2139
|
+
</pre>
|
2140
|
+
</div>
|
2141
|
+
</div>
|
2142
|
+
</div>
|
2143
|
+
<div class="method">
|
2144
|
+
<div class="title">
|
2145
|
+
<a name="M000522"></a><b>line_wrap</b>(width, tabs=4)
|
2146
|
+
</div>
|
2147
|
+
<div class="description">
|
2148
|
+
<p>
|
2149
|
+
Line wrap at width.
|
2150
|
+
</p>
|
2151
|
+
<pre>
|
2152
|
+
puts "1234567890".line_wrap(5)
|
2153
|
+
</pre>
|
2154
|
+
<p>
|
2155
|
+
<em>produces</em>
|
2156
|
+
</p>
|
2157
|
+
<pre>
|
2158
|
+
12345
|
2159
|
+
67890
|
2160
|
+
|
2161
|
+
CREDIT: Trans
|
2162
|
+
</pre>
|
2163
|
+
</div>
|
2164
|
+
<div class="sourcecode">
|
2165
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000522_source')" id="l_M000522_source">show source</a> ]</p>
|
2166
|
+
<div id="M000522_source" class="dyn-source">
|
2167
|
+
<pre>
|
2168
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/line_wrap.rb, line 14</span>
|
2169
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">line_wrap</span>(<span class="ruby-identifier">width</span>, <span class="ruby-identifier">tabs</span>=<span class="ruby-value">4</span>)
|
2170
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\t/</span>,<span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">tabs</span>) <span class="ruby-comment cmt"># tabs default to 4 spaces</span>
|
2171
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-identifier">s</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\n/</span>,<span class="ruby-value str">' '</span>)
|
2172
|
+
<span class="ruby-identifier">r</span> = <span class="ruby-identifier">s</span>.<span class="ruby-identifier">scan</span>( <span class="ruby-node">/.{1,#{width}}/</span> )
|
2173
|
+
<span class="ruby-identifier">r</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">"\n"</span>) <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span>
|
2174
|
+
<span class="ruby-keyword kw">end</span>
|
2175
|
+
</pre>
|
2176
|
+
</div>
|
2177
|
+
</div>
|
2178
|
+
</div>
|
2179
|
+
<div class="method">
|
2180
|
+
<div class="title">
|
2181
|
+
<a name="M000543"></a><b>lines</b>()
|
2182
|
+
</div>
|
2183
|
+
<div class="description">
|
2184
|
+
<p>
|
2185
|
+
Returns an array of characters.
|
2186
|
+
</p>
|
2187
|
+
<pre>
|
2188
|
+
"abc\n123".lines #=> ["abc","123"]
|
2189
|
+
</pre>
|
2190
|
+
</div>
|
2191
|
+
<div class="sourcecode">
|
2192
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000543_source')" id="l_M000543_source">show source</a> ]</p>
|
2193
|
+
<div id="M000543_source" class="dyn-source">
|
2194
|
+
<pre>
|
2195
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/lines.rb, line 9</span>
|
2196
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lines</span>
|
2197
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/\n/</span>)
|
2198
|
+
<span class="ruby-keyword kw">end</span>
|
2199
|
+
</pre>
|
2200
|
+
</div>
|
2201
|
+
</div>
|
2202
|
+
</div>
|
2203
|
+
<div class="method">
|
2204
|
+
<div class="title">
|
2205
|
+
<a name="M000492"></a><b>lines</b>()
|
2206
|
+
</div>
|
2207
|
+
<div class="description">
|
2208
|
+
<p>
|
2209
|
+
Returns an array of characters.
|
2210
|
+
</p>
|
2211
|
+
<pre>
|
2212
|
+
"abc\n123".lines #=> ["abc","123"]
|
2213
|
+
</pre>
|
2214
|
+
</div>
|
2215
|
+
<div class="sourcecode">
|
2216
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000492_source')" id="l_M000492_source">show source</a> ]</p>
|
2217
|
+
<div id="M000492_source" class="dyn-source">
|
2218
|
+
<pre>
|
2219
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/lines.rb, line 9</span>
|
2220
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lines</span>
|
2221
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/\n/</span>)
|
2222
|
+
<span class="ruby-keyword kw">end</span>
|
2223
|
+
</pre>
|
2224
|
+
</div>
|
2225
|
+
</div>
|
2226
|
+
</div>
|
2227
|
+
<div class="method">
|
2228
|
+
<div class="title">
|
2229
|
+
<a name="M000503"></a><b>margin</b>(n=0)
|
2230
|
+
</div>
|
2231
|
+
<div class="description">
|
2232
|
+
<p>
|
2233
|
+
Provides a <a href="String.html#M000503">margin</a> controlled string.
|
2234
|
+
</p>
|
2235
|
+
<pre>
|
2236
|
+
x = %Q{
|
2237
|
+
| This
|
2238
|
+
| is
|
2239
|
+
| margin controlled!
|
2240
|
+
}.margin
|
2241
|
+
|
2242
|
+
NOTE: This may still need a bit of tweaking.
|
2243
|
+
|
2244
|
+
CREDIT: Trans
|
2245
|
+
</pre>
|
2246
|
+
</div>
|
2247
|
+
<div class="sourcecode">
|
2248
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000503_source')" id="l_M000503_source">show source</a> ]</p>
|
2249
|
+
<div id="M000503_source" class="dyn-source">
|
2250
|
+
<pre>
|
2251
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 89</span>
|
2252
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">margin</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">0</span>)
|
2253
|
+
<span class="ruby-comment cmt">#d = /\A.*\n\s*(.)/.match( self )[1]</span>
|
2254
|
+
<span class="ruby-comment cmt">#d = /\A\s*(.)/.match( self)[1] unless d</span>
|
2255
|
+
<span class="ruby-identifier">d</span> = ((<span class="ruby-regexp re">/\A.*\n\s*(.)/</span>.<span class="ruby-identifier">match</span>(<span class="ruby-keyword kw">self</span>)) <span class="ruby-operator">||</span>
|
2256
|
+
(<span class="ruby-regexp re">/\A\s*(.)/</span>.<span class="ruby-identifier">match</span>(<span class="ruby-keyword kw">self</span>)))[<span class="ruby-value">1</span>]
|
2257
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-value str">''</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">d</span>
|
2258
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
2259
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\n\s*\Z/</span>,<span class="ruby-value str">''</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-node">/^\s*[#{d}]/</span>, <span class="ruby-value str">''</span>)
|
2260
|
+
<span class="ruby-keyword kw">else</span>
|
2261
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\n\s*\Z/</span>,<span class="ruby-value str">''</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-node">/^\s*[#{d}]/</span>, <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">n</span>)
|
2262
|
+
<span class="ruby-keyword kw">end</span>
|
2263
|
+
<span class="ruby-keyword kw">end</span>
|
2264
|
+
</pre>
|
2265
|
+
</div>
|
2266
|
+
</div>
|
2267
|
+
</div>
|
2268
|
+
<div class="method">
|
2269
|
+
<div class="title">
|
2270
|
+
<a name="M000554"></a><b>margin</b>(n=0)
|
2271
|
+
</div>
|
2272
|
+
<div class="description">
|
2273
|
+
<p>
|
2274
|
+
Provides a <a href="String.html#M000503">margin</a> controlled string.
|
2275
|
+
</p>
|
2276
|
+
<pre>
|
2277
|
+
x = %Q{
|
2278
|
+
| This
|
2279
|
+
| is
|
2280
|
+
| margin controlled!
|
2281
|
+
}.margin
|
2282
|
+
|
2283
|
+
NOTE: This may still need a bit of tweaking.
|
2284
|
+
|
2285
|
+
CREDIT: Trans
|
2286
|
+
</pre>
|
2287
|
+
</div>
|
2288
|
+
<div class="sourcecode">
|
2289
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000554_source')" id="l_M000554_source">show source</a> ]</p>
|
2290
|
+
<div id="M000554_source" class="dyn-source">
|
2291
|
+
<pre>
|
2292
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 89</span>
|
2293
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">margin</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">0</span>)
|
2294
|
+
<span class="ruby-comment cmt">#d = /\A.*\n\s*(.)/.match( self )[1]</span>
|
2295
|
+
<span class="ruby-comment cmt">#d = /\A\s*(.)/.match( self)[1] unless d</span>
|
2296
|
+
<span class="ruby-identifier">d</span> = ((<span class="ruby-regexp re">/\A.*\n\s*(.)/</span>.<span class="ruby-identifier">match</span>(<span class="ruby-keyword kw">self</span>)) <span class="ruby-operator">||</span>
|
2297
|
+
(<span class="ruby-regexp re">/\A\s*(.)/</span>.<span class="ruby-identifier">match</span>(<span class="ruby-keyword kw">self</span>)))[<span class="ruby-value">1</span>]
|
2298
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-value str">''</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">d</span>
|
2299
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
2300
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\n\s*\Z/</span>,<span class="ruby-value str">''</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-node">/^\s*[#{d}]/</span>, <span class="ruby-value str">''</span>)
|
2301
|
+
<span class="ruby-keyword kw">else</span>
|
2302
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\n\s*\Z/</span>,<span class="ruby-value str">''</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-node">/^\s*[#{d}]/</span>, <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">n</span>)
|
2303
|
+
<span class="ruby-keyword kw">end</span>
|
2304
|
+
<span class="ruby-keyword kw">end</span>
|
2305
|
+
</pre>
|
2306
|
+
</div>
|
2307
|
+
</div>
|
2308
|
+
</div>
|
2309
|
+
<div class="method">
|
2310
|
+
<div class="title">
|
2311
|
+
<a name="M000562"></a><b>mscan</b>(re) {|| ...}
|
2312
|
+
</div>
|
2313
|
+
<div class="description">
|
2314
|
+
<p>
|
2315
|
+
Like scan but returns <a href="MatchData.html">MatchData</a> ($~) rather
|
2316
|
+
then matched string ($&).
|
2317
|
+
</p>
|
2318
|
+
<pre>
|
2319
|
+
CREDIT: Trans
|
2320
|
+
</pre>
|
2321
|
+
</div>
|
2322
|
+
<div class="sourcecode">
|
2323
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000562_source')" id="l_M000562_source">show source</a> ]</p>
|
2324
|
+
<div id="M000562_source" class="dyn-source">
|
2325
|
+
<pre>
|
2326
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/mscan.rb, line 8</span>
|
2327
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mscan</span>(<span class="ruby-identifier">re</span>) <span class="ruby-comment cmt">#:yield:</span>
|
2328
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
2329
|
+
<span class="ruby-identifier">scan</span>(<span class="ruby-identifier">re</span>) { <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">$~</span>) }
|
2330
|
+
<span class="ruby-keyword kw">else</span>
|
2331
|
+
<span class="ruby-identifier">m</span> = []
|
2332
|
+
<span class="ruby-identifier">scan</span>(<span class="ruby-identifier">re</span>) { <span class="ruby-identifier">m</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">$~</span> }
|
2333
|
+
<span class="ruby-identifier">m</span>
|
2334
|
+
<span class="ruby-keyword kw">end</span>
|
2335
|
+
<span class="ruby-keyword kw">end</span>
|
2336
|
+
</pre>
|
2337
|
+
</div>
|
2338
|
+
</div>
|
2339
|
+
</div>
|
2340
|
+
<div class="method">
|
2341
|
+
<div class="title">
|
2342
|
+
<a name="M000511"></a><b>mscan</b>(re) {|| ...}
|
2343
|
+
</div>
|
2344
|
+
<div class="description">
|
2345
|
+
<p>
|
2346
|
+
Like scan but returns <a href="MatchData.html">MatchData</a> ($~) rather
|
2347
|
+
then matched string ($&).
|
2348
|
+
</p>
|
2349
|
+
<pre>
|
2350
|
+
CREDIT: Trans
|
2351
|
+
</pre>
|
2352
|
+
</div>
|
2353
|
+
<div class="sourcecode">
|
2354
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000511_source')" id="l_M000511_source">show source</a> ]</p>
|
2355
|
+
<div id="M000511_source" class="dyn-source">
|
2356
|
+
<pre>
|
2357
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/mscan.rb, line 8</span>
|
2358
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mscan</span>(<span class="ruby-identifier">re</span>) <span class="ruby-comment cmt">#:yield:</span>
|
2359
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
2360
|
+
<span class="ruby-identifier">scan</span>(<span class="ruby-identifier">re</span>) { <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">$~</span>) }
|
2361
|
+
<span class="ruby-keyword kw">else</span>
|
2362
|
+
<span class="ruby-identifier">m</span> = []
|
2363
|
+
<span class="ruby-identifier">scan</span>(<span class="ruby-identifier">re</span>) { <span class="ruby-identifier">m</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">$~</span> }
|
2364
|
+
<span class="ruby-identifier">m</span>
|
2365
|
+
<span class="ruby-keyword kw">end</span>
|
2366
|
+
<span class="ruby-keyword kw">end</span>
|
2367
|
+
</pre>
|
2368
|
+
</div>
|
2369
|
+
</div>
|
2370
|
+
</div>
|
2371
|
+
<div class="method">
|
2372
|
+
<div class="title">
|
2373
|
+
<a name="M000515"></a><b>natcmp</b>(str2, caseInsensitive=false)
|
2374
|
+
</div>
|
2375
|
+
<div class="description">
|
2376
|
+
<p>
|
2377
|
+
‘Natural order’ comparison of strings, e.g.
|
2378
|
+
</p>
|
2379
|
+
<pre>
|
2380
|
+
"my_prog_v1.1.0" < "my_prog_v1.2.0" < "my_prog_v1.10.0"
|
2381
|
+
</pre>
|
2382
|
+
<p>
|
2383
|
+
which does not follow alphabetically. A secondary parameter, if set to
|
2384
|
+
<em>true</em>, makes the comparison case insensitive.
|
2385
|
+
</p>
|
2386
|
+
<pre>
|
2387
|
+
"Hello.10".natcmp("Hello.1") #=> -1
|
2388
|
+
|
2389
|
+
TODO: Invert case flag?
|
2390
|
+
|
2391
|
+
CREDIT: Alan Davies
|
2392
|
+
CREDIT: Martin Pool
|
2393
|
+
</pre>
|
2394
|
+
</div>
|
2395
|
+
<div class="sourcecode">
|
2396
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000515_source')" id="l_M000515_source">show source</a> ]</p>
|
2397
|
+
<div id="M000515_source" class="dyn-source">
|
2398
|
+
<pre>
|
2399
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/natcmp.rb, line 47</span>
|
2400
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">natcmp</span>(<span class="ruby-identifier">str2</span>, <span class="ruby-identifier">caseInsensitive</span>=<span class="ruby-keyword kw">false</span>)
|
2401
|
+
<span class="ruby-identifier">str1</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
2402
|
+
<span class="ruby-identifier">str2</span> = <span class="ruby-identifier">str2</span>.<span class="ruby-identifier">dup</span>
|
2403
|
+
<span class="ruby-identifier">compareExpression</span> = <span class="ruby-regexp re">/^(\D*)(\d*)(.*)$/</span>
|
2404
|
+
|
2405
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">caseInsensitive</span>
|
2406
|
+
<span class="ruby-identifier">str1</span>.<span class="ruby-identifier">downcase!</span>
|
2407
|
+
<span class="ruby-identifier">str2</span>.<span class="ruby-identifier">downcase!</span>
|
2408
|
+
<span class="ruby-keyword kw">end</span>
|
2409
|
+
|
2410
|
+
<span class="ruby-comment cmt"># remove all whitespace</span>
|
2411
|
+
<span class="ruby-identifier">str1</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/\s*/</span>, <span class="ruby-value str">''</span>)
|
2412
|
+
<span class="ruby-identifier">str2</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/\s*/</span>, <span class="ruby-value str">''</span>)
|
2413
|
+
|
2414
|
+
<span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">str1</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>) <span class="ruby-keyword kw">or</span> (<span class="ruby-identifier">str2</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>) <span class="ruby-keyword kw">do</span>
|
2415
|
+
<span class="ruby-comment cmt"># Extract non-digits, digits and rest of string</span>
|
2416
|
+
<span class="ruby-identifier">str1</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">compareExpression</span>
|
2417
|
+
<span class="ruby-identifier">chars1</span>, <span class="ruby-identifier">num1</span>, <span class="ruby-identifier">str1</span> = <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">dup</span>, <span class="ruby-identifier">$2</span>.<span class="ruby-identifier">dup</span>, <span class="ruby-identifier">$3</span>.<span class="ruby-identifier">dup</span>
|
2418
|
+
<span class="ruby-identifier">str2</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">compareExpression</span>
|
2419
|
+
<span class="ruby-identifier">chars2</span>, <span class="ruby-identifier">num2</span>, <span class="ruby-identifier">str2</span> = <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">dup</span>, <span class="ruby-identifier">$2</span>.<span class="ruby-identifier">dup</span>, <span class="ruby-identifier">$3</span>.<span class="ruby-identifier">dup</span>
|
2420
|
+
<span class="ruby-comment cmt"># Compare the non-digits</span>
|
2421
|
+
<span class="ruby-keyword kw">case</span> (<span class="ruby-identifier">chars1</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">chars2</span>)
|
2422
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value">0</span> <span class="ruby-comment cmt"># Non-digits are the same, compare the digits...</span>
|
2423
|
+
<span class="ruby-comment cmt"># If either number begins with a zero, then compare alphabetically,</span>
|
2424
|
+
<span class="ruby-comment cmt"># otherwise compare numerically</span>
|
2425
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">num1</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">!=</span> <span class="ruby-value">48</span>) <span class="ruby-keyword kw">and</span> (<span class="ruby-identifier">num2</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">!=</span> <span class="ruby-value">48</span>)
|
2426
|
+
<span class="ruby-identifier">num1</span>, <span class="ruby-identifier">num2</span> = <span class="ruby-identifier">num1</span>.<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">num2</span>.<span class="ruby-identifier">to_i</span>
|
2427
|
+
<span class="ruby-keyword kw">end</span>
|
2428
|
+
<span class="ruby-keyword kw">case</span> (<span class="ruby-identifier">num1</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">num2</span>)
|
2429
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value">-1</span> <span class="ruby-keyword kw">then</span> <span class="ruby-keyword kw">return</span> <span class="ruby-value">-1</span>
|
2430
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">then</span> <span class="ruby-keyword kw">return</span> <span class="ruby-value">1</span>
|
2431
|
+
<span class="ruby-keyword kw">end</span>
|
2432
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value">-1</span> <span class="ruby-keyword kw">then</span> <span class="ruby-keyword kw">return</span> <span class="ruby-value">-1</span>
|
2433
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">then</span> <span class="ruby-keyword kw">return</span> <span class="ruby-value">1</span>
|
2434
|
+
<span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt"># case</span>
|
2435
|
+
<span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt"># while</span>
|
2436
|
+
|
2437
|
+
<span class="ruby-comment cmt"># strings are naturally equal.</span>
|
2438
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-value">0</span>
|
2439
|
+
<span class="ruby-keyword kw">end</span>
|
2440
|
+
|
2441
|
+
<span class="ruby-keyword kw">end</span>
|
2442
|
+
</pre>
|
2443
|
+
</div>
|
2444
|
+
</div>
|
2445
|
+
</div>
|
2446
|
+
<div class="method">
|
2447
|
+
<div class="title">
|
2448
|
+
<a name="M000566"></a><b>natcmp</b>(str2, caseInsensitive=false)
|
2449
|
+
</div>
|
2450
|
+
<div class="description">
|
2451
|
+
<p>
|
2452
|
+
‘Natural order’ comparison of strings, e.g.
|
2453
|
+
</p>
|
2454
|
+
<pre>
|
2455
|
+
"my_prog_v1.1.0" < "my_prog_v1.2.0" < "my_prog_v1.10.0"
|
2456
|
+
</pre>
|
2457
|
+
<p>
|
2458
|
+
which does not follow alphabetically. A secondary parameter, if set to
|
2459
|
+
<em>true</em>, makes the comparison case insensitive.
|
2460
|
+
</p>
|
2461
|
+
<pre>
|
2462
|
+
"Hello.10".natcmp("Hello.1") #=> -1
|
2463
|
+
|
2464
|
+
TODO: Invert case flag?
|
2465
|
+
|
2466
|
+
CREDIT: Alan Davies
|
2467
|
+
CREDIT: Martin Pool
|
2468
|
+
</pre>
|
2469
|
+
</div>
|
2470
|
+
<div class="sourcecode">
|
2471
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000566_source')" id="l_M000566_source">show source</a> ]</p>
|
2472
|
+
<div id="M000566_source" class="dyn-source">
|
2473
|
+
<pre>
|
2474
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/natcmp.rb, line 47</span>
|
2475
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">natcmp</span>(<span class="ruby-identifier">str2</span>, <span class="ruby-identifier">caseInsensitive</span>=<span class="ruby-keyword kw">false</span>)
|
2476
|
+
<span class="ruby-identifier">str1</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
2477
|
+
<span class="ruby-identifier">str2</span> = <span class="ruby-identifier">str2</span>.<span class="ruby-identifier">dup</span>
|
2478
|
+
<span class="ruby-identifier">compareExpression</span> = <span class="ruby-regexp re">/^(\D*)(\d*)(.*)$/</span>
|
2479
|
+
|
2480
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">caseInsensitive</span>
|
2481
|
+
<span class="ruby-identifier">str1</span>.<span class="ruby-identifier">downcase!</span>
|
2482
|
+
<span class="ruby-identifier">str2</span>.<span class="ruby-identifier">downcase!</span>
|
2483
|
+
<span class="ruby-keyword kw">end</span>
|
2484
|
+
|
2485
|
+
<span class="ruby-comment cmt"># remove all whitespace</span>
|
2486
|
+
<span class="ruby-identifier">str1</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/\s*/</span>, <span class="ruby-value str">''</span>)
|
2487
|
+
<span class="ruby-identifier">str2</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/\s*/</span>, <span class="ruby-value str">''</span>)
|
2488
|
+
|
2489
|
+
<span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">str1</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>) <span class="ruby-keyword kw">or</span> (<span class="ruby-identifier">str2</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>) <span class="ruby-keyword kw">do</span>
|
2490
|
+
<span class="ruby-comment cmt"># Extract non-digits, digits and rest of string</span>
|
2491
|
+
<span class="ruby-identifier">str1</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">compareExpression</span>
|
2492
|
+
<span class="ruby-identifier">chars1</span>, <span class="ruby-identifier">num1</span>, <span class="ruby-identifier">str1</span> = <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">dup</span>, <span class="ruby-identifier">$2</span>.<span class="ruby-identifier">dup</span>, <span class="ruby-identifier">$3</span>.<span class="ruby-identifier">dup</span>
|
2493
|
+
<span class="ruby-identifier">str2</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">compareExpression</span>
|
2494
|
+
<span class="ruby-identifier">chars2</span>, <span class="ruby-identifier">num2</span>, <span class="ruby-identifier">str2</span> = <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">dup</span>, <span class="ruby-identifier">$2</span>.<span class="ruby-identifier">dup</span>, <span class="ruby-identifier">$3</span>.<span class="ruby-identifier">dup</span>
|
2495
|
+
<span class="ruby-comment cmt"># Compare the non-digits</span>
|
2496
|
+
<span class="ruby-keyword kw">case</span> (<span class="ruby-identifier">chars1</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">chars2</span>)
|
2497
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value">0</span> <span class="ruby-comment cmt"># Non-digits are the same, compare the digits...</span>
|
2498
|
+
<span class="ruby-comment cmt"># If either number begins with a zero, then compare alphabetically,</span>
|
2499
|
+
<span class="ruby-comment cmt"># otherwise compare numerically</span>
|
2500
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">num1</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">!=</span> <span class="ruby-value">48</span>) <span class="ruby-keyword kw">and</span> (<span class="ruby-identifier">num2</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">!=</span> <span class="ruby-value">48</span>)
|
2501
|
+
<span class="ruby-identifier">num1</span>, <span class="ruby-identifier">num2</span> = <span class="ruby-identifier">num1</span>.<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">num2</span>.<span class="ruby-identifier">to_i</span>
|
2502
|
+
<span class="ruby-keyword kw">end</span>
|
2503
|
+
<span class="ruby-keyword kw">case</span> (<span class="ruby-identifier">num1</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">num2</span>)
|
2504
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value">-1</span> <span class="ruby-keyword kw">then</span> <span class="ruby-keyword kw">return</span> <span class="ruby-value">-1</span>
|
2505
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">then</span> <span class="ruby-keyword kw">return</span> <span class="ruby-value">1</span>
|
2506
|
+
<span class="ruby-keyword kw">end</span>
|
2507
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value">-1</span> <span class="ruby-keyword kw">then</span> <span class="ruby-keyword kw">return</span> <span class="ruby-value">-1</span>
|
2508
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">then</span> <span class="ruby-keyword kw">return</span> <span class="ruby-value">1</span>
|
2509
|
+
<span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt"># case</span>
|
2510
|
+
<span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt"># while</span>
|
2511
|
+
|
2512
|
+
<span class="ruby-comment cmt"># strings are naturally equal.</span>
|
2513
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-value">0</span>
|
2514
|
+
<span class="ruby-keyword kw">end</span>
|
2515
|
+
|
2516
|
+
<span class="ruby-keyword kw">end</span>
|
2517
|
+
</pre>
|
2518
|
+
</div>
|
2519
|
+
</div>
|
2520
|
+
</div>
|
2521
|
+
<div class="method">
|
2522
|
+
<div class="title">
|
2523
|
+
<a name="M000585"></a><b>nchar</b>(n, replacement=nil)
|
2524
|
+
</div>
|
2525
|
+
<div class="description">
|
2526
|
+
<p>
|
2527
|
+
Returns <em>n</em> characters of the string. If <em>n</em> is positive the
|
2528
|
+
characters are from the beginning of the string. If <em>n</em> is negative
|
2529
|
+
from the end of the string.
|
2530
|
+
</p>
|
2531
|
+
<p>
|
2532
|
+
Alternatively a replacement string can be given, which will replace the
|
2533
|
+
<em>n</em> characters.
|
2534
|
+
</p>
|
2535
|
+
<pre>
|
2536
|
+
str = "this is text"
|
2537
|
+
str.nchar(4) #=> "this"
|
2538
|
+
str.nchar(4, 'that') #=> "that"
|
2539
|
+
str #=> "that is text"
|
2540
|
+
|
2541
|
+
CREDIT: ?
|
2542
|
+
</pre>
|
2543
|
+
</div>
|
2544
|
+
<div class="sourcecode">
|
2545
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000585_source')" id="l_M000585_source">show source</a> ]</p>
|
2546
|
+
<div id="M000585_source" class="dyn-source">
|
2547
|
+
<pre>
|
2548
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/nchar.rb, line 17</span>
|
2549
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nchar</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">replacement</span>=<span class="ruby-keyword kw">nil</span>)
|
2550
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">replacement</span>
|
2551
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
2552
|
+
<span class="ruby-identifier">n</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> (<span class="ruby-identifier">s</span>[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">n</span>] = <span class="ruby-identifier">replacement</span>) <span class="ruby-operator">:</span> (<span class="ruby-identifier">s</span>[<span class="ruby-identifier">n</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>] = <span class="ruby-identifier">replacement</span>)
|
2553
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
|
2554
|
+
<span class="ruby-keyword kw">else</span>
|
2555
|
+
<span class="ruby-identifier">n</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">n</span>] <span class="ruby-operator">:</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">n</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
|
2556
|
+
<span class="ruby-keyword kw">end</span>
|
2557
|
+
<span class="ruby-keyword kw">end</span>
|
2558
|
+
</pre>
|
2559
|
+
</div>
|
2560
|
+
</div>
|
2561
|
+
</div>
|
2562
|
+
<div class="method">
|
2563
|
+
<div class="title">
|
2564
|
+
<a name="M000534"></a><b>nchar</b>(n, replacement=nil)
|
2565
|
+
</div>
|
2566
|
+
<div class="description">
|
2567
|
+
<p>
|
2568
|
+
Returns <em>n</em> characters of the string. If <em>n</em> is positive the
|
2569
|
+
characters are from the beginning of the string. If <em>n</em> is negative
|
2570
|
+
from the end of the string.
|
2571
|
+
</p>
|
2572
|
+
<p>
|
2573
|
+
Alternatively a replacement string can be given, which will replace the
|
2574
|
+
<em>n</em> characters.
|
2575
|
+
</p>
|
2576
|
+
<pre>
|
2577
|
+
str = "this is text"
|
2578
|
+
str.nchar(4) #=> "this"
|
2579
|
+
str.nchar(4, 'that') #=> "that"
|
2580
|
+
str #=> "that is text"
|
2581
|
+
|
2582
|
+
CREDIT: ?
|
2583
|
+
</pre>
|
2584
|
+
</div>
|
2585
|
+
<div class="sourcecode">
|
2586
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000534_source')" id="l_M000534_source">show source</a> ]</p>
|
2587
|
+
<div id="M000534_source" class="dyn-source">
|
2588
|
+
<pre>
|
2589
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/nchar.rb, line 17</span>
|
2590
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nchar</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">replacement</span>=<span class="ruby-keyword kw">nil</span>)
|
2591
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">replacement</span>
|
2592
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
2593
|
+
<span class="ruby-identifier">n</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> (<span class="ruby-identifier">s</span>[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">n</span>] = <span class="ruby-identifier">replacement</span>) <span class="ruby-operator">:</span> (<span class="ruby-identifier">s</span>[<span class="ruby-identifier">n</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>] = <span class="ruby-identifier">replacement</span>)
|
2594
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
|
2595
|
+
<span class="ruby-keyword kw">else</span>
|
2596
|
+
<span class="ruby-identifier">n</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">n</span>] <span class="ruby-operator">:</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">n</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
|
2597
|
+
<span class="ruby-keyword kw">end</span>
|
2598
|
+
<span class="ruby-keyword kw">end</span>
|
2599
|
+
</pre>
|
2600
|
+
</div>
|
2601
|
+
</div>
|
2602
|
+
</div>
|
2603
|
+
<div class="method">
|
2604
|
+
<div class="title">
|
2605
|
+
<a name="M000553"></a><b>outdent</b>(n)
|
2606
|
+
</div>
|
2607
|
+
<div class="description">
|
2608
|
+
<p>
|
2609
|
+
Outdent just indents a negative number of spaces.
|
2610
|
+
</p>
|
2611
|
+
<pre>
|
2612
|
+
CREDIT: Noah Gibbs
|
2613
|
+
</pre>
|
2614
|
+
</div>
|
2615
|
+
<div class="sourcecode">
|
2616
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000553_source')" id="l_M000553_source">show source</a> ]</p>
|
2617
|
+
<div id="M000553_source" class="dyn-source">
|
2618
|
+
<pre>
|
2619
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 72</span>
|
2620
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">outdent</span>(<span class="ruby-identifier">n</span>)
|
2621
|
+
<span class="ruby-identifier">indent</span>(<span class="ruby-operator">-</span><span class="ruby-identifier">n</span>)
|
2622
|
+
<span class="ruby-keyword kw">end</span>
|
2623
|
+
</pre>
|
2624
|
+
</div>
|
2625
|
+
</div>
|
2626
|
+
</div>
|
2627
|
+
<div class="method">
|
2628
|
+
<div class="title">
|
2629
|
+
<a name="M000502"></a><b>outdent</b>(n)
|
2630
|
+
</div>
|
2631
|
+
<div class="description">
|
2632
|
+
<p>
|
2633
|
+
Outdent just indents a negative number of spaces.
|
2634
|
+
</p>
|
2635
|
+
<pre>
|
2636
|
+
CREDIT: Noah Gibbs
|
2637
|
+
</pre>
|
2638
|
+
</div>
|
2639
|
+
<div class="sourcecode">
|
2640
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000502_source')" id="l_M000502_source">show source</a> ]</p>
|
2641
|
+
<div id="M000502_source" class="dyn-source">
|
2642
|
+
<pre>
|
2643
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 72</span>
|
2644
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">outdent</span>(<span class="ruby-identifier">n</span>)
|
2645
|
+
<span class="ruby-identifier">indent</span>(<span class="ruby-operator">-</span><span class="ruby-identifier">n</span>)
|
2646
|
+
<span class="ruby-keyword kw">end</span>
|
2647
|
+
</pre>
|
2648
|
+
</div>
|
2649
|
+
</div>
|
2650
|
+
</div>
|
2651
|
+
<div class="method">
|
2652
|
+
<div class="title">
|
2653
|
+
<a name="M000527"></a><b>quote</b>(type=:s)
|
2654
|
+
</div>
|
2655
|
+
<div class="description">
|
2656
|
+
<p>
|
2657
|
+
Return a new string embraced by given quotes. If no quotes are specified,
|
2658
|
+
then assumes single quotes.
|
2659
|
+
</p>
|
2660
|
+
<pre>
|
2661
|
+
"quote me".quote #=> "'quote me'"
|
2662
|
+
"quote me".quote(2) #=> "\"quote me\""
|
2663
|
+
|
2664
|
+
CREDIT: Trans
|
2665
|
+
</pre>
|
2666
|
+
</div>
|
2667
|
+
<div class="sourcecode">
|
2668
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000527_source')" id="l_M000527_source">show source</a> ]</p>
|
2669
|
+
<div id="M000527_source" class="dyn-source">
|
2670
|
+
<pre>
|
2671
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 69</span>
|
2672
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">quote</span>(<span class="ruby-identifier">type</span>=<span class="ruby-identifier">:s</span>)
|
2673
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">downcase</span>
|
2674
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">'s'</span>, <span class="ruby-value str">'single'</span>
|
2675
|
+
<span class="ruby-identifier">bracket</span>(<span class="ruby-value str">"'"</span>)
|
2676
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">'d'</span>, <span class="ruby-value str">'double'</span>
|
2677
|
+
<span class="ruby-identifier">bracket</span>(<span class="ruby-value str">'"'</span>)
|
2678
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">'b'</span>, <span class="ruby-value str">'back'</span>
|
2679
|
+
<span class="ruby-identifier">bracket</span>(<span class="ruby-value str">'`'</span>)
|
2680
|
+
<span class="ruby-keyword kw">else</span>
|
2681
|
+
<span class="ruby-identifier">bracket</span>(<span class="ruby-value str">"'"</span>)
|
2682
|
+
<span class="ruby-keyword kw">end</span>
|
2683
|
+
<span class="ruby-keyword kw">end</span>
|
2684
|
+
</pre>
|
2685
|
+
</div>
|
2686
|
+
</div>
|
2687
|
+
</div>
|
2688
|
+
<div class="method">
|
2689
|
+
<div class="title">
|
2690
|
+
<a name="M000578"></a><b>quote</b>(type=:s)
|
2691
|
+
</div>
|
2692
|
+
<div class="description">
|
2693
|
+
<p>
|
2694
|
+
Return a new string embraced by given quotes. If no quotes are specified,
|
2695
|
+
then assumes single quotes.
|
2696
|
+
</p>
|
2697
|
+
<pre>
|
2698
|
+
"quote me".quote #=> "'quote me'"
|
2699
|
+
"quote me".quote(2) #=> "\"quote me\""
|
2700
|
+
|
2701
|
+
CREDIT: Trans
|
2702
|
+
</pre>
|
2703
|
+
</div>
|
2704
|
+
<div class="sourcecode">
|
2705
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000578_source')" id="l_M000578_source">show source</a> ]</p>
|
2706
|
+
<div id="M000578_source" class="dyn-source">
|
2707
|
+
<pre>
|
2708
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 69</span>
|
2709
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">quote</span>(<span class="ruby-identifier">type</span>=<span class="ruby-identifier">:s</span>)
|
2710
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">downcase</span>
|
2711
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">'s'</span>, <span class="ruby-value str">'single'</span>
|
2712
|
+
<span class="ruby-identifier">bracket</span>(<span class="ruby-value str">"'"</span>)
|
2713
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">'d'</span>, <span class="ruby-value str">'double'</span>
|
2714
|
+
<span class="ruby-identifier">bracket</span>(<span class="ruby-value str">'"'</span>)
|
2715
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">'b'</span>, <span class="ruby-value str">'back'</span>
|
2716
|
+
<span class="ruby-identifier">bracket</span>(<span class="ruby-value str">'`'</span>)
|
2717
|
+
<span class="ruby-keyword kw">else</span>
|
2718
|
+
<span class="ruby-identifier">bracket</span>(<span class="ruby-value str">"'"</span>)
|
2719
|
+
<span class="ruby-keyword kw">end</span>
|
2720
|
+
<span class="ruby-keyword kw">end</span>
|
2721
|
+
</pre>
|
2722
|
+
</div>
|
2723
|
+
</div>
|
2724
|
+
</div>
|
2725
|
+
<div class="method">
|
2726
|
+
<div class="title">
|
2727
|
+
<a name="M000504"></a><b>range</b>(s, offset=0)
|
2728
|
+
</div>
|
2729
|
+
<div class="description">
|
2730
|
+
<p>
|
2731
|
+
Like index but returns a <a href="Range.html">Range</a>.
|
2732
|
+
</p>
|
2733
|
+
<pre>
|
2734
|
+
"This is a test!".range('test') #=> 10..13
|
2735
|
+
|
2736
|
+
CREDIT: Trans
|
2737
|
+
</pre>
|
2738
|
+
</div>
|
2739
|
+
<div class="sourcecode">
|
2740
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000504_source')" id="l_M000504_source">show source</a> ]</p>
|
2741
|
+
<div id="M000504_source" class="dyn-source">
|
2742
|
+
<pre>
|
2743
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 9</span>
|
2744
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">offset</span>=<span class="ruby-value">0</span>)
|
2745
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">index</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">offset</span>)
|
2746
|
+
<span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">$~</span>.<span class="ruby-identifier">begin</span>(<span class="ruby-value">0</span>))<span class="ruby-operator">..</span>(<span class="ruby-identifier">$~</span>.<span class="ruby-identifier">end</span>(<span class="ruby-value">0</span>)<span class="ruby-operator">-</span><span class="ruby-value">1</span>)
|
2747
|
+
<span class="ruby-keyword kw">end</span>
|
2748
|
+
<span class="ruby-keyword kw">nil</span>
|
2749
|
+
<span class="ruby-keyword kw">end</span>
|
2750
|
+
</pre>
|
2751
|
+
</div>
|
2752
|
+
</div>
|
2753
|
+
</div>
|
2754
|
+
<div class="method">
|
2755
|
+
<div class="title">
|
2756
|
+
<a name="M000555"></a><b>range</b>(s, offset=0)
|
2757
|
+
</div>
|
2758
|
+
<div class="description">
|
2759
|
+
<p>
|
2760
|
+
Like index but returns a <a href="Range.html">Range</a>.
|
2761
|
+
</p>
|
2762
|
+
<pre>
|
2763
|
+
"This is a test!".range('test') #=> 10..13
|
2764
|
+
|
2765
|
+
CREDIT: Trans
|
2766
|
+
</pre>
|
2767
|
+
</div>
|
2768
|
+
<div class="sourcecode">
|
2769
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000555_source')" id="l_M000555_source">show source</a> ]</p>
|
2770
|
+
<div id="M000555_source" class="dyn-source">
|
2771
|
+
<pre>
|
2772
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 9</span>
|
2773
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">offset</span>=<span class="ruby-value">0</span>)
|
2774
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">index</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">offset</span>)
|
2775
|
+
<span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">$~</span>.<span class="ruby-identifier">begin</span>(<span class="ruby-value">0</span>))<span class="ruby-operator">..</span>(<span class="ruby-identifier">$~</span>.<span class="ruby-identifier">end</span>(<span class="ruby-value">0</span>)<span class="ruby-operator">-</span><span class="ruby-value">1</span>)
|
2776
|
+
<span class="ruby-keyword kw">end</span>
|
2777
|
+
<span class="ruby-keyword kw">nil</span>
|
2778
|
+
<span class="ruby-keyword kw">end</span>
|
2779
|
+
</pre>
|
2780
|
+
</div>
|
2781
|
+
</div>
|
2782
|
+
</div>
|
2783
|
+
<div class="method">
|
2784
|
+
<div class="title">
|
2785
|
+
<a name="M000556"></a><b>range_all</b>(s, reuse=false)
|
2786
|
+
</div>
|
2787
|
+
<div class="description">
|
2788
|
+
<p>
|
2789
|
+
Like <a href="String.html#M000507">index_all</a> but returns an array of
|
2790
|
+
Ranges.
|
2791
|
+
</p>
|
2792
|
+
<pre>
|
2793
|
+
"abc123abc123".range_all('abc') #=> [0..2, 6..8]
|
2794
|
+
|
2795
|
+
TODO: Add offset, perhaps ?
|
2796
|
+
|
2797
|
+
CREDIT: Trans
|
2798
|
+
</pre>
|
2799
|
+
</div>
|
2800
|
+
<div class="sourcecode">
|
2801
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000556_source')" id="l_M000556_source">show source</a> ]</p>
|
2802
|
+
<div id="M000556_source" class="dyn-source">
|
2803
|
+
<pre>
|
2804
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 24</span>
|
2805
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range_all</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">reuse</span>=<span class="ruby-keyword kw">false</span>)
|
2806
|
+
<span class="ruby-identifier">r</span> = []; <span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
|
2807
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">i</span> <span class="ruby-operator"><</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span>
|
2808
|
+
<span class="ruby-identifier">rng</span> = <span class="ruby-identifier">range</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">i</span>)
|
2809
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">rng</span>
|
2810
|
+
<span class="ruby-identifier">r</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">rng</span>
|
2811
|
+
<span class="ruby-identifier">i</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">reuse</span> <span class="ruby-value">? </span><span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">rng</span>.<span class="ruby-identifier">end</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>
|
2812
|
+
<span class="ruby-keyword kw">else</span>
|
2813
|
+
<span class="ruby-keyword kw">break</span>
|
2814
|
+
<span class="ruby-keyword kw">end</span>
|
2815
|
+
<span class="ruby-keyword kw">end</span>
|
2816
|
+
<span class="ruby-identifier">r</span>.<span class="ruby-identifier">uniq</span>
|
2817
|
+
<span class="ruby-keyword kw">end</span>
|
2818
|
+
</pre>
|
2819
|
+
</div>
|
2820
|
+
</div>
|
2821
|
+
</div>
|
2822
|
+
<div class="method">
|
2823
|
+
<div class="title">
|
2824
|
+
<a name="M000505"></a><b>range_all</b>(s, reuse=false)
|
2825
|
+
</div>
|
2826
|
+
<div class="description">
|
2827
|
+
<p>
|
2828
|
+
Like <a href="String.html#M000507">index_all</a> but returns an array of
|
2829
|
+
Ranges.
|
2830
|
+
</p>
|
2831
|
+
<pre>
|
2832
|
+
"abc123abc123".range_all('abc') #=> [0..2, 6..8]
|
2833
|
+
|
2834
|
+
TODO: Add offset, perhaps ?
|
2835
|
+
|
2836
|
+
CREDIT: Trans
|
2837
|
+
</pre>
|
2838
|
+
</div>
|
2839
|
+
<div class="sourcecode">
|
2840
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000505_source')" id="l_M000505_source">show source</a> ]</p>
|
2841
|
+
<div id="M000505_source" class="dyn-source">
|
2842
|
+
<pre>
|
2843
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 24</span>
|
2844
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range_all</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">reuse</span>=<span class="ruby-keyword kw">false</span>)
|
2845
|
+
<span class="ruby-identifier">r</span> = []; <span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
|
2846
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">i</span> <span class="ruby-operator"><</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span>
|
2847
|
+
<span class="ruby-identifier">rng</span> = <span class="ruby-identifier">range</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">i</span>)
|
2848
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">rng</span>
|
2849
|
+
<span class="ruby-identifier">r</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">rng</span>
|
2850
|
+
<span class="ruby-identifier">i</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">reuse</span> <span class="ruby-value">? </span><span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">rng</span>.<span class="ruby-identifier">end</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>
|
2851
|
+
<span class="ruby-keyword kw">else</span>
|
2852
|
+
<span class="ruby-keyword kw">break</span>
|
2853
|
+
<span class="ruby-keyword kw">end</span>
|
2854
|
+
<span class="ruby-keyword kw">end</span>
|
2855
|
+
<span class="ruby-identifier">r</span>.<span class="ruby-identifier">uniq</span>
|
2856
|
+
<span class="ruby-keyword kw">end</span>
|
2857
|
+
</pre>
|
2858
|
+
</div>
|
2859
|
+
</div>
|
2860
|
+
</div>
|
2861
|
+
<div class="method">
|
2862
|
+
<div class="title">
|
2863
|
+
<a name="M000557"></a><b>range_of_line</b>()
|
2864
|
+
</div>
|
2865
|
+
<div class="description">
|
2866
|
+
<p>
|
2867
|
+
Returns an array of ranges mapping the characters per line.
|
2868
|
+
</p>
|
2869
|
+
<pre>
|
2870
|
+
"this\nis\na\ntest".range_of_line
|
2871
|
+
#=> [0..4, 5..7, 8..9, 10..13]
|
2872
|
+
|
2873
|
+
CREDIT: Trans
|
2874
|
+
</pre>
|
2875
|
+
</div>
|
2876
|
+
<div class="sourcecode">
|
2877
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000557_source')" id="l_M000557_source">show source</a> ]</p>
|
2878
|
+
<div id="M000557_source" class="dyn-source">
|
2879
|
+
<pre>
|
2880
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 46</span>
|
2881
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range_of_line</span>
|
2882
|
+
<span class="ruby-identifier">offset</span>=<span class="ruby-value">0</span>; <span class="ruby-identifier">charmap</span> = []
|
2883
|
+
<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">line</span><span class="ruby-operator">|</span>
|
2884
|
+
<span class="ruby-identifier">charmap</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">offset</span><span class="ruby-operator">..</span>(<span class="ruby-identifier">offset</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>))
|
2885
|
+
<span class="ruby-identifier">offset</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">length</span>
|
2886
|
+
<span class="ruby-keyword kw">end</span>
|
2887
|
+
<span class="ruby-identifier">charmap</span>
|
2888
|
+
<span class="ruby-keyword kw">end</span>
|
2889
|
+
</pre>
|
2890
|
+
</div>
|
2891
|
+
</div>
|
2892
|
+
</div>
|
2893
|
+
<div class="method">
|
2894
|
+
<div class="title">
|
2895
|
+
<a name="M000506"></a><b>range_of_line</b>()
|
2896
|
+
</div>
|
2897
|
+
<div class="description">
|
2898
|
+
<p>
|
2899
|
+
Returns an array of ranges mapping the characters per line.
|
2900
|
+
</p>
|
2901
|
+
<pre>
|
2902
|
+
"this\nis\na\ntest".range_of_line
|
2903
|
+
#=> [0..4, 5..7, 8..9, 10..13]
|
2904
|
+
|
2905
|
+
CREDIT: Trans
|
2906
|
+
</pre>
|
2907
|
+
</div>
|
2908
|
+
<div class="sourcecode">
|
2909
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000506_source')" id="l_M000506_source">show source</a> ]</p>
|
2910
|
+
<div id="M000506_source" class="dyn-source">
|
2911
|
+
<pre>
|
2912
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 46</span>
|
2913
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range_of_line</span>
|
2914
|
+
<span class="ruby-identifier">offset</span>=<span class="ruby-value">0</span>; <span class="ruby-identifier">charmap</span> = []
|
2915
|
+
<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">line</span><span class="ruby-operator">|</span>
|
2916
|
+
<span class="ruby-identifier">charmap</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">offset</span><span class="ruby-operator">..</span>(<span class="ruby-identifier">offset</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>))
|
2917
|
+
<span class="ruby-identifier">offset</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">length</span>
|
2918
|
+
<span class="ruby-keyword kw">end</span>
|
2919
|
+
<span class="ruby-identifier">charmap</span>
|
2920
|
+
<span class="ruby-keyword kw">end</span>
|
2921
|
+
</pre>
|
2922
|
+
</div>
|
2923
|
+
</div>
|
2924
|
+
</div>
|
2925
|
+
<div class="method">
|
2926
|
+
<div class="title">
|
2927
|
+
<a name="M000584"></a><b>rewrite</b>(rules)
|
2928
|
+
</div>
|
2929
|
+
<div class="description">
|
2930
|
+
<p>
|
2931
|
+
Apply a set of rules (regular expression matches) to the string.
|
2932
|
+
</p>
|
2933
|
+
<h3>Requirements:</h3>
|
2934
|
+
<p>
|
2935
|
+
The rules must be applied in order! So we cannot use a hash because the
|
2936
|
+
ordering is not guaranteed! we use an array instead.
|
2937
|
+
</p>
|
2938
|
+
<h3>Input:</h3>
|
2939
|
+
<p>
|
2940
|
+
The array containing rule-pairs (match, write).
|
2941
|
+
</p>
|
2942
|
+
<h3>Output:</h3>
|
2943
|
+
<p>
|
2944
|
+
The rewritten string.
|
2945
|
+
</p>
|
2946
|
+
<pre>
|
2947
|
+
CREDIT: George Moschovitis
|
2948
|
+
</pre>
|
2949
|
+
</div>
|
2950
|
+
<div class="sourcecode">
|
2951
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000584_source')" id="l_M000584_source">show source</a> ]</p>
|
2952
|
+
<div id="M000584_source" class="dyn-source">
|
2953
|
+
<pre>
|
2954
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/rewrite.rb, line 18</span>
|
2955
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rewrite</span>(<span class="ruby-identifier">rules</span>)
|
2956
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'The rules parameter is nil'</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">rules</span>
|
2957
|
+
<span class="ruby-identifier">rewritten_string</span> = <span class="ruby-identifier">dup</span>
|
2958
|
+
<span class="ruby-identifier">rules</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">match</span>,<span class="ruby-identifier">write</span><span class="ruby-operator">|</span>
|
2959
|
+
<span class="ruby-identifier">rewritten_string</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-identifier">match</span>,<span class="ruby-identifier">write</span>)
|
2960
|
+
<span class="ruby-keyword kw">end</span>
|
2961
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">rewritten_string</span>
|
2962
|
+
<span class="ruby-keyword kw">end</span>
|
2963
|
+
</pre>
|
2964
|
+
</div>
|
2965
|
+
</div>
|
2966
|
+
</div>
|
2967
|
+
<div class="method">
|
2968
|
+
<div class="title">
|
2969
|
+
<a name="M000533"></a><b>rewrite</b>(rules)
|
2970
|
+
</div>
|
2971
|
+
<div class="description">
|
2972
|
+
<p>
|
2973
|
+
Apply a set of rules (regular expression matches) to the string.
|
2974
|
+
</p>
|
2975
|
+
<h3>Requirements:</h3>
|
2976
|
+
<p>
|
2977
|
+
The rules must be applied in order! So we cannot use a hash because the
|
2978
|
+
ordering is not guaranteed! we use an array instead.
|
2979
|
+
</p>
|
2980
|
+
<h3>Input:</h3>
|
2981
|
+
<p>
|
2982
|
+
The array containing rule-pairs (match, write).
|
2983
|
+
</p>
|
2984
|
+
<h3>Output:</h3>
|
2985
|
+
<p>
|
2986
|
+
The rewritten string.
|
2987
|
+
</p>
|
2988
|
+
<pre>
|
2989
|
+
CREDIT: George Moschovitis
|
2990
|
+
</pre>
|
2991
|
+
</div>
|
2992
|
+
<div class="sourcecode">
|
2993
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000533_source')" id="l_M000533_source">show source</a> ]</p>
|
2994
|
+
<div id="M000533_source" class="dyn-source">
|
2995
|
+
<pre>
|
2996
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/rewrite.rb, line 18</span>
|
2997
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rewrite</span>(<span class="ruby-identifier">rules</span>)
|
2998
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'The rules parameter is nil'</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">rules</span>
|
2999
|
+
<span class="ruby-identifier">rewritten_string</span> = <span class="ruby-identifier">dup</span>
|
3000
|
+
<span class="ruby-identifier">rules</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">match</span>,<span class="ruby-identifier">write</span><span class="ruby-operator">|</span>
|
3001
|
+
<span class="ruby-identifier">rewritten_string</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-identifier">match</span>,<span class="ruby-identifier">write</span>)
|
3002
|
+
<span class="ruby-keyword kw">end</span>
|
3003
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">rewritten_string</span>
|
3004
|
+
<span class="ruby-keyword kw">end</span>
|
3005
|
+
</pre>
|
3006
|
+
</div>
|
3007
|
+
</div>
|
3008
|
+
</div>
|
3009
|
+
<div class="method">
|
3010
|
+
<div class="title">
|
3011
|
+
<a name="M000485"></a><b>shatter</b>( re )
|
3012
|
+
</div>
|
3013
|
+
<div class="description">
|
3014
|
+
<p>
|
3015
|
+
Breaks a string up into an array based on a regular expression. Similar to
|
3016
|
+
scan, but includes the matches.
|
3017
|
+
</p>
|
3018
|
+
<pre>
|
3019
|
+
s = "<p>This<b>is</b>a test.</p>"
|
3020
|
+
s.shatter( /\<.*?\>/ )
|
3021
|
+
</pre>
|
3022
|
+
<p>
|
3023
|
+
<em>produces</em>
|
3024
|
+
</p>
|
3025
|
+
<pre>
|
3026
|
+
["<p>", "This", "<b>", "is", "</b>", "a test.", "</p>"]
|
3027
|
+
|
3028
|
+
CREDIT: Trans
|
3029
|
+
</pre>
|
3030
|
+
</div>
|
3031
|
+
<div class="sourcecode">
|
3032
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000485_source')" id="l_M000485_source">show source</a> ]</p>
|
3033
|
+
<div id="M000485_source" class="dyn-source">
|
3034
|
+
<pre>
|
3035
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/shatter.rb, line 15</span>
|
3036
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shatter</span>( <span class="ruby-identifier">re</span> )
|
3037
|
+
<span class="ruby-identifier">r</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">gsub</span>( <span class="ruby-identifier">re</span> ){ <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-value str">"\1"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"\1"</span> }
|
3038
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">r</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">"\1"</span> ; <span class="ruby-identifier">r</span>[<span class="ruby-value">0</span>] = <span class="ruby-value str">''</span> ; <span class="ruby-keyword kw">end</span>
|
3039
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">r</span>[<span class="ruby-value">-1</span>,<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">"\1"</span> ; <span class="ruby-identifier">r</span>[<span class="ruby-value">-1</span>] = <span class="ruby-value str">''</span> ; <span class="ruby-keyword kw">end</span>
|
3040
|
+
<span class="ruby-identifier">r</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">"\1"</span>)
|
3041
|
+
<span class="ruby-keyword kw">end</span>
|
3042
|
+
</pre>
|
3043
|
+
</div>
|
3044
|
+
</div>
|
3045
|
+
</div>
|
3046
|
+
<div class="method">
|
3047
|
+
<div class="title">
|
3048
|
+
<a name="M000536"></a><b>shatter</b>( re )
|
3049
|
+
</div>
|
3050
|
+
<div class="description">
|
3051
|
+
<p>
|
3052
|
+
Breaks a string up into an array based on a regular expression. Similar to
|
3053
|
+
scan, but includes the matches.
|
3054
|
+
</p>
|
3055
|
+
<pre>
|
3056
|
+
s = "<p>This<b>is</b>a test.</p>"
|
3057
|
+
s.shatter( /\<.*?\>/ )
|
3058
|
+
</pre>
|
3059
|
+
<p>
|
3060
|
+
<em>produces</em>
|
3061
|
+
</p>
|
3062
|
+
<pre>
|
3063
|
+
["<p>", "This", "<b>", "is", "</b>", "a test.", "</p>"]
|
3064
|
+
|
3065
|
+
CREDIT: Trans
|
3066
|
+
</pre>
|
3067
|
+
</div>
|
3068
|
+
<div class="sourcecode">
|
3069
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000536_source')" id="l_M000536_source">show source</a> ]</p>
|
3070
|
+
<div id="M000536_source" class="dyn-source">
|
3071
|
+
<pre>
|
3072
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/shatter.rb, line 15</span>
|
3073
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shatter</span>( <span class="ruby-identifier">re</span> )
|
3074
|
+
<span class="ruby-identifier">r</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">gsub</span>( <span class="ruby-identifier">re</span> ){ <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-value str">"\1"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"\1"</span> }
|
3075
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">r</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">"\1"</span> ; <span class="ruby-identifier">r</span>[<span class="ruby-value">0</span>] = <span class="ruby-value str">''</span> ; <span class="ruby-keyword kw">end</span>
|
3076
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">r</span>[<span class="ruby-value">-1</span>,<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">"\1"</span> ; <span class="ruby-identifier">r</span>[<span class="ruby-value">-1</span>] = <span class="ruby-value str">''</span> ; <span class="ruby-keyword kw">end</span>
|
3077
|
+
<span class="ruby-identifier">r</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">"\1"</span>)
|
3078
|
+
<span class="ruby-keyword kw">end</span>
|
3079
|
+
</pre>
|
3080
|
+
</div>
|
3081
|
+
</div>
|
3082
|
+
</div>
|
3083
|
+
<div class="method">
|
3084
|
+
<div class="title">
|
3085
|
+
<a name="M000508"></a><b>snakecase</b>()
|
3086
|
+
</div>
|
3087
|
+
<div class="description">
|
3088
|
+
<p>
|
3089
|
+
The reverse of <tt><a href="String.html#M000491">camelcase</a></tt>. Makes
|
3090
|
+
an underscored of a <a href="String.html#M000491">camelcase</a> string.
|
3091
|
+
</p>
|
3092
|
+
<p>
|
3093
|
+
Changes ’::’ to ’/’ to convert namespaces to paths.
|
3094
|
+
</p>
|
3095
|
+
<p>
|
3096
|
+
Examples
|
3097
|
+
</p>
|
3098
|
+
<pre>
|
3099
|
+
"SnakeCase".snakecase #=> "snake_case"
|
3100
|
+
"Snake-Case".snakecase #=> "snake_case"
|
3101
|
+
"SnakeCase::Errors".underscore #=> "snake_case/errors"
|
3102
|
+
</pre>
|
3103
|
+
</div>
|
3104
|
+
<div class="sourcecode">
|
3105
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000508_source')" id="l_M000508_source">show source</a> ]</p>
|
3106
|
+
<div id="M000508_source" class="dyn-source">
|
3107
|
+
<pre>
|
3108
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/snakecase.rb, line 12</span>
|
3109
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">snakecase</span>
|
3110
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/::/</span>, <span class="ruby-value str">'/'</span>). <span class="ruby-comment cmt"># NOT SO SURE ABOUT THIS -T</span>
|
3111
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([A-Z]+)([A-Z][a-z])/</span>,<span class="ruby-value str">'\1_\2'</span>).
|
3112
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([a-z\d])([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).
|
3113
|
+
<span class="ruby-identifier">tr</span>(<span class="ruby-value str">"-"</span>, <span class="ruby-value str">"_"</span>).
|
3114
|
+
<span class="ruby-identifier">downcase</span>
|
3115
|
+
<span class="ruby-keyword kw">end</span>
|
3116
|
+
</pre>
|
3117
|
+
</div>
|
3118
|
+
</div>
|
3119
|
+
</div>
|
3120
|
+
<div class="method">
|
3121
|
+
<div class="title">
|
3122
|
+
<a name="M000559"></a><b>snakecase</b>()
|
3123
|
+
</div>
|
3124
|
+
<div class="description">
|
3125
|
+
<p>
|
3126
|
+
The reverse of <tt><a href="String.html#M000491">camelcase</a></tt>. Makes
|
3127
|
+
an underscored of a <a href="String.html#M000491">camelcase</a> string.
|
3128
|
+
</p>
|
3129
|
+
<p>
|
3130
|
+
Changes ’::’ to ’/’ to convert namespaces to paths.
|
3131
|
+
</p>
|
3132
|
+
<p>
|
3133
|
+
Examples
|
3134
|
+
</p>
|
3135
|
+
<pre>
|
3136
|
+
"SnakeCase".snakecase #=> "snake_case"
|
3137
|
+
"Snake-Case".snakecase #=> "snake_case"
|
3138
|
+
"SnakeCase::Errors".underscore #=> "snake_case/errors"
|
3139
|
+
</pre>
|
3140
|
+
</div>
|
3141
|
+
<div class="sourcecode">
|
3142
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000559_source')" id="l_M000559_source">show source</a> ]</p>
|
3143
|
+
<div id="M000559_source" class="dyn-source">
|
3144
|
+
<pre>
|
3145
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/snakecase.rb, line 12</span>
|
3146
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">snakecase</span>
|
3147
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/::/</span>, <span class="ruby-value str">'/'</span>). <span class="ruby-comment cmt"># NOT SO SURE ABOUT THIS -T</span>
|
3148
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([A-Z]+)([A-Z][a-z])/</span>,<span class="ruby-value str">'\1_\2'</span>).
|
3149
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([a-z\d])([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).
|
3150
|
+
<span class="ruby-identifier">tr</span>(<span class="ruby-value str">"-"</span>, <span class="ruby-value str">"_"</span>).
|
3151
|
+
<span class="ruby-identifier">downcase</span>
|
3152
|
+
<span class="ruby-keyword kw">end</span>
|
3153
|
+
</pre>
|
3154
|
+
</div>
|
3155
|
+
</div>
|
3156
|
+
</div>
|
3157
|
+
<div class="method">
|
3158
|
+
<div class="title">
|
3159
|
+
<a name="M000583"></a><b>splice</b>(*args)
|
3160
|
+
</div>
|
3161
|
+
<div class="description">
|
3162
|
+
<p>
|
3163
|
+
Like slice, but writes rather than reads. Like store, but acts like slice!
|
3164
|
+
when given only one argument.
|
3165
|
+
</p>
|
3166
|
+
<pre>
|
3167
|
+
a = "HELLO"
|
3168
|
+
a.splice(1) #=> "E"
|
3169
|
+
a #=> "HLLO"
|
3170
|
+
|
3171
|
+
CREDIT: Trans
|
3172
|
+
</pre>
|
3173
|
+
</div>
|
3174
|
+
<div class="sourcecode">
|
3175
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000583_source')" id="l_M000583_source">show source</a> ]</p>
|
3176
|
+
<div id="M000583_source" class="dyn-source">
|
3177
|
+
<pre>
|
3178
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/splice.rb, line 13</span>
|
3179
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">splice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
3180
|
+
<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>
|
3181
|
+
<span class="ruby-identifier">slice!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
3182
|
+
<span class="ruby-keyword kw">else</span>
|
3183
|
+
<span class="ruby-identifier">store</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
3184
|
+
<span class="ruby-keyword kw">end</span>
|
3185
|
+
<span class="ruby-keyword kw">end</span>
|
3186
|
+
</pre>
|
3187
|
+
</div>
|
3188
|
+
</div>
|
3189
|
+
</div>
|
3190
|
+
<div class="method">
|
3191
|
+
<div class="title">
|
3192
|
+
<a name="M000532"></a><b>splice</b>(*args)
|
3193
|
+
</div>
|
3194
|
+
<div class="description">
|
3195
|
+
<p>
|
3196
|
+
Like slice, but writes rather than reads. Like store, but acts like slice!
|
3197
|
+
when given only one argument.
|
3198
|
+
</p>
|
3199
|
+
<pre>
|
3200
|
+
a = "HELLO"
|
3201
|
+
a.splice(1) #=> "E"
|
3202
|
+
a #=> "HLLO"
|
3203
|
+
|
3204
|
+
CREDIT: Trans
|
3205
|
+
</pre>
|
3206
|
+
</div>
|
3207
|
+
<div class="sourcecode">
|
3208
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000532_source')" id="l_M000532_source">show source</a> ]</p>
|
3209
|
+
<div id="M000532_source" class="dyn-source">
|
3210
|
+
<pre>
|
3211
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/splice.rb, line 13</span>
|
3212
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">splice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
3213
|
+
<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>
|
3214
|
+
<span class="ruby-identifier">slice!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
3215
|
+
<span class="ruby-keyword kw">else</span>
|
3216
|
+
<span class="ruby-identifier">store</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
3217
|
+
<span class="ruby-keyword kw">end</span>
|
3218
|
+
<span class="ruby-keyword kw">end</span>
|
3219
|
+
</pre>
|
3220
|
+
</div>
|
3221
|
+
</div>
|
3222
|
+
</div>
|
3223
|
+
<div class="method">
|
3224
|
+
<div class="title">
|
3225
|
+
<a name="M000489"></a><b>start_with?</b>(prefix)
|
3226
|
+
</div>
|
3227
|
+
<div class="description">
|
3228
|
+
<p>
|
3229
|
+
Does a string start with the given prefix.
|
3230
|
+
</p>
|
3231
|
+
<pre>
|
3232
|
+
"hello".starts_with?("he") #=> true
|
3233
|
+
"hello".starts_with?("to") #=> false
|
3234
|
+
|
3235
|
+
CREDIT: Lucas Carlson
|
3236
|
+
CREDIT: Blaine Cook
|
3237
|
+
</pre>
|
3238
|
+
</div>
|
3239
|
+
<div class="sourcecode">
|
3240
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000489_source')" id="l_M000489_source">show source</a> ]</p>
|
3241
|
+
<div id="M000489_source" class="dyn-source">
|
3242
|
+
<pre>
|
3243
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/start_with.rb, line 13</span>
|
3244
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_with?</span>(<span class="ruby-identifier">prefix</span>)
|
3245
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">index</span>(<span class="ruby-identifier">prefix</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
3246
|
+
<span class="ruby-keyword kw">end</span>
|
3247
|
+
</pre>
|
3248
|
+
</div>
|
3249
|
+
</div>
|
3250
|
+
</div>
|
3251
|
+
<div class="method">
|
3252
|
+
<div class="title">
|
3253
|
+
<a name="M000540"></a><b>start_with?</b>(prefix)
|
3254
|
+
</div>
|
3255
|
+
<div class="description">
|
3256
|
+
<p>
|
3257
|
+
Does a string start with the given prefix.
|
3258
|
+
</p>
|
3259
|
+
<pre>
|
3260
|
+
"hello".starts_with?("he") #=> true
|
3261
|
+
"hello".starts_with?("to") #=> false
|
3262
|
+
|
3263
|
+
CREDIT: Lucas Carlson
|
3264
|
+
CREDIT: Blaine Cook
|
3265
|
+
</pre>
|
3266
|
+
</div>
|
3267
|
+
<div class="sourcecode">
|
3268
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000540_source')" id="l_M000540_source">show source</a> ]</p>
|
3269
|
+
<div id="M000540_source" class="dyn-source">
|
3270
|
+
<pre>
|
3271
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/start_with.rb, line 13</span>
|
3272
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_with?</span>(<span class="ruby-identifier">prefix</span>)
|
3273
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">index</span>(<span class="ruby-identifier">prefix</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</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="M000548"></a><b>tab</b>(n)
|
3282
|
+
</div>
|
3283
|
+
<div class="description">
|
3284
|
+
<p>
|
3285
|
+
Aligns each line n spaces.
|
3286
|
+
</p>
|
3287
|
+
<pre>
|
3288
|
+
CREDIT: Gavin Sinclair
|
3289
|
+
</pre>
|
3290
|
+
</div>
|
3291
|
+
<div class="sourcecode">
|
3292
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000548_source')" id="l_M000548_source">show source</a> ]</p>
|
3293
|
+
<div id="M000548_source" class="dyn-source">
|
3294
|
+
<pre>
|
3295
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 10</span>
|
3296
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tab</span>(<span class="ruby-identifier">n</span>)
|
3297
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/^ */</span>, <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">n</span>)
|
3298
|
+
<span class="ruby-keyword kw">end</span>
|
3299
|
+
</pre>
|
3300
|
+
</div>
|
3301
|
+
</div>
|
3302
|
+
</div>
|
3303
|
+
<div class="method">
|
3304
|
+
<div class="title">
|
3305
|
+
<a name="M000497"></a><b>tab</b>(n)
|
3306
|
+
</div>
|
3307
|
+
<div class="description">
|
3308
|
+
<p>
|
3309
|
+
Aligns each line n spaces.
|
3310
|
+
</p>
|
3311
|
+
<pre>
|
3312
|
+
CREDIT: Gavin Sinclair
|
3313
|
+
</pre>
|
3314
|
+
</div>
|
3315
|
+
<div class="aka">
|
3316
|
+
This method is also aliased as
|
3317
|
+
<a href="String.html#M000498">taballto</a>
|
3318
|
+
<a href="String.html#M000549">taballto</a>
|
3319
|
+
</div>
|
3320
|
+
<div class="sourcecode">
|
3321
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000497_source')" id="l_M000497_source">show source</a> ]</p>
|
3322
|
+
<div id="M000497_source" class="dyn-source">
|
3323
|
+
<pre>
|
3324
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 10</span>
|
3325
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tab</span>(<span class="ruby-identifier">n</span>)
|
3326
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/^ */</span>, <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">n</span>)
|
3327
|
+
<span class="ruby-keyword kw">end</span>
|
3328
|
+
</pre>
|
3329
|
+
</div>
|
3330
|
+
</div>
|
3331
|
+
</div>
|
3332
|
+
<div class="method">
|
3333
|
+
<div class="title">
|
3334
|
+
<a name="M000549"></a><b>taballto</b>(n)
|
3335
|
+
</div>
|
3336
|
+
<div class="description">
|
3337
|
+
<p>
|
3338
|
+
Alias for <a href="String.html#M000497">tab</a>
|
3339
|
+
</p>
|
3340
|
+
</div>
|
3341
|
+
</div>
|
3342
|
+
<div class="method">
|
3343
|
+
<div class="title">
|
3344
|
+
<a name="M000498"></a><b>taballto</b>(n)
|
3345
|
+
</div>
|
3346
|
+
<div class="description">
|
3347
|
+
<p>
|
3348
|
+
Alias for <a href="String.html#M000497">tab</a>
|
3349
|
+
</p>
|
3350
|
+
</div>
|
3351
|
+
</div>
|
3352
|
+
<div class="method">
|
3353
|
+
<div class="title">
|
3354
|
+
<a name="M000551"></a><b>tabto</b>(n)
|
3355
|
+
</div>
|
3356
|
+
<div class="description">
|
3357
|
+
<p>
|
3358
|
+
Preserves relative tabbing. The first non-empty line ends up with n spaces
|
3359
|
+
before nonspace.
|
3360
|
+
</p>
|
3361
|
+
<pre>
|
3362
|
+
CREDIT: Gavin Sinclair
|
3363
|
+
</pre>
|
3364
|
+
</div>
|
3365
|
+
<div class="sourcecode">
|
3366
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000551_source')" id="l_M000551_source">show source</a> ]</p>
|
3367
|
+
<div id="M000551_source" class="dyn-source">
|
3368
|
+
<pre>
|
3369
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 46</span>
|
3370
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tabto</span>(<span class="ruby-identifier">n</span>)
|
3371
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^( *)\S/</span>
|
3372
|
+
<span class="ruby-identifier">indent</span>(<span class="ruby-identifier">n</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">length</span>)
|
3373
|
+
<span class="ruby-keyword kw">else</span>
|
3374
|
+
<span class="ruby-keyword kw">self</span>
|
3375
|
+
<span class="ruby-keyword kw">end</span>
|
3376
|
+
<span class="ruby-keyword kw">end</span>
|
3377
|
+
</pre>
|
3378
|
+
</div>
|
3379
|
+
</div>
|
3380
|
+
</div>
|
3381
|
+
<div class="method">
|
3382
|
+
<div class="title">
|
3383
|
+
<a name="M000500"></a><b>tabto</b>(n)
|
3384
|
+
</div>
|
3385
|
+
<div class="description">
|
3386
|
+
<p>
|
3387
|
+
Preserves relative tabbing. The first non-empty line ends up with n spaces
|
3388
|
+
before nonspace.
|
3389
|
+
</p>
|
3390
|
+
<pre>
|
3391
|
+
CREDIT: Gavin Sinclair
|
3392
|
+
</pre>
|
3393
|
+
</div>
|
3394
|
+
<div class="sourcecode">
|
3395
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000500_source')" id="l_M000500_source">show source</a> ]</p>
|
3396
|
+
<div id="M000500_source" class="dyn-source">
|
3397
|
+
<pre>
|
3398
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 46</span>
|
3399
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tabto</span>(<span class="ruby-identifier">n</span>)
|
3400
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^( *)\S/</span>
|
3401
|
+
<span class="ruby-identifier">indent</span>(<span class="ruby-identifier">n</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">length</span>)
|
3402
|
+
<span class="ruby-keyword kw">else</span>
|
3403
|
+
<span class="ruby-keyword kw">self</span>
|
3404
|
+
<span class="ruby-keyword kw">end</span>
|
3405
|
+
<span class="ruby-keyword kw">end</span>
|
3406
|
+
</pre>
|
3407
|
+
</div>
|
3408
|
+
</div>
|
3409
|
+
</div>
|
3410
|
+
<div class="method">
|
3411
|
+
<div class="title">
|
3412
|
+
<a name="M000569"></a><b>titlecase</b>()
|
3413
|
+
</div>
|
3414
|
+
<div class="description">
|
3415
|
+
<p>
|
3416
|
+
Title case.
|
3417
|
+
</p>
|
3418
|
+
<pre>
|
3419
|
+
"this is a string".titlecase
|
3420
|
+
=> "This Is A String"
|
3421
|
+
|
3422
|
+
CREDIT: Eliazar Parra
|
3423
|
+
</pre>
|
3424
|
+
</div>
|
3425
|
+
<div class="sourcecode">
|
3426
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000569_source')" id="l_M000569_source">show source</a> ]</p>
|
3427
|
+
<div id="M000569_source" class="dyn-source">
|
3428
|
+
<pre>
|
3429
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/titlecase.rb, line 10</span>
|
3430
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">titlecase</span>
|
3431
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\b\w/</span>){<span class="ruby-identifier">$&</span>.<span class="ruby-identifier">upcase</span>}
|
3432
|
+
<span class="ruby-keyword kw">end</span>
|
3433
|
+
</pre>
|
3434
|
+
</div>
|
3435
|
+
</div>
|
3436
|
+
</div>
|
3437
|
+
<div class="method">
|
3438
|
+
<div class="title">
|
3439
|
+
<a name="M000518"></a><b>titlecase</b>()
|
3440
|
+
</div>
|
3441
|
+
<div class="description">
|
3442
|
+
<p>
|
3443
|
+
Title case.
|
3444
|
+
</p>
|
3445
|
+
<pre>
|
3446
|
+
"this is a string".titlecase
|
3447
|
+
=> "This Is A String"
|
3448
|
+
|
3449
|
+
CREDIT: Eliazar Parra
|
3450
|
+
</pre>
|
3451
|
+
</div>
|
3452
|
+
<div class="sourcecode">
|
3453
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000518_source')" id="l_M000518_source">show source</a> ]</p>
|
3454
|
+
<div id="M000518_source" class="dyn-source">
|
3455
|
+
<pre>
|
3456
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/titlecase.rb, line 10</span>
|
3457
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">titlecase</span>
|
3458
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\b\w/</span>){<span class="ruby-identifier">$&</span>.<span class="ruby-identifier">upcase</span>}
|
3459
|
+
<span class="ruby-keyword kw">end</span>
|
3460
|
+
</pre>
|
3461
|
+
</div>
|
3462
|
+
</div>
|
3463
|
+
</div>
|
3464
|
+
<div class="method">
|
3465
|
+
<div class="title">
|
3466
|
+
<a name="M000480"></a><b>to_b</b>()
|
3467
|
+
</div>
|
3468
|
+
<div class="description">
|
3469
|
+
<p>
|
3470
|
+
Interpret common affirmative string meanings as true, otherwise false.
|
3471
|
+
Balnk sapce and case are ignored. The following strings that will return
|
3472
|
+
true:
|
3473
|
+
</p>
|
3474
|
+
<pre>
|
3475
|
+
<tt>true</tt>,<tt>yes</tt>,<tt>on</tt>,<tt>t</tt>,<tt>1</tt>,<tt>y</tt>,<tt>==</tt>
|
3476
|
+
</pre>
|
3477
|
+
<p>
|
3478
|
+
Examples:
|
3479
|
+
</p>
|
3480
|
+
<pre>
|
3481
|
+
"true".to_b #=> true
|
3482
|
+
"yes".to_b #=> true
|
3483
|
+
"no".to_b #=> false
|
3484
|
+
"123".to_b #=> false
|
3485
|
+
</pre>
|
3486
|
+
</div>
|
3487
|
+
<div class="sourcecode">
|
3488
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000480_source')" id="l_M000480_source">show source</a> ]</p>
|
3489
|
+
<div id="M000480_source" class="dyn-source">
|
3490
|
+
<pre>
|
3491
|
+
<span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 43</span>
|
3492
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_b</span>
|
3493
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">strip</span>
|
3494
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">'true'</span>, <span class="ruby-value str">'yes'</span>, <span class="ruby-value str">'on'</span>, <span class="ruby-value str">'t'</span>, <span class="ruby-value str">'1'</span>, <span class="ruby-value str">'y'</span>, <span class="ruby-value str">'=='</span>
|
3495
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
3496
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">'nil'</span>, <span class="ruby-value str">'null'</span>
|
3497
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
3498
|
+
<span class="ruby-keyword kw">else</span>
|
3499
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
3500
|
+
<span class="ruby-keyword kw">end</span>
|
3501
|
+
<span class="ruby-keyword kw">end</span>
|
3502
|
+
</pre>
|
3503
|
+
</div>
|
3504
|
+
</div>
|
3505
|
+
</div>
|
3506
|
+
<div class="method">
|
3507
|
+
<div class="title">
|
3508
|
+
<a name="M000486"></a><b>to_re</b>(esc=false)
|
3509
|
+
</div>
|
3510
|
+
<div class="description">
|
3511
|
+
<p>
|
3512
|
+
Turns a string into a regular expression.
|
3513
|
+
</p>
|
3514
|
+
<pre>
|
3515
|
+
"a?".to_re #=> /a?/
|
3516
|
+
|
3517
|
+
CREDIT: Trans
|
3518
|
+
</pre>
|
3519
|
+
</div>
|
3520
|
+
<div class="sourcecode">
|
3521
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000486_source')" id="l_M000486_source">show source</a> ]</p>
|
3522
|
+
<div id="M000486_source" class="dyn-source">
|
3523
|
+
<pre>
|
3524
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/to_re.rb, line 9</span>
|
3525
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_re</span>(<span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">false</span>)
|
3526
|
+
<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>((<span class="ruby-identifier">esc</span> <span class="ruby-value">? </span><span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword kw">self</span>))
|
3527
|
+
<span class="ruby-keyword kw">end</span>
|
3528
|
+
</pre>
|
3529
|
+
</div>
|
3530
|
+
</div>
|
3531
|
+
</div>
|
3532
|
+
<div class="method">
|
3533
|
+
<div class="title">
|
3534
|
+
<a name="M000537"></a><b>to_re</b>(esc=false)
|
3535
|
+
</div>
|
3536
|
+
<div class="description">
|
3537
|
+
<p>
|
3538
|
+
Turns a string into a regular expression.
|
3539
|
+
</p>
|
3540
|
+
<pre>
|
3541
|
+
"a?".to_re #=> /a?/
|
3542
|
+
|
3543
|
+
CREDIT: Trans
|
3544
|
+
</pre>
|
3545
|
+
</div>
|
3546
|
+
<div class="sourcecode">
|
3547
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000537_source')" id="l_M000537_source">show source</a> ]</p>
|
3548
|
+
<div id="M000537_source" class="dyn-source">
|
3549
|
+
<pre>
|
3550
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/to_re.rb, line 9</span>
|
3551
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_re</span>(<span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">false</span>)
|
3552
|
+
<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>((<span class="ruby-identifier">esc</span> <span class="ruby-value">? </span><span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword kw">self</span>))
|
3553
|
+
<span class="ruby-keyword kw">end</span>
|
3554
|
+
</pre>
|
3555
|
+
</div>
|
3556
|
+
</div>
|
3557
|
+
</div>
|
3558
|
+
<div class="method">
|
3559
|
+
<div class="title">
|
3560
|
+
<a name="M000538"></a><b>to_rx</b>(esc=true)
|
3561
|
+
</div>
|
3562
|
+
<div class="description">
|
3563
|
+
<p>
|
3564
|
+
Turns a string into a regular expression. By default it will escape all
|
3565
|
+
characters. Use <tt>false</tt> argument to turn off escaping.
|
3566
|
+
</p>
|
3567
|
+
<pre>
|
3568
|
+
"[".to_rx #=> /\[/
|
3569
|
+
|
3570
|
+
CREDIT: Trans
|
3571
|
+
</pre>
|
3572
|
+
</div>
|
3573
|
+
<div class="sourcecode">
|
3574
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000538_source')" id="l_M000538_source">show source</a> ]</p>
|
3575
|
+
<div id="M000538_source" class="dyn-source">
|
3576
|
+
<pre>
|
3577
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/to_re.rb, line 21</span>
|
3578
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_rx</span>(<span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">true</span>)
|
3579
|
+
<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>((<span class="ruby-identifier">esc</span> <span class="ruby-value">? </span><span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword kw">self</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="M000487"></a><b>to_rx</b>(esc=true)
|
3588
|
+
</div>
|
3589
|
+
<div class="description">
|
3590
|
+
<p>
|
3591
|
+
Turns a string into a regular expression. By default it will escape all
|
3592
|
+
characters. Use <tt>false</tt> argument to turn off escaping.
|
3593
|
+
</p>
|
3594
|
+
<pre>
|
3595
|
+
"[".to_rx #=> /\[/
|
3596
|
+
|
3597
|
+
CREDIT: Trans
|
3598
|
+
</pre>
|
3599
|
+
</div>
|
3600
|
+
<div class="sourcecode">
|
3601
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000487_source')" id="l_M000487_source">show source</a> ]</p>
|
3602
|
+
<div id="M000487_source" class="dyn-source">
|
3603
|
+
<pre>
|
3604
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/to_re.rb, line 21</span>
|
3605
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_rx</span>(<span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">true</span>)
|
3606
|
+
<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>((<span class="ruby-identifier">esc</span> <span class="ruby-value">? </span><span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword kw">self</span>))
|
3607
|
+
<span class="ruby-keyword kw">end</span>
|
3608
|
+
</pre>
|
3609
|
+
</div>
|
3610
|
+
</div>
|
3611
|
+
</div>
|
3612
|
+
<div class="method">
|
3613
|
+
<div class="title">
|
3614
|
+
<a name="M000483"></a><b>to_s</b>()
|
3615
|
+
</div>
|
3616
|
+
<div class="sourcecode">
|
3617
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000483_source')" id="l_M000483_source">show source</a> ]</p>
|
3618
|
+
<div id="M000483_source" class="dyn-source">
|
3619
|
+
<pre>
|
3620
|
+
<span class="ruby-comment cmt"># File lib/core/facets/comparable/bound.rb, line 2</span>
|
3621
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
3622
|
+
<span class="ruby-keyword kw">self</span>
|
3623
|
+
<span class="ruby-keyword kw">end</span>
|
3624
|
+
</pre>
|
3625
|
+
</div>
|
3626
|
+
</div>
|
3627
|
+
</div>
|
3628
|
+
<div class="method">
|
3629
|
+
<div class="title">
|
3630
|
+
<a name="M000481"></a><b>to_s</b>()
|
3631
|
+
</div>
|
3632
|
+
<div class="sourcecode">
|
3633
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000481_source')" id="l_M000481_source">show source</a> ]</p>
|
3634
|
+
<div id="M000481_source" class="dyn-source">
|
3635
|
+
<pre>
|
3636
|
+
<span class="ruby-comment cmt"># File lib/core/facets/comparable/bound.rb, line 2</span>
|
3637
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
3638
|
+
<span class="ruby-keyword kw">self</span>
|
3639
|
+
<span class="ruby-keyword kw">end</span>
|
3640
|
+
</pre>
|
3641
|
+
</div>
|
3642
|
+
</div>
|
3643
|
+
</div>
|
3644
|
+
<div class="method">
|
3645
|
+
<div class="title">
|
3646
|
+
<a name="M000521"></a><b>to_time</b>()
|
3647
|
+
</div>
|
3648
|
+
<div class="description">
|
3649
|
+
<p>
|
3650
|
+
Parse string to time.
|
3651
|
+
</p>
|
3652
|
+
<pre>
|
3653
|
+
CREDIT: Trans
|
3654
|
+
</pre>
|
3655
|
+
<p>
|
3656
|
+
TODO: This requires the external time.rb lib. Should we do this?
|
3657
|
+
</p>
|
3658
|
+
</div>
|
3659
|
+
<div class="sourcecode">
|
3660
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000521_source')" id="l_M000521_source">show source</a> ]</p>
|
3661
|
+
<div id="M000521_source" class="dyn-source">
|
3662
|
+
<pre>
|
3663
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/to_time.rb, line 9</span>
|
3664
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_time</span>
|
3665
|
+
<span class="ruby-identifier">require</span> <span class="ruby-value str">'time'</span>
|
3666
|
+
<span class="ruby-constant">Time</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-keyword kw">self</span>)
|
3667
|
+
<span class="ruby-keyword kw">end</span>
|
3668
|
+
</pre>
|
3669
|
+
</div>
|
3670
|
+
</div>
|
3671
|
+
</div>
|
3672
|
+
<div class="method">
|
3673
|
+
<div class="title">
|
3674
|
+
<a name="M000572"></a><b>to_time</b>()
|
3675
|
+
</div>
|
3676
|
+
<div class="description">
|
3677
|
+
<p>
|
3678
|
+
Parse string to time.
|
3679
|
+
</p>
|
3680
|
+
<pre>
|
3681
|
+
CREDIT: Trans
|
3682
|
+
</pre>
|
3683
|
+
<p>
|
3684
|
+
TODO: This requires the external time.rb lib. Should we do this?
|
3685
|
+
</p>
|
3686
|
+
</div>
|
3687
|
+
<div class="sourcecode">
|
3688
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000572_source')" id="l_M000572_source">show source</a> ]</p>
|
3689
|
+
<div id="M000572_source" class="dyn-source">
|
3690
|
+
<pre>
|
3691
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/to_time.rb, line 9</span>
|
3692
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_time</span>
|
3693
|
+
<span class="ruby-identifier">require</span> <span class="ruby-value str">'time'</span>
|
3694
|
+
<span class="ruby-constant">Time</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-keyword kw">self</span>)
|
3695
|
+
<span class="ruby-keyword kw">end</span>
|
3696
|
+
</pre>
|
3697
|
+
</div>
|
3698
|
+
</div>
|
3699
|
+
</div>
|
3700
|
+
<div class="method">
|
3701
|
+
<div class="title">
|
3702
|
+
<a name="M000576"></a><b>unbracket</b>(bra=nil, ket=nil)
|
3703
|
+
</div>
|
3704
|
+
<div class="description">
|
3705
|
+
<p>
|
3706
|
+
Return a new string embraced by given brakets. If only one <a
|
3707
|
+
href="String.html#M000523">bracket</a> char is given it will be placed on
|
3708
|
+
either side.
|
3709
|
+
</p>
|
3710
|
+
<pre>
|
3711
|
+
"{unwrap me}".debracket('{') #=> "unwrap me"
|
3712
|
+
"--unwrap me!".debracket('--','!') #=> "unwrap me!"
|
3713
|
+
|
3714
|
+
CREDIT: Trans
|
3715
|
+
</pre>
|
3716
|
+
</div>
|
3717
|
+
<div class="sourcecode">
|
3718
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000576_source')" id="l_M000576_source">show source</a> ]</p>
|
3719
|
+
<div id="M000576_source" class="dyn-source">
|
3720
|
+
<pre>
|
3721
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 37</span>
|
3722
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unbracket</span>(<span class="ruby-identifier">bra</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
|
3723
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">bra</span>
|
3724
|
+
<span class="ruby-identifier">ket</span> = <span class="ruby-constant">BRA2KET</span>[<span class="ruby-identifier">bra</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">ket</span>
|
3725
|
+
<span class="ruby-identifier">ket</span> = <span class="ruby-identifier">ket</span> <span class="ruby-value">? </span><span class="ruby-identifier">ket</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">bra</span>
|
3726
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
3727
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-node">%r[^#{Regexp.escape(bra)}]</span>, <span class="ruby-value str">''</span>)
|
3728
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-node">%r[#{Regexp.escape(ket)}$]</span>, <span class="ruby-value str">''</span>)
|
3729
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
|
3730
|
+
<span class="ruby-keyword kw">else</span>
|
3731
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">m</span> = <span class="ruby-constant">BRA2KET</span>[ <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>] ]
|
3732
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">slice</span>(<span class="ruby-value">1</span><span class="ruby-operator">...</span><span class="ruby-value">-1</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">-1</span>,<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-identifier">m</span>
|
3733
|
+
<span class="ruby-keyword kw">end</span>
|
3734
|
+
<span class="ruby-keyword kw">end</span>
|
3735
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span> <span class="ruby-comment cmt"># if nothing else</span>
|
3736
|
+
<span class="ruby-keyword kw">end</span>
|
3737
|
+
</pre>
|
3738
|
+
</div>
|
3739
|
+
</div>
|
3740
|
+
</div>
|
3741
|
+
<div class="method">
|
3742
|
+
<div class="title">
|
3743
|
+
<a name="M000525"></a><b>unbracket</b>(bra=nil, ket=nil)
|
3744
|
+
</div>
|
3745
|
+
<div class="description">
|
3746
|
+
<p>
|
3747
|
+
Return a new string embraced by given brakets. If only one <a
|
3748
|
+
href="String.html#M000523">bracket</a> char is given it will be placed on
|
3749
|
+
either side.
|
3750
|
+
</p>
|
3751
|
+
<pre>
|
3752
|
+
"{unwrap me}".debracket('{') #=> "unwrap me"
|
3753
|
+
"--unwrap me!".debracket('--','!') #=> "unwrap me!"
|
3754
|
+
|
3755
|
+
CREDIT: Trans
|
3756
|
+
</pre>
|
3757
|
+
</div>
|
3758
|
+
<div class="sourcecode">
|
3759
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000525_source')" id="l_M000525_source">show source</a> ]</p>
|
3760
|
+
<div id="M000525_source" class="dyn-source">
|
3761
|
+
<pre>
|
3762
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 37</span>
|
3763
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unbracket</span>(<span class="ruby-identifier">bra</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
|
3764
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">bra</span>
|
3765
|
+
<span class="ruby-identifier">ket</span> = <span class="ruby-constant">BRA2KET</span>[<span class="ruby-identifier">bra</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">ket</span>
|
3766
|
+
<span class="ruby-identifier">ket</span> = <span class="ruby-identifier">ket</span> <span class="ruby-value">? </span><span class="ruby-identifier">ket</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">bra</span>
|
3767
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
3768
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-node">%r[^#{Regexp.escape(bra)}]</span>, <span class="ruby-value str">''</span>)
|
3769
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-node">%r[#{Regexp.escape(ket)}$]</span>, <span class="ruby-value str">''</span>)
|
3770
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
|
3771
|
+
<span class="ruby-keyword kw">else</span>
|
3772
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">m</span> = <span class="ruby-constant">BRA2KET</span>[ <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>] ]
|
3773
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">slice</span>(<span class="ruby-value">1</span><span class="ruby-operator">...</span><span class="ruby-value">-1</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">-1</span>,<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-identifier">m</span>
|
3774
|
+
<span class="ruby-keyword kw">end</span>
|
3775
|
+
<span class="ruby-keyword kw">end</span>
|
3776
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span> <span class="ruby-comment cmt"># if nothing else</span>
|
3777
|
+
<span class="ruby-keyword kw">end</span>
|
3778
|
+
</pre>
|
3779
|
+
</div>
|
3780
|
+
</div>
|
3781
|
+
</div>
|
3782
|
+
<div class="method">
|
3783
|
+
<div class="title">
|
3784
|
+
<a name="M000526"></a><b>unbracket!</b>(bra=nil, ket=nil)
|
3785
|
+
</div>
|
3786
|
+
<div class="description">
|
3787
|
+
<p>
|
3788
|
+
Inplace version of debraket.
|
3789
|
+
</p>
|
3790
|
+
<pre>
|
3791
|
+
CREDIT: Trans
|
3792
|
+
</pre>
|
3793
|
+
</div>
|
3794
|
+
<div class="sourcecode">
|
3795
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000526_source')" id="l_M000526_source">show source</a> ]</p>
|
3796
|
+
<div id="M000526_source" class="dyn-source">
|
3797
|
+
<pre>
|
3798
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 57</span>
|
3799
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unbracket!</span>(<span class="ruby-identifier">bra</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
|
3800
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">replace</span>( <span class="ruby-identifier">unbracket</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>) )
|
3801
|
+
<span class="ruby-keyword kw">end</span>
|
3802
|
+
</pre>
|
3803
|
+
</div>
|
3804
|
+
</div>
|
3805
|
+
</div>
|
3806
|
+
<div class="method">
|
3807
|
+
<div class="title">
|
3808
|
+
<a name="M000577"></a><b>unbracket!</b>(bra=nil, ket=nil)
|
3809
|
+
</div>
|
3810
|
+
<div class="description">
|
3811
|
+
<p>
|
3812
|
+
Inplace version of debraket.
|
3813
|
+
</p>
|
3814
|
+
<pre>
|
3815
|
+
CREDIT: Trans
|
3816
|
+
</pre>
|
3817
|
+
</div>
|
3818
|
+
<div class="sourcecode">
|
3819
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000577_source')" id="l_M000577_source">show source</a> ]</p>
|
3820
|
+
<div id="M000577_source" class="dyn-source">
|
3821
|
+
<pre>
|
3822
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 57</span>
|
3823
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unbracket!</span>(<span class="ruby-identifier">bra</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
|
3824
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">replace</span>( <span class="ruby-identifier">unbracket</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>) )
|
3825
|
+
<span class="ruby-keyword kw">end</span>
|
3826
|
+
</pre>
|
3827
|
+
</div>
|
3828
|
+
</div>
|
3829
|
+
</div>
|
3830
|
+
<div class="method">
|
3831
|
+
<div class="title">
|
3832
|
+
<a name="M000514"></a><b>upcase?</b>()
|
3833
|
+
</div>
|
3834
|
+
<div class="description">
|
3835
|
+
<p>
|
3836
|
+
Is the string upcase/uppercase?
|
3837
|
+
</p>
|
3838
|
+
<pre>
|
3839
|
+
"THIS".upcase? #=> true
|
3840
|
+
"This".upcase? #=> false
|
3841
|
+
"this".upcase? #=> false
|
3842
|
+
|
3843
|
+
CREDIT: Phil Tomson
|
3844
|
+
</pre>
|
3845
|
+
</div>
|
3846
|
+
<div class="sourcecode">
|
3847
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000514_source')" id="l_M000514_source">show source</a> ]</p>
|
3848
|
+
<div id="M000514_source" class="dyn-source">
|
3849
|
+
<pre>
|
3850
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 38</span>
|
3851
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">upcase?</span>
|
3852
|
+
<span class="ruby-identifier">upcase</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">self</span>
|
3853
|
+
<span class="ruby-keyword kw">end</span>
|
3854
|
+
</pre>
|
3855
|
+
</div>
|
3856
|
+
</div>
|
3857
|
+
</div>
|
3858
|
+
<div class="method">
|
3859
|
+
<div class="title">
|
3860
|
+
<a name="M000565"></a><b>upcase?</b>()
|
3861
|
+
</div>
|
3862
|
+
<div class="description">
|
3863
|
+
<p>
|
3864
|
+
Is the string upcase/uppercase?
|
3865
|
+
</p>
|
3866
|
+
<pre>
|
3867
|
+
"THIS".upcase? #=> true
|
3868
|
+
"This".upcase? #=> false
|
3869
|
+
"this".upcase? #=> false
|
3870
|
+
|
3871
|
+
CREDIT: Phil Tomson
|
3872
|
+
</pre>
|
3873
|
+
</div>
|
3874
|
+
<div class="sourcecode">
|
3875
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000565_source')" id="l_M000565_source">show source</a> ]</p>
|
3876
|
+
<div id="M000565_source" class="dyn-source">
|
3877
|
+
<pre>
|
3878
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 38</span>
|
3879
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">upcase?</span>
|
3880
|
+
<span class="ruby-identifier">upcase</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">self</span>
|
3881
|
+
<span class="ruby-keyword kw">end</span>
|
3882
|
+
</pre>
|
3883
|
+
</div>
|
3884
|
+
</div>
|
3885
|
+
</div>
|
3886
|
+
<div class="method">
|
3887
|
+
<div class="title">
|
3888
|
+
<a name="M000479"></a><b>variablize</b>()
|
3889
|
+
</div>
|
3890
|
+
<div class="description">
|
3891
|
+
<p>
|
3892
|
+
Append an "@" to the beginning of a string to make a instance
|
3893
|
+
variable name. This also replaces non-valid characters with underscores.
|
3894
|
+
</p>
|
3895
|
+
</div>
|
3896
|
+
<div class="sourcecode">
|
3897
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000479_source')" id="l_M000479_source">show source</a> ]</p>
|
3898
|
+
<div id="M000479_source" class="dyn-source">
|
3899
|
+
<pre>
|
3900
|
+
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 128</span>
|
3901
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">variablize</span>
|
3902
|
+
<span class="ruby-node">"@#{self}"</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\W/</span>, <span class="ruby-value str">'_'</span>).<span class="ruby-identifier">to_sym</span>
|
3903
|
+
<span class="ruby-keyword kw">end</span>
|
3904
|
+
</pre>
|
3905
|
+
</div>
|
3906
|
+
</div>
|
3907
|
+
</div>
|
3908
|
+
</div>
|
3909
|
+
|
3910
|
+
</div>
|
3911
|
+
|
3912
|
+
</body>
|
3913
|
+
</html>
|