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
@@ -32,12 +32,12 @@
|
|
32
32
|
if( elem.style.display == "block" )
|
33
33
|
{
|
34
34
|
elem.style.display = "none"
|
35
|
-
link.innerHTML = "
|
35
|
+
link.innerHTML = "+"
|
36
36
|
}
|
37
37
|
else
|
38
38
|
{
|
39
39
|
elem.style.display = "block"
|
40
|
-
link.innerHTML = "
|
40
|
+
link.innerHTML = "-"
|
41
41
|
}
|
42
42
|
}
|
43
43
|
|
@@ -84,15 +84,13 @@ Object
|
|
84
84
|
|
85
85
|
|
86
86
|
<div class="sectiontitle">Methods</div>
|
87
|
-
<
|
88
|
-
<
|
89
|
-
<
|
90
|
-
<
|
91
|
-
<
|
92
|
-
<
|
93
|
-
<
|
94
|
-
<li><a href="#M000006">within?</a></li>
|
95
|
-
</ul>
|
87
|
+
<span style="padding-right: 5px;"><a href="#M000003">combine</a></span>
|
88
|
+
<span style="padding-right: 5px;"><a href="#M000002">combine</a></span>
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000001">overlap?</a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M000004">to_r</a></span>
|
91
|
+
<span style="padding-right: 5px;"><a href="#M000005">to_range</a></span>
|
92
|
+
<span style="padding-right: 5px;"><a href="#M000007">umbrella</a></span>
|
93
|
+
<span style="padding-right: 5px;"><a href="#M000006">within?</a></span>
|
96
94
|
|
97
95
|
|
98
96
|
|
@@ -116,7 +114,7 @@ Combine intervals.
|
|
116
114
|
</pre>
|
117
115
|
</div>
|
118
116
|
<div class="sourcecode">
|
119
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000003_source')" id="l_M000003_source"
|
117
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000003_source')" id="l_M000003_source">+</a> ]</p>
|
120
118
|
<div id="M000003_source" class="dyn-source">
|
121
119
|
<pre>
|
122
120
|
<span class="ruby-comment cmt"># File lib/core/facets/range/combine.rb, line 23</span>
|
@@ -166,7 +164,7 @@ Combine ranges.
|
|
166
164
|
</pre>
|
167
165
|
</div>
|
168
166
|
<div class="sourcecode">
|
169
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000002_source')" id="l_M000002_source"
|
167
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000002_source')" id="l_M000002_source">+</a> ]</p>
|
170
168
|
<div id="M000002_source" class="dyn-source">
|
171
169
|
<pre>
|
172
170
|
<span class="ruby-comment cmt"># File lib/core/facets/range/combine.rb, line 12</span>
|
@@ -191,7 +189,7 @@ Do two ranges <a href="Range.html#M000001">overlap?</a>
|
|
191
189
|
</pre>
|
192
190
|
</div>
|
193
191
|
<div class="sourcecode">
|
194
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000001_source')" id="l_M000001_source"
|
192
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000001_source')" id="l_M000001_source">+</a> ]</p>
|
195
193
|
<div id="M000001_source" class="dyn-source">
|
196
194
|
<pre>
|
197
195
|
<span class="ruby-comment cmt"># File lib/core/facets/range/overlap.rb, line 8</span>
|
@@ -215,7 +213,7 @@ CREDIT: Trans
|
|
215
213
|
</p>
|
216
214
|
</div>
|
217
215
|
<div class="sourcecode">
|
218
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000004_source')" id="l_M000004_source"
|
216
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000004_source')" id="l_M000004_source">+</a> ]</p>
|
219
217
|
<div id="M000004_source" class="dyn-source">
|
220
218
|
<pre>
|
221
219
|
<span class="ruby-comment cmt"># File lib/core/facets/range/to_r.rb, line 8</span>
|
@@ -244,7 +242,7 @@ CREDIT: Trans
|
|
244
242
|
</p>
|
245
243
|
</div>
|
246
244
|
<div class="sourcecode">
|
247
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000005_source')" id="l_M000005_source"
|
245
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000005_source')" id="l_M000005_source">+</a> ]</p>
|
248
246
|
<div id="M000005_source" class="dyn-source">
|
249
247
|
<pre>
|
250
248
|
<span class="ruby-comment cmt"># File lib/core/facets/range/to_r.rb, line 21</span>
|
@@ -297,7 +295,7 @@ Example:
|
|
297
295
|
</pre>
|
298
296
|
</div>
|
299
297
|
<div class="sourcecode">
|
300
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000007_source')" id="l_M000007_source"
|
298
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000007_source')" id="l_M000007_source">+</a> ]</p>
|
301
299
|
<div id="M000007_source" class="dyn-source">
|
302
300
|
<pre>
|
303
301
|
<span class="ruby-comment cmt"># File lib/core/facets/range/within.rb, line 50</span>
|
@@ -336,7 +334,7 @@ within this <a href="Range.html">Range</a>.
|
|
336
334
|
</pre>
|
337
335
|
</div>
|
338
336
|
<div class="sourcecode">
|
339
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000006_source')" id="l_M000006_source"
|
337
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000006_source')" id="l_M000006_source">+</a> ]</p>
|
340
338
|
<div id="M000006_source" class="dyn-source">
|
341
339
|
<pre>
|
342
340
|
<span class="ruby-comment cmt"># File lib/core/facets/range/within.rb, line 10</span>
|
@@ -32,12 +32,12 @@
|
|
32
32
|
if( elem.style.display == "block" )
|
33
33
|
{
|
34
34
|
elem.style.display = "none"
|
35
|
-
link.innerHTML = "
|
35
|
+
link.innerHTML = "+"
|
36
36
|
}
|
37
37
|
else
|
38
38
|
{
|
39
39
|
elem.style.display = "block"
|
40
|
-
link.innerHTML = "
|
40
|
+
link.innerHTML = "-"
|
41
41
|
}
|
42
42
|
}
|
43
43
|
|
@@ -82,11 +82,9 @@ Object
|
|
82
82
|
|
83
83
|
|
84
84
|
<div class="sectiontitle">Methods</div>
|
85
|
-
<
|
86
|
-
<
|
87
|
-
<
|
88
|
-
<li><a href="#M000028">to_regexp</a></li>
|
89
|
-
</ul>
|
85
|
+
<span style="padding-right: 5px;"><a href="#M000030">arity</a></span>
|
86
|
+
<span style="padding-right: 5px;"><a href="#M000029">to_re</a></span>
|
87
|
+
<span style="padding-right: 5px;"><a href="#M000028">to_regexp</a></span>
|
90
88
|
|
91
89
|
|
92
90
|
|
@@ -115,7 +113,7 @@ comments.
|
|
115
113
|
</pre>
|
116
114
|
</div>
|
117
115
|
<div class="sourcecode">
|
118
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000030_source')" id="l_M000030_source"
|
116
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000030_source')" id="l_M000030_source">+</a> ]</p>
|
119
117
|
<div id="M000030_source" class="dyn-source">
|
120
118
|
<pre>
|
121
119
|
<span class="ruby-comment cmt"># File lib/core/facets/regexp/arity.rb, line 13</span>
|
@@ -135,7 +133,7 @@ comments.
|
|
135
133
|
Simply returns itself. Helpful when converting strings to regular
|
136
134
|
expressions, where regexp might occur as well —in the same vien as
|
137
135
|
using to_s on symbols. The parameter is actaully a dummy parameter to
|
138
|
-
coincide with <a href="String.html#
|
136
|
+
coincide with <a href="String.html#M000251">String#to_re</a>.
|
139
137
|
</p>
|
140
138
|
<pre>
|
141
139
|
/abc/.to_re #=> /abc/
|
@@ -145,7 +143,7 @@ CREDIT: Trans
|
|
145
143
|
</p>
|
146
144
|
</div>
|
147
145
|
<div class="sourcecode">
|
148
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000029_source')" id="l_M000029_source"
|
146
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000029_source')" id="l_M000029_source">+</a> ]</p>
|
149
147
|
<div id="M000029_source" class="dyn-source">
|
150
148
|
<pre>
|
151
149
|
<span class="ruby-comment cmt"># File lib/core/facets/regexp/to_re.rb, line 24</span>
|
@@ -174,7 +172,7 @@ CREDIT: Florian Gross
|
|
174
172
|
</p>
|
175
173
|
</div>
|
176
174
|
<div class="sourcecode">
|
177
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000028_source')" id="l_M000028_source"
|
175
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000028_source')" id="l_M000028_source">+</a> ]</p>
|
178
176
|
<div id="M000028_source" class="dyn-source">
|
179
177
|
<pre>
|
180
178
|
<span class="ruby-comment cmt"># File lib/core/facets/regexp/to_re.rb, line 10</span>
|
@@ -32,12 +32,12 @@
|
|
32
32
|
if( elem.style.display == "block" )
|
33
33
|
{
|
34
34
|
elem.style.display = "none"
|
35
|
-
link.innerHTML = "
|
35
|
+
link.innerHTML = "+"
|
36
36
|
}
|
37
37
|
else
|
38
38
|
{
|
39
39
|
elem.style.display = "block"
|
40
|
-
link.innerHTML = "
|
40
|
+
link.innerHTML = "-"
|
41
41
|
}
|
42
42
|
}
|
43
43
|
|
@@ -72,9 +72,9 @@
|
|
72
72
|
<div class="description"><h1><a href="Stackable.html">Stackable</a></h1>
|
73
73
|
<p>
|
74
74
|
<a href="Stackable.html">Stackable</a> mixin provides <a
|
75
|
-
href="Stackable.html#
|
76
|
-
href="Stackable.html#
|
77
|
-
href="Stackable.html#
|
75
|
+
href="Stackable.html#M000329">pop</a>, <a
|
76
|
+
href="Stackable.html#M000330">push</a>, <a
|
77
|
+
href="Stackable.html#M000331">pull</a>, etc. It depends on slice, splice
|
78
78
|
and insert.
|
79
79
|
</p>
|
80
80
|
</div>
|
@@ -82,15 +82,13 @@ and insert.
|
|
82
82
|
|
83
83
|
|
84
84
|
<div class="sectiontitle">Methods</div>
|
85
|
-
<
|
86
|
-
<
|
87
|
-
<
|
88
|
-
<
|
89
|
-
<
|
90
|
-
<
|
91
|
-
<
|
92
|
-
<li><a href="#M000327">unshift</a></li>
|
93
|
-
</ul>
|
85
|
+
<span style="padding-right: 5px;"><a href="#M000335">peek</a></span>
|
86
|
+
<span style="padding-right: 5px;"><a href="#M000333">poke</a></span>
|
87
|
+
<span style="padding-right: 5px;"><a href="#M000329">pop</a></span>
|
88
|
+
<span style="padding-right: 5px;"><a href="#M000331">pull</a></span>
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000330">push</a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M000332">shift</a></span>
|
91
|
+
<span style="padding-right: 5px;"><a href="#M000334">unshift</a></span>
|
94
92
|
|
95
93
|
|
96
94
|
|
@@ -100,7 +98,7 @@ and insert.
|
|
100
98
|
<div class="sectiontitle">Public Instance methods</div>
|
101
99
|
<div class="method">
|
102
100
|
<div class="title">
|
103
|
-
<a name="
|
101
|
+
<a name="M000335"></a><b>peek</b>()
|
104
102
|
</div>
|
105
103
|
<div class="description">
|
106
104
|
<p>
|
@@ -113,8 +111,8 @@ Peek at the top of the stack.
|
|
113
111
|
</pre>
|
114
112
|
</div>
|
115
113
|
<div class="sourcecode">
|
116
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
117
|
-
<div id="
|
114
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000335_source')" id="l_M000335_source">+</a> ]</p>
|
115
|
+
<div id="M000335_source" class="dyn-source">
|
118
116
|
<pre>
|
119
117
|
<span class="ruby-comment cmt"># File lib/core/facets/stackable.rb, line 81</span>
|
120
118
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">peek</span>
|
@@ -126,7 +124,7 @@ Peek at the top of the stack.
|
|
126
124
|
</div>
|
127
125
|
<div class="method">
|
128
126
|
<div class="title">
|
129
|
-
<a name="
|
127
|
+
<a name="M000333"></a><b>poke</b>(x)
|
130
128
|
</div>
|
131
129
|
<div class="description">
|
132
130
|
<p>
|
@@ -141,11 +139,11 @@ Poke item onto the stack.
|
|
141
139
|
</div>
|
142
140
|
<div class="aka">
|
143
141
|
This method is also aliased as
|
144
|
-
<a href="Stackable.html#
|
142
|
+
<a href="Stackable.html#M000334">unshift</a>
|
145
143
|
</div>
|
146
144
|
<div class="sourcecode">
|
147
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
148
|
-
<div id="
|
145
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000333_source')" id="l_M000333_source">+</a> ]</p>
|
146
|
+
<div id="M000333_source" class="dyn-source">
|
149
147
|
<pre>
|
150
148
|
<span class="ruby-comment cmt"># File lib/core/facets/stackable.rb, line 69</span>
|
151
149
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">poke</span>(<span class="ruby-identifier">x</span>)
|
@@ -157,7 +155,7 @@ Poke item onto the stack.
|
|
157
155
|
</div>
|
158
156
|
<div class="method">
|
159
157
|
<div class="title">
|
160
|
-
<a name="
|
158
|
+
<a name="M000329"></a><b>pop</b>()
|
161
159
|
</div>
|
162
160
|
<div class="description">
|
163
161
|
<p>
|
@@ -170,8 +168,8 @@ Pop item off stack.
|
|
170
168
|
</pre>
|
171
169
|
</div>
|
172
170
|
<div class="sourcecode">
|
173
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
174
|
-
<div id="
|
171
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000329_source')" id="l_M000329_source">+</a> ]</p>
|
172
|
+
<div id="M000329_source" class="dyn-source">
|
175
173
|
<pre>
|
176
174
|
<span class="ruby-comment cmt"># File lib/core/facets/stackable.rb, line 37</span>
|
177
175
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pop</span>
|
@@ -183,7 +181,7 @@ Pop item off stack.
|
|
183
181
|
</div>
|
184
182
|
<div class="method">
|
185
183
|
<div class="title">
|
186
|
-
<a name="
|
184
|
+
<a name="M000331"></a><b>pull</b>()
|
187
185
|
</div>
|
188
186
|
<div class="description">
|
189
187
|
<p>
|
@@ -197,11 +195,11 @@ Pull item off the stack.
|
|
197
195
|
</div>
|
198
196
|
<div class="aka">
|
199
197
|
This method is also aliased as
|
200
|
-
<a href="Stackable.html#
|
198
|
+
<a href="Stackable.html#M000332">shift</a>
|
201
199
|
</div>
|
202
200
|
<div class="sourcecode">
|
203
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
204
|
-
<div id="
|
201
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000331_source')" id="l_M000331_source">+</a> ]</p>
|
202
|
+
<div id="M000331_source" class="dyn-source">
|
205
203
|
<pre>
|
206
204
|
<span class="ruby-comment cmt"># File lib/core/facets/stackable.rb, line 56</span>
|
207
205
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pull</span>
|
@@ -213,7 +211,7 @@ Pull item off the stack.
|
|
213
211
|
</div>
|
214
212
|
<div class="method">
|
215
213
|
<div class="title">
|
216
|
-
<a name="
|
214
|
+
<a name="M000330"></a><b>push</b>(x)
|
217
215
|
</div>
|
218
216
|
<div class="description">
|
219
217
|
<p>
|
@@ -225,8 +223,8 @@ Push item onto the stack.
|
|
225
223
|
</pre>
|
226
224
|
</div>
|
227
225
|
<div class="sourcecode">
|
228
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
229
|
-
<div id="
|
226
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000330_source')" id="l_M000330_source">+</a> ]</p>
|
227
|
+
<div id="M000330_source" class="dyn-source">
|
230
228
|
<pre>
|
231
229
|
<span class="ruby-comment cmt"># File lib/core/facets/stackable.rb, line 46</span>
|
232
230
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span>(<span class="ruby-identifier">x</span>)
|
@@ -238,21 +236,21 @@ Push item onto the stack.
|
|
238
236
|
</div>
|
239
237
|
<div class="method">
|
240
238
|
<div class="title">
|
241
|
-
<a name="
|
239
|
+
<a name="M000332"></a><b>shift</b>()
|
242
240
|
</div>
|
243
241
|
<div class="description">
|
244
242
|
<p>
|
245
|
-
Alias for <a href="Stackable.html#
|
243
|
+
Alias for <a href="Stackable.html#M000331">pull</a>
|
246
244
|
</p>
|
247
245
|
</div>
|
248
246
|
</div>
|
249
247
|
<div class="method">
|
250
248
|
<div class="title">
|
251
|
-
<a name="
|
249
|
+
<a name="M000334"></a><b>unshift</b>(x)
|
252
250
|
</div>
|
253
251
|
<div class="description">
|
254
252
|
<p>
|
255
|
-
Alias for <a href="Stackable.html#
|
253
|
+
Alias for <a href="Stackable.html#M000333">poke</a>
|
256
254
|
</p>
|
257
255
|
</div>
|
258
256
|
</div>
|
@@ -32,12 +32,12 @@
|
|
32
32
|
if( elem.style.display == "block" )
|
33
33
|
{
|
34
34
|
elem.style.display = "none"
|
35
|
-
link.innerHTML = "
|
35
|
+
link.innerHTML = "+"
|
36
36
|
}
|
37
37
|
else
|
38
38
|
{
|
39
39
|
elem.style.display = "block"
|
40
|
-
link.innerHTML = "
|
40
|
+
link.innerHTML = "-"
|
41
41
|
}
|
42
42
|
}
|
43
43
|
|
@@ -66,6 +66,7 @@
|
|
66
66
|
<a href="../files/lib/core/facets/string/start_with_rb.html">lib/core/facets/string/start_with.rb</a>
|
67
67
|
<a href="../files/lib/core/facets/string/camelcase_rb.html">lib/core/facets/string/camelcase.rb</a>
|
68
68
|
<a href="../files/lib/core/facets/string/lines_rb.html">lib/core/facets/string/lines.rb</a>
|
69
|
+
<a href="../files/lib/core/facets/string/modulize_rb.html">lib/core/facets/string/modulize.rb</a>
|
69
70
|
<a href="../files/lib/core/facets/string/word_wrap_rb.html">lib/core/facets/string/word_wrap.rb</a>
|
70
71
|
<a href="../files/lib/core/facets/string/align_rb.html">lib/core/facets/string/align.rb</a>
|
71
72
|
<a href="../files/lib/core/facets/string/tab_rb.html">lib/core/facets/string/tab.rb</a>
|
@@ -118,69 +119,68 @@ Object
|
|
118
119
|
|
119
120
|
|
120
121
|
<div class="sectiontitle">Methods</div>
|
121
|
-
<
|
122
|
-
<
|
123
|
-
<
|
124
|
-
<
|
125
|
-
<
|
126
|
-
<
|
127
|
-
<
|
128
|
-
<
|
129
|
-
<
|
130
|
-
<
|
131
|
-
<
|
132
|
-
<
|
133
|
-
<
|
134
|
-
<
|
135
|
-
<
|
136
|
-
<
|
137
|
-
<
|
138
|
-
<
|
139
|
-
<
|
140
|
-
<
|
141
|
-
<
|
142
|
-
<
|
143
|
-
<
|
144
|
-
<
|
145
|
-
<
|
146
|
-
<
|
147
|
-
<
|
148
|
-
<
|
149
|
-
<
|
150
|
-
<
|
151
|
-
<
|
152
|
-
<
|
153
|
-
<
|
154
|
-
<
|
155
|
-
<
|
156
|
-
<
|
157
|
-
<
|
158
|
-
<
|
159
|
-
<
|
160
|
-
<
|
161
|
-
<
|
162
|
-
<
|
163
|
-
<
|
164
|
-
<
|
165
|
-
<
|
166
|
-
<
|
167
|
-
<
|
168
|
-
<
|
169
|
-
<
|
170
|
-
<
|
171
|
-
<
|
172
|
-
<
|
173
|
-
<
|
174
|
-
<
|
175
|
-
<
|
176
|
-
<
|
177
|
-
<
|
178
|
-
<
|
179
|
-
<
|
180
|
-
<
|
181
|
-
<
|
182
|
-
<
|
183
|
-
</ul>
|
122
|
+
<span style="padding-right: 5px;"><a href="#M000273">-</a></span>
|
123
|
+
<span style="padding-right: 5px;"><a href="#M000306">^</a></span>
|
124
|
+
<span style="padding-right: 5px;"><a href="#M000261">align</a></span>
|
125
|
+
<span style="padding-right: 5px;"><a href="#M000264">align_center</a></span>
|
126
|
+
<span style="padding-right: 5px;"><a href="#M000263">align_left</a></span>
|
127
|
+
<span style="padding-right: 5px;"><a href="#M000262">align_right</a></span>
|
128
|
+
<span style="padding-right: 5px;"><a href="#M000308">blank?</a></span>
|
129
|
+
<span style="padding-right: 5px;"><a href="#M000294">bracket</a></span>
|
130
|
+
<span style="padding-right: 5px;"><a href="#M000295">bracket!</a></span>
|
131
|
+
<span style="padding-right: 5px;"><a href="#M000287">bytes</a></span>
|
132
|
+
<span style="padding-right: 5px;"><a href="#M000256">camelcase</a></span>
|
133
|
+
<span style="padding-right: 5px;"><a href="#M000282">capitalized?</a></span>
|
134
|
+
<span style="padding-right: 5px;"><a href="#M000300">chars</a></span>
|
135
|
+
<span style="padding-right: 5px;"><a href="#M000292">cleave</a></span>
|
136
|
+
<span style="padding-right: 5px;"><a href="#M000249">cmp</a></span>
|
137
|
+
<span style="padding-right: 5px;"><a href="#M000299">dequote</a></span>
|
138
|
+
<span style="padding-right: 5px;"><a href="#M000280">divide</a></span>
|
139
|
+
<span style="padding-right: 5px;"><a href="#M000283">downcase?</a></span>
|
140
|
+
<span style="padding-right: 5px;"><a href="#M000279">each_char</a></span>
|
141
|
+
<span style="padding-right: 5px;"><a href="#M000307">each_word</a></span>
|
142
|
+
<span style="padding-right: 5px;"><a href="#M000255">end_with?</a></span>
|
143
|
+
<span style="padding-right: 5px;"><a href="#M000267">expand_tabs</a></span>
|
144
|
+
<span style="padding-right: 5px;"><a href="#M000253">fold</a></span>
|
145
|
+
<span style="padding-right: 5px;"><a href="#M000269">indent</a></span>
|
146
|
+
<span style="padding-right: 5px;"><a href="#M000277">index_all</a></span>
|
147
|
+
<span style="padding-right: 5px;"><a href="#M000291">interpolate</a></span>
|
148
|
+
<span style="padding-right: 5px;"><a href="#M000301">lchomp</a></span>
|
149
|
+
<span style="padding-right: 5px;"><a href="#M000302">lchomp!</a></span>
|
150
|
+
<span style="padding-right: 5px;"><a href="#M000293">line_wrap</a></span>
|
151
|
+
<span style="padding-right: 5px;"><a href="#M000257">lines</a></span>
|
152
|
+
<span style="padding-right: 5px;"><a href="#M000271">margin</a></span>
|
153
|
+
<span style="padding-right: 5px;"><a href="#M000272">methodize</a></span>
|
154
|
+
<span style="padding-right: 5px;"><a href="#M000258">modulize</a></span>
|
155
|
+
<span style="padding-right: 5px;"><a href="#M000281">mscan</a></span>
|
156
|
+
<span style="padding-right: 5px;"><a href="#M000285">natcmp</a></span>
|
157
|
+
<span style="padding-right: 5px;"><a href="#M000305">nchar</a></span>
|
158
|
+
<span style="padding-right: 5px;"><a href="#M000270">outdent</a></span>
|
159
|
+
<span style="padding-right: 5px;"><a href="#M000288">pathize</a></span>
|
160
|
+
<span style="padding-right: 5px;"><a href="#M000298">quote</a></span>
|
161
|
+
<span style="padding-right: 5px;"><a href="#M000274">range</a></span>
|
162
|
+
<span style="padding-right: 5px;"><a href="#M000275">range_all</a></span>
|
163
|
+
<span style="padding-right: 5px;"><a href="#M000276">range_of_line</a></span>
|
164
|
+
<span style="padding-right: 5px;"><a href="#M000304">rewrite</a></span>
|
165
|
+
<span style="padding-right: 5px;"><a href="#M000250">shatter</a></span>
|
166
|
+
<span style="padding-right: 5px;"><a href="#M000278">snakecase</a></span>
|
167
|
+
<span style="padding-right: 5px;"><a href="#M000303">splice</a></span>
|
168
|
+
<span style="padding-right: 5px;"><a href="#M000254">start_with?</a></span>
|
169
|
+
<span style="padding-right: 5px;"><a href="#M000265">tab</a></span>
|
170
|
+
<span style="padding-right: 5px;"><a href="#M000266">taballto</a></span>
|
171
|
+
<span style="padding-right: 5px;"><a href="#M000268">tabto</a></span>
|
172
|
+
<span style="padding-right: 5px;"><a href="#M000289">titlecase</a></span>
|
173
|
+
<span style="padding-right: 5px;"><a href="#M000247">to_b</a></span>
|
174
|
+
<span style="padding-right: 5px;"><a href="#M000251">to_re</a></span>
|
175
|
+
<span style="padding-right: 5px;"><a href="#M000252">to_rx</a></span>
|
176
|
+
<span style="padding-right: 5px;"><a href="#M000248">to_s</a></span>
|
177
|
+
<span style="padding-right: 5px;"><a href="#M000296">unbracket</a></span>
|
178
|
+
<span style="padding-right: 5px;"><a href="#M000297">unbracket!</a></span>
|
179
|
+
<span style="padding-right: 5px;"><a href="#M000284">upcase?</a></span>
|
180
|
+
<span style="padding-right: 5px;"><a href="#M000286">variablize</a></span>
|
181
|
+
<span style="padding-right: 5px;"><a href="#M000259">word_wrap</a></span>
|
182
|
+
<span style="padding-right: 5px;"><a href="#M000260">word_wrap!</a></span>
|
183
|
+
<span style="padding-right: 5px;"><a href="#M000290">words</a></span>
|
184
184
|
|
185
185
|
|
186
186
|
|
@@ -198,7 +198,7 @@ Object
|
|
198
198
|
<div class="sectiontitle">Public Class methods</div>
|
199
199
|
<div class="method">
|
200
200
|
<div class="title">
|
201
|
-
<a name="
|
201
|
+
<a name="M000291"></a><b>interpolate</b>(&str)
|
202
202
|
</div>
|
203
203
|
<div class="description">
|
204
204
|
<p>
|
@@ -217,8 +217,8 @@ mechinism.
|
|
217
217
|
</pre>
|
218
218
|
</div>
|
219
219
|
<div class="sourcecode">
|
220
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
221
|
-
<div id="
|
220
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000291_source')" id="l_M000291_source">+</a> ]</p>
|
221
|
+
<div id="M000291_source" class="dyn-source">
|
222
222
|
<pre>
|
223
223
|
<span class="ruby-comment cmt"># File lib/core/facets/string/interpolate.rb, line 15</span>
|
224
224
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">interpolate</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">str</span>)
|
@@ -231,7 +231,7 @@ mechinism.
|
|
231
231
|
<div class="sectiontitle">Public Instance methods</div>
|
232
232
|
<div class="method">
|
233
233
|
<div class="title">
|
234
|
-
<a name="
|
234
|
+
<a name="M000273"></a><b>-</b>(pattern)
|
235
235
|
</div>
|
236
236
|
<div class="description">
|
237
237
|
<p>
|
@@ -244,8 +244,8 @@ Removes occurances of a string or regexp.
|
|
244
244
|
</pre>
|
245
245
|
</div>
|
246
246
|
<div class="sourcecode">
|
247
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
248
|
-
<div id="
|
247
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000273_source')" id="l_M000273_source">+</a> ]</p>
|
248
|
+
<div id="M000273_source" class="dyn-source">
|
249
249
|
<pre>
|
250
250
|
<span class="ruby-comment cmt"># File lib/core/facets/string/op_sub.rb, line 9</span>
|
251
251
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">pattern</span>)
|
@@ -257,7 +257,7 @@ Removes occurances of a string or regexp.
|
|
257
257
|
</div>
|
258
258
|
<div class="method">
|
259
259
|
<div class="title">
|
260
|
-
<a name="
|
260
|
+
<a name="M000306"></a><b>^</b>(aString)
|
261
261
|
</div>
|
262
262
|
<div class="description">
|
263
263
|
<p>
|
@@ -268,8 +268,8 @@ TODO: This is used by crypt.rb, it needs to be documented.
|
|
268
268
|
</p>
|
269
269
|
</div>
|
270
270
|
<div class="sourcecode">
|
271
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
272
|
-
<div id="
|
271
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000306_source')" id="l_M000306_source">+</a> ]</p>
|
272
|
+
<div id="M000306_source" class="dyn-source">
|
273
273
|
<pre>
|
274
274
|
<span class="ruby-comment cmt"># File lib/core/facets/string/xor.rb, line 7</span>
|
275
275
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">^</span>(<span class="ruby-identifier">aString</span>)
|
@@ -291,11 +291,11 @@ TODO: This is used by crypt.rb, it needs to be documented.
|
|
291
291
|
</div>
|
292
292
|
<div class="method">
|
293
293
|
<div class="title">
|
294
|
-
<a name="
|
294
|
+
<a name="M000261"></a><b>align</b>(direction, n, sep="\n", c=' ')
|
295
295
|
</div>
|
296
296
|
<div class="sourcecode">
|
297
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
298
|
-
<div id="
|
297
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000261_source')" id="l_M000261_source">+</a> ]</p>
|
298
|
+
<div id="M000261_source" class="dyn-source">
|
299
299
|
<pre>
|
300
300
|
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 3</span>
|
301
301
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
@@ -316,7 +316,7 @@ TODO: This is used by crypt.rb, it needs to be documented.
|
|
316
316
|
</div>
|
317
317
|
<div class="method">
|
318
318
|
<div class="title">
|
319
|
-
<a name="
|
319
|
+
<a name="M000264"></a><b>align_center</b>(n, sep="\n", c=' ')
|
320
320
|
</div>
|
321
321
|
<div class="description">
|
322
322
|
<p>
|
@@ -348,8 +348,8 @@ changed as can be the padding string which defaults to a single space
|
|
348
348
|
</pre>
|
349
349
|
</div>
|
350
350
|
<div class="sourcecode">
|
351
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
352
|
-
<div id="
|
351
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000264_source')" id="l_M000264_source">+</a> ]</p>
|
352
|
+
<div id="M000264_source" class="dyn-source">
|
353
353
|
<pre>
|
354
354
|
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 97</span>
|
355
355
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_center</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
@@ -365,7 +365,7 @@ changed as can be the padding string which defaults to a single space
|
|
365
365
|
</div>
|
366
366
|
<div class="method">
|
367
367
|
<div class="title">
|
368
|
-
<a name="
|
368
|
+
<a name="M000263"></a><b>align_left</b>(n, sep="\n", c=' ')
|
369
369
|
</div>
|
370
370
|
<div class="description">
|
371
371
|
<p>
|
@@ -397,8 +397,8 @@ changes as can be the padding string which defaults to a single space
|
|
397
397
|
</pre>
|
398
398
|
</div>
|
399
399
|
<div class="sourcecode">
|
400
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
401
|
-
<div id="
|
400
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000263_source')" id="l_M000263_source">+</a> ]</p>
|
401
|
+
<div id="M000263_source" class="dyn-source">
|
402
402
|
<pre>
|
403
403
|
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 67</span>
|
404
404
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_left</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
@@ -414,7 +414,7 @@ changes as can be the padding string which defaults to a single space
|
|
414
414
|
</div>
|
415
415
|
<div class="method">
|
416
416
|
<div class="title">
|
417
|
-
<a name="
|
417
|
+
<a name="M000262"></a><b>align_right</b>(n, sep="\n", c=' ')
|
418
418
|
</div>
|
419
419
|
<div class="description">
|
420
420
|
<p>
|
@@ -443,8 +443,8 @@ defaults to a single space (’ ’).
|
|
443
443
|
</pre>
|
444
444
|
</div>
|
445
445
|
<div class="sourcecode">
|
446
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
447
|
-
<div id="
|
446
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000262_source')" id="l_M000262_source">+</a> ]</p>
|
447
|
+
<div id="M000262_source" class="dyn-source">
|
448
448
|
<pre>
|
449
449
|
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 37</span>
|
450
450
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_right</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
@@ -460,7 +460,7 @@ defaults to a single space (’ ’).
|
|
460
460
|
</div>
|
461
461
|
<div class="method">
|
462
462
|
<div class="title">
|
463
|
-
<a name="
|
463
|
+
<a name="M000308"></a><b>blank?</b>()
|
464
464
|
</div>
|
465
465
|
<div class="description">
|
466
466
|
<p>
|
@@ -472,8 +472,8 @@ Is this string just whitespace?
|
|
472
472
|
</pre>
|
473
473
|
</div>
|
474
474
|
<div class="sourcecode">
|
475
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
476
|
-
<div id="
|
475
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000308_source')" id="l_M000308_source">+</a> ]</p>
|
476
|
+
<div id="M000308_source" class="dyn-source">
|
477
477
|
<pre>
|
478
478
|
<span class="ruby-comment cmt"># File lib/core/facets/blank.rb, line 50</span>
|
479
479
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blank?</span>
|
@@ -485,12 +485,12 @@ Is this string just whitespace?
|
|
485
485
|
</div>
|
486
486
|
<div class="method">
|
487
487
|
<div class="title">
|
488
|
-
<a name="
|
488
|
+
<a name="M000294"></a><b>bracket</b>(bra, ket=nil)
|
489
489
|
</div>
|
490
490
|
<div class="description">
|
491
491
|
<p>
|
492
492
|
Return a new string embraced by given brakets. If only one <a
|
493
|
-
href="String.html#
|
493
|
+
href="String.html#M000294">bracket</a> char is given it will be placed on
|
494
494
|
either side.
|
495
495
|
</p>
|
496
496
|
<pre>
|
@@ -501,8 +501,8 @@ either side.
|
|
501
501
|
</pre>
|
502
502
|
</div>
|
503
503
|
<div class="sourcecode">
|
504
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
505
|
-
<div id="
|
504
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000294_source')" id="l_M000294_source">+</a> ]</p>
|
505
|
+
<div id="M000294_source" class="dyn-source">
|
506
506
|
<pre>
|
507
507
|
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 14</span>
|
508
508
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bracket</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -516,7 +516,7 @@ either side.
|
|
516
516
|
</div>
|
517
517
|
<div class="method">
|
518
518
|
<div class="title">
|
519
|
-
<a name="
|
519
|
+
<a name="M000295"></a><b>bracket!</b>(bra, ket=nil)
|
520
520
|
</div>
|
521
521
|
<div class="description">
|
522
522
|
<p>
|
@@ -527,8 +527,8 @@ Inplace version of braket.
|
|
527
527
|
</pre>
|
528
528
|
</div>
|
529
529
|
<div class="sourcecode">
|
530
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
531
|
-
<div id="
|
530
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000295_source')" id="l_M000295_source">+</a> ]</p>
|
531
|
+
<div id="M000295_source" class="dyn-source">
|
532
532
|
<pre>
|
533
533
|
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 24</span>
|
534
534
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bracket!</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -540,16 +540,16 @@ Inplace version of braket.
|
|
540
540
|
</div>
|
541
541
|
<div class="method">
|
542
542
|
<div class="title">
|
543
|
-
<a name="
|
543
|
+
<a name="M000287"></a><b>bytes</b>()
|
544
544
|
</div>
|
545
545
|
<div class="description">
|
546
546
|
<p>
|
547
|
-
Upacks string into <a href="String.html#
|
547
|
+
Upacks string into <a href="String.html#M000287">bytes</a>.
|
548
548
|
</p>
|
549
549
|
</div>
|
550
550
|
<div class="sourcecode">
|
551
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
552
|
-
<div id="
|
551
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000287_source')" id="l_M000287_source">+</a> ]</p>
|
552
|
+
<div id="M000287_source" class="dyn-source">
|
553
553
|
<pre>
|
554
554
|
<span class="ruby-comment cmt"># File lib/core/facets/string/bytes.rb, line 8</span>
|
555
555
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bytes</span>
|
@@ -561,19 +561,19 @@ Upacks string into <a href="String.html#M000281">bytes</a>.
|
|
561
561
|
</div>
|
562
562
|
<div class="method">
|
563
563
|
<div class="title">
|
564
|
-
<a name="
|
564
|
+
<a name="M000256"></a><b>camelcase</b>(upcase_first_letter=true)
|
565
565
|
</div>
|
566
566
|
<div class="description">
|
567
567
|
<p>
|
568
|
-
Converts a string to <a href="String.html#
|
568
|
+
Converts a string to <a href="String.html#M000256">camelcase</a>.
|
569
569
|
</p>
|
570
570
|
<p>
|
571
|
-
By default <a href="String.html#
|
571
|
+
By default <a href="String.html#M000256">camelcase</a> convert to
|
572
572
|
UpperCamelCase, If an argument is set to <tt>false</tt>, then <a
|
573
|
-
href="String.html#
|
573
|
+
href="String.html#M000256">camelcase</a> will produce lowerCamelCase.
|
574
574
|
</p>
|
575
575
|
<p>
|
576
|
-
<tt><a href="String.html#
|
576
|
+
<tt><a href="String.html#M000256">camelcase</a></tt> also converts
|
577
577
|
’/’ to ’::’ which is useful for converting paths to
|
578
578
|
namespaces.
|
579
579
|
</p>
|
@@ -587,8 +587,8 @@ Examples
|
|
587
587
|
</pre>
|
588
588
|
</div>
|
589
589
|
<div class="sourcecode">
|
590
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
591
|
-
<div id="
|
590
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000256_source')" id="l_M000256_source">+</a> ]</p>
|
591
|
+
<div id="M000256_source" class="dyn-source">
|
592
592
|
<pre>
|
593
593
|
<span class="ruby-comment cmt"># File lib/core/facets/string/camelcase.rb, line 16</span>
|
594
594
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">camelcase</span>(<span class="ruby-identifier">upcase_first_letter</span>=<span class="ruby-keyword kw">true</span>)
|
@@ -605,7 +605,7 @@ Examples
|
|
605
605
|
</div>
|
606
606
|
<div class="method">
|
607
607
|
<div class="title">
|
608
|
-
<a name="
|
608
|
+
<a name="M000282"></a><b>capitalized?</b>()
|
609
609
|
</div>
|
610
610
|
<div class="description">
|
611
611
|
<p>
|
@@ -620,8 +620,8 @@ Return true if the string is capitalized, otherwise false.
|
|
620
620
|
</pre>
|
621
621
|
</div>
|
622
622
|
<div class="sourcecode">
|
623
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
624
|
-
<div id="
|
623
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000282_source')" id="l_M000282_source">+</a> ]</p>
|
624
|
+
<div id="M000282_source" class="dyn-source">
|
625
625
|
<pre>
|
626
626
|
<span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 11</span>
|
627
627
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">capitalized?</span>
|
@@ -633,7 +633,7 @@ Return true if the string is capitalized, otherwise false.
|
|
633
633
|
</div>
|
634
634
|
<div class="method">
|
635
635
|
<div class="title">
|
636
|
-
<a name="
|
636
|
+
<a name="M000300"></a><b>chars</b>()
|
637
637
|
</div>
|
638
638
|
<div class="description">
|
639
639
|
<p>
|
@@ -644,8 +644,8 @@ Returns an array of characters.
|
|
644
644
|
</pre>
|
645
645
|
</div>
|
646
646
|
<div class="sourcecode">
|
647
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
648
|
-
<div id="
|
647
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000300_source')" id="l_M000300_source">+</a> ]</p>
|
648
|
+
<div id="M000300_source" class="dyn-source">
|
649
649
|
<pre>
|
650
650
|
<span class="ruby-comment cmt"># File lib/core/facets/string/chars.rb, line 9</span>
|
651
651
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chars</span>
|
@@ -657,7 +657,7 @@ Returns an array of characters.
|
|
657
657
|
</div>
|
658
658
|
<div class="method">
|
659
659
|
<div class="title">
|
660
|
-
<a name="
|
660
|
+
<a name="M000292"></a><b>cleave</b>(threshold=nil, len=nil)
|
661
661
|
</div>
|
662
662
|
<div class="description">
|
663
663
|
<p>
|
@@ -668,8 +668,8 @@ Cleave a string. Break a string in two parts at the nearest whitespace.
|
|
668
668
|
</pre>
|
669
669
|
</div>
|
670
670
|
<div class="sourcecode">
|
671
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
672
|
-
<div id="
|
671
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000292_source')" id="l_M000292_source">+</a> ]</p>
|
672
|
+
<div id="M000292_source" class="dyn-source">
|
673
673
|
<pre>
|
674
674
|
<span class="ruby-comment cmt"># File lib/core/facets/string/cleave.rb, line 8</span>
|
675
675
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cleave</span>(<span class="ruby-identifier">threshold</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">len</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -705,7 +705,7 @@ Cleave a string. Break a string in two parts at the nearest whitespace.
|
|
705
705
|
</div>
|
706
706
|
<div class="method">
|
707
707
|
<div class="title">
|
708
|
-
<a name="
|
708
|
+
<a name="M000249"></a><b>cmp</b>(other)
|
709
709
|
</div>
|
710
710
|
<div class="description">
|
711
711
|
<p>
|
@@ -722,8 +722,8 @@ compatible with succ.
|
|
722
722
|
</pre>
|
723
723
|
</div>
|
724
724
|
<div class="sourcecode">
|
725
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
726
|
-
<div id="
|
725
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000249_source')" id="l_M000249_source">+</a> ]</p>
|
726
|
+
<div id="M000249_source" class="dyn-source">
|
727
727
|
<pre>
|
728
728
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/cmp.rb, line 31</span>
|
729
729
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmp</span>(<span class="ruby-identifier">other</span>)
|
@@ -737,7 +737,7 @@ compatible with succ.
|
|
737
737
|
</div>
|
738
738
|
<div class="method">
|
739
739
|
<div class="title">
|
740
|
-
<a name="
|
740
|
+
<a name="M000299"></a><b>dequote</b>()
|
741
741
|
</div>
|
742
742
|
<div class="description">
|
743
743
|
<p>
|
@@ -750,8 +750,8 @@ Remove quotes from string.
|
|
750
750
|
</pre>
|
751
751
|
</div>
|
752
752
|
<div class="sourcecode">
|
753
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
754
|
-
<div id="
|
753
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000299_source')" id="l_M000299_source">+</a> ]</p>
|
754
|
+
<div id="M000299_source" class="dyn-source">
|
755
755
|
<pre>
|
756
756
|
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 88</span>
|
757
757
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dequote</span>
|
@@ -775,7 +775,7 @@ Remove quotes from string.
|
|
775
775
|
</div>
|
776
776
|
<div class="method">
|
777
777
|
<div class="title">
|
778
|
-
<a name="
|
778
|
+
<a name="M000280"></a><b>divide</b>( re )
|
779
779
|
</div>
|
780
780
|
<div class="description">
|
781
781
|
<p>
|
@@ -796,8 +796,8 @@ scan, but includes the matches.
|
|
796
796
|
</pre>
|
797
797
|
</div>
|
798
798
|
<div class="sourcecode">
|
799
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
800
|
-
<div id="
|
799
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000280_source')" id="l_M000280_source">+</a> ]</p>
|
800
|
+
<div id="M000280_source" class="dyn-source">
|
801
801
|
<pre>
|
802
802
|
<span class="ruby-comment cmt"># File lib/core/facets/string/divide.rb, line 15</span>
|
803
803
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divide</span>( <span class="ruby-identifier">re</span> )
|
@@ -810,7 +810,7 @@ scan, but includes the matches.
|
|
810
810
|
</div>
|
811
811
|
<div class="method">
|
812
812
|
<div class="title">
|
813
|
-
<a name="
|
813
|
+
<a name="M000283"></a><b>downcase?</b>()
|
814
814
|
</div>
|
815
815
|
<div class="description">
|
816
816
|
<p>
|
@@ -825,8 +825,8 @@ Return true if the string is lowercase (downcase), otherwise false.
|
|
825
825
|
</pre>
|
826
826
|
</div>
|
827
827
|
<div class="sourcecode">
|
828
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
829
|
-
<div id="
|
828
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000283_source')" id="l_M000283_source">+</a> ]</p>
|
829
|
+
<div id="M000283_source" class="dyn-source">
|
830
830
|
<pre>
|
831
831
|
<span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 23</span>
|
832
832
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">downcase?</span>
|
@@ -838,7 +838,7 @@ Return true if the string is lowercase (downcase), otherwise false.
|
|
838
838
|
</div>
|
839
839
|
<div class="method">
|
840
840
|
<div class="title">
|
841
|
-
<a name="
|
841
|
+
<a name="M000279"></a><b>each_char</b>() {|scanner.scan(char || break)| ...}
|
842
842
|
</div>
|
843
843
|
<div class="description">
|
844
844
|
<p>
|
@@ -848,8 +848,8 @@ appropriately.
|
|
848
848
|
</p>
|
849
849
|
</div>
|
850
850
|
<div class="sourcecode">
|
851
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
852
|
-
<div id="
|
851
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000279_source')" id="l_M000279_source">+</a> ]</p>
|
852
|
+
<div id="M000279_source" class="dyn-source">
|
853
853
|
<pre>
|
854
854
|
<span class="ruby-comment cmt"># File lib/core/facets/string/each_char.rb, line 22</span>
|
855
855
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_char</span>
|
@@ -862,7 +862,7 @@ appropriately.
|
|
862
862
|
</div>
|
863
863
|
<div class="method">
|
864
864
|
<div class="title">
|
865
|
-
<a name="
|
865
|
+
<a name="M000307"></a><b>each_word</b>(&block)
|
866
866
|
</div>
|
867
867
|
<div class="description">
|
868
868
|
<p>
|
@@ -873,8 +873,8 @@ Iterate through each word of a string.
|
|
873
873
|
</pre>
|
874
874
|
</div>
|
875
875
|
<div class="sourcecode">
|
876
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
877
|
-
<div id="
|
876
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000307_source')" id="l_M000307_source">+</a> ]</p>
|
877
|
+
<div id="M000307_source" class="dyn-source">
|
878
878
|
<pre>
|
879
879
|
<span class="ruby-comment cmt"># File lib/core/facets/string/each_word.rb, line 9</span>
|
880
880
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_word</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -886,7 +886,7 @@ Iterate through each word of a string.
|
|
886
886
|
</div>
|
887
887
|
<div class="method">
|
888
888
|
<div class="title">
|
889
|
-
<a name="
|
889
|
+
<a name="M000255"></a><b>end_with?</b>(suffix)
|
890
890
|
</div>
|
891
891
|
<div class="description">
|
892
892
|
<p>
|
@@ -901,8 +901,8 @@ Does a string end with the given suffix?
|
|
901
901
|
</pre>
|
902
902
|
</div>
|
903
903
|
<div class="sourcecode">
|
904
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
905
|
-
<div id="
|
904
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000255_source')" id="l_M000255_source">+</a> ]</p>
|
905
|
+
<div id="M000255_source" class="dyn-source">
|
906
906
|
<pre>
|
907
907
|
<span class="ruby-comment cmt"># File lib/core/facets/string/start_with.rb, line 25</span>
|
908
908
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">end_with?</span>(<span class="ruby-identifier">suffix</span>)
|
@@ -914,7 +914,7 @@ Does a string end with the given suffix?
|
|
914
914
|
</div>
|
915
915
|
<div class="method">
|
916
916
|
<div class="title">
|
917
|
-
<a name="
|
917
|
+
<a name="M000267"></a><b>expand_tabs</b>(n=8)
|
918
918
|
</div>
|
919
919
|
<div class="description">
|
920
920
|
<p>
|
@@ -932,8 +932,8 @@ Thanks to GGaramuno for a more efficient algorithm. Very nice.
|
|
932
932
|
</pre>
|
933
933
|
</div>
|
934
934
|
<div class="sourcecode">
|
935
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
936
|
-
<div id="
|
935
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000267_source')" id="l_M000267_source">+</a> ]</p>
|
936
|
+
<div id="M000267_source" class="dyn-source">
|
937
937
|
<pre>
|
938
938
|
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 26</span>
|
939
939
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expand_tabs</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">8</span>)
|
@@ -956,12 +956,12 @@ Thanks to GGaramuno for a more efficient algorithm. Very nice.
|
|
956
956
|
</div>
|
957
957
|
<div class="method">
|
958
958
|
<div class="title">
|
959
|
-
<a name="
|
959
|
+
<a name="M000253"></a><b>fold</b>(ignore_indented=false)
|
960
960
|
</div>
|
961
961
|
<div class="description">
|
962
962
|
<p>
|
963
|
-
Returns a new string with all new <a href="String.html#
|
964
|
-
removed from adjacent <a href="String.html#
|
963
|
+
Returns a new string with all new <a href="String.html#M000257">lines</a>
|
964
|
+
removed from adjacent <a href="String.html#M000257">lines</a> of text.
|
965
965
|
</p>
|
966
966
|
<pre>
|
967
967
|
s = "This is\na test.\n\nIt clumps\nlines of text."
|
@@ -982,8 +982,8 @@ ends in a newline, it is replaced with a single space.
|
|
982
982
|
</pre>
|
983
983
|
</div>
|
984
984
|
<div class="sourcecode">
|
985
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
986
|
-
<div id="
|
985
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000253_source')" id="l_M000253_source">+</a> ]</p>
|
986
|
+
<div id="M000253_source" class="dyn-source">
|
987
987
|
<pre>
|
988
988
|
<span class="ruby-comment cmt"># File lib/core/facets/string/fold.rb, line 19</span>
|
989
989
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fold</span>(<span class="ruby-identifier">ignore_indented</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -1010,13 +1010,13 @@ ends in a newline, it is replaced with a single space.
|
|
1010
1010
|
</div>
|
1011
1011
|
<div class="method">
|
1012
1012
|
<div class="title">
|
1013
|
-
<a name="
|
1013
|
+
<a name="M000269"></a><b>indent</b>(n)
|
1014
1014
|
</div>
|
1015
1015
|
<div class="description">
|
1016
1016
|
<p>
|
1017
1017
|
Indent left or right by n spaces. (This used to be called <a
|
1018
|
-
href="String.html#
|
1019
|
-
href="String.html#
|
1018
|
+
href="String.html#M000265">tab</a> and aliased as <a
|
1019
|
+
href="String.html#M000269">indent</a>.)
|
1020
1020
|
</p>
|
1021
1021
|
<pre>
|
1022
1022
|
CREDIT: Gavin Sinclair
|
@@ -1024,8 +1024,8 @@ href="String.html#M000263">indent</a>.)
|
|
1024
1024
|
</pre>
|
1025
1025
|
</div>
|
1026
1026
|
<div class="sourcecode">
|
1027
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1028
|
-
<div id="
|
1027
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000269_source')" id="l_M000269_source">+</a> ]</p>
|
1028
|
+
<div id="M000269_source" class="dyn-source">
|
1029
1029
|
<pre>
|
1030
1030
|
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 60</span>
|
1031
1031
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">n</span>)
|
@@ -1041,7 +1041,7 @@ href="String.html#M000263">indent</a>.)
|
|
1041
1041
|
</div>
|
1042
1042
|
<div class="method">
|
1043
1043
|
<div class="title">
|
1044
|
-
<a name="
|
1044
|
+
<a name="M000277"></a><b>index_all</b>(s, reuse=false)
|
1045
1045
|
</div>
|
1046
1046
|
<div class="description">
|
1047
1047
|
<p>
|
@@ -1058,8 +1058,8 @@ allows the trailing portion of a match to be reused for subsquent matches.
|
|
1058
1058
|
</pre>
|
1059
1059
|
</div>
|
1060
1060
|
<div class="sourcecode">
|
1061
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1062
|
-
<div id="
|
1061
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000277_source')" id="l_M000277_source">+</a> ]</p>
|
1062
|
+
<div id="M000277_source" class="dyn-source">
|
1063
1063
|
<pre>
|
1064
1064
|
<span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 66</span>
|
1065
1065
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index_all</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">reuse</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -1077,7 +1077,7 @@ allows the trailing portion of a match to be reused for subsquent matches.
|
|
1077
1077
|
</div>
|
1078
1078
|
<div class="method">
|
1079
1079
|
<div class="title">
|
1080
|
-
<a name="
|
1080
|
+
<a name="M000301"></a><b>lchomp</b>(match)
|
1081
1081
|
</div>
|
1082
1082
|
<div class="description">
|
1083
1083
|
<p>
|
@@ -1091,8 +1091,8 @@ Left chomp.
|
|
1091
1091
|
</pre>
|
1092
1092
|
</div>
|
1093
1093
|
<div class="sourcecode">
|
1094
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1095
|
-
<div id="
|
1094
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000301_source')" id="l_M000301_source">+</a> ]</p>
|
1095
|
+
<div id="M000301_source" class="dyn-source">
|
1096
1096
|
<pre>
|
1097
1097
|
<span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 10</span>
|
1098
1098
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp</span>(<span class="ruby-identifier">match</span>)
|
@@ -1108,7 +1108,7 @@ Left chomp.
|
|
1108
1108
|
</div>
|
1109
1109
|
<div class="method">
|
1110
1110
|
<div class="title">
|
1111
|
-
<a name="
|
1111
|
+
<a name="M000302"></a><b>lchomp!</b>(match)
|
1112
1112
|
</div>
|
1113
1113
|
<div class="description">
|
1114
1114
|
<p>
|
@@ -1122,8 +1122,8 @@ In-place left chomp.
|
|
1122
1122
|
</pre>
|
1123
1123
|
</div>
|
1124
1124
|
<div class="sourcecode">
|
1125
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1126
|
-
<div id="
|
1125
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000302_source')" id="l_M000302_source">+</a> ]</p>
|
1126
|
+
<div id="M000302_source" class="dyn-source">
|
1127
1127
|
<pre>
|
1128
1128
|
<span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 25</span>
|
1129
1129
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp!</span>(<span class="ruby-identifier">match</span>)
|
@@ -1138,7 +1138,7 @@ In-place left chomp.
|
|
1138
1138
|
</div>
|
1139
1139
|
<div class="method">
|
1140
1140
|
<div class="title">
|
1141
|
-
<a name="
|
1141
|
+
<a name="M000293"></a><b>line_wrap</b>(width, tabs=4)
|
1142
1142
|
</div>
|
1143
1143
|
<div class="description">
|
1144
1144
|
<p>
|
@@ -1158,8 +1158,8 @@ Line wrap at width.
|
|
1158
1158
|
</pre>
|
1159
1159
|
</div>
|
1160
1160
|
<div class="sourcecode">
|
1161
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1162
|
-
<div id="
|
1161
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000293_source')" id="l_M000293_source">+</a> ]</p>
|
1162
|
+
<div id="M000293_source" class="dyn-source">
|
1163
1163
|
<pre>
|
1164
1164
|
<span class="ruby-comment cmt"># File lib/core/facets/string/line_wrap.rb, line 14</span>
|
1165
1165
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">line_wrap</span>(<span class="ruby-identifier">width</span>, <span class="ruby-identifier">tabs</span>=<span class="ruby-value">4</span>)
|
@@ -1174,7 +1174,7 @@ Line wrap at width.
|
|
1174
1174
|
</div>
|
1175
1175
|
<div class="method">
|
1176
1176
|
<div class="title">
|
1177
|
-
<a name="
|
1177
|
+
<a name="M000257"></a><b>lines</b>()
|
1178
1178
|
</div>
|
1179
1179
|
<div class="description">
|
1180
1180
|
<p>
|
@@ -1185,8 +1185,8 @@ Returns an array of characters.
|
|
1185
1185
|
</pre>
|
1186
1186
|
</div>
|
1187
1187
|
<div class="sourcecode">
|
1188
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1189
|
-
<div id="
|
1188
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000257_source')" id="l_M000257_source">+</a> ]</p>
|
1189
|
+
<div id="M000257_source" class="dyn-source">
|
1190
1190
|
<pre>
|
1191
1191
|
<span class="ruby-comment cmt"># File lib/core/facets/string/lines.rb, line 9</span>
|
1192
1192
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lines</span>
|
@@ -1198,11 +1198,11 @@ Returns an array of characters.
|
|
1198
1198
|
</div>
|
1199
1199
|
<div class="method">
|
1200
1200
|
<div class="title">
|
1201
|
-
<a name="
|
1201
|
+
<a name="M000271"></a><b>margin</b>(n=0)
|
1202
1202
|
</div>
|
1203
1203
|
<div class="description">
|
1204
1204
|
<p>
|
1205
|
-
Provides a <a href="String.html#
|
1205
|
+
Provides a <a href="String.html#M000271">margin</a> controlled string.
|
1206
1206
|
</p>
|
1207
1207
|
<pre>
|
1208
1208
|
x = %Q{
|
@@ -1217,8 +1217,8 @@ Provides a <a href="String.html#M000265">margin</a> controlled string.
|
|
1217
1217
|
</pre>
|
1218
1218
|
</div>
|
1219
1219
|
<div class="sourcecode">
|
1220
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1221
|
-
<div id="
|
1220
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000271_source')" id="l_M000271_source">+</a> ]</p>
|
1221
|
+
<div id="M000271_source" class="dyn-source">
|
1222
1222
|
<pre>
|
1223
1223
|
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 89</span>
|
1224
1224
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">margin</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">0</span>)
|
@@ -1239,7 +1239,7 @@ Provides a <a href="String.html#M000265">margin</a> controlled string.
|
|
1239
1239
|
</div>
|
1240
1240
|
<div class="method">
|
1241
1241
|
<div class="title">
|
1242
|
-
<a name="
|
1242
|
+
<a name="M000272"></a><b>methodize</b>()
|
1243
1243
|
</div>
|
1244
1244
|
<div class="description">
|
1245
1245
|
<p>
|
@@ -1250,12 +1250,16 @@ Translate a (class or module) name to a suitable method name.
|
|
1250
1250
|
</pre>
|
1251
1251
|
</div>
|
1252
1252
|
<div class="sourcecode">
|
1253
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1254
|
-
<div id="
|
1253
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000272_source')" id="l_M000272_source">+</a> ]</p>
|
1254
|
+
<div id="M000272_source" class="dyn-source">
|
1255
1255
|
<pre>
|
1256
1256
|
<span class="ruby-comment cmt"># File lib/core/facets/string/methodize.rb, line 7</span>
|
1257
1257
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">methodize</span>
|
1258
|
-
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([A-Z]+)([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>)
|
1258
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([A-Z]+)([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).
|
1259
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([a-z])([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).
|
1260
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'/'</span>,<span class="ruby-value str">'__'</span>).
|
1261
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'::'</span>,<span class="ruby-value str">'__'</span>).
|
1262
|
+
<span class="ruby-identifier">downcase</span>
|
1259
1263
|
<span class="ruby-keyword kw">end</span>
|
1260
1264
|
</pre>
|
1261
1265
|
</div>
|
@@ -1263,7 +1267,43 @@ Translate a (class or module) name to a suitable method name.
|
|
1263
1267
|
</div>
|
1264
1268
|
<div class="method">
|
1265
1269
|
<div class="title">
|
1266
|
-
<a name="
|
1270
|
+
<a name="M000258"></a><b>modulize</b>()
|
1271
|
+
</div>
|
1272
|
+
<div class="description">
|
1273
|
+
<p>
|
1274
|
+
Converts a string to module name representation.
|
1275
|
+
</p>
|
1276
|
+
<p>
|
1277
|
+
This is essentially <a href="String.html#M000256">camelcase</a>. It also
|
1278
|
+
converts ’/’ to ’::’ which is useful for converting
|
1279
|
+
paths to namespaces.
|
1280
|
+
</p>
|
1281
|
+
<p>
|
1282
|
+
Examples
|
1283
|
+
</p>
|
1284
|
+
<pre>
|
1285
|
+
"method_name".modulize #=> "MethodName"
|
1286
|
+
"method/name".modulize #=> "Method::Name"
|
1287
|
+
</pre>
|
1288
|
+
</div>
|
1289
|
+
<div class="sourcecode">
|
1290
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000258_source')" id="l_M000258_source">+</a> ]</p>
|
1291
|
+
<div id="M000258_source" class="dyn-source">
|
1292
|
+
<pre>
|
1293
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/modulize.rb, line 13</span>
|
1294
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">modulize</span>
|
1295
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'__'</span>,<span class="ruby-value str">'/'</span>).
|
1296
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\/(.?)/</span>){ <span class="ruby-node">"::#{$1.upcase}"</span> }.
|
1297
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/(?:_+|-+)([a-z])/</span>){ <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">upcase</span> }.
|
1298
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/(\A|\s)([a-z])/</span>){ <span class="ruby-identifier">$1</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">$2</span>.<span class="ruby-identifier">upcase</span> }
|
1299
|
+
<span class="ruby-keyword kw">end</span>
|
1300
|
+
</pre>
|
1301
|
+
</div>
|
1302
|
+
</div>
|
1303
|
+
</div>
|
1304
|
+
<div class="method">
|
1305
|
+
<div class="title">
|
1306
|
+
<a name="M000281"></a><b>mscan</b>(re) {|| ...}
|
1267
1307
|
</div>
|
1268
1308
|
<div class="description">
|
1269
1309
|
<p>
|
@@ -1275,8 +1315,8 @@ then matched string ($&).
|
|
1275
1315
|
</pre>
|
1276
1316
|
</div>
|
1277
1317
|
<div class="sourcecode">
|
1278
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1279
|
-
<div id="
|
1318
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000281_source')" id="l_M000281_source">+</a> ]</p>
|
1319
|
+
<div id="M000281_source" class="dyn-source">
|
1280
1320
|
<pre>
|
1281
1321
|
<span class="ruby-comment cmt"># File lib/core/facets/string/mscan.rb, line 8</span>
|
1282
1322
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mscan</span>(<span class="ruby-identifier">re</span>) <span class="ruby-comment cmt">#:yield:</span>
|
@@ -1294,7 +1334,7 @@ then matched string ($&).
|
|
1294
1334
|
</div>
|
1295
1335
|
<div class="method">
|
1296
1336
|
<div class="title">
|
1297
|
-
<a name="
|
1337
|
+
<a name="M000285"></a><b>natcmp</b>(str2, caseInsensitive=false)
|
1298
1338
|
</div>
|
1299
1339
|
<div class="description">
|
1300
1340
|
<p>
|
@@ -1317,8 +1357,8 @@ which does not follow alphabetically. A secondary parameter, if set to
|
|
1317
1357
|
</pre>
|
1318
1358
|
</div>
|
1319
1359
|
<div class="sourcecode">
|
1320
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1321
|
-
<div id="
|
1360
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000285_source')" id="l_M000285_source">+</a> ]</p>
|
1361
|
+
<div id="M000285_source" class="dyn-source">
|
1322
1362
|
<pre>
|
1323
1363
|
<span class="ruby-comment cmt"># File lib/core/facets/string/natcmp.rb, line 47</span>
|
1324
1364
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">natcmp</span>(<span class="ruby-identifier">str2</span>, <span class="ruby-identifier">caseInsensitive</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -1369,7 +1409,7 @@ which does not follow alphabetically. A secondary parameter, if set to
|
|
1369
1409
|
</div>
|
1370
1410
|
<div class="method">
|
1371
1411
|
<div class="title">
|
1372
|
-
<a name="
|
1412
|
+
<a name="M000305"></a><b>nchar</b>(n, replacement=nil)
|
1373
1413
|
</div>
|
1374
1414
|
<div class="description">
|
1375
1415
|
<p>
|
@@ -1391,8 +1431,8 @@ Alternatively a replacement string can be given, which will replace the
|
|
1391
1431
|
</pre>
|
1392
1432
|
</div>
|
1393
1433
|
<div class="sourcecode">
|
1394
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1395
|
-
<div id="
|
1434
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000305_source')" id="l_M000305_source">+</a> ]</p>
|
1435
|
+
<div id="M000305_source" class="dyn-source">
|
1396
1436
|
<pre>
|
1397
1437
|
<span class="ruby-comment cmt"># File lib/core/facets/string/nchar.rb, line 17</span>
|
1398
1438
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nchar</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">replacement</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -1410,7 +1450,7 @@ Alternatively a replacement string can be given, which will replace the
|
|
1410
1450
|
</div>
|
1411
1451
|
<div class="method">
|
1412
1452
|
<div class="title">
|
1413
|
-
<a name="
|
1453
|
+
<a name="M000270"></a><b>outdent</b>(n)
|
1414
1454
|
</div>
|
1415
1455
|
<div class="description">
|
1416
1456
|
<p>
|
@@ -1421,8 +1461,8 @@ Outdent just indents a negative number of spaces.
|
|
1421
1461
|
</pre>
|
1422
1462
|
</div>
|
1423
1463
|
<div class="sourcecode">
|
1424
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1425
|
-
<div id="
|
1464
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000270_source')" id="l_M000270_source">+</a> ]</p>
|
1465
|
+
<div id="M000270_source" class="dyn-source">
|
1426
1466
|
<pre>
|
1427
1467
|
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 72</span>
|
1428
1468
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">outdent</span>(<span class="ruby-identifier">n</span>)
|
@@ -1434,23 +1474,27 @@ Outdent just indents a negative number of spaces.
|
|
1434
1474
|
</div>
|
1435
1475
|
<div class="method">
|
1436
1476
|
<div class="title">
|
1437
|
-
<a name="
|
1477
|
+
<a name="M000288"></a><b>pathize</b>()
|
1438
1478
|
</div>
|
1439
1479
|
<div class="description">
|
1440
1480
|
<p>
|
1441
1481
|
Converts a (class or module) name to a unix path.
|
1442
1482
|
</p>
|
1443
1483
|
<pre>
|
1444
|
-
My::CoolClass.name.pathize #=> "
|
1484
|
+
My::CoolClass.name.pathize #=> "my/cool_class"
|
1445
1485
|
</pre>
|
1446
1486
|
</div>
|
1447
1487
|
<div class="sourcecode">
|
1448
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1449
|
-
<div id="
|
1488
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000288_source')" id="l_M000288_source">+</a> ]</p>
|
1489
|
+
<div id="M000288_source" class="dyn-source">
|
1450
1490
|
<pre>
|
1451
1491
|
<span class="ruby-comment cmt"># File lib/core/facets/string/pathize.rb, line 7</span>
|
1452
1492
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pathize</span>
|
1453
|
-
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([A-Z]+)([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>)
|
1493
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([A-Z]+)([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).
|
1494
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([a-z])([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).
|
1495
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'__'</span>,<span class="ruby-value str">'/'</span>).
|
1496
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'::'</span>,<span class="ruby-value str">'/'</span>).
|
1497
|
+
<span class="ruby-identifier">downcase</span>
|
1454
1498
|
<span class="ruby-keyword kw">end</span>
|
1455
1499
|
</pre>
|
1456
1500
|
</div>
|
@@ -1458,7 +1502,7 @@ Converts a (class or module) name to a unix path.
|
|
1458
1502
|
</div>
|
1459
1503
|
<div class="method">
|
1460
1504
|
<div class="title">
|
1461
|
-
<a name="
|
1505
|
+
<a name="M000298"></a><b>quote</b>(type=:s)
|
1462
1506
|
</div>
|
1463
1507
|
<div class="description">
|
1464
1508
|
<p>
|
@@ -1473,8 +1517,8 @@ then assumes single quotes.
|
|
1473
1517
|
</pre>
|
1474
1518
|
</div>
|
1475
1519
|
<div class="sourcecode">
|
1476
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1477
|
-
<div id="
|
1520
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000298_source')" id="l_M000298_source">+</a> ]</p>
|
1521
|
+
<div id="M000298_source" class="dyn-source">
|
1478
1522
|
<pre>
|
1479
1523
|
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 69</span>
|
1480
1524
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">quote</span>(<span class="ruby-identifier">type</span>=<span class="ruby-identifier">:s</span>)
|
@@ -1495,7 +1539,7 @@ then assumes single quotes.
|
|
1495
1539
|
</div>
|
1496
1540
|
<div class="method">
|
1497
1541
|
<div class="title">
|
1498
|
-
<a name="
|
1542
|
+
<a name="M000274"></a><b>range</b>(s, offset=0)
|
1499
1543
|
</div>
|
1500
1544
|
<div class="description">
|
1501
1545
|
<p>
|
@@ -1508,8 +1552,8 @@ Like index but returns a <a href="Range.html">Range</a>.
|
|
1508
1552
|
</pre>
|
1509
1553
|
</div>
|
1510
1554
|
<div class="sourcecode">
|
1511
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1512
|
-
<div id="
|
1555
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000274_source')" id="l_M000274_source">+</a> ]</p>
|
1556
|
+
<div id="M000274_source" class="dyn-source">
|
1513
1557
|
<pre>
|
1514
1558
|
<span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 9</span>
|
1515
1559
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">offset</span>=<span class="ruby-value">0</span>)
|
@@ -1524,11 +1568,11 @@ Like index but returns a <a href="Range.html">Range</a>.
|
|
1524
1568
|
</div>
|
1525
1569
|
<div class="method">
|
1526
1570
|
<div class="title">
|
1527
|
-
<a name="
|
1571
|
+
<a name="M000275"></a><b>range_all</b>(s, reuse=false)
|
1528
1572
|
</div>
|
1529
1573
|
<div class="description">
|
1530
1574
|
<p>
|
1531
|
-
Like <a href="String.html#
|
1575
|
+
Like <a href="String.html#M000277">index_all</a> but returns an array of
|
1532
1576
|
Ranges.
|
1533
1577
|
</p>
|
1534
1578
|
<pre>
|
@@ -1540,8 +1584,8 @@ Ranges.
|
|
1540
1584
|
</pre>
|
1541
1585
|
</div>
|
1542
1586
|
<div class="sourcecode">
|
1543
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1544
|
-
<div id="
|
1587
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000275_source')" id="l_M000275_source">+</a> ]</p>
|
1588
|
+
<div id="M000275_source" class="dyn-source">
|
1545
1589
|
<pre>
|
1546
1590
|
<span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 24</span>
|
1547
1591
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range_all</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">reuse</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -1563,7 +1607,7 @@ Ranges.
|
|
1563
1607
|
</div>
|
1564
1608
|
<div class="method">
|
1565
1609
|
<div class="title">
|
1566
|
-
<a name="
|
1610
|
+
<a name="M000276"></a><b>range_of_line</b>()
|
1567
1611
|
</div>
|
1568
1612
|
<div class="description">
|
1569
1613
|
<p>
|
@@ -1577,8 +1621,8 @@ Returns an array of ranges mapping the characters per line.
|
|
1577
1621
|
</pre>
|
1578
1622
|
</div>
|
1579
1623
|
<div class="sourcecode">
|
1580
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1581
|
-
<div id="
|
1624
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000276_source')" id="l_M000276_source">+</a> ]</p>
|
1625
|
+
<div id="M000276_source" class="dyn-source">
|
1582
1626
|
<pre>
|
1583
1627
|
<span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 46</span>
|
1584
1628
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range_of_line</span>
|
@@ -1595,7 +1639,7 @@ Returns an array of ranges mapping the characters per line.
|
|
1595
1639
|
</div>
|
1596
1640
|
<div class="method">
|
1597
1641
|
<div class="title">
|
1598
|
-
<a name="
|
1642
|
+
<a name="M000304"></a><b>rewrite</b>(rules)
|
1599
1643
|
</div>
|
1600
1644
|
<div class="description">
|
1601
1645
|
<p>
|
@@ -1619,8 +1663,8 @@ The rewritten string.
|
|
1619
1663
|
</pre>
|
1620
1664
|
</div>
|
1621
1665
|
<div class="sourcecode">
|
1622
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1623
|
-
<div id="
|
1666
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000304_source')" id="l_M000304_source">+</a> ]</p>
|
1667
|
+
<div id="M000304_source" class="dyn-source">
|
1624
1668
|
<pre>
|
1625
1669
|
<span class="ruby-comment cmt"># File lib/core/facets/string/rewrite.rb, line 18</span>
|
1626
1670
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rewrite</span>(<span class="ruby-identifier">rules</span>)
|
@@ -1637,7 +1681,7 @@ The rewritten string.
|
|
1637
1681
|
</div>
|
1638
1682
|
<div class="method">
|
1639
1683
|
<div class="title">
|
1640
|
-
<a name="
|
1684
|
+
<a name="M000250"></a><b>shatter</b>( re )
|
1641
1685
|
</div>
|
1642
1686
|
<div class="description">
|
1643
1687
|
<p>
|
@@ -1658,8 +1702,8 @@ scan, but includes the matches.
|
|
1658
1702
|
</pre>
|
1659
1703
|
</div>
|
1660
1704
|
<div class="sourcecode">
|
1661
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1662
|
-
<div id="
|
1705
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000250_source')" id="l_M000250_source">+</a> ]</p>
|
1706
|
+
<div id="M000250_source" class="dyn-source">
|
1663
1707
|
<pre>
|
1664
1708
|
<span class="ruby-comment cmt"># File lib/core/facets/string/shatter.rb, line 15</span>
|
1665
1709
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shatter</span>( <span class="ruby-identifier">re</span> )
|
@@ -1674,12 +1718,12 @@ scan, but includes the matches.
|
|
1674
1718
|
</div>
|
1675
1719
|
<div class="method">
|
1676
1720
|
<div class="title">
|
1677
|
-
<a name="
|
1721
|
+
<a name="M000278"></a><b>snakecase</b>()
|
1678
1722
|
</div>
|
1679
1723
|
<div class="description">
|
1680
1724
|
<p>
|
1681
|
-
The reverse of <tt><a href="String.html#
|
1682
|
-
an underscored of a <a href="String.html#
|
1725
|
+
The reverse of <tt><a href="String.html#M000256">camelcase</a></tt>. Makes
|
1726
|
+
an underscored of a <a href="String.html#M000256">camelcase</a> string.
|
1683
1727
|
</p>
|
1684
1728
|
<p>
|
1685
1729
|
Changes ’::’ to ’/’ to convert namespaces to paths.
|
@@ -1694,8 +1738,8 @@ Examples
|
|
1694
1738
|
</pre>
|
1695
1739
|
</div>
|
1696
1740
|
<div class="sourcecode">
|
1697
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1698
|
-
<div id="
|
1741
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000278_source')" id="l_M000278_source">+</a> ]</p>
|
1742
|
+
<div id="M000278_source" class="dyn-source">
|
1699
1743
|
<pre>
|
1700
1744
|
<span class="ruby-comment cmt"># File lib/core/facets/string/snakecase.rb, line 12</span>
|
1701
1745
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">snakecase</span>
|
@@ -1711,14 +1755,21 @@ Examples
|
|
1711
1755
|
</div>
|
1712
1756
|
<div class="method">
|
1713
1757
|
<div class="title">
|
1714
|
-
<a name="
|
1758
|
+
<a name="M000303"></a><b>splice</b>(idx, sub=nil)
|
1715
1759
|
</div>
|
1716
1760
|
<div class="description">
|
1717
1761
|
<p>
|
1718
|
-
|
1719
|
-
|
1762
|
+
This is basically the same as store, but it acts like slice! when given
|
1763
|
+
only one argument.
|
1764
|
+
</p>
|
1765
|
+
<p>
|
1766
|
+
Essentlay slice, but writes rather than reads.
|
1720
1767
|
</p>
|
1721
1768
|
<pre>
|
1769
|
+
a = "HELLO"
|
1770
|
+
a.splice("X", 1)
|
1771
|
+
a #=> "HXLLO"
|
1772
|
+
|
1722
1773
|
a = "HELLO"
|
1723
1774
|
a.splice(1) #=> "E"
|
1724
1775
|
a #=> "HLLO"
|
@@ -1727,15 +1778,20 @@ when given only one argument.
|
|
1727
1778
|
</pre>
|
1728
1779
|
</div>
|
1729
1780
|
<div class="sourcecode">
|
1730
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1731
|
-
<div id="
|
1781
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000303_source')" id="l_M000303_source">+</a> ]</p>
|
1782
|
+
<div id="M000303_source" class="dyn-source">
|
1732
1783
|
<pre>
|
1733
|
-
<span class="ruby-comment cmt"># File lib/core/facets/string/splice.rb, line
|
1734
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">splice</span>(<span class="ruby-
|
1735
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">
|
1736
|
-
<span class="ruby-identifier">
|
1784
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/splice.rb, line 20</span>
|
1785
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">splice</span>(<span class="ruby-identifier">idx</span>, <span class="ruby-identifier">sub</span>=<span class="ruby-keyword kw">nil</span>)
|
1786
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sub</span>
|
1787
|
+
<span class="ruby-identifier">store</span>(<span class="ruby-identifier">idx</span>, <span class="ruby-identifier">sub</span>)
|
1737
1788
|
<span class="ruby-keyword kw">else</span>
|
1738
|
-
<span class="ruby-
|
1789
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">idx</span>
|
1790
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">Range</span>
|
1791
|
+
<span class="ruby-identifier">slice!</span>(<span class="ruby-identifier">idx</span>)
|
1792
|
+
<span class="ruby-keyword kw">else</span>
|
1793
|
+
<span class="ruby-identifier">slice!</span>(<span class="ruby-identifier">idx</span>,<span class="ruby-value">1</span>)
|
1794
|
+
<span class="ruby-keyword kw">end</span>
|
1739
1795
|
<span class="ruby-keyword kw">end</span>
|
1740
1796
|
<span class="ruby-keyword kw">end</span>
|
1741
1797
|
</pre>
|
@@ -1744,7 +1800,7 @@ when given only one argument.
|
|
1744
1800
|
</div>
|
1745
1801
|
<div class="method">
|
1746
1802
|
<div class="title">
|
1747
|
-
<a name="
|
1803
|
+
<a name="M000254"></a><b>start_with?</b>(prefix)
|
1748
1804
|
</div>
|
1749
1805
|
<div class="description">
|
1750
1806
|
<p>
|
@@ -1759,8 +1815,8 @@ Does a string start with the given prefix.
|
|
1759
1815
|
</pre>
|
1760
1816
|
</div>
|
1761
1817
|
<div class="sourcecode">
|
1762
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1763
|
-
<div id="
|
1818
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000254_source')" id="l_M000254_source">+</a> ]</p>
|
1819
|
+
<div id="M000254_source" class="dyn-source">
|
1764
1820
|
<pre>
|
1765
1821
|
<span class="ruby-comment cmt"># File lib/core/facets/string/start_with.rb, line 13</span>
|
1766
1822
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_with?</span>(<span class="ruby-identifier">prefix</span>)
|
@@ -1772,7 +1828,7 @@ Does a string start with the given prefix.
|
|
1772
1828
|
</div>
|
1773
1829
|
<div class="method">
|
1774
1830
|
<div class="title">
|
1775
|
-
<a name="
|
1831
|
+
<a name="M000265"></a><b>tab</b>(n)
|
1776
1832
|
</div>
|
1777
1833
|
<div class="description">
|
1778
1834
|
<p>
|
@@ -1784,11 +1840,11 @@ Aligns each line n spaces.
|
|
1784
1840
|
</div>
|
1785
1841
|
<div class="aka">
|
1786
1842
|
This method is also aliased as
|
1787
|
-
<a href="String.html#
|
1843
|
+
<a href="String.html#M000266">taballto</a>
|
1788
1844
|
</div>
|
1789
1845
|
<div class="sourcecode">
|
1790
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1791
|
-
<div id="
|
1846
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000265_source')" id="l_M000265_source">+</a> ]</p>
|
1847
|
+
<div id="M000265_source" class="dyn-source">
|
1792
1848
|
<pre>
|
1793
1849
|
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 10</span>
|
1794
1850
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tab</span>(<span class="ruby-identifier">n</span>)
|
@@ -1800,17 +1856,17 @@ Aligns each line n spaces.
|
|
1800
1856
|
</div>
|
1801
1857
|
<div class="method">
|
1802
1858
|
<div class="title">
|
1803
|
-
<a name="
|
1859
|
+
<a name="M000266"></a><b>taballto</b>(n)
|
1804
1860
|
</div>
|
1805
1861
|
<div class="description">
|
1806
1862
|
<p>
|
1807
|
-
Alias for <a href="String.html#
|
1863
|
+
Alias for <a href="String.html#M000265">tab</a>
|
1808
1864
|
</p>
|
1809
1865
|
</div>
|
1810
1866
|
</div>
|
1811
1867
|
<div class="method">
|
1812
1868
|
<div class="title">
|
1813
|
-
<a name="
|
1869
|
+
<a name="M000268"></a><b>tabto</b>(n)
|
1814
1870
|
</div>
|
1815
1871
|
<div class="description">
|
1816
1872
|
<p>
|
@@ -1822,8 +1878,8 @@ before nonspace.
|
|
1822
1878
|
</pre>
|
1823
1879
|
</div>
|
1824
1880
|
<div class="sourcecode">
|
1825
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1826
|
-
<div id="
|
1881
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000268_source')" id="l_M000268_source">+</a> ]</p>
|
1882
|
+
<div id="M000268_source" class="dyn-source">
|
1827
1883
|
<pre>
|
1828
1884
|
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 46</span>
|
1829
1885
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tabto</span>(<span class="ruby-identifier">n</span>)
|
@@ -1839,7 +1895,7 @@ before nonspace.
|
|
1839
1895
|
</div>
|
1840
1896
|
<div class="method">
|
1841
1897
|
<div class="title">
|
1842
|
-
<a name="
|
1898
|
+
<a name="M000289"></a><b>titlecase</b>()
|
1843
1899
|
</div>
|
1844
1900
|
<div class="description">
|
1845
1901
|
<p>
|
@@ -1853,8 +1909,8 @@ Title case.
|
|
1853
1909
|
</pre>
|
1854
1910
|
</div>
|
1855
1911
|
<div class="sourcecode">
|
1856
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1857
|
-
<div id="
|
1912
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000289_source')" id="l_M000289_source">+</a> ]</p>
|
1913
|
+
<div id="M000289_source" class="dyn-source">
|
1858
1914
|
<pre>
|
1859
1915
|
<span class="ruby-comment cmt"># File lib/core/facets/string/titlecase.rb, line 10</span>
|
1860
1916
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">titlecase</span>
|
@@ -1866,7 +1922,7 @@ Title case.
|
|
1866
1922
|
</div>
|
1867
1923
|
<div class="method">
|
1868
1924
|
<div class="title">
|
1869
|
-
<a name="
|
1925
|
+
<a name="M000247"></a><b>to_b</b>()
|
1870
1926
|
</div>
|
1871
1927
|
<div class="description">
|
1872
1928
|
<p>
|
@@ -1888,8 +1944,8 @@ Examples:
|
|
1888
1944
|
</pre>
|
1889
1945
|
</div>
|
1890
1946
|
<div class="sourcecode">
|
1891
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1892
|
-
<div id="
|
1947
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000247_source')" id="l_M000247_source">+</a> ]</p>
|
1948
|
+
<div id="M000247_source" class="dyn-source">
|
1893
1949
|
<pre>
|
1894
1950
|
<span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 43</span>
|
1895
1951
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_b</span>
|
@@ -1908,7 +1964,7 @@ Examples:
|
|
1908
1964
|
</div>
|
1909
1965
|
<div class="method">
|
1910
1966
|
<div class="title">
|
1911
|
-
<a name="
|
1967
|
+
<a name="M000251"></a><b>to_re</b>(esc=false)
|
1912
1968
|
</div>
|
1913
1969
|
<div class="description">
|
1914
1970
|
<p>
|
@@ -1921,8 +1977,8 @@ Turns a string into a regular expression.
|
|
1921
1977
|
</pre>
|
1922
1978
|
</div>
|
1923
1979
|
<div class="sourcecode">
|
1924
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1925
|
-
<div id="
|
1980
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000251_source')" id="l_M000251_source">+</a> ]</p>
|
1981
|
+
<div id="M000251_source" class="dyn-source">
|
1926
1982
|
<pre>
|
1927
1983
|
<span class="ruby-comment cmt"># File lib/core/facets/string/to_re.rb, line 9</span>
|
1928
1984
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_re</span>(<span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -1934,7 +1990,7 @@ Turns a string into a regular expression.
|
|
1934
1990
|
</div>
|
1935
1991
|
<div class="method">
|
1936
1992
|
<div class="title">
|
1937
|
-
<a name="
|
1993
|
+
<a name="M000252"></a><b>to_rx</b>(esc=true)
|
1938
1994
|
</div>
|
1939
1995
|
<div class="description">
|
1940
1996
|
<p>
|
@@ -1948,8 +2004,8 @@ characters. Use <tt>false</tt> argument to turn off escaping.
|
|
1948
2004
|
</pre>
|
1949
2005
|
</div>
|
1950
2006
|
<div class="sourcecode">
|
1951
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1952
|
-
<div id="
|
2007
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000252_source')" id="l_M000252_source">+</a> ]</p>
|
2008
|
+
<div id="M000252_source" class="dyn-source">
|
1953
2009
|
<pre>
|
1954
2010
|
<span class="ruby-comment cmt"># File lib/core/facets/string/to_re.rb, line 21</span>
|
1955
2011
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_rx</span>(<span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">true</span>)
|
@@ -1961,11 +2017,11 @@ characters. Use <tt>false</tt> argument to turn off escaping.
|
|
1961
2017
|
</div>
|
1962
2018
|
<div class="method">
|
1963
2019
|
<div class="title">
|
1964
|
-
<a name="
|
2020
|
+
<a name="M000248"></a><b>to_s</b>()
|
1965
2021
|
</div>
|
1966
2022
|
<div class="sourcecode">
|
1967
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1968
|
-
<div id="
|
2023
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000248_source')" id="l_M000248_source">+</a> ]</p>
|
2024
|
+
<div id="M000248_source" class="dyn-source">
|
1969
2025
|
<pre>
|
1970
2026
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/bound.rb, line 2</span>
|
1971
2027
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
@@ -1977,12 +2033,12 @@ characters. Use <tt>false</tt> argument to turn off escaping.
|
|
1977
2033
|
</div>
|
1978
2034
|
<div class="method">
|
1979
2035
|
<div class="title">
|
1980
|
-
<a name="
|
2036
|
+
<a name="M000296"></a><b>unbracket</b>(bra=nil, ket=nil)
|
1981
2037
|
</div>
|
1982
2038
|
<div class="description">
|
1983
2039
|
<p>
|
1984
2040
|
Return a new string embraced by given brakets. If only one <a
|
1985
|
-
href="String.html#
|
2041
|
+
href="String.html#M000294">bracket</a> char is given it will be placed on
|
1986
2042
|
either side.
|
1987
2043
|
</p>
|
1988
2044
|
<pre>
|
@@ -1993,8 +2049,8 @@ either side.
|
|
1993
2049
|
</pre>
|
1994
2050
|
</div>
|
1995
2051
|
<div class="sourcecode">
|
1996
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1997
|
-
<div id="
|
2052
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000296_source')" id="l_M000296_source">+</a> ]</p>
|
2053
|
+
<div id="M000296_source" class="dyn-source">
|
1998
2054
|
<pre>
|
1999
2055
|
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 37</span>
|
2000
2056
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unbracket</span>(<span class="ruby-identifier">bra</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -2018,7 +2074,7 @@ either side.
|
|
2018
2074
|
</div>
|
2019
2075
|
<div class="method">
|
2020
2076
|
<div class="title">
|
2021
|
-
<a name="
|
2077
|
+
<a name="M000297"></a><b>unbracket!</b>(bra=nil, ket=nil)
|
2022
2078
|
</div>
|
2023
2079
|
<div class="description">
|
2024
2080
|
<p>
|
@@ -2029,8 +2085,8 @@ Inplace version of debraket.
|
|
2029
2085
|
</pre>
|
2030
2086
|
</div>
|
2031
2087
|
<div class="sourcecode">
|
2032
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2033
|
-
<div id="
|
2088
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000297_source')" id="l_M000297_source">+</a> ]</p>
|
2089
|
+
<div id="M000297_source" class="dyn-source">
|
2034
2090
|
<pre>
|
2035
2091
|
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 57</span>
|
2036
2092
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unbracket!</span>(<span class="ruby-identifier">bra</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -2042,7 +2098,7 @@ Inplace version of debraket.
|
|
2042
2098
|
</div>
|
2043
2099
|
<div class="method">
|
2044
2100
|
<div class="title">
|
2045
|
-
<a name="
|
2101
|
+
<a name="M000284"></a><b>upcase?</b>()
|
2046
2102
|
</div>
|
2047
2103
|
<div class="description">
|
2048
2104
|
<p>
|
@@ -2057,8 +2113,8 @@ Is the string upcase/uppercase?
|
|
2057
2113
|
</pre>
|
2058
2114
|
</div>
|
2059
2115
|
<div class="sourcecode">
|
2060
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2061
|
-
<div id="
|
2116
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000284_source')" id="l_M000284_source">+</a> ]</p>
|
2117
|
+
<div id="M000284_source" class="dyn-source">
|
2062
2118
|
<pre>
|
2063
2119
|
<span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 38</span>
|
2064
2120
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">upcase?</span>
|
@@ -2070,7 +2126,7 @@ Is the string upcase/uppercase?
|
|
2070
2126
|
</div>
|
2071
2127
|
<div class="method">
|
2072
2128
|
<div class="title">
|
2073
|
-
<a name="
|
2129
|
+
<a name="M000286"></a><b>variablize</b>()
|
2074
2130
|
</div>
|
2075
2131
|
<div class="description">
|
2076
2132
|
<p>
|
@@ -2079,12 +2135,13 @@ variable name. This also replaces non-valid characters with underscores.
|
|
2079
2135
|
</p>
|
2080
2136
|
</div>
|
2081
2137
|
<div class="sourcecode">
|
2082
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2083
|
-
<div id="
|
2138
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000286_source')" id="l_M000286_source">+</a> ]</p>
|
2139
|
+
<div id="M000286_source" class="dyn-source">
|
2084
2140
|
<pre>
|
2085
2141
|
<span class="ruby-comment cmt"># File lib/core/facets/string/variablize.rb, line 7</span>
|
2086
2142
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">variablize</span>
|
2087
|
-
<span class="ruby-
|
2143
|
+
<span class="ruby-identifier">v</span> = <span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\W/</span>, <span class="ruby-value str">'_'</span>)
|
2144
|
+
<span class="ruby-node">"@#{v}"</span>
|
2088
2145
|
<span class="ruby-keyword kw">end</span>
|
2089
2146
|
</pre>
|
2090
2147
|
</div>
|
@@ -2092,7 +2149,7 @@ variable name. This also replaces non-valid characters with underscores.
|
|
2092
2149
|
</div>
|
2093
2150
|
<div class="method">
|
2094
2151
|
<div class="title">
|
2095
|
-
<a name="
|
2152
|
+
<a name="M000259"></a><b>word_wrap</b>( col_width=80 )
|
2096
2153
|
</div>
|
2097
2154
|
<div class="description">
|
2098
2155
|
<p>
|
@@ -2119,8 +2176,8 @@ most use cases.
|
|
2119
2176
|
</pre>
|
2120
2177
|
</div>
|
2121
2178
|
<div class="sourcecode">
|
2122
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2123
|
-
<div id="
|
2179
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000259_source')" id="l_M000259_source">+</a> ]</p>
|
2180
|
+
<div id="M000259_source" class="dyn-source">
|
2124
2181
|
<pre>
|
2125
2182
|
<span class="ruby-comment cmt"># File lib/core/facets/string/word_wrap.rb, line 19</span>
|
2126
2183
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">word_wrap</span>( <span class="ruby-identifier">col_width</span>=<span class="ruby-value">80</span> )
|
@@ -2132,11 +2189,11 @@ most use cases.
|
|
2132
2189
|
</div>
|
2133
2190
|
<div class="method">
|
2134
2191
|
<div class="title">
|
2135
|
-
<a name="
|
2192
|
+
<a name="M000260"></a><b>word_wrap!</b>( col_width=80 )
|
2136
2193
|
</div>
|
2137
2194
|
<div class="description">
|
2138
2195
|
<p>
|
2139
|
-
As with <a href="String.html#
|
2196
|
+
As with <a href="String.html#M000259">word_wrap</a>, but modifies the
|
2140
2197
|
string in place.
|
2141
2198
|
</p>
|
2142
2199
|
<pre>
|
@@ -2145,8 +2202,8 @@ string in place.
|
|
2145
2202
|
</pre>
|
2146
2203
|
</div>
|
2147
2204
|
<div class="sourcecode">
|
2148
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2149
|
-
<div id="
|
2205
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000260_source')" id="l_M000260_source">+</a> ]</p>
|
2206
|
+
<div id="M000260_source" class="dyn-source">
|
2150
2207
|
<pre>
|
2151
2208
|
<span class="ruby-comment cmt"># File lib/core/facets/string/word_wrap.rb, line 28</span>
|
2152
2209
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">word_wrap!</span>( <span class="ruby-identifier">col_width</span>=<span class="ruby-value">80</span> )
|
@@ -2160,7 +2217,7 @@ string in place.
|
|
2160
2217
|
</div>
|
2161
2218
|
<div class="method">
|
2162
2219
|
<div class="title">
|
2163
|
-
<a name="
|
2220
|
+
<a name="M000290"></a><b>words</b>()
|
2164
2221
|
</div>
|
2165
2222
|
<div class="description">
|
2166
2223
|
<p>
|
@@ -2171,8 +2228,8 @@ Returns an array of characters.
|
|
2171
2228
|
</pre>
|
2172
2229
|
</div>
|
2173
2230
|
<div class="sourcecode">
|
2174
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2175
|
-
<div id="
|
2231
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000290_source')" id="l_M000290_source">+</a> ]</p>
|
2232
|
+
<div id="M000290_source" class="dyn-source">
|
2176
2233
|
<pre>
|
2177
2234
|
<span class="ruby-comment cmt"># File lib/core/facets/string/words.rb, line 7</span>
|
2178
2235
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">words</span>
|