facets 2.4.5 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +6 -2
- data/CHANGES +46 -52
- data/MANIFEST +680 -642
- data/README +3 -10
- data/RELEASE +82 -36
- data/VERSION +1 -1
- data/doc/archive/{changelog-0.rdoc → CHANGELOG-0.10.30} +0 -0
- data/doc/archive/{changelog-1.rdoc → CHANGELOG-1.8.54} +0 -0
- data/doc/archive/CHANGELOG-2.4.5 +1654 -0
- data/doc/{news → archive}/RELEASE-2.0.5 +0 -0
- data/doc/{news → archive}/RELEASE-2.1.0 +0 -0
- data/doc/{news → archive}/RELEASE-2.1.1 +0 -0
- data/doc/{news → archive}/RELEASE-2.1.2 +0 -0
- data/doc/{news → archive}/RELEASE-2.1.3 +0 -0
- data/doc/{news → archive}/RELEASE-2.2.0 +0 -0
- data/doc/{news → archive}/RELEASE-2.2.1 +0 -0
- data/doc/{news → archive}/RELEASE-2.3.0 +0 -0
- data/doc/{news → archive}/RELEASE-2.4.0 +0 -0
- data/doc/{news → archive}/RELEASE-2.4.1 +0 -0
- data/doc/{news → archive}/RELEASE-2.4.2 +0 -0
- data/doc/{news → archive}/RELEASE-2.4.3 +0 -0
- data/doc/{news → archive}/RELEASE-2.4.4 +0 -0
- data/doc/archive/RELEASE-2.4.5 +37 -0
- data/doc/{book/history.rdoc → guide/notes.rd} +62 -4
- data/doc/log/basic_stats/index.html +39 -0
- data/doc/log/bstats/stats.html +39 -0
- data/doc/log/changelog.html +141 -0
- data/doc/log/changelog.txt +1609 -0
- data/doc/log/stats.html +25 -0
- data/doc/log/testlog.txt +278 -0
- data/doc/rdoc/core/classes/Array.html +158 -147
- data/doc/rdoc/core/classes/Binding.html +54 -54
- data/doc/rdoc/core/classes/Class.html +59 -57
- data/doc/rdoc/core/classes/Comparable.html +67 -76
- data/doc/rdoc/core/classes/Dir.html +47 -47
- data/doc/rdoc/core/classes/Enumerable.html +232 -192
- data/doc/rdoc/core/classes/Exception.html +15 -16
- data/doc/rdoc/core/classes/File.html +128 -85
- data/doc/rdoc/core/classes/FileTest.html +7 -7
- data/doc/rdoc/core/classes/Float.html +16 -14
- data/doc/rdoc/core/classes/Functor.html +12 -12
- data/doc/rdoc/core/classes/Hash.html +490 -319
- data/doc/rdoc/core/classes/Indexable.html +110 -110
- data/doc/rdoc/core/classes/InstanceVariables.html +44 -44
- data/doc/rdoc/core/classes/Integer.html +122 -116
- data/doc/rdoc/core/classes/Kernel.html +415 -401
- data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
- data/doc/rdoc/core/classes/MatchData.html +24 -21
- data/doc/rdoc/core/classes/Module.html +230 -229
- data/doc/rdoc/core/classes/NilClass.html +28 -26
- data/doc/rdoc/core/classes/Numeric.html +30 -30
- data/doc/rdoc/core/classes/Object.html +8 -8
- data/doc/rdoc/core/classes/{Friend.html → ObjectSpace.html} +25 -48
- data/doc/rdoc/core/classes/Proc.html +29 -27
- data/doc/rdoc/core/classes/Range.html +17 -15
- data/doc/rdoc/core/classes/Regexp.html +17 -17
- data/doc/rdoc/core/classes/Stackable.html +31 -31
- data/doc/rdoc/core/classes/String.html +445 -401
- data/doc/rdoc/{more/classes/CLI/NoOptionError.html → core/classes/Struct.html} +24 -21
- data/doc/rdoc/core/classes/Symbol.html +73 -65
- data/doc/rdoc/core/classes/Time.html +87 -86
- data/doc/rdoc/core/classes/TrueClass.html +8 -8
- data/doc/rdoc/core/classes/UnboundMethod.html +17 -16
- data/doc/rdoc/core/created.rid +1 -1
- data/doc/rdoc/core/files/README.html +10 -16
- data/doc/rdoc/core/files/lib/core/facets/array/combination_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/conjoin_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/delete_rb.html +10 -1
- data/doc/rdoc/core/files/lib/core/facets/array/delete_unless_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/delete_values_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/index_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/indexable_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/merge_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/only_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/pad_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/permutation_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/product_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/rotate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/select_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/splice_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/stackable_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/binding/caller_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/binding/callstack_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/binding/defined_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/bitmask_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/class/cattr_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/class/descendents_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/class/prepend_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/class/to_proc_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/comparable/at_least_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/comparable/at_most_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/comparable/bound_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/comparable/cap_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/comparable/clip_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/comparable/cmp_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/comparable/comparable_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/dir/ascend_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/dir/multiglob_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/dir/recurse_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/accumulate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/cluster_by_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/collect_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/commonality_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/count_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/divide_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/duplicates_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/each_by_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/entropy_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/frequency_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/graph_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/group_by_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/inject_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/map_send_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/mash_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/mode_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/modulate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/none_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/occur_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/one_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/probability_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/sum_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/take_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/uniq_by_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/exception/detail_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/exception/suppress_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/append_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/create_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/null_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/read_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/rewrite_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/rootname_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/split_all_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/file/split_root_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/write_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/writelines_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/filetest/root_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/alias_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/autonew_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/collate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/delete_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/insert_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/inverse_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/join_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/keys_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_add_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_and_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_mul_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_or_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_push_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_sub_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/rekey_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/replace_each_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/select_rb.html +1 -1
- data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/hash/stringify_keys_rb.html +1 -1
- data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/hash/symbolize_keys_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/to_options_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/to_struct_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/traverse_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/update_each_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/update_keys_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/update_rb.html +8 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/update_values_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/weave_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/zipnew_rb.html +1 -5
- data/doc/rdoc/core/files/lib/core/facets/integer/factorial_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/integer/multiple_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/integer/odd_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/__here___rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/as_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/ask_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/attr_singleton_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/callstack_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/complete_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/constant_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/d_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/demo_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/ergo_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_class_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_variables_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/not_nil_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/object_send_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/p_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/populate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/qua_class_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/resc_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/respond_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/returning_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/silence_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/try_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/matchdata/match_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/matchdata/matchset_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/metaid_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/abstract_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/alias_accessor_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/alias_method_chain_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/alias_module_function_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/ancestor_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/basename_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/conflict_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/include_function_module_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/instance_methods_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/is_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/methodize_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/modspace_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/module_load_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/nesting_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/op_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/prepend_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/redefine_method_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/rename_method_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/revise_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/spacename_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/wrap_method_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/nilclass/to_f_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/numeric/approx_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/numeric/distance_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/numeric/round_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/objectspace/classes_rb.html +92 -0
- data/doc/rdoc/{more/files/lib/more/facets/dictionarymatcher_rb.html → core/files/lib/core/facets/objectspace_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/proc/bind_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/proc/compose_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/proc/to_method_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/proc/update_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/range/combine_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/range/overlap_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/range/within_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/regexp/arity_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/align_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/bracket_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/camelcase_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/capitalized_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/chars_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/chomp_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/cleave_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/compress_lines_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/contains_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/divide_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/expand_tab_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/fold_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/indent_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/interpolate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/line_wrap_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/lines_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/margin_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/methodize_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/mscan_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/natcmp_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/nchar_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/op_sub_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/outdent_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/string/range_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/rewrite_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/shatter_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/snakecase_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/splice_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/start_with_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/tab_rb.html +8 -1
- data/doc/rdoc/core/files/lib/core/facets/string/tabto_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/string/titlecase_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/to_re_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/word_wrap_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/struct/attributes_rb.html +92 -0
- data/doc/rdoc/{more/files/lib/more/facets/bytes_rb.html → core/files/lib/core/facets/struct_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/symbol/chomp_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/symbol/generate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/symbol/not_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/symbol/succ_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/symbol/to_proc_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/advance_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/change_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/elapse_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/hence_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/stamp_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod/arguments_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod/name_rb.html +1 -1
- data/doc/rdoc/core/fr_class_index.html +2 -1
- data/doc/rdoc/core/fr_file_index.html +30 -1
- data/doc/rdoc/core/fr_method_index.html +430 -423
- data/doc/rdoc/lore/classes/Date.html +6 -5
- data/doc/rdoc/{more/classes/CLI/Command/UniversalOptions.html → lore/classes/Enumerable.html} +7 -9
- data/doc/rdoc/lore/classes/Enumerable/Enumerator.html +147 -0
- data/doc/rdoc/lore/classes/OpenStruct.html +13 -15
- data/doc/rdoc/lore/created.rid +1 -1
- data/doc/rdoc/lore/files/README.html +10 -16
- data/doc/rdoc/lore/files/lib/lore/facets/date_rb.html +1 -1
- data/doc/rdoc/lore/files/lib/lore/facets/enumerator_rb.html +111 -0
- data/doc/rdoc/lore/files/lib/lore/facets/ostruct_rb.html +1 -1
- data/doc/rdoc/lore/fr_class_index.html +2 -0
- data/doc/rdoc/lore/fr_file_index.html +1 -0
- data/doc/rdoc/lore/fr_method_index.html +13 -12
- data/doc/rdoc/more/classes/ANSICode.html +66 -66
- data/doc/rdoc/more/classes/Advisable.html +37 -37
- data/doc/rdoc/more/classes/Advisable/Method.html +20 -20
- data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +27 -27
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +28 -28
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +19 -19
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +31 -31
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +33 -33
- data/doc/rdoc/more/classes/Argvector.html +76 -76
- data/doc/rdoc/more/classes/Association.html +28 -28
- data/doc/rdoc/more/classes/Association/Kernel.html +8 -8
- data/doc/rdoc/more/classes/Autoarray.html +12 -12
- data/doc/rdoc/more/classes/BBCode.html +34 -34
- data/doc/rdoc/more/classes/BaseX.html +16 -16
- data/doc/rdoc/more/classes/BiCrypt.html +67 -67
- data/doc/rdoc/more/classes/BinReadable.html +85 -85
- data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +25 -25
- data/doc/rdoc/more/classes/Binding.html +8 -8
- data/doc/rdoc/more/classes/BlankSlate.html +5 -5
- data/doc/rdoc/more/classes/Buildable.html +4 -4
- data/doc/rdoc/more/classes/BuildingBlock.html +32 -32
- data/doc/rdoc/more/classes/Capsule.html +41 -41
- data/doc/rdoc/more/classes/Cloneable.html +4 -4
- data/doc/rdoc/more/classes/ConsoleUtils.html +22 -22
- data/doc/rdoc/more/classes/Coroutine.html +28 -28
- data/doc/rdoc/more/classes/Crypt.html +16 -16
- data/doc/rdoc/more/classes/CssFilter.html +45 -45
- data/doc/rdoc/more/classes/CssTree.html +8 -8
- data/doc/rdoc/more/classes/Dictionary.html +228 -228
- data/doc/rdoc/more/classes/Downloader.html +56 -56
- data/doc/rdoc/more/classes/Duration.html +369 -445
- data/doc/rdoc/more/classes/Duration/Numeric.html +389 -0
- data/doc/rdoc/more/classes/{CLI/NoCommandError.html → Duration/Time.html} +30 -17
- data/doc/rdoc/more/classes/Enumerable.html +114 -51
- data/doc/rdoc/more/classes/Enumerable/Elementor.html +16 -16
- data/doc/rdoc/more/classes/Enumerable/Enumerator.html +4 -4
- data/doc/rdoc/more/classes/Enumerable/Filterable.html +246 -0
- data/doc/rdoc/more/classes/EnumerablePass.html +17 -17
- data/doc/rdoc/more/classes/{RecursiveDependency.html → Enumerator.html} +7 -4
- data/doc/rdoc/more/classes/{CLI.html → Enumerator/Filter.html} +22 -26
- data/doc/rdoc/more/classes/Equatable.html +16 -16
- data/doc/rdoc/more/classes/Expirable.html +17 -17
- data/doc/rdoc/more/classes/FileList.html +125 -125
- data/doc/rdoc/more/classes/Fileable.html +14 -14
- data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
- data/doc/rdoc/more/classes/Hash.html +16 -162
- data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
- data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
- data/doc/rdoc/more/classes/IORedirect.html +19 -19
- data/doc/rdoc/more/classes/InfinityClass.html +36 -36
- data/doc/rdoc/more/classes/InfinityClass/Numeric.html +23 -23
- data/doc/rdoc/more/classes/Ini.html +37 -37
- data/doc/rdoc/more/classes/Instantiable.html +9 -9
- data/doc/rdoc/more/classes/Instantize.html +8 -8
- data/doc/rdoc/more/classes/Interval.html +187 -187
- data/doc/rdoc/more/classes/It.html +12 -12
- data/doc/rdoc/more/classes/LRUCache.html +38 -38
- data/doc/rdoc/more/classes/LinkedList.html +68 -68
- data/doc/rdoc/more/classes/LinkedList/Node.html +4 -4
- data/doc/rdoc/more/classes/{DictionaryMatcher.html → Matcher.html} +66 -68
- data/doc/rdoc/more/classes/{DictionaryMatcher → Matcher}/MatchData.html +8 -8
- data/doc/rdoc/more/classes/{CacheDecorator.html → Memoizer.html} +64 -46
- data/doc/rdoc/more/classes/Module.html +182 -361
- data/doc/rdoc/more/classes/Multiton.html +12 -12
- data/doc/rdoc/more/classes/Multiton/MetaMethods.html +28 -28
- data/doc/rdoc/more/classes/Net/SMTP.html +8 -8
- data/doc/rdoc/more/classes/NullClass.html +24 -24
- data/doc/rdoc/more/classes/Numeric/Multipliers.html +456 -0
- data/doc/rdoc/more/classes/ObjectReflection.html +12 -12
- data/doc/rdoc/more/classes/OpEsc.html +8 -7
- data/doc/rdoc/more/classes/OpenCascade.html +4 -4
- data/doc/rdoc/more/classes/OpenCollection.html +8 -8
- data/doc/rdoc/more/classes/OpenHash.html +9 -9
- data/doc/rdoc/more/classes/{EventHook.html → OpenModule.html} +24 -63
- data/doc/rdoc/more/classes/OpenObject.html +95 -95
- data/doc/rdoc/more/classes/OpenStructable.html +326 -0
- data/doc/rdoc/more/classes/PQueue.html +84 -84
- data/doc/rdoc/more/classes/Paramix.html +11 -11
- data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
- data/doc/rdoc/more/classes/PathList.html +8 -8
- data/doc/rdoc/more/classes/PathList/Finder.html +8 -8
- data/doc/rdoc/more/classes/Platform.html +46 -46
- data/doc/rdoc/more/classes/Pool.html +18 -18
- data/doc/rdoc/more/classes/Proc.html +9 -9
- data/doc/rdoc/more/classes/ProgressBar.html +52 -52
- data/doc/rdoc/more/classes/Prototype.html +28 -28
- data/doc/rdoc/more/classes/RWDelegator.html +16 -16
- data/doc/rdoc/more/classes/Random.html +5 -5
- data/doc/rdoc/more/classes/Random/Array.html +37 -37
- data/doc/rdoc/more/classes/Random/Hash.html +52 -52
- data/doc/rdoc/more/classes/Random/Object.html +4 -4
- data/doc/rdoc/more/classes/Random/String.html +34 -34
- data/doc/rdoc/more/classes/Random/String/Self.html +9 -9
- data/doc/rdoc/more/classes/Recorder.html +16 -16
- data/doc/rdoc/more/classes/Reference.html +19 -19
- data/doc/rdoc/more/classes/Registerable.html +13 -13
- data/doc/rdoc/more/classes/Semaphore.html +36 -36
- data/doc/rdoc/more/classes/Settings.html +28 -28
- data/doc/rdoc/more/classes/Settings/Setting.html +13 -13
- data/doc/rdoc/more/classes/Settings/SettingCollection.html +4 -4
- data/doc/rdoc/more/classes/SimpleStringIO.html +8 -8
- data/doc/rdoc/more/classes/Snapshot.html +16 -16
- data/doc/rdoc/more/classes/Snapshot/ValueHolder.html +12 -12
- data/doc/rdoc/more/classes/SparseArray.html +1397 -0
- data/doc/rdoc/more/classes/Stash.html +232 -0
- data/doc/rdoc/more/classes/String/Mask.html +72 -72
- data/doc/rdoc/more/classes/String/Words.html +49 -49
- data/doc/rdoc/more/classes/Struct.html +8 -8
- data/doc/rdoc/more/classes/SyncArray.html +4 -4
- data/doc/rdoc/more/classes/SyncHash.html +4 -4
- data/doc/rdoc/more/classes/SyncHash/Delegator.html +28 -28
- data/doc/rdoc/more/classes/SyncHash/Inheritor.html +28 -28
- data/doc/rdoc/more/classes/System.html +253 -253
- data/doc/rdoc/more/classes/Timer.html +48 -48
- data/doc/rdoc/more/classes/Timer/Dummy.html +9 -9
- data/doc/rdoc/more/classes/TracePoint.html +58 -58
- data/doc/rdoc/more/classes/Tuple.html +170 -170
- data/doc/rdoc/more/classes/TypeCast/Class.html +4 -4
- data/doc/rdoc/more/classes/TypeCast/Object.html +4 -4
- data/doc/rdoc/more/classes/Uninheritable.html +6 -6
- data/doc/rdoc/more/classes/VersionNumber.html +57 -57
- data/doc/rdoc/more/classes/XOXO.html +9 -9
- data/doc/rdoc/more/classes/ZipUtils.html +251 -118
- data/doc/rdoc/more/classes/ZipUtils/DryRun.html +203 -35
- data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +203 -35
- data/doc/rdoc/more/classes/ZipUtils/Verbose.html +173 -35
- data/doc/rdoc/more/created.rid +1 -1
- data/doc/rdoc/more/files/README.html +10 -16
- data/doc/rdoc/more/files/lib/more/facets/attr_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/buildable_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/consoleutils_rb.html +1 -18
- data/doc/rdoc/more/files/lib/more/facets/dependency_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/duration_rb.html +1 -41
- data/doc/rdoc/more/files/lib/more/facets/elementor_rb.html +2 -1
- data/doc/rdoc/more/files/lib/more/facets/enumerablepass_rb.html +2 -1
- data/doc/rdoc/more/files/lib/more/facets/{fileshell_rb.html → filter_rb.html} +6 -5
- data/doc/rdoc/more/files/lib/more/facets/inheritor_rb.html +3 -28
- data/doc/rdoc/more/files/lib/more/facets/iteration_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/kernel/meta_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/matcher_rb.html +97 -0
- data/doc/rdoc/more/files/lib/more/facets/memoize_rb.html +7 -4
- data/doc/rdoc/more/files/lib/more/facets/{cachedecorator_rb.html → memoizer_rb.html} +23 -49
- data/doc/rdoc/more/files/lib/more/facets/multipliers_rb.html +2 -18
- data/doc/rdoc/more/files/lib/more/facets/nilstatus_rb.html +1 -1
- data/doc/rdoc/{core/files/lib/core/facets/callstack_rb.html → more/files/lib/more/facets/openmodule_rb.html} +4 -4
- data/doc/rdoc/more/files/lib/more/facets/opesc_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/ostructable_rb.html +92 -0
- data/doc/rdoc/more/files/lib/more/facets/pathlist_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/snapshot_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/sparse_array_rb.html +92 -0
- data/doc/rdoc/more/files/lib/more/facets/stash_rb.html +166 -0
- data/doc/rdoc/more/files/lib/more/facets/string/words_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/succ_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/thread_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/ziputils_rb.html +6 -34
- data/doc/rdoc/more/fr_class_index.html +13 -17
- data/doc/rdoc/more/fr_file_index.html +7 -15
- data/doc/rdoc/more/fr_method_index.html +1079 -1003
- data/doc/rdoc/more/index.html +1 -1
- data/lib/core/facets/array/conjoin.rb +1 -1
- data/lib/core/facets/array/delete.rb +3 -60
- data/lib/core/facets/array/delete_unless.rb +15 -0
- data/lib/core/facets/array/delete_values.rb +50 -0
- data/lib/core/facets/array/index.rb +0 -26
- data/lib/core/facets/array/indexable.rb +2 -2
- data/lib/core/facets/array/merge.rb +1 -1
- data/lib/core/facets/array/only.rb +1 -2
- data/lib/core/facets/array/pad.rb +2 -2
- data/lib/core/facets/array/permutation.rb +1 -1
- data/lib/core/facets/array/product.rb +2 -2
- data/lib/core/facets/array/rotate.rb +2 -4
- data/lib/core/facets/array/select.rb +1 -1
- data/lib/core/facets/array/splice.rb +1 -1
- data/lib/core/facets/array/stackable.rb +2 -2
- data/lib/core/facets/binding/caller.rb +2 -7
- data/lib/core/facets/binding/callstack.rb +1 -0
- data/lib/core/facets/binding/defined.rb +0 -1
- data/lib/core/facets/bitmask.rb +6 -9
- data/lib/core/facets/class/cattr.rb +6 -9
- data/lib/core/facets/class/descendents.rb +0 -2
- data/lib/core/facets/class/prepend.rb +3 -4
- data/lib/core/facets/class/to_proc.rb +0 -20
- data/lib/core/facets/comparable/at_least.rb +1 -0
- data/lib/core/facets/comparable/at_most.rb +1 -0
- data/lib/core/facets/comparable/bound.rb +1 -65
- data/lib/core/facets/comparable/cap.rb +34 -0
- data/lib/core/facets/comparable/clip.rb +38 -0
- data/lib/core/facets/comparable/cmp.rb +3 -3
- data/lib/core/facets/comparable/comparable.rb +1 -1
- data/lib/core/facets/dir/ascend.rb +2 -5
- data/lib/core/facets/dir/multiglob.rb +0 -2
- data/lib/core/facets/dir/recurse.rb +1 -2
- data/lib/core/facets/enumerable/accumulate.rb +2 -0
- data/lib/core/facets/enumerable/cluster_by.rb +1 -1
- data/lib/core/facets/enumerable/collect.rb +2 -2
- data/lib/core/facets/enumerable/commonality.rb +1 -1
- data/lib/core/facets/enumerable/count.rb +1 -1
- data/lib/core/facets/enumerable/divide.rb +1 -1
- data/lib/core/facets/enumerable/duplicates.rb +2 -2
- data/lib/core/facets/enumerable/each_by.rb +1 -1
- data/lib/core/facets/enumerable/entropy.rb +2 -2
- data/lib/core/facets/enumerable/frequency.rb +1 -1
- data/lib/core/facets/enumerable/graph.rb +1 -0
- data/lib/core/facets/enumerable/group_by.rb +1 -1
- data/lib/core/facets/enumerable/inject.rb +2 -3
- data/lib/core/facets/enumerable/map_send.rb +15 -3
- data/lib/core/facets/enumerable/mash.rb +4 -5
- data/lib/core/facets/enumerable/mode.rb +1 -1
- data/lib/core/facets/enumerable/modulate.rb +2 -2
- data/lib/core/facets/enumerable/none.rb +1 -1
- data/lib/core/facets/enumerable/occur.rb +0 -2
- data/lib/core/facets/enumerable/one.rb +1 -1
- data/lib/core/facets/enumerable/probability.rb +1 -1
- data/lib/core/facets/enumerable/sum.rb +1 -1
- data/lib/core/facets/enumerable/take.rb +20 -0
- data/lib/core/facets/enumerable/uniq_by.rb +0 -2
- data/lib/core/facets/exception/detail.rb +1 -1
- data/lib/core/facets/exception/suppress.rb +1 -2
- data/lib/core/facets/file/append.rb +1 -1
- data/lib/core/facets/file/create.rb +1 -1
- data/lib/core/facets/file/null.rb +1 -1
- data/lib/core/facets/file/read.rb +3 -3
- data/lib/core/facets/file/rewrite.rb +1 -1
- data/lib/core/facets/file/rootname.rb +1 -1
- data/lib/core/facets/file/split_all.rb +19 -0
- data/lib/core/facets/file/split_root.rb +3 -0
- data/lib/core/facets/file/write.rb +1 -1
- data/lib/core/facets/file/writelines.rb +1 -2
- data/lib/core/facets/filetest/root.rb +1 -1
- data/lib/core/facets/hash/alias.rb +1 -1
- data/lib/core/facets/hash/autonew.rb +1 -17
- data/lib/core/facets/hash/collate.rb +1 -1
- data/lib/core/facets/hash/delete.rb +3 -3
- data/lib/core/facets/hash/insert.rb +1 -1
- data/lib/core/facets/hash/inverse.rb +1 -1
- data/lib/core/facets/hash/join.rb +1 -1
- data/lib/core/facets/hash/keys.rb +3 -3
- data/lib/core/facets/hash/op_add.rb +1 -1
- data/lib/core/facets/hash/op_and.rb +1 -1
- data/lib/core/facets/hash/op_mul.rb +1 -1
- data/lib/core/facets/hash/op_or.rb +1 -1
- data/lib/core/facets/hash/op_push.rb +1 -1
- data/lib/core/facets/hash/op_sub.rb +1 -1
- data/lib/core/facets/hash/rekey.rb +11 -7
- data/lib/core/facets/hash/replace_each.rb +16 -0
- data/lib/core/facets/hash/select.rb +1 -2
- data/lib/{more → core}/facets/hash/stringify_keys.rb +0 -0
- data/lib/core/facets/hash/symbolize_keys.rb +94 -0
- data/lib/core/facets/hash/to_options.rb +1 -0
- data/lib/core/facets/hash/to_struct.rb +1 -1
- data/lib/core/facets/hash/traverse.rb +2 -2
- data/lib/core/facets/hash/update.rb +5 -80
- data/lib/core/facets/hash/update_each.rb +18 -0
- data/lib/core/facets/hash/update_keys.rb +20 -0
- data/lib/core/facets/hash/update_values.rb +20 -0
- data/lib/core/facets/hash/weave.rb +1 -1
- data/lib/core/facets/hash/zipnew.rb +17 -1
- data/lib/core/facets/integer/factorial.rb +1 -1
- data/lib/core/facets/integer/multiple.rb +1 -1
- data/lib/core/facets/integer/odd.rb +2 -2
- data/lib/core/facets/kernel/__here__.rb +8 -0
- data/lib/core/facets/kernel/as.rb +2 -2
- data/lib/core/facets/kernel/attr_singleton.rb +5 -5
- data/lib/core/facets/{callstack.rb → kernel/callstack.rb} +1 -1
- data/lib/core/facets/kernel/complete.rb +1 -1
- data/lib/core/facets/kernel/constant.rb +1 -1
- data/lib/core/facets/kernel/d.rb +1 -5
- data/lib/core/facets/kernel/demo.rb +2 -2
- data/lib/core/facets/kernel/ergo.rb +2 -2
- data/lib/core/facets/kernel/instance_class.rb +1 -1
- data/lib/core/facets/kernel/instance_variables.rb +2 -4
- data/lib/core/facets/kernel/not_nil.rb +1 -1
- data/lib/core/facets/kernel/object_send.rb +1 -1
- data/lib/core/facets/kernel/p.rb +1 -1
- data/lib/core/facets/kernel/populate.rb +2 -2
- data/lib/core/facets/kernel/qua_class.rb +2 -2
- data/lib/core/facets/kernel/resc.rb +1 -1
- data/lib/core/facets/kernel/respond.rb +1 -1
- data/lib/core/facets/kernel/returning.rb +1 -1
- data/lib/core/facets/kernel/silence.rb +4 -4
- data/lib/core/facets/kernel/try.rb +5 -3
- data/lib/core/facets/matchdata/match.rb +1 -1
- data/lib/core/facets/matchdata/matchset.rb +2 -2
- data/lib/core/facets/metaid.rb +5 -5
- data/lib/core/facets/module/abstract.rb +1 -1
- data/lib/core/facets/module/alias_accessor.rb +3 -3
- data/lib/core/facets/module/alias_method_chain.rb +1 -2
- data/lib/core/facets/module/alias_module_function.rb +1 -1
- data/lib/core/facets/module/ancestor.rb +1 -1
- data/lib/core/facets/module/basename.rb +1 -1
- data/lib/core/facets/module/conflict.rb +1 -2
- data/lib/core/facets/module/include_function_module.rb +1 -1
- data/lib/core/facets/module/instance_methods.rb +4 -6
- data/lib/core/facets/module/is.rb +2 -2
- data/lib/core/facets/module/modspace.rb +1 -1
- data/lib/core/facets/module/module_load.rb +2 -2
- data/lib/core/facets/module/nesting.rb +1 -1
- data/lib/core/facets/module/op.rb +3 -6
- data/lib/core/facets/module/prepend.rb +1 -1
- data/lib/core/facets/module/redefine_method.rb +1 -1
- data/lib/core/facets/module/rename_method.rb +1 -1
- data/lib/core/facets/module/revise.rb +2 -2
- data/lib/core/facets/module/spacename.rb +1 -1
- data/lib/core/facets/module/wrap_method.rb +1 -1
- data/lib/core/facets/nilclass/to_f.rb +1 -1
- data/lib/core/facets/numeric/approx.rb +1 -1
- data/lib/core/facets/numeric/distance.rb +1 -1
- data/lib/core/facets/numeric/round.rb +3 -6
- data/lib/core/facets/objectspace.rb +6 -0
- data/lib/core/facets/objectspace/classes.rb +11 -0
- data/lib/core/facets/proc/bind.rb +1 -1
- data/lib/core/facets/proc/compose.rb +2 -2
- data/lib/core/facets/proc/to_method.rb +1 -1
- data/lib/core/facets/proc/update.rb +1 -1
- data/lib/core/facets/range/combine.rb +2 -2
- data/lib/core/facets/range/overlap.rb +1 -2
- data/lib/core/facets/range/within.rb +2 -4
- data/lib/core/facets/regexp/arity.rb +1 -1
- data/lib/core/facets/string/align.rb +3 -3
- data/lib/core/facets/string/bracket.rb +6 -6
- data/lib/core/facets/string/camelcase.rb +1 -1
- data/lib/core/facets/string/capitalized.rb +3 -3
- data/lib/core/facets/string/chars.rb +1 -1
- data/lib/core/facets/string/chomp.rb +2 -2
- data/lib/core/facets/string/cleave.rb +1 -1
- data/lib/core/facets/string/compress_lines.rb +17 -0
- data/lib/core/facets/string/contains.rb +7 -0
- data/lib/core/facets/string/divide.rb +1 -1
- data/lib/core/facets/string/expand_tab.rb +35 -0
- data/lib/core/facets/string/fold.rb +1 -1
- data/lib/core/facets/string/indent.rb +25 -0
- data/lib/core/facets/string/interpolate.rb +1 -1
- data/lib/core/facets/string/line_wrap.rb +1 -1
- data/lib/core/facets/string/lines.rb +1 -2
- data/lib/core/facets/string/margin.rb +30 -0
- data/lib/core/facets/string/methodize.rb +1 -1
- data/lib/core/facets/string/mscan.rb +1 -1
- data/lib/core/facets/string/natcmp.rb +1 -2
- data/lib/core/facets/string/nchar.rb +0 -2
- data/lib/core/facets/string/op_sub.rb +1 -1
- data/lib/core/facets/string/outdent.rb +1 -0
- data/lib/core/facets/string/range.rb +4 -5
- data/lib/core/facets/string/rewrite.rb +1 -1
- data/lib/core/facets/string/shatter.rb +1 -1
- data/lib/core/facets/string/snakecase.rb +1 -1
- data/lib/core/facets/string/splice.rb +2 -2
- data/lib/core/facets/string/start_with.rb +2 -4
- data/lib/core/facets/string/tab.rb +9 -92
- data/lib/core/facets/string/tabto.rb +19 -0
- data/lib/core/facets/string/titlecase.rb +1 -1
- data/lib/core/facets/string/to_re.rb +2 -2
- data/lib/core/facets/string/word_wrap.rb +2 -4
- data/lib/core/facets/struct.rb +6 -0
- data/lib/core/facets/struct/attributes.rb +11 -0
- data/lib/core/facets/symbol/chomp.rb +2 -2
- data/lib/core/facets/symbol/generate.rb +1 -1
- data/lib/core/facets/symbol/not.rb +2 -2
- data/lib/core/facets/symbol/succ.rb +1 -1
- data/lib/core/facets/symbol/to_proc.rb +2 -3
- data/lib/core/facets/time/advance.rb +2 -1
- data/lib/core/facets/time/elapse.rb +1 -1
- data/lib/core/facets/time/hence.rb +16 -13
- data/lib/core/facets/time/stamp.rb +2 -2
- data/lib/core/facets/to_hash.rb +1 -1
- data/lib/core/facets/unboundmethod/arguments.rb +1 -1
- data/lib/core/facets/unboundmethod/name.rb +1 -1
- data/lib/lore/facets/date.rb +2 -2
- data/lib/lore/facets/enumerator.rb +67 -0
- data/lib/lore/facets/ostruct.rb +3 -7
- data/lib/more/facets/attr.rb +10 -9
- data/lib/more/facets/consoleutils.rb +1 -15
- data/lib/more/facets/dependency.rb +1 -1
- data/lib/more/facets/duration.rb +271 -525
- data/lib/more/facets/filter.rb +121 -0
- data/lib/more/facets/inheritor.rb +37 -58
- data/lib/more/facets/iteration.rb +1 -1
- data/lib/more/facets/kernel/meta.rb +1 -1
- data/lib/more/facets/{dictionarymatcher.rb → matcher.rb} +15 -11
- data/lib/more/facets/memoize.rb +9 -12
- data/lib/more/facets/memoizer.rb +74 -0
- data/lib/more/facets/multipliers.rb +54 -66
- data/lib/more/facets/nilstatus.rb +3 -2
- data/lib/more/facets/openmodule.rb +15 -0
- data/lib/more/facets/opesc.rb +1 -1
- data/lib/more/facets/ostructable.rb +212 -0
- data/lib/more/facets/pathlist.rb +1 -0
- data/lib/more/facets/sparse_array.rb +809 -0
- data/lib/more/facets/stash.rb +66 -0
- data/lib/more/facets/string/words.rb +8 -11
- data/lib/more/facets/succ.rb +3 -3
- data/lib/more/facets/thread.rb +2 -2
- data/lib/more/facets/ziputils.rb +238 -97
- data/test/core/array/test_index.rb +17 -0
- data/test/core/class/test_cattr.rb +1 -1
- data/test/core/class/test_to_proc.rb +13 -0
- data/test/core/comparable/test_cap.rb +25 -0
- data/test/core/comparable/{test_bound.rb → test_clip.rb} +1 -20
- data/test/core/file/test_split_all.rb +32 -0
- data/test/core/hash/test_op_mul.rb +1 -1
- data/test/core/hash/test_op_push.rb +7 -0
- data/test/core/hash/test_replace_each.rb +14 -0
- data/test/core/hash/test_update_each.rb +13 -0
- data/test/core/hash/test_update_keys.rb +18 -0
- data/test/core/hash/test_update_values.rb +12 -0
- data/test/core/kernel/test_callstack.rb +1 -1
- data/test/core/string/test_indent.rb +13 -0
- data/test/core/string/test_margin.rb +100 -0
- data/test/core/string/test_outdent.rb +65 -0
- data/test/core/string/test_tab.rb +1 -162
- data/test/core/string/test_tabto.rb +13 -0
- data/test/{more → core}/test_metaid.rb +8 -8
- data/test/core/time/test_hence.rb +118 -4
- data/test/core/unboundmethod/test_name.rb +1 -1
- data/test/more/{test_arguments.rb → test_argvector.rb} +8 -12
- data/test/more/test_filter.rb +87 -0
- data/test/more/test_memoize.rb +11 -9
- data/test/more/test_sparsearray.rb +279 -0
- metadata +741 -725
- data/demo/bench/bench_load.rb +0 -56
- data/demo/bench/enumerable/bench_collect.rb +0 -84
- data/demo/bench/enumerable/bench_count.rb +0 -58
- data/demo/bench/general/bench_calls.rb +0 -74
- data/demo/bench/general/bench_includes.rb +0 -25
- data/demo/bench/general/bench_methods.rb +0 -17
- data/demo/bench/general/bench_pathname.rb +0 -24
- data/demo/bench/general/bench_range.rb +0 -64
- data/demo/bench/general/bench_return.rb +0 -56
- data/demo/bench/general/bench_yeild.rb +0 -75
- data/demo/bench/general/comment_loading/bench.rb +0 -46
- data/demo/bench/general/comment_loading/comments_begin.rb +0 -109
- data/demo/bench/general/comment_loading/comments_end.rb +0 -127
- data/demo/bench/general/comment_loading/comments_none.rb +0 -1
- data/demo/bench/general/comment_loading/comments_sharp.rb +0 -125
- data/demo/bench/integer/bench_factorial.rb +0 -31
- data/demo/sample/annotations/annotations1.rb +0 -22
- data/demo/sample/ansicolor/cdiff.rb +0 -20
- data/demo/sample/ansicolor/example.rb +0 -82
- data/doc/book/notes.rdoc +0 -9
- data/doc/rdoc/more/classes/BigDuration.html +0 -323
- data/doc/rdoc/more/classes/CLI/Arguments.html +0 -488
- data/doc/rdoc/more/classes/CLI/Command.html +0 -316
- data/doc/rdoc/more/classes/Chain.html +0 -206
- data/doc/rdoc/more/classes/FileShell.html +0 -743
- data/doc/rdoc/more/classes/TagIterator.html +0 -581
- data/doc/rdoc/more/classes/UploadUtils.html +0 -497
- data/doc/rdoc/more/classes/Weekdays.html +0 -218
- data/doc/rdoc/more/files/lib/more/facets/annotations_rb.html +0 -180
- data/doc/rdoc/more/files/lib/more/facets/arguments_rb.html +0 -142
- data/doc/rdoc/more/files/lib/more/facets/cattr_rb.html +0 -125
- data/doc/rdoc/more/files/lib/more/facets/chain_rb.html +0 -114
- data/doc/rdoc/more/files/lib/more/facets/command_rb.html +0 -170
- data/doc/rdoc/more/files/lib/more/facets/eventhook_rb.html +0 -141
- data/doc/rdoc/more/files/lib/more/facets/tagiterator_rb.html +0 -111
- data/doc/rdoc/more/files/lib/more/facets/times_rb.html +0 -163
- data/doc/rdoc/more/files/lib/more/facets/uploadutils_rb.html +0 -176
- data/lib/more/facets/annotations.rb +0 -302
- data/lib/more/facets/arguments.rb +0 -365
- data/lib/more/facets/bytes.rb +0 -175
- data/lib/more/facets/cachedecorator.rb +0 -117
- data/lib/more/facets/chain.rb +0 -58
- data/lib/more/facets/command.rb +0 -439
- data/lib/more/facets/eventhook.rb +0 -132
- data/lib/more/facets/fileshell.rb +0 -202
- data/lib/more/facets/hash/symbolize_keys.rb +0 -94
- data/lib/more/facets/tagiter.rb +0 -366
- data/lib/more/facets/times.rb +0 -431
- data/lib/more/facets/uploadutils.rb +0 -464
- data/test/core/hash/test_update.rb +0 -46
- data/test/more/test_annotations.rb +0 -120
- data/test/more/test_bytes.rb +0 -71
- data/test/more/test_command.rb +0 -69
- data/test/more/test_times.rb +0 -89
@@ -4,9 +4,9 @@
|
|
4
4
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
5
|
<html>
|
6
6
|
<head>
|
7
|
-
<title>Class:
|
7
|
+
<title>Class: Struct</title>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href="
|
9
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
10
|
|
11
11
|
<script language="JavaScript" type="text/javascript">
|
12
12
|
// <![CDATA[
|
@@ -51,19 +51,21 @@
|
|
51
51
|
|
52
52
|
<body>
|
53
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 />
|
54
|
+
<td class="file-title"><span class="file-title-prefix">Class</span><br />Struct</td>
|
55
55
|
<td align="right">
|
56
56
|
<table cellspacing="0" cellpadding="2">
|
57
57
|
<tr valign="top">
|
58
58
|
<td>In:</td>
|
59
59
|
<td>
|
60
|
-
<a href="
|
60
|
+
<a href="../files/lib/core/facets/struct/attributes_rb.html">lib/core/facets/struct/attributes.rb</a>
|
61
61
|
</td>
|
62
62
|
</tr>
|
63
63
|
<tr>
|
64
64
|
<td>Parent:</td>
|
65
65
|
<td>
|
66
|
-
|
66
|
+
<a href="Object.html">
|
67
|
+
Object
|
68
|
+
</a>
|
67
69
|
</td>
|
68
70
|
</tr>
|
69
71
|
</table>
|
@@ -75,37 +77,38 @@ NoMethodError
|
|
75
77
|
<div id="bodyContent">
|
76
78
|
<div id="content">
|
77
79
|
|
78
|
-
<div class="description"><p>
|
79
|
-
For CommandOptions, but defined external to it, so that it is easy to
|
80
|
-
access from user defined commands. (This lookup issue should be fixed in
|
81
|
-
Ruby 1.9+, and then the class can be moved back into <a
|
82
|
-
href="Command.html">Command</a> namespace.)
|
83
|
-
</p>
|
84
|
-
</div>
|
85
80
|
|
86
81
|
|
87
82
|
|
88
83
|
<div class="sectiontitle">Methods</div>
|
89
|
-
<span style="padding-right: 5px;"><a href="#
|
84
|
+
<span style="padding-right: 5px;"><a href="#M000072">attributes</a></span>
|
90
85
|
|
91
86
|
|
92
87
|
|
93
88
|
|
94
89
|
|
95
90
|
|
96
|
-
<div class="sectiontitle">Public
|
91
|
+
<div class="sectiontitle">Public Instance methods</div>
|
97
92
|
<div class="method">
|
98
93
|
<div class="title">
|
99
|
-
<a name="
|
94
|
+
<a name="M000072"></a><b>attributes</b>()
|
95
|
+
</div>
|
96
|
+
<div class="description">
|
97
|
+
<p>
|
98
|
+
Returns a hash containing the names and values for all instance variables
|
99
|
+
in the <a href="Struct.html">Struct</a>.
|
100
|
+
</p>
|
100
101
|
</div>
|
101
102
|
<div class="sourcecode">
|
102
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
103
|
-
<div id="
|
103
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000072_source')" id="l_M000072_source">+</a> ]</p>
|
104
|
+
<div id="M000072_source" class="dyn-source">
|
104
105
|
<pre>
|
105
|
-
<span class="ruby-comment cmt"># File lib/
|
106
|
-
|
107
|
-
|
108
|
-
<span class="ruby-
|
106
|
+
<span class="ruby-comment cmt"># File lib/core/facets/struct/attributes.rb, line 4</span>
|
107
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attributes</span>
|
108
|
+
<span class="ruby-identifier">h</span> = {}
|
109
|
+
<span class="ruby-identifier">each_pair</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">v</span> }
|
110
|
+
<span class="ruby-identifier">h</span>
|
111
|
+
<span class="ruby-keyword kw">end</span>
|
109
112
|
</pre>
|
110
113
|
</div>
|
111
114
|
</div>
|
@@ -88,18 +88,18 @@ Object
|
|
88
88
|
|
89
89
|
|
90
90
|
<div class="sectiontitle">Methods</div>
|
91
|
-
<span style="padding-right: 5px;"><a href="#
|
92
|
-
<span style="padding-right: 5px;"><a href="#
|
93
|
-
<span style="padding-right: 5px;"><a href="#
|
94
|
-
<span style="padding-right: 5px;"><a href="#
|
95
|
-
<span style="padding-right: 5px;"><a href="#
|
96
|
-
<span style="padding-right: 5px;"><a href="#
|
97
|
-
<span style="padding-right: 5px;"><a href="#
|
98
|
-
<span style="padding-right: 5px;"><a href="#
|
99
|
-
<span style="padding-right: 5px;"><a href="#
|
100
|
-
<span style="padding-right: 5px;"><a href="#
|
101
|
-
<span style="padding-right: 5px;"><a href="#
|
102
|
-
<span style="padding-right: 5px;"><a href="#
|
91
|
+
<span style="padding-right: 5px;"><a href="#M000070">chomp</a></span>
|
92
|
+
<span style="padding-right: 5px;"><a href="#M000068">generate</a></span>
|
93
|
+
<span style="padding-right: 5px;"><a href="#M000071">lchomp</a></span>
|
94
|
+
<span style="padding-right: 5px;"><a href="#M000060">not?</a></span>
|
95
|
+
<span style="padding-right: 5px;"><a href="#M000063">plain?</a></span>
|
96
|
+
<span style="padding-right: 5px;"><a href="#M000065">query?</a></span>
|
97
|
+
<span style="padding-right: 5px;"><a href="#M000062">re_s</a></span>
|
98
|
+
<span style="padding-right: 5px;"><a href="#M000064">setter?</a></span>
|
99
|
+
<span style="padding-right: 5px;"><a href="#M000069">succ</a></span>
|
100
|
+
<span style="padding-right: 5px;"><a href="#M000067">to_proc</a></span>
|
101
|
+
<span style="padding-right: 5px;"><a href="#M000066">variablize</a></span>
|
102
|
+
<span style="padding-right: 5px;"><a href="#M000061">~</a></span>
|
103
103
|
|
104
104
|
|
105
105
|
|
@@ -109,7 +109,7 @@ Object
|
|
109
109
|
<div class="sectiontitle">Public Class methods</div>
|
110
110
|
<div class="method">
|
111
111
|
<div class="title">
|
112
|
-
<a name="
|
112
|
+
<a name="M000068"></a><b>generate</b>(key=nil)
|
113
113
|
</div>
|
114
114
|
<div class="description">
|
115
115
|
<p>
|
@@ -125,13 +125,14 @@ If <tt>key</tt> is given the new symbol will be prefixed with it.
|
|
125
125
|
Symbol.generate(:foo) => :foo-1
|
126
126
|
|
127
127
|
TODO: Is the generated symbol format acceptable?
|
128
|
-
|
129
|
-
CREDIT: Trans
|
130
128
|
</pre>
|
129
|
+
<p>
|
130
|
+
CREDIT: Trans
|
131
|
+
</p>
|
131
132
|
</div>
|
132
133
|
<div class="sourcecode">
|
133
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
134
|
-
<div id="
|
134
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000068_source')" id="l_M000068_source">+</a> ]</p>
|
135
|
+
<div id="M000068_source" class="dyn-source">
|
135
136
|
<pre>
|
136
137
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/generate.rb, line 15</span>
|
137
138
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">key</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -148,7 +149,7 @@ If <tt>key</tt> is given the new symbol will be prefixed with it.
|
|
148
149
|
<div class="sectiontitle">Public Instance methods</div>
|
149
150
|
<div class="method">
|
150
151
|
<div class="title">
|
151
|
-
<a name="
|
152
|
+
<a name="M000070"></a><b>chomp</b>(seperator)
|
152
153
|
</div>
|
153
154
|
<div class="description">
|
154
155
|
<p>
|
@@ -156,13 +157,14 @@ Just like String#chomp.
|
|
156
157
|
</p>
|
157
158
|
<pre>
|
158
159
|
:ab.chomp(:b) #=> :a
|
159
|
-
|
160
|
-
CREDIT: Trans
|
161
160
|
</pre>
|
161
|
+
<p>
|
162
|
+
CREDIT: Trans
|
163
|
+
</p>
|
162
164
|
</div>
|
163
165
|
<div class="sourcecode">
|
164
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
165
|
-
<div id="
|
166
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000070_source')" id="l_M000070_source">+</a> ]</p>
|
167
|
+
<div id="M000070_source" class="dyn-source">
|
166
168
|
<pre>
|
167
169
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/chomp.rb, line 9</span>
|
168
170
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chomp</span>(<span class="ruby-identifier">seperator</span>)
|
@@ -174,21 +176,22 @@ Just like String#chomp.
|
|
174
176
|
</div>
|
175
177
|
<div class="method">
|
176
178
|
<div class="title">
|
177
|
-
<a name="
|
179
|
+
<a name="M000071"></a><b>lchomp</b>(seperator)
|
178
180
|
</div>
|
179
181
|
<div class="description">
|
180
182
|
<p>
|
181
|
-
Just like <a href="String.html#
|
183
|
+
Just like <a href="String.html#M000306">String#lchomp</a>.
|
182
184
|
</p>
|
183
185
|
<pre>
|
184
186
|
:ab.lchomp(:a) #=> :b
|
185
|
-
|
186
|
-
CREDIT: Trans
|
187
187
|
</pre>
|
188
|
+
<p>
|
189
|
+
CREDIT: Trans
|
190
|
+
</p>
|
188
191
|
</div>
|
189
192
|
<div class="sourcecode">
|
190
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
191
|
-
<div id="
|
193
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000071_source')" id="l_M000071_source">+</a> ]</p>
|
194
|
+
<div id="M000071_source" class="dyn-source">
|
192
195
|
<pre>
|
193
196
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/chomp.rb, line 19</span>
|
194
197
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp</span>(<span class="ruby-identifier">seperator</span>)
|
@@ -200,7 +203,7 @@ Just like <a href="String.html#M000301">String#lchomp</a>.
|
|
200
203
|
</div>
|
201
204
|
<div class="method">
|
202
205
|
<div class="title">
|
203
|
-
<a name="
|
206
|
+
<a name="M000060"></a><b>not?</b>()
|
204
207
|
</div>
|
205
208
|
<div class="description">
|
206
209
|
<p>
|
@@ -209,13 +212,14 @@ Does a symbol have a "not" sign?
|
|
209
212
|
<pre>
|
210
213
|
"friend".to_sym.not? #=> false
|
211
214
|
"~friend".to_sym.not? #=> true
|
212
|
-
|
213
|
-
CREDIT: Trans
|
214
215
|
</pre>
|
216
|
+
<p>
|
217
|
+
CREDIT: Trans
|
218
|
+
</p>
|
215
219
|
</div>
|
216
220
|
<div class="sourcecode">
|
217
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
218
|
-
<div id="
|
221
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">+</a> ]</p>
|
222
|
+
<div id="M000060_source" class="dyn-source">
|
219
223
|
<pre>
|
220
224
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/not.rb, line 10</span>
|
221
225
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">not?</span>
|
@@ -227,11 +231,11 @@ Does a symbol have a "not" sign?
|
|
227
231
|
</div>
|
228
232
|
<div class="method">
|
229
233
|
<div class="title">
|
230
|
-
<a name="
|
234
|
+
<a name="M000063"></a><b>plain?</b>()
|
231
235
|
</div>
|
232
236
|
<div class="sourcecode">
|
233
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
234
|
-
<div id="
|
237
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000063_source')" id="l_M000063_source">+</a> ]</p>
|
238
|
+
<div id="M000063_source" class="dyn-source">
|
235
239
|
<pre>
|
236
240
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/plain.rb, line 3</span>
|
237
241
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">plain?</span>
|
@@ -244,11 +248,11 @@ Does a symbol have a "not" sign?
|
|
244
248
|
</div>
|
245
249
|
<div class="method">
|
246
250
|
<div class="title">
|
247
|
-
<a name="
|
251
|
+
<a name="M000065"></a><b>query?</b>()
|
248
252
|
</div>
|
249
253
|
<div class="sourcecode">
|
250
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
251
|
-
<div id="
|
254
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000065_source')" id="l_M000065_source">+</a> ]</p>
|
255
|
+
<div id="M000065_source" class="dyn-source">
|
252
256
|
<pre>
|
253
257
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/plain.rb, line 12</span>
|
254
258
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">query?</span>
|
@@ -260,7 +264,7 @@ Does a symbol have a "not" sign?
|
|
260
264
|
</div>
|
261
265
|
<div class="method">
|
262
266
|
<div class="title">
|
263
|
-
<a name="
|
267
|
+
<a name="M000062"></a><b>re_s</b>()
|
264
268
|
</div>
|
265
269
|
<div class="description">
|
266
270
|
<p>
|
@@ -272,8 +276,8 @@ via a fluent interface.
|
|
272
276
|
</pre>
|
273
277
|
</div>
|
274
278
|
<div class="sourcecode">
|
275
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
276
|
-
<div id="
|
279
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">+</a> ]</p>
|
280
|
+
<div id="M000062_source" class="dyn-source">
|
277
281
|
<pre>
|
278
282
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/re_s.rb, line 11</span>
|
279
283
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">re_s</span>
|
@@ -287,11 +291,11 @@ via a fluent interface.
|
|
287
291
|
</div>
|
288
292
|
<div class="method">
|
289
293
|
<div class="title">
|
290
|
-
<a name="
|
294
|
+
<a name="M000064"></a><b>setter?</b>()
|
291
295
|
</div>
|
292
296
|
<div class="sourcecode">
|
293
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
294
|
-
<div id="
|
297
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000064_source')" id="l_M000064_source">+</a> ]</p>
|
298
|
+
<div id="M000064_source" class="dyn-source">
|
295
299
|
<pre>
|
296
300
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/plain.rb, line 8</span>
|
297
301
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setter?</span>
|
@@ -303,7 +307,7 @@ via a fluent interface.
|
|
303
307
|
</div>
|
304
308
|
<div class="method">
|
305
309
|
<div class="title">
|
306
|
-
<a name="
|
310
|
+
<a name="M000069"></a><b>succ</b>()
|
307
311
|
</div>
|
308
312
|
<div class="description">
|
309
313
|
<p>
|
@@ -312,13 +316,14 @@ uses String#succ and then converts it back to a symbol.
|
|
312
316
|
</p>
|
313
317
|
<pre>
|
314
318
|
:a.succ => :b
|
315
|
-
|
316
|
-
TODO: Make this work more like a simple character dial?
|
317
319
|
</pre>
|
320
|
+
<p>
|
321
|
+
TODO: Make this work more like a simple character dial?
|
322
|
+
</p>
|
318
323
|
</div>
|
319
324
|
<div class="sourcecode">
|
320
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
321
|
-
<div id="
|
325
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000069_source')" id="l_M000069_source">+</a> ]</p>
|
326
|
+
<div id="M000069_source" class="dyn-source">
|
322
327
|
<pre>
|
323
328
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/succ.rb, line 13</span>
|
324
329
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">succ</span>
|
@@ -330,7 +335,7 @@ uses String#succ and then converts it back to a symbol.
|
|
330
335
|
</div>
|
331
336
|
<div class="method">
|
332
337
|
<div class="title">
|
333
|
-
<a name="
|
338
|
+
<a name="M000067"></a><b>to_proc</b>()
|
334
339
|
</div>
|
335
340
|
<div class="description">
|
336
341
|
<p>
|
@@ -354,18 +359,20 @@ And other conveniences such as:
|
|
354
359
|
<pre>
|
355
360
|
%{john terry fiona}.map(&:capitalize) # -> %{John Terry Fiona}
|
356
361
|
sum = numbers.inject(&:+)
|
357
|
-
|
358
|
-
TODO: This will be deprecated as of Ruby 1.9, since it will become standard Ruby.
|
359
362
|
</pre>
|
360
363
|
<p>
|
361
|
-
|
364
|
+
TODO: This will be deprecated as of Ruby 1.9, since it will become standard
|
365
|
+
Ruby.
|
366
|
+
</p>
|
367
|
+
<p>
|
368
|
+
CREDIT: Florian Gross (orignal), Nobuhiro Imai (current)
|
362
369
|
</p>
|
363
370
|
</div>
|
364
371
|
<div class="sourcecode">
|
365
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
366
|
-
<div id="
|
372
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000067_source')" id="l_M000067_source">+</a> ]</p>
|
373
|
+
<div id="M000067_source" class="dyn-source">
|
367
374
|
<pre>
|
368
|
-
<span class="ruby-comment cmt"># File lib/core/facets/symbol/to_proc.rb, line
|
375
|
+
<span class="ruby-comment cmt"># File lib/core/facets/symbol/to_proc.rb, line 26</span>
|
369
376
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc</span>
|
370
377
|
<span class="ruby-constant">Proc</span>.<span class="ruby-identifier">new</span>{<span class="ruby-operator">|</span><span class="ruby-operator">*</span><span class="ruby-identifier">args</span><span class="ruby-operator">|</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">shift</span>.<span class="ruby-identifier">__send__</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)}
|
371
378
|
<span class="ruby-keyword kw">end</span>
|
@@ -375,7 +382,7 @@ CREDIT: Florian Gross (orignal) CREDIT: Nobuhiro Imai (current)
|
|
375
382
|
</div>
|
376
383
|
<div class="method">
|
377
384
|
<div class="title">
|
378
|
-
<a name="
|
385
|
+
<a name="M000066"></a><b>variablize</b>()
|
379
386
|
</div>
|
380
387
|
<div class="description">
|
381
388
|
<p>
|
@@ -384,8 +391,8 @@ variable name. This also replaces non-valid characters with underscores.
|
|
384
391
|
</p>
|
385
392
|
</div>
|
386
393
|
<div class="sourcecode">
|
387
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
388
|
-
<div id="
|
394
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000066_source')" id="l_M000066_source">+</a> ]</p>
|
395
|
+
<div id="M000066_source" class="dyn-source">
|
389
396
|
<pre>
|
390
397
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/variablize.rb, line 7</span>
|
391
398
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">variablize</span>
|
@@ -397,7 +404,7 @@ variable name. This also replaces non-valid characters with underscores.
|
|
397
404
|
</div>
|
398
405
|
<div class="method">
|
399
406
|
<div class="title">
|
400
|
-
<a name="
|
407
|
+
<a name="M000061"></a><b>~</b>()
|
401
408
|
</div>
|
402
409
|
<div class="description">
|
403
410
|
<p>
|
@@ -405,13 +412,14 @@ Add a "not" sign to the front of a symbol.
|
|
405
412
|
</p>
|
406
413
|
<pre>
|
407
414
|
~:friend #=> :"~friend"
|
408
|
-
|
409
|
-
CREDIT: Trans
|
410
415
|
</pre>
|
416
|
+
<p>
|
417
|
+
CREDIT: Trans
|
418
|
+
</p>
|
411
419
|
</div>
|
412
420
|
<div class="sourcecode">
|
413
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
414
|
-
<div id="
|
421
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">+</a> ]</p>
|
422
|
+
<div id="M000061_source" class="dyn-source">
|
415
423
|
<pre>
|
416
424
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/not.rb, line 20</span>
|
417
425
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">~@</span>
|
@@ -89,18 +89,18 @@ Object
|
|
89
89
|
|
90
90
|
|
91
91
|
<div class="sectiontitle">Methods</div>
|
92
|
-
<span style="padding-right: 5px;"><a href="#
|
93
|
-
<span style="padding-right: 5px;"><a href="#
|
94
|
-
<span style="padding-right: 5px;"><a href="#
|
95
|
-
<span style="padding-right: 5px;"><a href="#
|
96
|
-
<span style="padding-right: 5px;"><a href="#
|
97
|
-
<span style="padding-right: 5px;"><a href="#
|
98
|
-
<span style="padding-right: 5px;"><a href="#
|
99
|
-
<span style="padding-right: 5px;"><a href="#
|
92
|
+
<span style="padding-right: 5px;"><a href="#M000039">advance</a></span>
|
93
|
+
<span style="padding-right: 5px;"><a href="#M000041">ago</a></span>
|
94
|
+
<span style="padding-right: 5px;"><a href="#M000046">change</a></span>
|
95
|
+
<span style="padding-right: 5px;"><a href="#M000043">dst_adjustment</a></span>
|
96
|
+
<span style="padding-right: 5px;"><a href="#M000037">elapse</a></span>
|
97
|
+
<span style="padding-right: 5px;"><a href="#M000042">hence</a></span>
|
98
|
+
<span style="padding-right: 5px;"><a href="#M000040">round</a></span>
|
99
|
+
<span style="padding-right: 5px;"><a href="#M000044">set</a></span>
|
100
|
+
<span style="padding-right: 5px;"><a href="#M000047">stamp</a></span>
|
100
101
|
<span style="padding-right: 5px;"><a href="#M000048">stamp</a></span>
|
101
|
-
<span style="padding-right: 5px;"><a href="#
|
102
|
-
<span style="padding-right: 5px;"><a href="#
|
103
|
-
<span style="padding-right: 5px;"><a href="#M000039">trunc</a></span>
|
102
|
+
<span style="padding-right: 5px;"><a href="#M000045">to_time</a></span>
|
103
|
+
<span style="padding-right: 5px;"><a href="#M000038">trunc</a></span>
|
104
104
|
|
105
105
|
|
106
106
|
|
@@ -118,21 +118,22 @@ Object
|
|
118
118
|
<div class="sectiontitle">Public Class methods</div>
|
119
119
|
<div class="method">
|
120
120
|
<div class="title">
|
121
|
-
<a name="
|
121
|
+
<a name="M000037"></a><b>elapse</b>() {|| ...}
|
122
122
|
</div>
|
123
123
|
<div class="description">
|
124
124
|
<p>
|
125
|
-
Tracks the <a href="Time.html#
|
125
|
+
Tracks the <a href="Time.html#M000037">elapse</a> time of a code block.
|
126
126
|
</p>
|
127
127
|
<pre>
|
128
128
|
Time.elapse { sleep 1 } #=> 0.999188899993896
|
129
|
-
|
130
|
-
CREDIT: Hal Fulton
|
131
129
|
</pre>
|
130
|
+
<p>
|
131
|
+
CREDIT: Hal Fulton
|
132
|
+
</p>
|
132
133
|
</div>
|
133
134
|
<div class="sourcecode">
|
134
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
135
|
-
<div id="
|
135
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000037_source')" id="l_M000037_source">+</a> ]</p>
|
136
|
+
<div id="M000037_source" class="dyn-source">
|
136
137
|
<pre>
|
137
138
|
<span class="ruby-comment cmt"># File lib/core/facets/time/elapse.rb, line 9</span>
|
138
139
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">elapse</span>
|
@@ -147,20 +148,20 @@ Tracks the <a href="Time.html#M000038">elapse</a> time of a code block.
|
|
147
148
|
</div>
|
148
149
|
<div class="method">
|
149
150
|
<div class="title">
|
150
|
-
<a name="
|
151
|
+
<a name="M000047"></a><b>stamp</b>(*args)
|
151
152
|
</div>
|
152
153
|
<div class="description">
|
153
154
|
<p>
|
154
|
-
Produce time <a href="Time.html#
|
155
|
-
href="Time.html#
|
155
|
+
Produce time <a href="Time.html#M000047">stamp</a> for Time.now. See <a
|
156
|
+
href="Time.html#M000047">stamp</a>.
|
157
|
+
</p>
|
158
|
+
<p>
|
159
|
+
CREDIT: Trans
|
156
160
|
</p>
|
157
|
-
<pre>
|
158
|
-
CREDIT: Trans
|
159
|
-
</pre>
|
160
161
|
</div>
|
161
162
|
<div class="sourcecode">
|
162
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
163
|
-
<div id="
|
163
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000047_source')" id="l_M000047_source">+</a> ]</p>
|
164
|
+
<div id="M000047_source" class="dyn-source">
|
164
165
|
<pre>
|
165
166
|
<span class="ruby-comment cmt"># File lib/core/facets/time/stamp.rb, line 24</span>
|
166
167
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">stamp</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -173,7 +174,7 @@ href="Time.html#M000048">stamp</a>.
|
|
173
174
|
<div class="sectiontitle">Public Instance methods</div>
|
174
175
|
<div class="method">
|
175
176
|
<div class="title">
|
176
|
-
<a name="
|
177
|
+
<a name="M000039"></a><b>advance</b>(options)
|
177
178
|
</div>
|
178
179
|
<div class="description">
|
179
180
|
<p>
|
@@ -182,15 +183,15 @@ years, months, and days. The <tt>options</tt> parameter takes a hash with
|
|
182
183
|
any of these keys: <tt>:years</tt>, <tt>:months</tt>, <tt>:weeks</tt>,
|
183
184
|
<tt>:days</tt>, <tt>:hours</tt>, <tt>:minutes</tt>, <tt>:seconds</tt>.
|
184
185
|
</p>
|
185
|
-
<
|
186
|
-
|
187
|
-
</
|
186
|
+
<p>
|
187
|
+
CREDIT: ActiveSupport Team
|
188
|
+
</p>
|
188
189
|
</div>
|
189
190
|
<div class="sourcecode">
|
190
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
191
|
-
<div id="
|
191
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000039_source')" id="l_M000039_source">+</a> ]</p>
|
192
|
+
<div id="M000039_source" class="dyn-source">
|
192
193
|
<pre>
|
193
|
-
<span class="ruby-comment cmt"># File lib/core/facets/time/advance.rb, line
|
194
|
+
<span class="ruby-comment cmt"># File lib/core/facets/time/advance.rb, line 10</span>
|
194
195
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">advance</span>(<span class="ruby-identifier">options</span>)
|
195
196
|
<span class="ruby-identifier">d</span> = <span class="ruby-identifier">to_date</span>.<span class="ruby-identifier">advance</span>(<span class="ruby-identifier">options</span>)
|
196
197
|
<span class="ruby-identifier">time_advanced_by_date</span> = <span class="ruby-identifier">change</span>(<span class="ruby-identifier">:year</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">d</span>.<span class="ruby-identifier">year</span>, <span class="ruby-identifier">:month</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">d</span>.<span class="ruby-identifier">month</span>, <span class="ruby-identifier">:day</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">d</span>.<span class="ruby-identifier">day</span>)
|
@@ -203,29 +204,30 @@ any of these keys: <tt>:years</tt>, <tt>:months</tt>, <tt>:weeks</tt>,
|
|
203
204
|
</div>
|
204
205
|
<div class="method">
|
205
206
|
<div class="title">
|
206
|
-
<a name="
|
207
|
+
<a name="M000041"></a><b>ago</b>(number, units=:seconds)
|
207
208
|
</div>
|
208
209
|
<div class="description">
|
209
210
|
<p>
|
210
211
|
Returns a new <a href="Time.html">Time</a> representing the time a number
|
211
|
-
of time-units <a href="Time.html#
|
212
|
+
of time-units <a href="Time.html#M000041">ago</a>.
|
212
213
|
</p>
|
213
214
|
</div>
|
214
215
|
<div class="sourcecode">
|
215
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
216
|
-
<div id="
|
216
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000041_source')" id="l_M000041_source">+</a> ]</p>
|
217
|
+
<div id="M000041_source" class="dyn-source">
|
217
218
|
<pre>
|
218
219
|
<span class="ruby-comment cmt"># File lib/core/facets/time/hence.rb, line 15</span>
|
219
220
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ago</span>(<span class="ruby-identifier">number</span>, <span class="ruby-identifier">units</span>=<span class="ruby-identifier">:seconds</span>)
|
220
|
-
<span class="ruby-identifier">
|
221
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">hence</span>(<span class="ruby-operator">-</span><span class="ruby-identifier">number</span>, <span class="ruby-identifier">units</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">number</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
222
|
+
|
223
|
+
<span class="ruby-identifier">time</span> = (
|
221
224
|
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">units</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">to_sym</span>
|
222
225
|
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:years</span>
|
223
226
|
<span class="ruby-identifier">set</span>(<span class="ruby-identifier">:year</span> =<span class="ruby-operator">></span> (<span class="ruby-identifier">year</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">number</span>))
|
224
227
|
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:months</span>
|
225
|
-
<span class="ruby-
|
226
|
-
<span class="ruby-identifier">y</span> = (
|
227
|
-
<span class="ruby-identifier">
|
228
|
-
<span class="ruby-identifier">set</span>(<span class="ruby-identifier">:year</span> =<span class="ruby-operator">></span> (<span class="ruby-identifier">year</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">y</span>), <span class="ruby-identifier">:month</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">m</span>)
|
228
|
+
<span class="ruby-identifier">new_month</span> = ((<span class="ruby-identifier">month</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">number</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>) <span class="ruby-operator">%</span> <span class="ruby-value">12</span>) <span class="ruby-operator">+</span> <span class="ruby-value">1</span>
|
229
|
+
<span class="ruby-identifier">y</span> = (<span class="ruby-identifier">number</span> <span class="ruby-operator">/</span> <span class="ruby-value">12</span>) <span class="ruby-operator">+</span> (<span class="ruby-identifier">new_month</span> <span class="ruby-operator">></span> <span class="ruby-identifier">month</span> <span class="ruby-value">? </span><span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span>)
|
230
|
+
<span class="ruby-identifier">set</span>(<span class="ruby-identifier">:year</span> =<span class="ruby-operator">></span> (<span class="ruby-identifier">year</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">y</span>), <span class="ruby-identifier">:month</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">new_month</span>)
|
229
231
|
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:weeks</span>
|
230
232
|
<span class="ruby-keyword kw">self</span> <span class="ruby-operator">-</span> (<span class="ruby-identifier">number</span> <span class="ruby-operator">*</span> <span class="ruby-value">604800</span>)
|
231
233
|
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:days</span>
|
@@ -248,7 +250,7 @@ of time-units <a href="Time.html#M000042">ago</a>.
|
|
248
250
|
</div>
|
249
251
|
<div class="method">
|
250
252
|
<div class="title">
|
251
|
-
<a name="
|
253
|
+
<a name="M000046"></a><b>change</b>(options)
|
252
254
|
</div>
|
253
255
|
<div class="description">
|
254
256
|
<p>
|
@@ -256,8 +258,8 @@ Returns a new <a href="Time.html">Time</a> where one or more of the
|
|
256
258
|
elements have been changed according to the <tt>options</tt> parameter. The
|
257
259
|
time options (hour, minute, sec, usec) reset cascadingly, so if only the
|
258
260
|
hour is passed, then minute, sec, and usec is <a
|
259
|
-
href="Time.html#
|
260
|
-
then sec and usec is <a href="Time.html#
|
261
|
+
href="Time.html#M000044">set</a> to 0. If the hour and minute is passed,
|
262
|
+
then sec and usec is <a href="Time.html#M000044">set</a> to 0.
|
261
263
|
</p>
|
262
264
|
<pre>
|
263
265
|
t = Time.now #=> Sat Dec 01 14:10:15 -0500 2007
|
@@ -265,8 +267,8 @@ then sec and usec is <a href="Time.html#M000045">set</a> to 0.
|
|
265
267
|
</pre>
|
266
268
|
</div>
|
267
269
|
<div class="sourcecode">
|
268
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
269
|
-
<div id="
|
270
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000046_source')" id="l_M000046_source">+</a> ]</p>
|
271
|
+
<div id="M000046_source" class="dyn-source">
|
270
272
|
<pre>
|
271
273
|
<span class="ruby-comment cmt"># File lib/core/facets/time/change.rb, line 13</span>
|
272
274
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">change</span>(<span class="ruby-identifier">options</span>)
|
@@ -288,26 +290,23 @@ then sec and usec is <a href="Time.html#M000045">set</a> to 0.
|
|
288
290
|
</div>
|
289
291
|
<div class="method">
|
290
292
|
<div class="title">
|
291
|
-
<a name="
|
293
|
+
<a name="M000043"></a><b>dst_adjustment</b>(time)
|
292
294
|
</div>
|
293
295
|
<div class="description">
|
294
296
|
<p>
|
295
297
|
Adjust DST
|
296
298
|
</p>
|
297
299
|
<p>
|
298
|
-
TODO: Can‘t seem to get this to pass ActiveSupport tests.
|
300
|
+
TODO: Can‘t seem to get this to pass ActiveSupport tests. Even though
|
301
|
+
it is essentially identical to the ActiveSupport code (see Time#since in
|
302
|
+
time/calculations.rb). It handles all but 4 tests.
|
299
303
|
</p>
|
300
|
-
<pre>
|
301
|
-
Even though it is essentially identical to the
|
302
|
-
ActiveSupport code (see Time#since in time/calculations.rb).
|
303
|
-
It handels all but 4 tests.
|
304
|
-
</pre>
|
305
304
|
</div>
|
306
305
|
<div class="sourcecode">
|
307
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
308
|
-
<div id="
|
306
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000043_source')" id="l_M000043_source">+</a> ]</p>
|
307
|
+
<div id="M000043_source" class="dyn-source">
|
309
308
|
<pre>
|
310
|
-
<span class="ruby-comment cmt"># File lib/core/facets/time/hence.rb, line
|
309
|
+
<span class="ruby-comment cmt"># File lib/core/facets/time/hence.rb, line 83</span>
|
311
310
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dst_adjustment</span>(<span class="ruby-identifier">time</span>)
|
312
311
|
<span class="ruby-identifier">self_dst</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dst?</span> <span class="ruby-value">? </span><span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span>
|
313
312
|
<span class="ruby-identifier">time_dst</span> = <span class="ruby-identifier">time</span>.<span class="ruby-identifier">dst?</span> <span class="ruby-value">? </span><span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span>
|
@@ -324,28 +323,30 @@ TODO: Can‘t seem to get this to pass ActiveSupport tests.
|
|
324
323
|
</div>
|
325
324
|
<div class="method">
|
326
325
|
<div class="title">
|
327
|
-
<a name="
|
326
|
+
<a name="M000042"></a><b>hence</b>(number, units=:seconds)
|
328
327
|
</div>
|
329
328
|
<div class="description">
|
330
329
|
<p>
|
331
330
|
Returns a new <a href="Time.html">Time</a> representing the time a number
|
332
|
-
of time-units <a href="Time.html#
|
331
|
+
of time-units <a href="Time.html#M000042">hence</a>.
|
333
332
|
</p>
|
334
333
|
</div>
|
335
334
|
<div class="sourcecode">
|
336
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
337
|
-
<div id="
|
335
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000042_source')" id="l_M000042_source">+</a> ]</p>
|
336
|
+
<div id="M000042_source" class="dyn-source">
|
338
337
|
<pre>
|
339
|
-
<span class="ruby-comment cmt"># File lib/core/facets/time/hence.rb, line
|
338
|
+
<span class="ruby-comment cmt"># File lib/core/facets/time/hence.rb, line 46</span>
|
340
339
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hence</span>(<span class="ruby-identifier">number</span>, <span class="ruby-identifier">units</span>=<span class="ruby-identifier">:seconds</span>)
|
341
|
-
<span class="ruby-identifier">
|
340
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">ago</span>(<span class="ruby-operator">-</span><span class="ruby-identifier">number</span>, <span class="ruby-identifier">units</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">number</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
341
|
+
|
342
|
+
<span class="ruby-identifier">time</span> = (
|
342
343
|
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">units</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">to_sym</span>
|
343
344
|
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:years</span>
|
344
345
|
<span class="ruby-identifier">set</span>( <span class="ruby-identifier">:year=</span><span class="ruby-operator">></span>(<span class="ruby-identifier">year</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">number</span>) )
|
345
346
|
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:months</span>
|
346
|
-
<span class="ruby-identifier">
|
347
|
-
<span class="ruby-identifier">
|
348
|
-
<span class="ruby-identifier">set</span>(<span class="ruby-identifier">:year</span> =<span class="ruby-operator">></span> (<span class="ruby-identifier">year</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">y</span>), <span class="ruby-identifier">:month</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">
|
347
|
+
<span class="ruby-identifier">new_month</span> = ((<span class="ruby-identifier">month</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">number</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>) <span class="ruby-operator">%</span> <span class="ruby-value">12</span>) <span class="ruby-operator">+</span> <span class="ruby-value">1</span>
|
348
|
+
<span class="ruby-identifier">y</span> = (<span class="ruby-identifier">number</span> <span class="ruby-operator">/</span> <span class="ruby-value">12</span>) <span class="ruby-operator">+</span> (<span class="ruby-identifier">new_month</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">month</span> <span class="ruby-value">? </span><span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span>)
|
349
|
+
<span class="ruby-identifier">set</span>(<span class="ruby-identifier">:year</span> =<span class="ruby-operator">></span> (<span class="ruby-identifier">year</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">y</span>), <span class="ruby-identifier">:month</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">new_month</span>)
|
349
350
|
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:weeks</span>
|
350
351
|
<span class="ruby-keyword kw">self</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">number</span> <span class="ruby-operator">*</span> <span class="ruby-value">604800</span>)
|
351
352
|
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:days</span>
|
@@ -368,7 +369,7 @@ of time-units <a href="Time.html#M000043">hence</a>.
|
|
368
369
|
</div>
|
369
370
|
<div class="method">
|
370
371
|
<div class="title">
|
371
|
-
<a name="
|
372
|
+
<a name="M000040"></a><b>round</b>(amount)
|
372
373
|
</div>
|
373
374
|
<div class="description">
|
374
375
|
<p>
|
@@ -382,8 +383,8 @@ Round time at the nearest range (in seconds).
|
|
382
383
|
</pre>
|
383
384
|
</div>
|
384
385
|
<div class="sourcecode">
|
385
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
386
|
-
<div id="
|
386
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000040_source')" id="l_M000040_source">+</a> ]</p>
|
387
|
+
<div id="M000040_source" class="dyn-source">
|
387
388
|
<pre>
|
388
389
|
<span class="ruby-comment cmt"># File lib/core/facets/time/round.rb, line 12</span>
|
389
390
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round</span>(<span class="ruby-identifier">amount</span>)
|
@@ -395,24 +396,24 @@ Round time at the nearest range (in seconds).
|
|
395
396
|
</div>
|
396
397
|
<div class="method">
|
397
398
|
<div class="title">
|
398
|
-
<a name="
|
399
|
+
<a name="M000044"></a><b>set</b>(options)
|
399
400
|
</div>
|
400
401
|
<div class="description">
|
401
402
|
<p>
|
402
|
-
Like <a href="Time.html#
|
403
|
+
Like <a href="Time.html#M000046">change</a> but does not reset earlier
|
403
404
|
times.
|
404
405
|
</p>
|
405
406
|
<p>
|
406
407
|
NOTE: It would be better, probably if this were called "<a
|
407
|
-
href="Time.html#
|
408
|
+
href="Time.html#M000046">change</a>".
|
408
409
|
</p>
|
409
410
|
<pre>
|
410
411
|
and that #change were called "reset".
|
411
412
|
</pre>
|
412
413
|
</div>
|
413
414
|
<div class="sourcecode">
|
414
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
415
|
-
<div id="
|
415
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000044_source')" id="l_M000044_source">+</a> ]</p>
|
416
|
+
<div id="M000044_source" class="dyn-source">
|
416
417
|
<pre>
|
417
418
|
<span class="ruby-comment cmt"># File lib/core/facets/time/set.rb, line 8</span>
|
418
419
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set</span>(<span class="ruby-identifier">options</span>)
|
@@ -433,11 +434,11 @@ href="Time.html#M000047">change</a>".
|
|
433
434
|
</div>
|
434
435
|
<div class="method">
|
435
436
|
<div class="title">
|
436
|
-
<a name="
|
437
|
+
<a name="M000048"></a><b>stamp</b>(fmt = nil)
|
437
438
|
</div>
|
438
439
|
<div class="description">
|
439
440
|
<p>
|
440
|
-
Create a time <a href="Time.html#
|
441
|
+
Create a time <a href="Time.html#M000047">stamp</a>.
|
441
442
|
</p>
|
442
443
|
<pre>
|
443
444
|
Time.now.stamp(:short) #=> "01 Dec 15:15"
|
@@ -445,13 +446,13 @@ Create a time <a href="Time.html#M000048">stamp</a>.
|
|
445
446
|
<p>
|
446
447
|
Supported formats come from the Time::FORMAT constant.
|
447
448
|
</p>
|
448
|
-
<
|
449
|
-
|
450
|
-
</
|
449
|
+
<p>
|
450
|
+
CREDIT: Trans
|
451
|
+
</p>
|
451
452
|
</div>
|
452
453
|
<div class="sourcecode">
|
453
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
454
|
-
<div id="
|
454
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000048_source')" id="l_M000048_source">+</a> ]</p>
|
455
|
+
<div id="M000048_source" class="dyn-source">
|
455
456
|
<pre>
|
456
457
|
<span class="ruby-comment cmt"># File lib/core/facets/time/stamp.rb, line 36</span>
|
457
458
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stamp</span>(<span class="ruby-identifier">fmt</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -466,7 +467,7 @@ Supported formats come from the Time::FORMAT constant.
|
|
466
467
|
</div>
|
467
468
|
<div class="method">
|
468
469
|
<div class="title">
|
469
|
-
<a name="
|
470
|
+
<a name="M000045"></a><b>to_time</b>()
|
470
471
|
</div>
|
471
472
|
<div class="description">
|
472
473
|
<p>
|
@@ -474,8 +475,8 @@ To be able to keep Dates and Times interchangeable on conversions.
|
|
474
475
|
</p>
|
475
476
|
</div>
|
476
477
|
<div class="sourcecode">
|
477
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
478
|
-
<div id="
|
478
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000045_source')" id="l_M000045_source">+</a> ]</p>
|
479
|
+
<div id="M000045_source" class="dyn-source">
|
479
480
|
<pre>
|
480
481
|
<span class="ruby-comment cmt"># File lib/core/facets/time/to_time.rb, line 8</span>
|
481
482
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_time</span>
|
@@ -487,7 +488,7 @@ To be able to keep Dates and Times interchangeable on conversions.
|
|
487
488
|
</div>
|
488
489
|
<div class="method">
|
489
490
|
<div class="title">
|
490
|
-
<a name="
|
491
|
+
<a name="M000038"></a><b>trunc</b>(amount)
|
491
492
|
</div>
|
492
493
|
<div class="description">
|
493
494
|
<p>
|
@@ -501,8 +502,8 @@ Truncate time at give range (in seconds).
|
|
501
502
|
</pre>
|
502
503
|
</div>
|
503
504
|
<div class="sourcecode">
|
504
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
505
|
-
<div id="
|
505
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000038_source')" id="l_M000038_source">+</a> ]</p>
|
506
|
+
<div id="M000038_source" class="dyn-source">
|
506
507
|
<pre>
|
507
508
|
<span class="ruby-comment cmt"># File lib/core/facets/time/trunc.rb, line 10</span>
|
508
509
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">trunc</span>(<span class="ruby-identifier">amount</span>)
|