facets 2.4.4 → 2.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +3 -0
- data/CHANGES +41 -1569
- data/COPYING +6 -4
- data/MANIFEST +114 -25
- data/README +12 -2
- data/RELEASE +37 -0
- data/Rakefile +4 -0
- data/VERSION +1 -0
- data/demo/bench/general/comment_loading/bench.rb +46 -0
- data/demo/bench/general/comment_loading/comments_begin.rb +109 -0
- data/demo/bench/general/comment_loading/comments_end.rb +127 -0
- data/demo/bench/general/comment_loading/comments_none.rb +1 -0
- data/demo/bench/general/comment_loading/comments_sharp.rb +125 -0
- data/doc/archive/changelog-0.rdoc +239 -0
- data/doc/archive/changelog-1.rdoc +450 -0
- data/doc/news/{news-2.0.5 → RELEASE-2.0.5} +0 -0
- data/doc/news/{news-2.1.0 → RELEASE-2.1.0} +0 -0
- data/doc/news/{news-2.1.1 → RELEASE-2.1.1} +0 -0
- data/doc/news/{news-2.1.2 → RELEASE-2.1.2} +0 -0
- data/doc/news/{news-2.1.3 → RELEASE-2.1.3} +0 -0
- data/doc/news/{news-2.2.0 → RELEASE-2.2.0} +0 -0
- data/doc/news/{news-2.2.1 → RELEASE-2.2.1} +0 -0
- data/doc/news/{news-2.3.0 → RELEASE-2.3.0} +0 -0
- data/doc/news/{news-2.4.0 → RELEASE-2.4.0} +0 -0
- data/doc/news/{news-2.4.1 → RELEASE-2.4.1} +0 -0
- data/doc/news/{news-2.4.2 → RELEASE-2.4.2} +0 -0
- data/doc/news/{news-2.4.3 → RELEASE-2.4.3} +0 -0
- data/{NEWS → doc/news/RELEASE-2.4.4} +0 -2
- data/doc/rdoc/core/classes/Array.html +115 -115
- data/doc/rdoc/core/classes/Binding.html +47 -49
- data/doc/rdoc/core/classes/Class.html +172 -24
- data/doc/rdoc/core/classes/Comparable.html +28 -30
- data/doc/rdoc/core/classes/Dir.html +16 -18
- data/doc/rdoc/core/classes/Enumerable.html +146 -143
- data/doc/rdoc/core/classes/Exception.html +10 -12
- data/doc/rdoc/core/classes/FalseClass.html +10 -12
- data/doc/rdoc/core/classes/File.html +70 -69
- data/doc/rdoc/core/classes/FileTest.html +6 -8
- data/doc/rdoc/core/classes/Float.html +10 -12
- data/doc/rdoc/core/classes/Friend.html +4 -6
- data/doc/rdoc/core/classes/Functor.html +14 -16
- data/doc/rdoc/core/classes/Hash.html +182 -180
- data/doc/rdoc/core/classes/Indexable.html +145 -122
- data/doc/rdoc/core/classes/InstanceVariables.html +24 -26
- data/doc/rdoc/core/classes/Integer.html +43 -43
- data/doc/rdoc/core/classes/Kernel.html +331 -333
- data/doc/rdoc/core/classes/Lazy.html +2 -2
- data/doc/rdoc/core/classes/Lazy/Future.html +2 -2
- data/doc/rdoc/core/classes/Lazy/Promise.html +3 -3
- data/doc/rdoc/core/classes/Lazy/PromiseSafe.html +2 -2
- data/doc/rdoc/core/classes/MatchData.html +17 -19
- data/doc/rdoc/core/classes/Module.html +175 -166
- data/doc/rdoc/core/classes/NilClass.html +24 -26
- data/doc/rdoc/core/classes/Numeric.html +29 -31
- data/doc/rdoc/core/classes/Object.html +10 -12
- data/doc/rdoc/core/classes/Proc.html +24 -26
- data/doc/rdoc/core/classes/Range.html +16 -18
- data/doc/rdoc/core/classes/Regexp.html +9 -11
- data/doc/rdoc/core/classes/Stackable.html +33 -35
- data/doc/rdoc/core/classes/String.html +332 -275
- data/doc/rdoc/core/classes/Symbol.html +72 -45
- data/doc/rdoc/core/classes/Time.html +26 -28
- data/doc/rdoc/core/classes/TrueClass.html +10 -12
- data/doc/rdoc/core/classes/UnboundMethod.html +13 -15
- data/doc/rdoc/core/created.rid +1 -1
- data/doc/rdoc/core/files/README.html +25 -10
- data/doc/rdoc/core/files/doc/README_core.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/array/combination_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/array/conjoin_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/array/delete_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/array/index_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/array/indexable_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/array/merge_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/array/not_empty_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/array/only_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/array/pad_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/array/permutation_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/array/product_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/array/recursively_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/array/rotate_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/array/select_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/array/splice_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/array/stackable_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/array/traverse_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/array_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/binding/caller_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/binding/defined_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/binding/eval_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/binding/local_variables_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/binding/self_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/binding_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/bitmask_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/blank_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/boolean_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/callstack_rb.html +2 -2
- data/doc/rdoc/{more/files/lib/more/facets/rope_rb.html → core/files/lib/core/facets/cattr_rb.html} +11 -9
- data/doc/rdoc/core/files/lib/core/facets/class/cattr_accessor_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/class/cattr_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/class/cattr_reader_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/class/cattr_writer_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/class/descendents_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/class/methodize_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/class/pathize_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/class/prepend_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/class/subclasses_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/class/to_proc_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/class_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/comparable/bound_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/comparable/cmp_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/comparable/comparable_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/comparable_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/dir/ascend_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/dir/descend_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/dir/multiglob_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/dir/parent_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/dir/recurse_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/dir_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/accumulate_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/cluster_by_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/collect_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/commonality_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/count_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/divide_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/duplicates_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/each_by_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/entropy_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/frequency_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/group_by_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/inject_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/map_send_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/mash_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/mode_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/enumerable/modulate_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/none_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/occur_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/one_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/probability_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/split_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/enumerable/sum_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable/uniq_by_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/enumerable_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/exception/detail_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/exception/suppress_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/exception_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/file/append_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/file/create_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/file/null_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/file/read_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/file/rewrite_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/file/rootname_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/file/split_root_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/file/write_rb.html +13 -3
- data/doc/rdoc/core/files/lib/core/facets/file/writelines_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/file_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/filetest/root_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/filetest_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/float/round_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/float_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/functor_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/alias_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/argumentize_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/at_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/autonew_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/collate_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/delete_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/diff_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/except_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/insert_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/inverse_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/join_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/keys_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/mash_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/merge_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/op_add_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/op_and_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/op_mul_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/op_or_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/op_push_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/op_rb.html +12 -3
- data/doc/rdoc/core/files/lib/core/facets/hash/op_sub_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/recursive_merge_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/recursively_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/rekey_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/select_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/slice_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/hash/swap_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/to_h_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/to_proc_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/to_struct_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/traverse_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/update_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/weave_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/zipnew_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/indexable_rb.html +4 -4
- data/doc/rdoc/core/files/lib/core/facets/integer/even_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/integer/factorial_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/integer/multiple_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/integer/odd_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/integer/of_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/integer/ordinal_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/integer_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/__callee___rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/__class___rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/__dir___rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/__get___rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/__method___rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/__set___rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/as_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/ask_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/attr_singleton_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/complete_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/constant_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/d_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/deep_copy_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/demo_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/ergo_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/here_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/in_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_assign_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_class_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_exec_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_send_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_variables_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/maybe_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/not_nil_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/object_class_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/object_hexid_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/object_send_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/p_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/populate_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/qua_class_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/require_all_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/require_local_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/resc_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/respond_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/returning_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/silence_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/singleton_class_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/tap_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/try_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/val_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/with_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/lazy_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/matchdata/match_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/matchdata/matchset_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/matchdata_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/metaid_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/abstract_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/alias_accessor_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/alias_method_chain_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/alias_module_function_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/ancestor_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/basename_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/can_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/class_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/module/conflict_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/module/include_function_module_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/instance_methods_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/module/integrate_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/is_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/methodize_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/modspace_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/module_load_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/nesting_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/op_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/pathize_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/prepend_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/module/redefine_method_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/redirect_method_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/rename_method_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/revise_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/spacename_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module/wrap_method_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/module_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/nilclass/ergo_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/nilclass/to_f_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/nilclass_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/numeric/approx_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/numeric/distance_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/numeric/round_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/numeric_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/proc/bind_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/proc/compose_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/proc/curry_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/proc/to_method_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/proc/update_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/proc_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/range/combine_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/range/overlap_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/range/to_r_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/range/umbrella_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/range/within_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/range_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/regexp/arity_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/regexp/to_re_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/regexp_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/stackable_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/align_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/bracket_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/bytes_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/camelcase_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/capitalized_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/chars_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/chomp_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/cleave_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/divide_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/each_char_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/each_word_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/end_with_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/fold_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/interpolate_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/line_wrap_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/lines_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/methodize_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/string/modulize_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/mscan_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/natcmp_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/nchar_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/op_sub_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/pathize_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/string/range_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/rewrite_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/shatter_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/snakecase_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/splice_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/string/start_with_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/subtract_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/tab_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/titlecase_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/to_re_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/variablize_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/string/word_wrap_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/words_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string/xor_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/string_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/symbol/chomp_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/symbol/generate_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/symbol/not_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/symbol/plain_rb.html +3 -3
- data/doc/rdoc/core/files/lib/core/facets/symbol/query_rb.html +2 -2
- data/doc/rdoc/{more/files/lib/more/facets/string/style_rb.html → core/files/lib/core/facets/symbol/re_s_rb.html} +7 -7
- data/doc/rdoc/core/files/lib/core/facets/symbol/setter_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/symbol/succ_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/symbol/to_proc_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/symbol/variablize_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/symbol_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/time/advance_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/time/ago_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/time/change_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/time/elapse_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/time/hence_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/time/round_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/time/set_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/time/stamp_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/time/to_time_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/time/trunc_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/time_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod/arguments_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod/name_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod_rb.html +2 -2
- data/doc/rdoc/core/fr_class_index.html +3 -3
- data/doc/rdoc/core/fr_file_index.html +18 -3
- data/doc/rdoc/core/fr_method_index.html +359 -352
- data/doc/rdoc/core/rdoc-style.css +18 -16
- data/doc/rdoc/lore/classes/Array.html +9 -11
- data/doc/rdoc/lore/classes/CGI.html +10 -12
- data/doc/rdoc/lore/classes/Config.html +6 -8
- data/doc/rdoc/lore/classes/Continuation.html +4 -6
- data/doc/rdoc/lore/classes/Date.html +40 -42
- data/doc/rdoc/lore/classes/DateTime.html +39 -41
- data/doc/rdoc/lore/classes/File.html +4 -6
- data/doc/rdoc/lore/classes/FileUtils.html +16 -18
- data/doc/rdoc/lore/classes/GetoptLong.html +4 -6
- data/doc/rdoc/lore/classes/GetoptLong/DSL.html +12 -14
- data/doc/rdoc/lore/classes/Kernel.html +10 -12
- data/doc/rdoc/lore/classes/Logger.html +8 -10
- data/doc/rdoc/lore/classes/Logger/Ansicolor.html +22 -24
- data/doc/rdoc/lore/classes/Logger/LogDevice.html +4 -6
- data/doc/rdoc/lore/classes/NilClass.html +4 -6
- data/doc/rdoc/lore/classes/OpenStruct.html +63 -44
- data/doc/rdoc/lore/classes/Pathname.html +25 -27
- data/doc/rdoc/lore/classes/Set.html +4 -6
- data/doc/rdoc/lore/classes/Shellwords.html +4 -6
- data/doc/rdoc/lore/classes/String.html +6 -8
- data/doc/rdoc/lore/classes/Time.html +6 -8
- data/doc/rdoc/lore/classes/URI.html +24 -26
- data/doc/rdoc/lore/classes/URI/Hash.html +4 -6
- data/doc/rdoc/lore/classes/URI/Kernel.html +6 -8
- data/doc/rdoc/lore/classes/Zlib.html +188 -0
- data/doc/rdoc/lore/created.rid +1 -1
- data/doc/rdoc/lore/files/README.html +25 -10
- data/doc/rdoc/lore/files/doc/README_lore.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/basicobject_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/cgi_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/continuation_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/date_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/head_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/safe_ln_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/slice_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/tail_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/wc_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/whereis_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/which_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/getoptlong_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/logger_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/ostruct_rb.html +3 -3
- data/doc/rdoc/lore/files/lib/lore/facets/pathname_rb.html +3 -3
- data/doc/rdoc/lore/files/lib/lore/facets/rbconfig_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/set_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/shellwords_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/uri_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/yaml_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/zlib_rb.html +97 -0
- data/doc/rdoc/lore/fr_class_index.html +4 -3
- data/doc/rdoc/lore/fr_file_index.html +4 -3
- data/doc/rdoc/lore/fr_method_index.html +19 -15
- data/doc/rdoc/lore/rdoc-style.css +18 -16
- data/doc/rdoc/more/classes/ANSICode.html +68 -70
- data/doc/rdoc/more/classes/Advisable.html +39 -41
- data/doc/rdoc/more/classes/Advisable/Method.html +22 -24
- data/doc/rdoc/more/classes/Archive.html +2 -2
- data/doc/rdoc/more/classes/Archive/Tar.html +2 -2
- data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +29 -31
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +30 -32
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +21 -23
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +33 -35
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +35 -37
- data/doc/rdoc/more/classes/Argvector.html +78 -80
- data/doc/rdoc/more/classes/Association.html +30 -32
- data/doc/rdoc/more/classes/Association/Kernel.html +10 -12
- data/doc/rdoc/more/classes/Autoarray.html +8 -10
- data/doc/rdoc/more/classes/BBCode.html +36 -38
- data/doc/rdoc/more/classes/BaseX.html +18 -20
- data/doc/rdoc/more/classes/BiCrypt.html +69 -71
- data/doc/rdoc/more/classes/BigDuration.html +32 -34
- data/doc/rdoc/more/classes/BinReadable.html +87 -89
- data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +27 -29
- data/doc/rdoc/more/classes/Binding.html +10 -12
- data/doc/rdoc/more/classes/BlankSlate.html +4 -6
- data/doc/rdoc/more/classes/Buildable.html +6 -8
- data/doc/rdoc/more/classes/BuildingBlock.html +18 -20
- data/doc/rdoc/more/classes/CLI.html +2 -2
- data/doc/rdoc/more/classes/CLI/Arguments.html +78 -80
- data/doc/rdoc/more/classes/CLI/Command.html +24 -26
- data/doc/rdoc/more/classes/CLI/Command/UniversalOptions.html +2 -2
- data/doc/rdoc/more/classes/CLI/NoCommandError.html +6 -8
- data/doc/rdoc/more/classes/CLI/NoOptionError.html +6 -8
- data/doc/rdoc/more/classes/CacheDecorator.html +23 -25
- data/doc/rdoc/more/classes/Capsule.html +43 -45
- data/doc/rdoc/more/classes/Capsule/MissingFile.html +2 -2
- data/doc/rdoc/more/classes/Chain.html +19 -21
- data/doc/rdoc/more/classes/Cloneable.html +6 -8
- data/doc/rdoc/more/classes/ConsoleUtils.html +20 -22
- data/doc/rdoc/more/classes/Coroutine.html +30 -32
- data/doc/rdoc/more/classes/Crypt.html +18 -20
- data/doc/rdoc/more/classes/CssFilter.html +24 -26
- data/doc/rdoc/more/classes/CssTree.html +10 -12
- data/doc/rdoc/more/classes/Dictionary.html +230 -232
- data/doc/rdoc/more/classes/DictionaryMatcher.html +40 -42
- data/doc/rdoc/more/classes/DictionaryMatcher/MatchData.html +6 -8
- data/doc/rdoc/more/classes/Downloader.html +26 -28
- data/doc/rdoc/more/classes/Duration.html +70 -72
- data/doc/rdoc/more/classes/Enumerable.html +46 -48
- data/doc/rdoc/more/classes/Enumerable/Elementor.html +18 -20
- data/doc/rdoc/more/classes/Enumerable/Enumerator.html +6 -8
- data/doc/rdoc/more/classes/EnumerablePass.html +17 -19
- data/doc/rdoc/more/classes/Equatable.html +18 -20
- data/doc/rdoc/more/classes/EventHook.html +10 -12
- data/doc/rdoc/more/classes/Expirable.html +19 -21
- data/doc/rdoc/more/classes/FileList.html +54 -56
- data/doc/rdoc/more/classes/FileShell.html +149 -151
- data/doc/rdoc/more/classes/Fileable.html +16 -18
- data/doc/rdoc/more/classes/Fileable/DSL.html +43 -45
- data/doc/rdoc/more/classes/Hash.html +36 -38
- data/doc/rdoc/more/classes/Hash2Xml.html +6 -8
- data/doc/rdoc/more/classes/HtmlFilter.html +11 -13
- data/doc/rdoc/more/classes/IORedirect.html +10 -12
- data/doc/rdoc/more/classes/InfinityClass.html +38 -40
- data/doc/rdoc/more/classes/InfinityClass/Numeric.html +25 -27
- data/doc/rdoc/more/classes/Ini.html +39 -41
- data/doc/rdoc/more/classes/Instantiable.html +11 -13
- data/doc/rdoc/more/classes/Instantize.html +10 -12
- data/doc/rdoc/more/classes/Interval.html +189 -191
- data/doc/rdoc/more/classes/It.html +14 -16
- data/doc/rdoc/more/classes/LRUCache.html +40 -42
- data/doc/rdoc/more/classes/LRUCache/Item.html +2 -2
- data/doc/rdoc/more/classes/LRUCache/Sentinel.html +2 -2
- data/doc/rdoc/more/classes/LinkedList.html +70 -72
- data/doc/rdoc/more/classes/LinkedList/Node.html +6 -8
- data/doc/rdoc/more/classes/MissingArgument.html +2 -2
- data/doc/rdoc/more/classes/Module.html +173 -175
- data/doc/rdoc/more/classes/Multiton.html +14 -16
- data/doc/rdoc/more/classes/Multiton/Inclusive.html +2 -2
- data/doc/rdoc/more/classes/Multiton/MetaMethods.html +30 -32
- data/doc/rdoc/more/classes/NackClass.html +2 -2
- data/doc/rdoc/more/classes/Net.html +2 -2
- data/doc/rdoc/more/classes/Net/SMTP.html +10 -12
- data/doc/rdoc/more/classes/NullClass.html +26 -28
- data/doc/rdoc/more/classes/ObjectReflection.html +8 -10
- data/doc/rdoc/more/classes/OpEsc.html +7 -9
- data/doc/rdoc/more/classes/OpenCascade.html +48 -13
- data/doc/rdoc/more/classes/OpenCollection.html +10 -12
- data/doc/rdoc/more/classes/OpenHash.html +11 -13
- data/doc/rdoc/more/classes/OpenObject.html +97 -99
- data/doc/rdoc/more/classes/PQueue.html +86 -88
- data/doc/rdoc/more/classes/Paramix.html +13 -15
- data/doc/rdoc/more/classes/Paramix/Delegator.html +18 -20
- data/doc/rdoc/more/classes/PathList.html +10 -12
- data/doc/rdoc/more/classes/PathList/Finder.html +10 -12
- data/doc/rdoc/more/classes/Platform.html +24 -26
- data/doc/rdoc/more/classes/Pool.html +20 -22
- data/doc/rdoc/more/classes/Proc.html +11 -13
- data/doc/rdoc/more/classes/ProgressBar.html +54 -56
- data/doc/rdoc/more/classes/Prototype.html +30 -32
- data/doc/rdoc/more/classes/RWDelegator.html +18 -20
- data/doc/rdoc/more/classes/Random.html +7 -9
- data/doc/rdoc/more/classes/Random/Array.html +39 -41
- data/doc/rdoc/more/classes/Random/Hash.html +54 -56
- data/doc/rdoc/more/classes/Random/Object.html +6 -8
- data/doc/rdoc/more/classes/Random/String.html +36 -38
- data/doc/rdoc/more/classes/Random/String/Self.html +11 -13
- data/doc/rdoc/more/classes/Recorder.html +18 -20
- data/doc/rdoc/more/classes/RecursiveDependency.html +2 -2
- data/doc/rdoc/more/classes/Reference.html +21 -23
- data/doc/rdoc/more/classes/Registerable.html +15 -17
- data/doc/rdoc/more/classes/Semaphore.html +38 -40
- data/doc/rdoc/more/classes/Settings.html +30 -32
- data/doc/rdoc/more/classes/Settings/Setting.html +15 -17
- data/doc/rdoc/more/classes/Settings/SettingCollection.html +6 -8
- data/doc/rdoc/more/classes/SimpleStringIO.html +10 -12
- data/doc/rdoc/more/classes/Snapshot.html +8 -10
- data/doc/rdoc/more/classes/Snapshot/ValueHolder.html +8 -10
- data/doc/rdoc/more/classes/String/Mask.html +74 -76
- data/doc/rdoc/more/classes/String/Words.html +33 -35
- data/doc/rdoc/more/classes/Struct.html +6 -8
- data/doc/rdoc/more/classes/SyncArray.html +4 -6
- data/doc/rdoc/more/classes/SyncHash.html +4 -6
- data/doc/rdoc/more/classes/SyncHash/Delegator.html +16 -18
- data/doc/rdoc/more/classes/SyncHash/Inheritor.html +16 -18
- data/doc/rdoc/more/classes/System.html +255 -257
- data/doc/rdoc/more/classes/TagIterator.html +581 -0
- data/doc/rdoc/more/classes/Timer.html +50 -52
- data/doc/rdoc/more/classes/Timer/Dummy.html +11 -13
- data/doc/rdoc/more/classes/TracePoint.html +60 -62
- data/doc/rdoc/more/classes/Tuple.html +172 -174
- data/doc/rdoc/more/classes/TypeCast.html +2 -2
- data/doc/rdoc/more/classes/TypeCast/Class.html +9 -11
- data/doc/rdoc/more/classes/TypeCast/Object.html +7 -9
- data/doc/rdoc/more/classes/TypeCastException.html +2 -2
- data/doc/rdoc/more/classes/Uninheritable.html +8 -10
- data/doc/rdoc/more/classes/UploadUtils.html +51 -53
- data/doc/rdoc/more/classes/VersionNumber.html +59 -61
- data/doc/rdoc/more/classes/Weekdays.html +30 -32
- data/doc/rdoc/more/classes/XOXO.html +11 -13
- data/doc/rdoc/more/classes/ZipUtils.html +60 -62
- data/doc/rdoc/more/classes/ZipUtils/DryRun.html +30 -32
- data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +30 -32
- data/doc/rdoc/more/classes/ZipUtils/Verbose.html +30 -32
- data/doc/rdoc/more/created.rid +1 -1
- data/doc/rdoc/more/files/README.html +25 -10
- data/doc/rdoc/more/files/doc/README_more.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/1stclassmethod_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/advisable_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/annotations_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/ansicode_rb.html +3 -3
- data/doc/rdoc/more/files/lib/more/facets/arguments_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/argvector_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/association_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/attr_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/autoarray_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/autoreload_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/basex_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/bbcode_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/bicrypt_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/binding/opvars_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/binreadable_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/blankslate_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/buildable_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/bytes_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/cachedecorator_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/capsule_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/cattr_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/chain_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/class_extension_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/classmethods_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/cloneable_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/command_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/consoleutils_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/coroutine_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/crypt_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/cssfilter_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/daemonize_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/dependency_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/dictionary_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/dictionarymatcher_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/downloader_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/duplicable_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/duration_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/elementor_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/elementwise_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/enumerablepass_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/equatable_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/eventhook_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/expirable_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/fileable_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/filelist_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/fileshell_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/hash/stringify_keys_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/hash/symbolize_keys_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/heap_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/htmlfilter_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/infinity_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/inheritor_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/ini_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/instantiable_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/instantise_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/instantize_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/interval_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/ioredirect_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/iteration_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/kernel/meta_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/linkedlist_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/lrucache_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/main_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/memoize_rb.html +4 -6
- data/doc/rdoc/more/files/lib/more/facets/methodspace_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/minitar_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/multipliers_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/multiton_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/nackclass_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/net/smtp_tls_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/nilstatus_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/nullclass_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/opencascade_rb.html +4 -46
- data/doc/rdoc/more/files/lib/more/facets/opencollection_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/openhash_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/openobject_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/opesc_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/orderedhash_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/overload_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/paramix_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/partial_rb.html +4 -6
- data/doc/rdoc/more/files/lib/more/facets/pathlist_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/platform_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/pool_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/pqueue_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/progressbar_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/prototype_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/random_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/rbsystem_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/recorder_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/reference_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/reflection_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/registerable_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/rwdelegator_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/semaphore_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/settings_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/snapshot_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/string/mask_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/string/words_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/succ_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/syncarray_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/synchash_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/tagiterator_rb.html +111 -0
- data/doc/rdoc/more/files/lib/more/facets/thread_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/timer_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/times_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/tracepoint_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/tuple_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/typecast_rb.html +5 -4
- data/doc/rdoc/more/files/lib/more/facets/uninheritable_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/uploadutils_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/version_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/xmlhash_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/xoxo_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/ziputils_rb.html +2 -2
- data/doc/rdoc/more/fr_class_index.html +4 -5
- data/doc/rdoc/more/fr_file_index.html +4 -5
- data/doc/rdoc/more/fr_method_index.html +917 -941
- data/doc/rdoc/more/rdoc-style.css +18 -16
- data/lib/core/facets/array/combination.rb +15 -16
- data/lib/core/facets/array/index.rb +31 -6
- data/lib/core/facets/cattr.rb +2 -0
- data/lib/{more/facets → core/facets/class}/cattr.rb +18 -44
- data/lib/core/facets/class/cattr_accessor.rb +1 -0
- data/lib/core/facets/class/cattr_reader.rb +1 -0
- data/lib/core/facets/class/cattr_writer.rb +1 -0
- data/lib/core/facets/enumerable/mode.rb +5 -4
- data/lib/core/facets/enumerable/split.rb +6 -2
- data/lib/core/facets/file/append.rb +14 -0
- data/lib/core/facets/file/create.rb +21 -0
- data/lib/core/facets/file/rewrite.rb +6 -6
- data/lib/core/facets/file/write.rb +5 -47
- data/lib/core/facets/file/writelines.rb +24 -0
- data/lib/core/facets/hash/op.rb +6 -84
- data/lib/core/facets/hash/op_add.rb +12 -0
- data/lib/core/facets/hash/op_and.rb +33 -0
- data/lib/core/facets/hash/op_mul.rb +18 -0
- data/lib/core/facets/hash/op_or.rb +12 -0
- data/lib/core/facets/hash/op_sub.rb +26 -0
- data/lib/core/facets/indexable.rb +34 -26
- data/lib/core/facets/integer/odd.rb +8 -6
- data/lib/core/facets/module/class.rb +1 -3
- data/lib/core/facets/module/conflict.rb +10 -3
- data/lib/core/facets/module/prepend.rb +1 -0
- data/lib/core/facets/string/methodize.rb +6 -1
- data/lib/core/facets/string/modulize.rb +21 -0
- data/lib/core/facets/string/pathize.rb +6 -2
- data/lib/core/facets/string/splice.rb +19 -7
- data/lib/core/facets/string/variablize.rb +2 -1
- data/lib/core/facets/symbol/plain.rb +0 -27
- data/lib/core/facets/symbol/re_s.rb +18 -0
- data/lib/lore/facets/ostruct.rb +26 -10
- data/lib/lore/facets/pathname.rb +1 -1
- data/lib/lore/facets/zlib.rb +38 -0
- data/lib/more/facets/ansicode.rb +0 -5
- data/lib/more/facets/opencascade.rb +34 -32
- data/lib/more/facets/tagiter.rb +366 -0
- data/lib/more/facets/typecast.rb +5 -4
- data/task/conflicts +63 -0
- data/task/coverage.rake +37 -0
- data/task/methods +49 -0
- data/task/rdoc.rake +17 -0
- data/task/setup.rake +30 -0
- data/task/test.rake +47 -0
- data/test/{more → core/class}/test_cattr.rb +1 -1
- data/test/core/class/test_cattr_accessor.rb +2 -0
- data/test/core/class/test_cattr_reader.rb +1 -0
- data/test/core/class/test_cattr_writer.rb +1 -0
- data/test/core/file/test_create.rb +31 -0
- data/test/core/file/test_file.rb +0 -76
- data/test/core/file/test_null.rb +12 -0
- data/test/core/file/test_rewrite.rb +32 -0
- data/test/core/file/test_write.rb +31 -0
- data/test/core/file/test_writelines.rb +22 -0
- data/test/core/hash/test_op.rb +1 -42
- data/test/core/hash/test_op_add.rb +14 -0
- data/test/core/hash/test_op_and.rb +28 -0
- data/test/core/hash/test_op_mul.rb +14 -0
- data/test/core/hash/test_op_or.rb +14 -0
- data/test/core/hash/test_op_push.rb +23 -0
- data/test/core/hash/test_op_sub.rb +21 -0
- data/test/core/integer/test_even.rb +0 -9
- data/test/core/integer/test_odd.rb +16 -0
- data/test/core/module/test_alias_accessor.rb +22 -0
- data/test/core/module/test_alias_method_chain.rb +30 -0
- data/test/core/module/test_alias_module_function.rb +19 -0
- data/test/core/module/test_can.rb +19 -0
- data/test/core/module/test_class.rb +21 -0
- data/test/core/module/test_conflict.rb +19 -0
- data/test/core/module/test_integrate.rb +23 -0
- data/test/core/module/test_is.rb +19 -0
- data/test/core/module/test_methodize.rb +11 -0
- data/test/core/module/test_prepend.rb +29 -0
- data/test/core/module/test_redefine_method.rb +27 -0
- data/test/core/module/test_redirect_method.rb +25 -0
- data/test/core/module/test_rename_method.rb +27 -0
- data/test/core/module/test_revise.rb +2 -125
- data/test/core/module/test_wrap_method.rb +24 -0
- data/test/core/string/test_end_with.rb +12 -0
- data/test/core/string/test_lchomp.rb +18 -0
- data/test/core/string/test_methodize.rb +25 -0
- data/test/core/string/test_modulize.rb +25 -0
- data/test/core/string/test_op_sub.rb +12 -0
- data/test/core/string/test_pathize.rb +25 -0
- data/test/core/string/test_rewrite.rb +14 -0
- data/test/core/string/test_splice.rb +32 -0
- data/test/core/string/test_start_with.rb +12 -0
- data/test/core/string/test_variablize.rb +12 -0
- data/test/core/symbol/test_plain.rb +14 -0
- data/test/core/symbol/test_query.rb +14 -0
- data/test/core/symbol/test_setter.rb +14 -0
- data/test/core/unboundmethod/test_arguments.rb +21 -0
- data/test/core/unboundmethod/test_name.rb +15 -0
- metadata +174 -35
- data/METADATA +0 -28
- data/doc/rdoc/more/classes/Rope.html +0 -434
- data/doc/rdoc/more/classes/String/Style.html +0 -803
- data/lib/more/facets/rope.rb +0 -131
- data/lib/more/facets/string/style.rb +0 -317
- data/test/core/module/test_alias.rb +0 -45
- data/test/more/test_style.rb +0 -50
@@ -1,10 +1,10 @@
|
|
1
1
|
a {
|
2
|
-
color: #
|
2
|
+
color: #F00;
|
3
3
|
text-decoration: none;
|
4
4
|
}
|
5
5
|
|
6
6
|
a:hover {
|
7
|
-
color: #
|
7
|
+
color: #F77;
|
8
8
|
text-decoration: underline;
|
9
9
|
}
|
10
10
|
|
@@ -29,7 +29,7 @@ body, td, p {
|
|
29
29
|
margin-bottom: 1em;
|
30
30
|
padding: 0.5em;
|
31
31
|
padding-left: 2em;
|
32
|
-
background: #
|
32
|
+
background: #500;
|
33
33
|
color: #FFF;
|
34
34
|
font-weight: bold;
|
35
35
|
border: 1px dotted black;
|
@@ -60,12 +60,12 @@ body, td, p {
|
|
60
60
|
.file-title {
|
61
61
|
font-size: large;
|
62
62
|
font-weight: bold;
|
63
|
-
background: #
|
63
|
+
background: #500;
|
64
64
|
color: #FFF;
|
65
65
|
}
|
66
66
|
|
67
67
|
.banner {
|
68
|
-
background: #
|
68
|
+
background: #500;
|
69
69
|
color: #FFF;
|
70
70
|
border: 1px solid black;
|
71
71
|
padding: 1em;
|
@@ -77,7 +77,7 @@ body, td, p {
|
|
77
77
|
}
|
78
78
|
|
79
79
|
h1 a, h2 a, .sectiontitle a, .banner a {
|
80
|
-
color: #
|
80
|
+
color: #FCC;
|
81
81
|
}
|
82
82
|
|
83
83
|
h1 a:hover, h2 a:hover, .sectiontitle a:hover, .banner a:hover {
|
@@ -86,15 +86,15 @@ h1 a:hover, h2 a:hover, .sectiontitle a:hover, .banner a:hover {
|
|
86
86
|
|
87
87
|
.dyn-source {
|
88
88
|
display: none;
|
89
|
-
background: #
|
89
|
+
background: #EFE;
|
90
90
|
color: #000;
|
91
|
-
border: 1px
|
92
|
-
margin: 0.5em 2em 0.5em
|
91
|
+
border: 1px solid #cccccc;
|
92
|
+
margin: 0.5em 2em 0.5em 1em;
|
93
93
|
padding: 0.5em;
|
94
94
|
}
|
95
95
|
|
96
96
|
.dyn-source .cmt {
|
97
|
-
color: #
|
97
|
+
color: #F00;
|
98
98
|
font-style: italic;
|
99
99
|
}
|
100
100
|
|
@@ -111,8 +111,8 @@ h1 a:hover, h2 a:hover, .sectiontitle a:hover, .banner a:hover {
|
|
111
111
|
|
112
112
|
.description pre {
|
113
113
|
padding: 0.5em;
|
114
|
-
border:
|
115
|
-
background: #
|
114
|
+
border: 0px solid black;
|
115
|
+
background: #EFE;
|
116
116
|
}
|
117
117
|
|
118
118
|
.method .title {
|
@@ -132,8 +132,10 @@ h1 a:hover, h2 a:hover, .sectiontitle a:hover, .banner a:hover {
|
|
132
132
|
}
|
133
133
|
|
134
134
|
.method .sourcecode p.source-link {
|
135
|
+
text-align: right;
|
135
136
|
text-indent: 0em;
|
136
137
|
margin-top: 0.5em;
|
138
|
+
font-family: monospace;
|
137
139
|
}
|
138
140
|
|
139
141
|
.method .aka {
|
@@ -149,7 +151,7 @@ h1 {
|
|
149
151
|
font-size: x-large;
|
150
152
|
font-weight: bold;
|
151
153
|
color: #FFF;
|
152
|
-
background: #
|
154
|
+
background: #700;
|
153
155
|
}
|
154
156
|
|
155
157
|
h2 {
|
@@ -158,18 +160,18 @@ h2 {
|
|
158
160
|
font-size: large;
|
159
161
|
font-weight: bold;
|
160
162
|
color: #FFF;
|
161
|
-
background: #
|
163
|
+
background: #900;
|
162
164
|
}
|
163
165
|
|
164
166
|
h3, h4, h5, h6 {
|
165
167
|
padding: 0.2em 1em 0.2em 1em;
|
166
168
|
border: 1px dashed black;
|
167
169
|
color: #000;
|
168
|
-
background: #
|
170
|
+
background: #FAA;
|
169
171
|
}
|
170
172
|
|
171
173
|
.sourcecode > pre {
|
172
174
|
padding: 0.5em;
|
173
|
-
border: 1px
|
175
|
+
border: 1px solid black;
|
174
176
|
background: #FFE;
|
175
177
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
if RUBY_VERSION < '1.9'
|
2
2
|
|
3
3
|
require 'enumerator'
|
4
4
|
|
@@ -38,21 +38,20 @@ unless (RUBY_VERSION[0,3] == '1.9')
|
|
38
38
|
end
|
39
39
|
|
40
40
|
# OLD WAY
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
#a
|
41
|
+
#a = []
|
42
|
+
#s = self
|
43
|
+
#n = s.size
|
44
|
+
#return unless (1..n) === k
|
45
|
+
#dx = (0...k).to_a
|
46
|
+
#loop do
|
47
|
+
# a << s.values_at(*idx)
|
48
|
+
# i = k - 1
|
49
|
+
# i -= 1 while idx[i] == n - k + i
|
50
|
+
# break if i < 0
|
51
|
+
# idx[i] += 1
|
52
|
+
# (i + 1 ... k).each {|j| idx[j] = idx[i] + j - i}
|
53
|
+
#end
|
54
|
+
#a
|
56
55
|
|
57
56
|
end
|
58
57
|
|
@@ -2,9 +2,7 @@ class Array
|
|
2
2
|
|
3
3
|
if RUBY_VERSION < '1.9'
|
4
4
|
|
5
|
-
alias_method :
|
6
|
-
|
7
|
-
#private :facets_override_of_index
|
5
|
+
alias_method :_facets_index, :index
|
8
6
|
|
9
7
|
# Allows #index to accept a block.
|
10
8
|
#
|
@@ -12,12 +10,39 @@ class Array
|
|
12
10
|
# overrides in Facets.
|
13
11
|
#
|
14
12
|
def index(obj=nil, &block)
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
if block_given?
|
14
|
+
_facets_index(find(&block))
|
15
|
+
else
|
16
|
+
_facets_index(obj)
|
17
|
+
end
|
18
18
|
end
|
19
19
|
|
20
20
|
end
|
21
21
|
|
22
22
|
end
|
23
23
|
|
24
|
+
|
25
|
+
=begin :spec:
|
26
|
+
|
27
|
+
require 'quarry/spec'
|
28
|
+
|
29
|
+
Quarry.spec "Array" do
|
30
|
+
|
31
|
+
the_method "index" do
|
32
|
+
|
33
|
+
finds "an element" do
|
34
|
+
i = [1,2,3].index{ |e| e == 2 }
|
35
|
+
i.assert == 1
|
36
|
+
end
|
37
|
+
|
38
|
+
terminates "when no element is found" do
|
39
|
+
i = [1,2,3].index{ |e| e == 5 }
|
40
|
+
i.assert == nil
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
|
47
|
+
=end
|
48
|
+
|
@@ -1,28 +1,3 @@
|
|
1
|
-
# = CAttr
|
2
|
-
#
|
3
|
-
# Class/Instance attributes.
|
4
|
-
#
|
5
|
-
# == Notes
|
6
|
-
#
|
7
|
-
# * This was suggested by Ara T. Howard
|
8
|
-
#
|
9
|
-
# == Authors
|
10
|
-
#
|
11
|
-
# * Thomas Sawyer
|
12
|
-
#
|
13
|
-
# == Copying
|
14
|
-
#
|
15
|
-
# Copyright (c) 2006 Thomas Sawyer
|
16
|
-
#
|
17
|
-
# Ruby License
|
18
|
-
#
|
19
|
-
# This module is free software. You may use, modify, and/or redistribute this
|
20
|
-
# software under the same terms as Ruby.
|
21
|
-
#
|
22
|
-
# This program is distributed in the hope that it will be useful, but WITHOUT
|
23
|
-
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
24
|
-
# FOR A PARTICULAR PURPOSE.
|
25
|
-
|
26
1
|
class Class
|
27
2
|
|
28
3
|
# Creates a class-variable attribute that can
|
@@ -30,19 +5,19 @@ class Class
|
|
30
5
|
#
|
31
6
|
# NOTE This used to be a Module method. But turns out
|
32
7
|
# it does not work as expected when included. The class-level
|
33
|
-
# method is not carried along. So it is now just
|
34
|
-
# method. Accordingly, #mattr
|
35
|
-
# so use #cattr instead.
|
8
|
+
# method is not carried along. So it is now just a Class
|
9
|
+
# method. Accordingly, #mattr has been deprecated.
|
36
10
|
#
|
37
11
|
# CREDIT: David Heinemeier Hansson
|
12
|
+
# CREDIT: Ara T. Howard (for suggesting)
|
38
13
|
|
39
14
|
def cattr( *syms )
|
40
|
-
|
41
|
-
writers =
|
42
|
-
readers.concat( writers )
|
15
|
+
writers, readers = syms.flatten.partition{ |a| a.to_s =~ /=$/ }
|
16
|
+
writers = writers.collect{ |e| e.to_s.chomp('=').to_sym }
|
17
|
+
readers.concat( writers ) # writers also get readers
|
43
18
|
cattr_writer( *writers )
|
44
19
|
cattr_reader( *readers )
|
45
|
-
return readers +
|
20
|
+
return readers + writers
|
46
21
|
end
|
47
22
|
|
48
23
|
# Creates a class-variable attr_reader that can
|
@@ -61,9 +36,14 @@ class Class
|
|
61
36
|
def cattr_reader( *syms )
|
62
37
|
syms.flatten.each do |sym|
|
63
38
|
class_eval(<<-EOS, __FILE__, __LINE__)
|
39
|
+
unless defined? @@#{sym}
|
40
|
+
@@#{sym} = nil
|
41
|
+
end
|
42
|
+
|
64
43
|
def self.#{sym}
|
65
44
|
@@#{sym}
|
66
45
|
end
|
46
|
+
|
67
47
|
def #{sym}
|
68
48
|
@@#{sym}
|
69
49
|
end
|
@@ -92,9 +72,14 @@ class Class
|
|
92
72
|
def cattr_writer(*syms)
|
93
73
|
syms.flatten.each do |sym|
|
94
74
|
class_eval(<<-EOS, __FILE__, __LINE__)
|
75
|
+
unless defined? @@#{sym}
|
76
|
+
@@#{sym} = nil
|
77
|
+
end
|
78
|
+
|
95
79
|
def self.#{sym}=(obj)
|
96
80
|
@@#{sym} = obj
|
97
81
|
end
|
82
|
+
|
98
83
|
def #{sym}=(obj)
|
99
84
|
@@#{sym}=(obj)
|
100
85
|
end
|
@@ -114,25 +99,14 @@ class Class
|
|
114
99
|
# MyClass.a #=> 10
|
115
100
|
# mc = MyClass.new
|
116
101
|
# mc.a #=> 10
|
117
|
-
#
|
118
|
-
# CREDIT: David Heinemeier Hansson
|
119
102
|
|
120
103
|
def cattr_accessor(*syms)
|
121
|
-
|
122
|
-
m.concat( cattr_reader(*syms) )
|
123
|
-
m.concat( cattr_writer(*syms) )
|
124
|
-
m
|
104
|
+
cattr_reader(*syms) + cattr_writer(*syms)
|
125
105
|
end
|
126
106
|
|
127
107
|
end
|
128
108
|
|
129
|
-
|
130
109
|
#class Module
|
131
|
-
# NOTE: Module variations turn out not to work, because
|
132
|
-
# the class-level method created is not inherited when the
|
133
|
-
# module is included. Accordingly, #mattr and friends
|
134
|
-
# will be deprecated, so use #cattr instead.
|
135
|
-
|
136
110
|
#alias_method :mattr, :cattr # deprecate
|
137
111
|
#alias_method :mattr_reader, :cattr_reader # deprecate
|
138
112
|
#alias_method :mattr_writer, :cattr_writer # deprecate
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'facets/class/cattr'
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'facets/class/cattr'
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'facets/class/cattr'
|
@@ -3,12 +3,13 @@ module Enumerable
|
|
3
3
|
# In Statistics mode is the value that occurs most
|
4
4
|
# frequently in a given set of data.
|
5
5
|
#
|
6
|
-
# CREDIT:
|
6
|
+
# CREDIT: Robert Klemme
|
7
7
|
|
8
8
|
def mode
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
max = 0
|
10
|
+
c = Hash.new 0
|
11
|
+
each {|x| cc = c[x] += 1; max = cc if cc > max}
|
12
|
+
c.select {|k,v| v == max}.map {|k,v| k}
|
12
13
|
end
|
13
14
|
|
14
15
|
end
|
@@ -8,14 +8,18 @@ module Enumerable
|
|
8
8
|
# CREDIT: Trans
|
9
9
|
|
10
10
|
def split(pattern)
|
11
|
+
sect = []
|
11
12
|
memo = []
|
12
13
|
each do |obj|
|
13
14
|
if pattern === obj
|
14
|
-
memo
|
15
|
+
memo << sect
|
16
|
+
sect = []
|
15
17
|
else
|
16
|
-
|
18
|
+
sect << obj
|
17
19
|
end
|
18
20
|
end
|
21
|
+
memo << sect #unless sect.empty?
|
22
|
+
memo.pop while memo.last.empty?
|
19
23
|
memo
|
20
24
|
end
|
21
25
|
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class File
|
2
|
+
|
3
|
+
# Creates a new file, or overwrites an existing file,
|
4
|
+
# and writes a string into it. Can also take a block
|
5
|
+
# just like File#open, which is yielded _after_ the
|
6
|
+
# string is writ.
|
7
|
+
#
|
8
|
+
# str = 'The content for the file'
|
9
|
+
# File.create('myfile.txt', str)
|
10
|
+
#
|
11
|
+
# CREDIT: George Moschovitis
|
12
|
+
|
13
|
+
def self.create(path, str='', &blk)
|
14
|
+
open(path, 'wb') do |f|
|
15
|
+
f << str
|
16
|
+
blk.call(f) if blk
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
@@ -38,14 +38,14 @@ class File
|
|
38
38
|
mode.delete!("^b+")
|
39
39
|
end
|
40
40
|
|
41
|
-
old_str =
|
42
|
-
old_str =
|
41
|
+
old_str = open(name, "r#{mode}") { |file| file.read } #rescue ""
|
42
|
+
old_str = old_str.clone
|
43
43
|
|
44
44
|
begin
|
45
45
|
new_str = yield(old_str)
|
46
46
|
ensure
|
47
47
|
if old_str != new_str
|
48
|
-
|
48
|
+
open(name, "w#{mode}") { |file| file.write(new_str) }
|
49
49
|
end
|
50
50
|
end
|
51
51
|
end
|
@@ -72,14 +72,14 @@ class File
|
|
72
72
|
mode.delete!("^b+")
|
73
73
|
end
|
74
74
|
|
75
|
-
old_str =
|
76
|
-
new_str =
|
75
|
+
old_str = open(name, "r#{mode}") { |file| file.read } #rescue ""
|
76
|
+
new_str = old_str.clone
|
77
77
|
|
78
78
|
begin
|
79
79
|
yield(new_str)
|
80
80
|
ensure
|
81
81
|
if old_str != new_str
|
82
|
-
|
82
|
+
open(name, "w#{mode}") { |file| file.write(str) }
|
83
83
|
end
|
84
84
|
end
|
85
85
|
end
|