facets 2.5.2 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.rdoc +2245 -0
- data/MANIFEST +20 -725
- data/{README → README.rdoc} +0 -0
- data/RELEASE +37 -48
- data/doc/log/stats/index.html +39 -0
- data/doc/notes/CHANGES +2529 -0
- data/lib/{more → core}/facets/binding/opvars.rb +0 -0
- data/lib/core/facets/integer/length.rb +16 -0
- data/lib/core/facets/kernel/state.rb +50 -0
- data/lib/core/facets/module/extend.rb +2 -2
- data/lib/core/facets/string/camelcase.rb +33 -9
- data/lib/core/facets/string/lowercase.rb +1 -0
- data/lib/core/facets/string/methodize.rb +10 -1
- data/lib/core/facets/string/modulize.rb +8 -0
- data/lib/core/facets/string/pathize.rb +10 -0
- data/lib/core/facets/string/snakecase.rb +2 -2
- data/lib/core/facets/string/underscore.rb +21 -0
- data/lib/core/facets/string/uppercase.rb +23 -0
- data/lib/more/facets/censor.rb +97 -0
- data/lib/more/facets/minitar.rb +11 -11
- data/lib/more/facets/platform.rb +47 -0
- data/lib/more/facets/pry.rb +32 -0
- data/lib/more/facets/string/obfuscate.rb +65 -0
- data/lib/more/facets/string/stylize.rb +169 -0
- data/lib/more/facets/string/words.rb +10 -13
- data/meta/modified +1 -0
- data/meta/package +1 -0
- data/meta/version +1 -0
- data/test/core/integer/test_length.rb +12 -0
- metadata +41 -822
- data/CHANGES +0 -133
- data/VERSION +0 -1
- data/doc/changelogs/CHANGELOG-0.10.30 +0 -239
- data/doc/changelogs/CHANGELOG-1.8.54 +0 -450
- data/doc/changelogs/CHANGELOG-2.4.5 +0 -1654
- data/doc/rdoc/core/classes/Array.html +0 -1208
- data/doc/rdoc/core/classes/Binding.html +0 -364
- data/doc/rdoc/core/classes/Class.html +0 -444
- data/doc/rdoc/core/classes/Comparable.html +0 -250
- data/doc/rdoc/core/classes/Dir.html +0 -395
- data/doc/rdoc/core/classes/Enumerable.html +0 -1262
- data/doc/rdoc/core/classes/Enumerable/Enumerator.html +0 -243
- data/doc/rdoc/core/classes/Enumerator.html +0 -242
- data/doc/rdoc/core/classes/Exception.html +0 -163
- data/doc/rdoc/core/classes/FalseClass.html +0 -131
- data/doc/rdoc/core/classes/File.html +0 -576
- data/doc/rdoc/core/classes/FileTest.html +0 -116
- data/doc/rdoc/core/classes/Float.html +0 -159
- data/doc/rdoc/core/classes/Functor.html +0 -171
- data/doc/rdoc/core/classes/Hash.html +0 -2184
- data/doc/rdoc/core/classes/Indexable.html +0 -629
- data/doc/rdoc/core/classes/InstanceVariables.html +0 -306
- data/doc/rdoc/core/classes/Integer.html +0 -583
- data/doc/rdoc/core/classes/Kernel.html +0 -2269
- data/doc/rdoc/core/classes/Lazy.html +0 -96
- data/doc/rdoc/core/classes/Lazy/Future.html +0 -100
- data/doc/rdoc/core/classes/Lazy/Promise.html +0 -114
- data/doc/rdoc/core/classes/Lazy/PromiseSafe.html +0 -99
- data/doc/rdoc/core/classes/MatchData.html +0 -204
- data/doc/rdoc/core/classes/Module.html +0 -1316
- data/doc/rdoc/core/classes/NilClass.html +0 -217
- data/doc/rdoc/core/classes/Numeric.html +0 -251
- data/doc/rdoc/core/classes/Object.html +0 -161
- data/doc/rdoc/core/classes/ObjectSpace.html +0 -114
- data/doc/rdoc/core/classes/Proc.html +0 -302
- data/doc/rdoc/core/classes/Range.html +0 -360
- data/doc/rdoc/core/classes/Regexp.html +0 -191
- data/doc/rdoc/core/classes/Stackable.html +0 -262
- data/doc/rdoc/core/classes/String.html +0 -2332
- data/doc/rdoc/core/classes/Struct.html +0 -121
- data/doc/rdoc/core/classes/Symbol.html +0 -441
- data/doc/rdoc/core/classes/Time.html +0 -521
- data/doc/rdoc/core/classes/TrueClass.html +0 -131
- data/doc/rdoc/core/classes/UnboundMethod.html +0 -200
- data/doc/rdoc/core/created.rid +0 -1
- data/doc/rdoc/core/files/README.html +0 -287
- data/doc/rdoc/core/files/doc/README_core.html +0 -230
- data/doc/rdoc/core/files/lib/core/facets/array/combination_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/array/conjoin_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/array/delete_rb.html +0 -101
- data/doc/rdoc/core/files/lib/core/facets/array/delete_unless_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/array/delete_values_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/array/index_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/array/indexable_rb.html +0 -97
- data/doc/rdoc/core/files/lib/core/facets/array/merge_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/array/not_empty_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/array/only_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/array/pad_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/array/permutation_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/array/product_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/array/recursively_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/array/rotate_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/array/select_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/array/splice_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/array/stackable_rb.html +0 -97
- data/doc/rdoc/core/files/lib/core/facets/array/traverse_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/array_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/binding/caller_rb.html +0 -97
- data/doc/rdoc/core/files/lib/core/facets/binding/callstack_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/binding/defined_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/binding/eval_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/binding/local_variables_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/binding/self_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/binding_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/bitmask_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/blank_rb.html +0 -97
- data/doc/rdoc/core/files/lib/core/facets/boolean_rb.html +0 -126
- data/doc/rdoc/core/files/lib/core/facets/cattr_rb.html +0 -100
- data/doc/rdoc/core/files/lib/core/facets/class/cattr_accessor_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/class/cattr_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/class/cattr_reader_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/class/cattr_writer_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/class/descendents_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/class/methodize_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/class/pathize_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/class/prepend_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/class/subclasses_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/class/to_proc_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/class_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/comparable/at_least_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/comparable/at_most_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/comparable/bound_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/comparable/cap_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/comparable/clip_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/comparable/cmp_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/comparable/comparable_rb.html +0 -109
- data/doc/rdoc/core/files/lib/core/facets/comparable_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/dir/ascend_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/dir/descend_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/dir/multiglob_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/dir/parent_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/dir/recurse_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/dir_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/accumulate_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/enumerable/cluster_by_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/enumerable/collect_rb.html +0 -101
- data/doc/rdoc/core/files/lib/core/facets/enumerable/commonality_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/compact_map_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/count_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/divide_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/duplicates_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/each_by_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/enumerable/entropy_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/enumerable/frequency_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/graph_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/enumerable/group_by_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/inject_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/map_send_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/map_with_index_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/mash_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/mode_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/modulate_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/none_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/occur_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/one_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/probability_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/split_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/sum_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/take_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable/uniq_by_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/enumerable_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/exception/detail_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/exception/suppress_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/exception_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/file/append_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/file/create_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/file/null_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/file/read_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/file/rewrite_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/file/rootname_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/file/split_all_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/file/split_root_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/file/write_rb.html +0 -102
- data/doc/rdoc/core/files/lib/core/facets/file/writelines_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/file_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/filetest/root_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/filetest_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/float/round_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/float_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/functor_rb.html +0 -151
- data/doc/rdoc/core/files/lib/core/facets/hash/alias_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/argumentize_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/at_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/autonew_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/collate_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/dearray_values_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/delete_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/diff_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/except_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/group_by_value_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/insert_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/inverse_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/join_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/keys_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/mash_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/hash/merge_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/new_with_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/op_add_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/op_and_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/op_mul_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/op_or_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/op_push_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/op_rb.html +0 -101
- data/doc/rdoc/core/files/lib/core/facets/hash/op_sub_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/recursive_merge_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/recursively_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/rekey_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/hash/replace_each_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/select_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/slice_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/hash/stringify_keys_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/hash/swap_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/symbolize_keys_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/hash/to_h_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/hash/to_options_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/hash/to_proc_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/to_struct_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/traverse_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/update_each_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/update_keys_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/update_rb.html +0 -103
- data/doc/rdoc/core/files/lib/core/facets/hash/update_values_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/weave_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash/zipnew_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/hash_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/indexable_rb.html +0 -113
- data/doc/rdoc/core/files/lib/core/facets/integer/even_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/integer/factorial_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/integer/multiple_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/integer/odd_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/integer/of_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/integer/ordinal_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/integer_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/__callee___rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/kernel/__class___rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/__dir___rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/__get___rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/__here___rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/__method___rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/__set___rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/kernel/as_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/kernel/ask_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/attr_singleton_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/callstack_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/complete_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/constant_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/d_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/deep_copy_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/demo_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/ergo_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/kernel/here_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/in_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_assign_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_class_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_exec_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_send_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_variables_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/maybe_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/not_nil_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/object_class_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/object_hexid_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/object_send_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/p_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/populate_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/qua_class_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/require_all_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/require_local_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/resc_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/respond_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/returning_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/silence_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/singleton_class_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/tap_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/try_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/val_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel/with_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/kernel_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/lazy_rb.html +0 -120
- data/doc/rdoc/core/files/lib/core/facets/matchdata/match_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/matchdata/matchset_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/matchdata_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/metaid_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/abstract_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/alias_accessor_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/alias_method_chain_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/alias_module_function_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/ancestor_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/basename_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/can_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/class_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/conflict_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/extend_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/include_function_module_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/instance_methods_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/integrate_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/module/is_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/methodize_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/module/modspace_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/module_load_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/nesting_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/op_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/pathize_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/module/prepend_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/redefine_method_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/redirect_method_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/rename_method_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/revise_rb.html +0 -99
- data/doc/rdoc/core/files/lib/core/facets/module/spacename_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module/wrap_method_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/module_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/nilclass/ergo_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/nilclass/to_f_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/nilclass_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/numeric/approx_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/numeric/distance_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/numeric/round_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/numeric_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/objectspace/classes_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/objectspace_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/proc/bind_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/proc/compose_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/proc/curry_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/proc/to_method_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/proc/update_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/proc_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/range/combine_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/range/overlap_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/range/to_r_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/range/umbrella_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/range/within_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/range_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/regexp/arity_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/regexp/to_re_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/regexp_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/stackable_rb.html +0 -120
- data/doc/rdoc/core/files/lib/core/facets/string/align_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/bracket_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/bytes_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/camelcase_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/capitalized_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/chars_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/chomp_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/cleave_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/compress_lines_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/contains_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/divide_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/each_char_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/string/each_word_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/string/end_with_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/string/expand_tab_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/file_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/string/fold_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/indent_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/interpolate_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/line_wrap_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/lines_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/margin_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/methodize_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/modulize_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/mscan_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/natcmp_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/nchar_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/op_sub_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/outdent_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/string/pathize_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/range_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/rewrite_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/shatter_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/snakecase_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/splice_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/start_with_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/subtract_rb.html +0 -100
- data/doc/rdoc/core/files/lib/core/facets/string/tab_rb.html +0 -99
- data/doc/rdoc/core/files/lib/core/facets/string/tabto_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/string/titlecase_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/to_re_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/variablize_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/word_wrap_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/words_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string/xor_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/string_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/struct/attributes_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/struct_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/symbol/chomp_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/symbol/generate_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/symbol/not_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/symbol/plain_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/symbol/query_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/symbol/re_s_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/symbol/setter_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/symbol/succ_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/symbol/to_proc_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/symbol/variablize_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/symbol_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/time/advance_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/time/ago_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/time/change_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/time/elapse_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/time/hence_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/time/round_rb.html +0 -96
- data/doc/rdoc/core/files/lib/core/facets/time/set_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/time/stamp_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/time/to_time_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/time/trunc_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/time_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +0 -97
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod/arguments_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod/name_rb.html +0 -92
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod_rb.html +0 -92
- data/doc/rdoc/core/fr_class_index.html +0 -85
- data/doc/rdoc/core/fr_file_index.html +0 -381
- data/doc/rdoc/core/fr_method_index.html +0 -520
- data/doc/rdoc/core/index.html +0 -26
- data/doc/rdoc/core/rdoc-style.css +0 -177
- data/doc/rdoc/more/classes/ANSICode.html +0 -493
- data/doc/rdoc/more/classes/Advisable.html +0 -269
- data/doc/rdoc/more/classes/Advisable/Method.html +0 -223
- data/doc/rdoc/more/classes/Archive.html +0 -89
- data/doc/rdoc/more/classes/Archive/Tar.html +0 -89
- data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +0 -469
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +0 -355
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +0 -216
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +0 -283
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +0 -378
- data/doc/rdoc/more/classes/Argvector.html +0 -487
- data/doc/rdoc/more/classes/Association.html +0 -319
- data/doc/rdoc/more/classes/Association/Kernel.html +0 -131
- data/doc/rdoc/more/classes/Autoarray.html +0 -166
- data/doc/rdoc/more/classes/BBCode.html +0 -532
- data/doc/rdoc/more/classes/BaseX.html +0 -194
- data/doc/rdoc/more/classes/BiCrypt.html +0 -541
- data/doc/rdoc/more/classes/BinReadable.html +0 -485
- data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +0 -223
- data/doc/rdoc/more/classes/Binding.html +0 -146
- data/doc/rdoc/more/classes/BlankSlate.html +0 -129
- data/doc/rdoc/more/classes/Buildable.html +0 -152
- data/doc/rdoc/more/classes/BuildingBlock.html +0 -360
- data/doc/rdoc/more/classes/Capsule.html +0 -408
- data/doc/rdoc/more/classes/Capsule/MissingFile.html +0 -96
- data/doc/rdoc/more/classes/Cloneable.html +0 -129
- data/doc/rdoc/more/classes/ConsoleUtils.html +0 -238
- data/doc/rdoc/more/classes/Coroutine.html +0 -285
- data/doc/rdoc/more/classes/Crypt.html +0 -275
- data/doc/rdoc/more/classes/CssFilter.html +0 -471
- data/doc/rdoc/more/classes/CssTree.html +0 -149
- data/doc/rdoc/more/classes/Dictionary.html +0 -1255
- data/doc/rdoc/more/classes/Downloader.html +0 -512
- data/doc/rdoc/more/classes/Duration.html +0 -691
- data/doc/rdoc/more/classes/Duration/Numeric.html +0 -389
- data/doc/rdoc/more/classes/Duration/Time.html +0 -124
- data/doc/rdoc/more/classes/Enumerable.html +0 -401
- data/doc/rdoc/more/classes/Enumerable/Elementor.html +0 -170
- data/doc/rdoc/more/classes/Enumerable/Enumerator.html +0 -116
- data/doc/rdoc/more/classes/Enumerable/Filterable.html +0 -246
- data/doc/rdoc/more/classes/EnumerablePass.html +0 -214
- data/doc/rdoc/more/classes/Enumerator.html +0 -95
- data/doc/rdoc/more/classes/Enumerator/Filter.html +0 -104
- data/doc/rdoc/more/classes/Equatable.html +0 -188
- data/doc/rdoc/more/classes/Expirable.html +0 -195
- data/doc/rdoc/more/classes/FileList.html +0 -955
- data/doc/rdoc/more/classes/Fileable.html +0 -178
- data/doc/rdoc/more/classes/Fileable/DSL.html +0 -303
- data/doc/rdoc/more/classes/Hash.html +0 -171
- data/doc/rdoc/more/classes/Hash2Xml.html +0 -105
- data/doc/rdoc/more/classes/Hook.html +0 -162
- data/doc/rdoc/more/classes/HtmlFilter.html +0 -329
- data/doc/rdoc/more/classes/IORedirect.html +0 -220
- data/doc/rdoc/more/classes/InfinityClass.html +0 -448
- data/doc/rdoc/more/classes/InfinityClass/Numeric.html +0 -195
- data/doc/rdoc/more/classes/Ini.html +0 -447
- data/doc/rdoc/more/classes/Instantiable.html +0 -140
- data/doc/rdoc/more/classes/Instantize.html +0 -160
- data/doc/rdoc/more/classes/Interval.html +0 -877
- data/doc/rdoc/more/classes/It.html +0 -185
- data/doc/rdoc/more/classes/LRUCache.html +0 -321
- data/doc/rdoc/more/classes/LRUCache/Item.html +0 -114
- data/doc/rdoc/more/classes/LRUCache/Sentinel.html +0 -100
- data/doc/rdoc/more/classes/LinkedList.html +0 -432
- data/doc/rdoc/more/classes/LinkedList/Node.html +0 -149
- data/doc/rdoc/more/classes/Matcher.html +0 -335
- data/doc/rdoc/more/classes/Matcher/MatchData.html +0 -115
- data/doc/rdoc/more/classes/Memoizer.html +0 -240
- data/doc/rdoc/more/classes/MissingArgument.html +0 -97
- data/doc/rdoc/more/classes/Module.html +0 -1224
- data/doc/rdoc/more/classes/Multiton.html +0 -205
- data/doc/rdoc/more/classes/Multiton/Inclusive.html +0 -93
- data/doc/rdoc/more/classes/Multiton/MetaMethods.html +0 -221
- data/doc/rdoc/more/classes/NackClass.html +0 -98
- data/doc/rdoc/more/classes/Net.html +0 -88
- data/doc/rdoc/more/classes/Net/SMTP.html +0 -140
- data/doc/rdoc/more/classes/NullClass.html +0 -202
- data/doc/rdoc/more/classes/Numeric/Multipliers.html +0 -456
- data/doc/rdoc/more/classes/ObjectReflection.html +0 -172
- data/doc/rdoc/more/classes/OpEsc.html +0 -137
- data/doc/rdoc/more/classes/OpenCascade.html +0 -179
- data/doc/rdoc/more/classes/OpenCollection.html +0 -138
- data/doc/rdoc/more/classes/OpenHash.html +0 -157
- data/doc/rdoc/more/classes/OpenModule.html +0 -135
- data/doc/rdoc/more/classes/OpenObject.html +0 -608
- data/doc/rdoc/more/classes/OpenStructable.html +0 -326
- data/doc/rdoc/more/classes/PQueue.html +0 -607
- data/doc/rdoc/more/classes/Paramix.html +0 -201
- data/doc/rdoc/more/classes/Paramix/Delegator.html +0 -215
- data/doc/rdoc/more/classes/PathList.html +0 -159
- data/doc/rdoc/more/classes/PathList/Finder.html +0 -135
- data/doc/rdoc/more/classes/Platform.html +0 -444
- data/doc/rdoc/more/classes/Pool.html +0 -204
- data/doc/rdoc/more/classes/Proc.html +0 -180
- data/doc/rdoc/more/classes/ProgressBar.html +0 -356
- data/doc/rdoc/more/classes/Prototype.html +0 -243
- data/doc/rdoc/more/classes/RWDelegator.html +0 -194
- data/doc/rdoc/more/classes/Random.html +0 -145
- data/doc/rdoc/more/classes/Random/Array.html +0 -339
- data/doc/rdoc/more/classes/Random/Hash.html +0 -378
- data/doc/rdoc/more/classes/Random/Object.html +0 -119
- data/doc/rdoc/more/classes/Random/String.html +0 -299
- data/doc/rdoc/more/classes/Random/String/Self.html +0 -153
- data/doc/rdoc/more/classes/Recorder.html +0 -203
- data/doc/rdoc/more/classes/Reference.html +0 -196
- data/doc/rdoc/more/classes/Registerable.html +0 -157
- data/doc/rdoc/more/classes/Semaphore.html +0 -260
- data/doc/rdoc/more/classes/Settings.html +0 -288
- data/doc/rdoc/more/classes/Settings/Setting.html +0 -223
- data/doc/rdoc/more/classes/Settings/SettingCollection.html +0 -144
- data/doc/rdoc/more/classes/SimpleStringIO.html +0 -135
- data/doc/rdoc/more/classes/Snapshot.html +0 -194
- data/doc/rdoc/more/classes/Snapshot/ValueHolder.html +0 -163
- data/doc/rdoc/more/classes/SparseArray.html +0 -1397
- data/doc/rdoc/more/classes/Stash.html +0 -232
- data/doc/rdoc/more/classes/String/Mask.html +0 -555
- data/doc/rdoc/more/classes/String/Words.html +0 -328
- data/doc/rdoc/more/classes/Struct.html +0 -130
- data/doc/rdoc/more/classes/SyncArray.html +0 -127
- data/doc/rdoc/more/classes/SyncHash.html +0 -158
- data/doc/rdoc/more/classes/SyncHash/Delegator.html +0 -211
- data/doc/rdoc/more/classes/SyncHash/Inheritor.html +0 -211
- data/doc/rdoc/more/classes/System.html +0 -1117
- data/doc/rdoc/more/classes/Timer.html +0 -464
- data/doc/rdoc/more/classes/Timer/Dummy.html +0 -139
- data/doc/rdoc/more/classes/TracePoint.html +0 -455
- data/doc/rdoc/more/classes/Tuple.html +0 -900
- data/doc/rdoc/more/classes/TypeCast.html +0 -158
- data/doc/rdoc/more/classes/TypeCast/Class.html +0 -127
- data/doc/rdoc/more/classes/TypeCast/Object.html +0 -117
- data/doc/rdoc/more/classes/TypeCastException.html +0 -96
- data/doc/rdoc/more/classes/Uninheritable.html +0 -120
- data/doc/rdoc/more/classes/VersionNumber.html +0 -408
- data/doc/rdoc/more/classes/X.html +0 -117
- data/doc/rdoc/more/classes/XOXO.html +0 -189
- data/doc/rdoc/more/classes/ZipUtils.html +0 -568
- data/doc/rdoc/more/classes/ZipUtils/DryRun.html +0 -391
- data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +0 -391
- data/doc/rdoc/more/classes/ZipUtils/Verbose.html +0 -361
- data/doc/rdoc/more/created.rid +0 -1
- data/doc/rdoc/more/files/README.html +0 -286
- data/doc/rdoc/more/files/doc/README_more.html +0 -141
- data/doc/rdoc/more/files/lib/more/facets/1stclassmethod_rb.html +0 -181
- data/doc/rdoc/more/files/lib/more/facets/advisable_rb.html +0 -124
- data/doc/rdoc/more/files/lib/more/facets/ansicode_rb.html +0 -200
- data/doc/rdoc/more/files/lib/more/facets/argvector_rb.html +0 -142
- data/doc/rdoc/more/files/lib/more/facets/association_rb.html +0 -158
- data/doc/rdoc/more/files/lib/more/facets/attr_rb.html +0 -92
- data/doc/rdoc/more/files/lib/more/facets/autoarray_rb.html +0 -125
- data/doc/rdoc/more/files/lib/more/facets/autoreload_rb.html +0 -134
- data/doc/rdoc/more/files/lib/more/facets/basex_rb.html +0 -92
- data/doc/rdoc/more/files/lib/more/facets/bbcode_rb.html +0 -138
- data/doc/rdoc/more/files/lib/more/facets/bicrypt_rb.html +0 -124
- data/doc/rdoc/more/files/lib/more/facets/binding/opvars_rb.html +0 -96
- data/doc/rdoc/more/files/lib/more/facets/binreadable_rb.html +0 -141
- data/doc/rdoc/more/files/lib/more/facets/blankslate_rb.html +0 -92
- data/doc/rdoc/more/files/lib/more/facets/buildable_rb.html +0 -230
- data/doc/rdoc/more/files/lib/more/facets/capsule_rb.html +0 -143
- data/doc/rdoc/more/files/lib/more/facets/class_extension_rb.html +0 -155
- data/doc/rdoc/more/files/lib/more/facets/classmethods_rb.html +0 -213
- data/doc/rdoc/more/files/lib/more/facets/cloneable_rb.html +0 -134
- data/doc/rdoc/more/files/lib/more/facets/consoleutils_rb.html +0 -92
- data/doc/rdoc/more/files/lib/more/facets/coroutine_rb.html +0 -163
- data/doc/rdoc/more/files/lib/more/facets/crypt_rb.html +0 -141
- data/doc/rdoc/more/files/lib/more/facets/cssfilter_rb.html +0 -121
- data/doc/rdoc/more/files/lib/more/facets/daemonize_rb.html +0 -118
- data/doc/rdoc/more/files/lib/more/facets/dependency_rb.html +0 -158
- data/doc/rdoc/more/files/lib/more/facets/dictionary_rb.html +0 -201
- data/doc/rdoc/more/files/lib/more/facets/downloader_rb.html +0 -137
- data/doc/rdoc/more/files/lib/more/facets/duplicable_rb.html +0 -100
- data/doc/rdoc/more/files/lib/more/facets/duration_rb.html +0 -92
- data/doc/rdoc/more/files/lib/more/facets/elementor_rb.html +0 -149
- data/doc/rdoc/more/files/lib/more/facets/elementwise_rb.html +0 -96
- data/doc/rdoc/more/files/lib/more/facets/enumerablepass_rb.html +0 -154
- data/doc/rdoc/more/files/lib/more/facets/equatable_rb.html +0 -146
- data/doc/rdoc/more/files/lib/more/facets/expirable_rb.html +0 -116
- data/doc/rdoc/more/files/lib/more/facets/fileable_rb.html +0 -138
- data/doc/rdoc/more/files/lib/more/facets/filelist_rb.html +0 -165
- data/doc/rdoc/more/files/lib/more/facets/filter_rb.html +0 -97
- data/doc/rdoc/more/files/lib/more/facets/heap_rb.html +0 -132
- data/doc/rdoc/more/files/lib/more/facets/hook_rb.html +0 -96
- data/doc/rdoc/more/files/lib/more/facets/htmlfilter_rb.html +0 -153
- data/doc/rdoc/more/files/lib/more/facets/infinity_rb.html +0 -153
- data/doc/rdoc/more/files/lib/more/facets/inheritor_rb.html +0 -124
- data/doc/rdoc/more/files/lib/more/facets/ini_rb.html +0 -105
- data/doc/rdoc/more/files/lib/more/facets/instantiable_rb.html +0 -119
- data/doc/rdoc/more/files/lib/more/facets/instantise_rb.html +0 -96
- data/doc/rdoc/more/files/lib/more/facets/instantize_rb.html +0 -160
- data/doc/rdoc/more/files/lib/more/facets/interval_rb.html +0 -163
- data/doc/rdoc/more/files/lib/more/facets/ioredirect_rb.html +0 -133
- data/doc/rdoc/more/files/lib/more/facets/iteration_rb.html +0 -94
- data/doc/rdoc/more/files/lib/more/facets/kernel/meta_rb.html +0 -96
- data/doc/rdoc/more/files/lib/more/facets/linkedlist_rb.html +0 -159
- data/doc/rdoc/more/files/lib/more/facets/lrucache_rb.html +0 -129
- data/doc/rdoc/more/files/lib/more/facets/main_rb.html +0 -126
- data/doc/rdoc/more/files/lib/more/facets/matcher_rb.html +0 -97
- data/doc/rdoc/more/files/lib/more/facets/memoize_rb.html +0 -164
- data/doc/rdoc/more/files/lib/more/facets/memoizer_rb.html +0 -152
- data/doc/rdoc/more/files/lib/more/facets/methodspace_rb.html +0 -138
- data/doc/rdoc/more/files/lib/more/facets/minitar_rb.html +0 -203
- data/doc/rdoc/more/files/lib/more/facets/multipliers_rb.html +0 -132
- data/doc/rdoc/more/files/lib/more/facets/multiton_rb.html +0 -187
- data/doc/rdoc/more/files/lib/more/facets/nackclass_rb.html +0 -120
- data/doc/rdoc/more/files/lib/more/facets/net/smtp_tls_rb.html +0 -143
- data/doc/rdoc/more/files/lib/more/facets/nilstatus_rb.html +0 -92
- data/doc/rdoc/more/files/lib/more/facets/nullclass_rb.html +0 -122
- data/doc/rdoc/more/files/lib/more/facets/opencascade_rb.html +0 -114
- data/doc/rdoc/more/files/lib/more/facets/opencollection_rb.html +0 -123
- data/doc/rdoc/more/files/lib/more/facets/openhash_rb.html +0 -107
- data/doc/rdoc/more/files/lib/more/facets/openmodule_rb.html +0 -92
- data/doc/rdoc/more/files/lib/more/facets/openobject_rb.html +0 -169
- data/doc/rdoc/more/files/lib/more/facets/opesc_rb.html +0 -94
- data/doc/rdoc/more/files/lib/more/facets/orderedhash_rb.html +0 -143
- data/doc/rdoc/more/files/lib/more/facets/ostructable_rb.html +0 -92
- data/doc/rdoc/more/files/lib/more/facets/overload_rb.html +0 -119
- data/doc/rdoc/more/files/lib/more/facets/paramix_rb.html +0 -135
- data/doc/rdoc/more/files/lib/more/facets/partial_rb.html +0 -124
- data/doc/rdoc/more/files/lib/more/facets/pathlist_rb.html +0 -133
- data/doc/rdoc/more/files/lib/more/facets/platform_rb.html +0 -103
- data/doc/rdoc/more/files/lib/more/facets/pool_rb.html +0 -131
- data/doc/rdoc/more/files/lib/more/facets/pqueue_rb.html +0 -128
- data/doc/rdoc/more/files/lib/more/facets/progressbar_rb.html +0 -126
- data/doc/rdoc/more/files/lib/more/facets/prototype_rb.html +0 -102
- data/doc/rdoc/more/files/lib/more/facets/random_rb.html +0 -149
- data/doc/rdoc/more/files/lib/more/facets/rbsystem_rb.html +0 -144
- data/doc/rdoc/more/files/lib/more/facets/recorder_rb.html +0 -154
- data/doc/rdoc/more/files/lib/more/facets/reference_rb.html +0 -130
- data/doc/rdoc/more/files/lib/more/facets/reflection_rb.html +0 -134
- data/doc/rdoc/more/files/lib/more/facets/registerable_rb.html +0 -98
- data/doc/rdoc/more/files/lib/more/facets/rwdelegator_rb.html +0 -122
- data/doc/rdoc/more/files/lib/more/facets/semaphore_rb.html +0 -120
- data/doc/rdoc/more/files/lib/more/facets/settings_rb.html +0 -141
- data/doc/rdoc/more/files/lib/more/facets/snapshot_rb.html +0 -177
- data/doc/rdoc/more/files/lib/more/facets/sparse_array_rb.html +0 -92
- data/doc/rdoc/more/files/lib/more/facets/stash_rb.html +0 -166
- data/doc/rdoc/more/files/lib/more/facets/string/mask_rb.html +0 -96
- data/doc/rdoc/more/files/lib/more/facets/string/words_rb.html +0 -96
- data/doc/rdoc/more/files/lib/more/facets/succ_rb.html +0 -92
- data/doc/rdoc/more/files/lib/more/facets/syncarray_rb.html +0 -125
- data/doc/rdoc/more/files/lib/more/facets/synchash_rb.html +0 -138
- data/doc/rdoc/more/files/lib/more/facets/thread_rb.html +0 -132
- data/doc/rdoc/more/files/lib/more/facets/timer_rb.html +0 -174
- data/doc/rdoc/more/files/lib/more/facets/tracepoint_rb.html +0 -172
- data/doc/rdoc/more/files/lib/more/facets/tuple_rb.html +0 -160
- data/doc/rdoc/more/files/lib/more/facets/typecast_rb.html +0 -215
- data/doc/rdoc/more/files/lib/more/facets/uninheritable_rb.html +0 -129
- data/doc/rdoc/more/files/lib/more/facets/version_rb.html +0 -132
- data/doc/rdoc/more/files/lib/more/facets/xmlhash_rb.html +0 -97
- data/doc/rdoc/more/files/lib/more/facets/xoxo_rb.html +0 -136
- data/doc/rdoc/more/files/lib/more/facets/ziputils_rb.html +0 -105
- data/doc/rdoc/more/fr_class_index.html +0 -185
- data/doc/rdoc/more/fr_file_index.html +0 -156
- data/doc/rdoc/more/fr_method_index.html +0 -1132
- data/doc/rdoc/more/index.html +0 -26
- data/doc/rdoc/more/rdoc-style.css +0 -177
- data/lib/core/facets/kernel/__here__.rb +0 -8
- data/lib/more/facets/buildable.rb +0 -344
- data/lib/more/facets/cssfilter.rb +0 -254
- data/lib/more/facets/htmlfilter.rb +0 -595
- data/lib/more/facets/kernel/meta.rb +0 -32
- data/lib/more/facets/prototype.rb +0 -88
- data/lib/more/facets/rwdelegator.rb +0 -74
@@ -1,149 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Class: CssTree</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "+"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "-"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Class</span><br />CssTree</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../files/lib/more/facets/cssfilter_rb.html">lib/more/facets/cssfilter.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
<tr>
|
64
|
-
<td>Parent:</td>
|
65
|
-
<td>
|
66
|
-
<a href="Hash.html">
|
67
|
-
Hash
|
68
|
-
</a>
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</td>
|
73
|
-
</tr>
|
74
|
-
</table>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
<div id="content">
|
79
|
-
|
80
|
-
<div class="description"><p>
|
81
|
-
CSS parse tree. This is for a "deep filtering".
|
82
|
-
</p>
|
83
|
-
</div>
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
<div class="sectiontitle">Methods</div>
|
88
|
-
<span style="padding-right: 5px;"><a href="#M000564">new</a></span>
|
89
|
-
<span style="padding-right: 5px;"><a href="#M000565">to_css</a></span>
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
<div class="sectiontitle">Public Class methods</div>
|
97
|
-
<div class="method">
|
98
|
-
<div class="title">
|
99
|
-
<a name="M000564"></a><b>new</b>(options=nil)
|
100
|
-
</div>
|
101
|
-
<div class="sourcecode">
|
102
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000564_source')" id="l_M000564_source">+</a> ]</p>
|
103
|
-
<div id="M000564_source" class="dyn-source">
|
104
|
-
<pre>
|
105
|
-
<span class="ruby-comment cmt"># File lib/more/facets/cssfilter.rb, line 204</span>
|
106
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span>=<span class="ruby-keyword kw">nil</span>)
|
107
|
-
<span class="ruby-ivar">@options</span> = <span class="ruby-identifier">options</span> <span class="ruby-operator">||</span> {}
|
108
|
-
<span class="ruby-keyword kw">super</span>()
|
109
|
-
<span class="ruby-keyword kw">end</span>
|
110
|
-
</pre>
|
111
|
-
</div>
|
112
|
-
</div>
|
113
|
-
</div>
|
114
|
-
<div class="sectiontitle">Public Instance methods</div>
|
115
|
-
<div class="method">
|
116
|
-
<div class="title">
|
117
|
-
<a name="M000565"></a><b>to_css</b>()
|
118
|
-
</div>
|
119
|
-
<div class="description">
|
120
|
-
<p>
|
121
|
-
Re-output the CSS, all tidy ;)
|
122
|
-
</p>
|
123
|
-
</div>
|
124
|
-
<div class="sourcecode">
|
125
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000565_source')" id="l_M000565_source">+</a> ]</p>
|
126
|
-
<div id="M000565_source" class="dyn-source">
|
127
|
-
<pre>
|
128
|
-
<span class="ruby-comment cmt"># File lib/more/facets/cssfilter.rb, line 211</span>
|
129
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_css</span>
|
130
|
-
<span class="ruby-identifier">css</span> = <span class="ruby-value str">""</span>
|
131
|
-
<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">selector</span>, <span class="ruby-identifier">entries</span><span class="ruby-operator">|</span>
|
132
|
-
<span class="ruby-identifier">css</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{selector}{"</span>
|
133
|
-
<span class="ruby-identifier">entries</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
134
|
-
<span class="ruby-identifier">css</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{key}:#{value};"</span>
|
135
|
-
<span class="ruby-keyword kw">end</span>
|
136
|
-
<span class="ruby-identifier">css</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"}\n"</span>
|
137
|
-
<span class="ruby-keyword kw">end</span>
|
138
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">css</span>
|
139
|
-
<span class="ruby-keyword kw">end</span>
|
140
|
-
</pre>
|
141
|
-
</div>
|
142
|
-
</div>
|
143
|
-
</div>
|
144
|
-
</div>
|
145
|
-
|
146
|
-
</div>
|
147
|
-
|
148
|
-
</body>
|
149
|
-
</html>
|
@@ -1,1255 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Class: Dictionary</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "+"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "-"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Class</span><br />Dictionary</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../files/lib/more/facets/dictionary_rb.html">lib/more/facets/dictionary.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
<tr>
|
64
|
-
<td>Parent:</td>
|
65
|
-
<td>
|
66
|
-
Object
|
67
|
-
</td>
|
68
|
-
</tr>
|
69
|
-
</table>
|
70
|
-
</td>
|
71
|
-
</tr>
|
72
|
-
</table>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
<div id="content">
|
77
|
-
|
78
|
-
<div class="description"><h1><a href="Dictionary.html">Dictionary</a></h1>
|
79
|
-
<p>
|
80
|
-
The <a href="Dictionary.html">Dictionary</a> class is a <a
|
81
|
-
href="Hash.html">Hash</a> that preserves <a
|
82
|
-
href="Dictionary.html#M000116">order</a>. So it has some array-like
|
83
|
-
extensions also. By defualt a <a href="Dictionary.html">Dictionary</a>
|
84
|
-
object preserves insertion <a href="Dictionary.html#M000116">order</a>, but
|
85
|
-
any <a href="Dictionary.html#M000116">order</a> can be specified including
|
86
|
-
alphabetical key <a href="Dictionary.html#M000116">order</a>.
|
87
|
-
</p>
|
88
|
-
<h2>Usage</h2>
|
89
|
-
<p>
|
90
|
-
Just require this file and use <a href="Dictionary.html">Dictionary</a>
|
91
|
-
instead of <a href="Hash.html">Hash</a>.
|
92
|
-
</p>
|
93
|
-
<pre>
|
94
|
-
# You can do simply
|
95
|
-
hsh = Dictionary.new
|
96
|
-
hsh['z'] = 1
|
97
|
-
hsh['a'] = 2
|
98
|
-
hsh['c'] = 3
|
99
|
-
p hsh.keys #=> ['z','a','c']
|
100
|
-
|
101
|
-
# or using Dictionary[] method
|
102
|
-
hsh = Dictionary['z', 1, 'a', 2, 'c', 3]
|
103
|
-
p hsh.keys #=> ['z','a','c']
|
104
|
-
|
105
|
-
# but this don't preserve order
|
106
|
-
hsh = Dictionary['z'=>1, 'a'=>2, 'c'=>3]
|
107
|
-
p hsh.keys #=> ['a','c','z']
|
108
|
-
|
109
|
-
# Dictionary has useful extensions: push, pop and unshift
|
110
|
-
p hsh.push('to_end', 15) #=> true, key added
|
111
|
-
p hsh.push('to_end', 30) #=> false, already - nothing happen
|
112
|
-
p hsh.unshift('to_begin', 50) #=> true, key added
|
113
|
-
p hsh.unshift('to_begin', 60) #=> false, already - nothing happen
|
114
|
-
p hsh.keys #=> ["to_begin", "a", "c", "z", "to_end"]
|
115
|
-
p hsh.pop #=> ["to_end", 15], if nothing remains, return nil
|
116
|
-
p hsh.keys #=> ["to_begin", "a", "c", "z"]
|
117
|
-
p hsh.shift #=> ["to_begin", 30], if nothing remains, return nil
|
118
|
-
</pre>
|
119
|
-
<h2>Usage Notes</h2>
|
120
|
-
<ul>
|
121
|
-
<li>You can use <a href="Dictionary.html#M000117">order_by</a> to set internal
|
122
|
-
sort <a href="Dictionary.html#M000116">order</a>.
|
123
|
-
|
124
|
-
</li>
|
125
|
-
<li>#<< takes a two element [k,v] array and inserts.
|
126
|
-
|
127
|
-
</li>
|
128
|
-
<li>Use ::<a href="Dictionary.html#M000114">auto</a> which creates Dictionay
|
129
|
-
sub-entries as needed.
|
130
|
-
|
131
|
-
</li>
|
132
|
-
<li>And ::<a href="Dictionary.html#M000113">alpha</a> which creates a <a
|
133
|
-
href="Dictionary.html#M000115">new</a> <a
|
134
|
-
href="Dictionary.html">Dictionary</a> sorted by key.
|
135
|
-
|
136
|
-
</li>
|
137
|
-
</ul>
|
138
|
-
</div>
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
<div class="sectiontitle">Methods</div>
|
143
|
-
<span style="padding-right: 5px;"><a href="#M000142"><<</a></span>
|
144
|
-
<span style="padding-right: 5px;"><a href="#M000121">==</a></span>
|
145
|
-
<span style="padding-right: 5px;"><a href="#M000111">[]</a></span>
|
146
|
-
<span style="padding-right: 5px;"><a href="#M000122">[]</a></span>
|
147
|
-
<span style="padding-right: 5px;"><a href="#M000124">[]=</a></span>
|
148
|
-
<span style="padding-right: 5px;"><a href="#M000113">alpha</a></span>
|
149
|
-
<span style="padding-right: 5px;"><a href="#M000114">auto</a></span>
|
150
|
-
<span style="padding-right: 5px;"><a href="#M000127">clear</a></span>
|
151
|
-
<span style="padding-right: 5px;"><a href="#M000128">delete</a></span>
|
152
|
-
<span style="padding-right: 5px;"><a href="#M000133">delete_if</a></span>
|
153
|
-
<span style="padding-right: 5px;"><a href="#M000146">dup</a></span>
|
154
|
-
<span style="padding-right: 5px;"><a href="#M000131">each</a></span>
|
155
|
-
<span style="padding-right: 5px;"><a href="#M000129">each_key</a></span>
|
156
|
-
<span style="padding-right: 5px;"><a href="#M000132">each_pair</a></span>
|
157
|
-
<span style="padding-right: 5px;"><a href="#M000130">each_value</a></span>
|
158
|
-
<span style="padding-right: 5px;"><a href="#M000157">empty?</a></span>
|
159
|
-
<span style="padding-right: 5px;"><a href="#M000123">fetch</a></span>
|
160
|
-
<span style="padding-right: 5px;"><a href="#M000153">first</a></span>
|
161
|
-
<span style="padding-right: 5px;"><a href="#M000158">has_key?</a></span>
|
162
|
-
<span style="padding-right: 5px;"><a href="#M000125">insert</a></span>
|
163
|
-
<span style="padding-right: 5px;"><a href="#M000145">inspect</a></span>
|
164
|
-
<span style="padding-right: 5px;"><a href="#M000136">invert</a></span>
|
165
|
-
<span style="padding-right: 5px;"><a href="#M000159">key?</a></span>
|
166
|
-
<span style="padding-right: 5px;"><a href="#M000135">keys</a></span>
|
167
|
-
<span style="padding-right: 5px;"><a href="#M000154">last</a></span>
|
168
|
-
<span style="padding-right: 5px;"><a href="#M000155">length</a></span>
|
169
|
-
<span style="padding-right: 5px;"><a href="#M000149">merge</a></span>
|
170
|
-
<span style="padding-right: 5px;"><a href="#M000148">merge!</a></span>
|
171
|
-
<span style="padding-right: 5px;"><a href="#M000115">new</a></span>
|
172
|
-
<span style="padding-right: 5px;"><a href="#M000112">new_by</a></span>
|
173
|
-
<span style="padding-right: 5px;"><a href="#M000116">order</a></span>
|
174
|
-
<span style="padding-right: 5px;"><a href="#M000117">order_by</a></span>
|
175
|
-
<span style="padding-right: 5px;"><a href="#M000118">order_by_key</a></span>
|
176
|
-
<span style="padding-right: 5px;"><a href="#M000119">order_by_value</a></span>
|
177
|
-
<span style="padding-right: 5px;"><a href="#M000144">pop</a></span>
|
178
|
-
<span style="padding-right: 5px;"><a href="#M000143">push</a></span>
|
179
|
-
<span style="padding-right: 5px;"><a href="#M000137">reject</a></span>
|
180
|
-
<span style="padding-right: 5px;"><a href="#M000138">reject!</a></span>
|
181
|
-
<span style="padding-right: 5px;"><a href="#M000120">reorder</a></span>
|
182
|
-
<span style="padding-right: 5px;"><a href="#M000139">replace</a></span>
|
183
|
-
<span style="padding-right: 5px;"><a href="#M000152">reverse</a></span>
|
184
|
-
<span style="padding-right: 5px;"><a href="#M000151">reverse!</a></span>
|
185
|
-
<span style="padding-right: 5px;"><a href="#M000150">select</a></span>
|
186
|
-
<span style="padding-right: 5px;"><a href="#M000140">shift</a></span>
|
187
|
-
<span style="padding-right: 5px;"><a href="#M000156">size</a></span>
|
188
|
-
<span style="padding-right: 5px;"><a href="#M000126">store</a></span>
|
189
|
-
<span style="padding-right: 5px;"><a href="#M000160">to_a</a></span>
|
190
|
-
<span style="padding-right: 5px;"><a href="#M000163">to_h</a></span>
|
191
|
-
<span style="padding-right: 5px;"><a href="#M000162">to_hash</a></span>
|
192
|
-
<span style="padding-right: 5px;"><a href="#M000161">to_s</a></span>
|
193
|
-
<span style="padding-right: 5px;"><a href="#M000141">unshift</a></span>
|
194
|
-
<span style="padding-right: 5px;"><a href="#M000147">update</a></span>
|
195
|
-
<span style="padding-right: 5px;"><a href="#M000134">values</a></span>
|
196
|
-
|
197
|
-
<div class="sectiontitle">Included Modules</div>
|
198
|
-
<ul>
|
199
|
-
<li><a href="Enumerable.html">Enumerable</a></li>
|
200
|
-
</ul>
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
<div class="sectiontitle">Public Class methods</div>
|
207
|
-
<div class="method">
|
208
|
-
<div class="title">
|
209
|
-
<a name="M000111"></a><b>[]</b>(*args)
|
210
|
-
</div>
|
211
|
-
<div class="sourcecode">
|
212
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">+</a> ]</p>
|
213
|
-
<div id="M000111_source" class="dyn-source">
|
214
|
-
<pre>
|
215
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 128</span>
|
216
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
217
|
-
<span class="ruby-identifier">hsh</span> = <span class="ruby-identifier">new</span>
|
218
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">Hash</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">args</span>[<span class="ruby-value">0</span>]
|
219
|
-
<span class="ruby-identifier">hsh</span>.<span class="ruby-identifier">replace</span>(<span class="ruby-identifier">args</span>[<span class="ruby-value">0</span>])
|
220
|
-
<span class="ruby-keyword kw">elsif</span> (<span class="ruby-identifier">args</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">%</span> <span class="ruby-value">2</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span>
|
221
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"odd number of elements for Hash"</span>
|
222
|
-
<span class="ruby-keyword kw">else</span>
|
223
|
-
<span class="ruby-keyword kw">while</span> <span class="ruby-operator">!</span><span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span>
|
224
|
-
<span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">args</span>.<span class="ruby-identifier">shift</span>] = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">shift</span>
|
225
|
-
<span class="ruby-keyword kw">end</span>
|
226
|
-
<span class="ruby-keyword kw">end</span>
|
227
|
-
<span class="ruby-identifier">hsh</span>
|
228
|
-
<span class="ruby-keyword kw">end</span>
|
229
|
-
</pre>
|
230
|
-
</div>
|
231
|
-
</div>
|
232
|
-
</div>
|
233
|
-
<div class="method">
|
234
|
-
<div class="title">
|
235
|
-
<a name="M000113"></a><b>alpha</b>(*args, &block)
|
236
|
-
</div>
|
237
|
-
<div class="description">
|
238
|
-
<p>
|
239
|
-
Alternate to <a href="Dictionary.html#M000115">new</a> which creates a
|
240
|
-
dictionary sorted by key.
|
241
|
-
</p>
|
242
|
-
<pre>
|
243
|
-
d = Dictionary.alpha
|
244
|
-
d["z"] = 1
|
245
|
-
d["y"] = 2
|
246
|
-
d["x"] = 3
|
247
|
-
d #=> {"x"=>3,"y"=>2,"z"=>2}
|
248
|
-
</pre>
|
249
|
-
<p>
|
250
|
-
This is equivalent to:
|
251
|
-
</p>
|
252
|
-
<pre>
|
253
|
-
Dictionary.new.order_by { |key,value| key }
|
254
|
-
</pre>
|
255
|
-
</div>
|
256
|
-
<div class="sourcecode">
|
257
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000113_source')" id="l_M000113_source">+</a> ]</p>
|
258
|
-
<div id="M000113_source" class="dyn-source">
|
259
|
-
<pre>
|
260
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 160</span>
|
261
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alpha</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
262
|
-
<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>).<span class="ruby-identifier">order_by_key</span>
|
263
|
-
<span class="ruby-keyword kw">end</span>
|
264
|
-
</pre>
|
265
|
-
</div>
|
266
|
-
</div>
|
267
|
-
</div>
|
268
|
-
<div class="method">
|
269
|
-
<div class="title">
|
270
|
-
<a name="M000114"></a><b>auto</b>(*args)
|
271
|
-
</div>
|
272
|
-
<div class="description">
|
273
|
-
<p>
|
274
|
-
Alternate to <a href="Dictionary.html#M000115">new</a> which <a
|
275
|
-
href="Dictionary.html#M000114">auto</a>-creates sub-dictionaries as needed.
|
276
|
-
</p>
|
277
|
-
<pre>
|
278
|
-
d = Dictionary.auto
|
279
|
-
d["a"]["b"]["c"] = "abc" #=> { "a"=>{"b"=>{"c"=>"abc"}}}
|
280
|
-
</pre>
|
281
|
-
</div>
|
282
|
-
<div class="sourcecode">
|
283
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000114_source')" id="l_M000114_source">+</a> ]</p>
|
284
|
-
<div id="M000114_source" class="dyn-source">
|
285
|
-
<pre>
|
286
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 169</span>
|
287
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">auto</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
288
|
-
<span class="ruby-comment cmt">#AutoDictionary.new(*args)</span>
|
289
|
-
<span class="ruby-identifier">leet</span> = <span class="ruby-identifier">lambda</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">hsh</span>, <span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">new</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">leet</span>) }
|
290
|
-
<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">leet</span>)
|
291
|
-
<span class="ruby-keyword kw">end</span>
|
292
|
-
</pre>
|
293
|
-
</div>
|
294
|
-
</div>
|
295
|
-
</div>
|
296
|
-
<div class="method">
|
297
|
-
<div class="title">
|
298
|
-
<a name="M000115"></a><b>new</b>(*args, &blk)
|
299
|
-
</div>
|
300
|
-
<div class="description">
|
301
|
-
<p>
|
302
|
-
New Dictiionary.
|
303
|
-
</p>
|
304
|
-
</div>
|
305
|
-
<div class="sourcecode">
|
306
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000115_source')" id="l_M000115_source">+</a> ]</p>
|
307
|
-
<div id="M000115_source" class="dyn-source">
|
308
|
-
<pre>
|
309
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 178</span>
|
310
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
311
|
-
<span class="ruby-ivar">@order</span> = []
|
312
|
-
<span class="ruby-ivar">@order_by</span> = <span class="ruby-keyword kw">nil</span>
|
313
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">blk</span>
|
314
|
-
<span class="ruby-identifier">dict</span> = <span class="ruby-keyword kw">self</span> <span class="ruby-comment cmt"># This ensure autmatic key entry effect the</span>
|
315
|
-
<span class="ruby-identifier">oblk</span> = <span class="ruby-identifier">lambda</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">hsh</span>, <span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">blk</span>[<span class="ruby-identifier">dict</span>,<span class="ruby-identifier">key</span>] } <span class="ruby-comment cmt"># dictionary rather then just the interal hash.</span>
|
316
|
-
<span class="ruby-ivar">@hash</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">oblk</span>)
|
317
|
-
<span class="ruby-keyword kw">else</span>
|
318
|
-
<span class="ruby-ivar">@hash</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
319
|
-
<span class="ruby-keyword kw">end</span>
|
320
|
-
<span class="ruby-keyword kw">end</span>
|
321
|
-
</pre>
|
322
|
-
</div>
|
323
|
-
</div>
|
324
|
-
</div>
|
325
|
-
<div class="method">
|
326
|
-
<div class="title">
|
327
|
-
<a name="M000112"></a><b>new_by</b>(*args, &blk)
|
328
|
-
</div>
|
329
|
-
<div class="description">
|
330
|
-
<p>
|
331
|
-
Like <a href="Dictionary.html#M000115">new</a> but the block sets the <a
|
332
|
-
href="Dictionary.html#M000116">order</a>.
|
333
|
-
</p>
|
334
|
-
</div>
|
335
|
-
<div class="sourcecode">
|
336
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000112_source')" id="l_M000112_source">+</a> ]</p>
|
337
|
-
<div id="M000112_source" class="dyn-source">
|
338
|
-
<pre>
|
339
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 144</span>
|
340
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new_by</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
341
|
-
<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>).<span class="ruby-identifier">order_by</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
342
|
-
<span class="ruby-keyword kw">end</span>
|
343
|
-
</pre>
|
344
|
-
</div>
|
345
|
-
</div>
|
346
|
-
</div>
|
347
|
-
<div class="sectiontitle">Public Instance methods</div>
|
348
|
-
<div class="method">
|
349
|
-
<div class="title">
|
350
|
-
<a name="M000142"></a><b><<</b>(kv)
|
351
|
-
</div>
|
352
|
-
<div class="sourcecode">
|
353
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000142_source')" id="l_M000142_source">+</a> ]</p>
|
354
|
-
<div id="M000142_source" class="dyn-source">
|
355
|
-
<pre>
|
356
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 381</span>
|
357
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">kv</span>)
|
358
|
-
<span class="ruby-identifier">push</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">kv</span>)
|
359
|
-
<span class="ruby-keyword kw">end</span>
|
360
|
-
</pre>
|
361
|
-
</div>
|
362
|
-
</div>
|
363
|
-
</div>
|
364
|
-
<div class="method">
|
365
|
-
<div class="title">
|
366
|
-
<a name="M000121"></a><b>==</b>(hsh2)
|
367
|
-
</div>
|
368
|
-
<div class="description">
|
369
|
-
<p>
|
370
|
-
def ==( hsh2 )
|
371
|
-
</p>
|
372
|
-
<pre>
|
373
|
-
return false if @order != hsh2.order
|
374
|
-
super hsh2
|
375
|
-
</pre>
|
376
|
-
<p>
|
377
|
-
end
|
378
|
-
</p>
|
379
|
-
</div>
|
380
|
-
<div class="sourcecode">
|
381
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000121_source')" id="l_M000121_source">+</a> ]</p>
|
382
|
-
<div id="M000121_source" class="dyn-source">
|
383
|
-
<pre>
|
384
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 255</span>
|
385
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">hsh2</span>)
|
386
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">hsh2</span>.<span class="ruby-identifier">is_a?</span>( <span class="ruby-constant">Dictionary</span> )
|
387
|
-
<span class="ruby-ivar">@order</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">hsh2</span>.<span class="ruby-identifier">order</span> <span class="ruby-operator">&&</span>
|
388
|
-
<span class="ruby-ivar">@hash</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">hsh2</span>.<span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-value str">"@hash"</span>)
|
389
|
-
<span class="ruby-keyword kw">else</span>
|
390
|
-
<span class="ruby-keyword kw">false</span>
|
391
|
-
<span class="ruby-keyword kw">end</span>
|
392
|
-
<span class="ruby-keyword kw">end</span>
|
393
|
-
</pre>
|
394
|
-
</div>
|
395
|
-
</div>
|
396
|
-
</div>
|
397
|
-
<div class="method">
|
398
|
-
<div class="title">
|
399
|
-
<a name="M000122"></a><b>[]</b>(k)
|
400
|
-
</div>
|
401
|
-
<div class="sourcecode">
|
402
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000122_source')" id="l_M000122_source">+</a> ]</p>
|
403
|
-
<div id="M000122_source" class="dyn-source">
|
404
|
-
<pre>
|
405
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 264</span>
|
406
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span> <span class="ruby-identifier">k</span>
|
407
|
-
<span class="ruby-ivar">@hash</span>[ <span class="ruby-identifier">k</span> ]
|
408
|
-
<span class="ruby-keyword kw">end</span>
|
409
|
-
</pre>
|
410
|
-
</div>
|
411
|
-
</div>
|
412
|
-
</div>
|
413
|
-
<div class="method">
|
414
|
-
<div class="title">
|
415
|
-
<a name="M000124"></a><b>[]=</b>(k, i=nil, v=nil)
|
416
|
-
</div>
|
417
|
-
<div class="description">
|
418
|
-
<p>
|
419
|
-
Store operator.
|
420
|
-
</p>
|
421
|
-
<pre>
|
422
|
-
h[key] = value
|
423
|
-
</pre>
|
424
|
-
<p>
|
425
|
-
Or with additional index.
|
426
|
-
</p>
|
427
|
-
<pre>
|
428
|
-
h[key,index] = value
|
429
|
-
</pre>
|
430
|
-
</div>
|
431
|
-
<div class="sourcecode">
|
432
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000124_source')" id="l_M000124_source">+</a> ]</p>
|
433
|
-
<div id="M000124_source" class="dyn-source">
|
434
|
-
<pre>
|
435
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 280</span>
|
436
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">i</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">v</span>=<span class="ruby-keyword kw">nil</span>)
|
437
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span>
|
438
|
-
<span class="ruby-identifier">insert</span>(<span class="ruby-identifier">i</span>,<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>)
|
439
|
-
<span class="ruby-keyword kw">else</span>
|
440
|
-
<span class="ruby-identifier">store</span>(<span class="ruby-identifier">k</span>,<span class="ruby-identifier">i</span>)
|
441
|
-
<span class="ruby-keyword kw">end</span>
|
442
|
-
<span class="ruby-keyword kw">end</span>
|
443
|
-
</pre>
|
444
|
-
</div>
|
445
|
-
</div>
|
446
|
-
</div>
|
447
|
-
<div class="method">
|
448
|
-
<div class="title">
|
449
|
-
<a name="M000127"></a><b>clear</b>()
|
450
|
-
</div>
|
451
|
-
<div class="sourcecode">
|
452
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000127_source')" id="l_M000127_source">+</a> ]</p>
|
453
|
-
<div id="M000127_source" class="dyn-source">
|
454
|
-
<pre>
|
455
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 298</span>
|
456
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear</span>
|
457
|
-
<span class="ruby-ivar">@order</span> = []
|
458
|
-
<span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">clear</span>
|
459
|
-
<span class="ruby-keyword kw">end</span>
|
460
|
-
</pre>
|
461
|
-
</div>
|
462
|
-
</div>
|
463
|
-
</div>
|
464
|
-
<div class="method">
|
465
|
-
<div class="title">
|
466
|
-
<a name="M000128"></a><b>delete</b>( key )
|
467
|
-
</div>
|
468
|
-
<div class="sourcecode">
|
469
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000128_source')" id="l_M000128_source">+</a> ]</p>
|
470
|
-
<div id="M000128_source" class="dyn-source">
|
471
|
-
<pre>
|
472
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 303</span>
|
473
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>( <span class="ruby-identifier">key</span> )
|
474
|
-
<span class="ruby-ivar">@order</span>.<span class="ruby-identifier">delete</span>( <span class="ruby-identifier">key</span> )
|
475
|
-
<span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">delete</span>( <span class="ruby-identifier">key</span> )
|
476
|
-
<span class="ruby-keyword kw">end</span>
|
477
|
-
</pre>
|
478
|
-
</div>
|
479
|
-
</div>
|
480
|
-
</div>
|
481
|
-
<div class="method">
|
482
|
-
<div class="title">
|
483
|
-
<a name="M000133"></a><b>delete_if</b>() {|k,@hash[k]| ...}
|
484
|
-
</div>
|
485
|
-
<div class="sourcecode">
|
486
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000133_source')" id="l_M000133_source">+</a> ]</p>
|
487
|
-
<div id="M000133_source" class="dyn-source">
|
488
|
-
<pre>
|
489
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 324</span>
|
490
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_if</span>
|
491
|
-
<span class="ruby-identifier">order</span>.<span class="ruby-identifier">clone</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">delete</span> <span class="ruby-identifier">k</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">k</span>,<span class="ruby-ivar">@hash</span>[<span class="ruby-identifier">k</span>]) }
|
492
|
-
<span class="ruby-keyword kw">self</span>
|
493
|
-
<span class="ruby-keyword kw">end</span>
|
494
|
-
</pre>
|
495
|
-
</div>
|
496
|
-
</div>
|
497
|
-
</div>
|
498
|
-
<div class="method">
|
499
|
-
<div class="title">
|
500
|
-
<a name="M000146"></a><b>dup</b>()
|
501
|
-
</div>
|
502
|
-
<div class="sourcecode">
|
503
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000146_source')" id="l_M000146_source">+</a> ]</p>
|
504
|
-
<div id="M000146_source" class="dyn-source">
|
505
|
-
<pre>
|
506
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 406</span>
|
507
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dup</span>
|
508
|
-
<span class="ruby-identifier">a</span> = []
|
509
|
-
<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">k</span>; <span class="ruby-identifier">a</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">v</span> }
|
510
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>[<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>]
|
511
|
-
<span class="ruby-keyword kw">end</span>
|
512
|
-
</pre>
|
513
|
-
</div>
|
514
|
-
</div>
|
515
|
-
</div>
|
516
|
-
<div class="method">
|
517
|
-
<div class="title">
|
518
|
-
<a name="M000131"></a><b>each</b>() {|k,@hash[k]| ...}
|
519
|
-
</div>
|
520
|
-
<div class="aka">
|
521
|
-
This method is also aliased as
|
522
|
-
<a href="Dictionary.html#M000132">each_pair</a>
|
523
|
-
</div>
|
524
|
-
<div class="sourcecode">
|
525
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000131_source')" id="l_M000131_source">+</a> ]</p>
|
526
|
-
<div id="M000131_source" class="dyn-source">
|
527
|
-
<pre>
|
528
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 318</span>
|
529
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>
|
530
|
-
<span class="ruby-identifier">order</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">yield</span>( <span class="ruby-identifier">k</span>,<span class="ruby-ivar">@hash</span>[<span class="ruby-identifier">k</span>] ) }
|
531
|
-
<span class="ruby-keyword kw">self</span>
|
532
|
-
<span class="ruby-keyword kw">end</span>
|
533
|
-
</pre>
|
534
|
-
</div>
|
535
|
-
</div>
|
536
|
-
</div>
|
537
|
-
<div class="method">
|
538
|
-
<div class="title">
|
539
|
-
<a name="M000129"></a><b>each_key</b>() {|k| ...}
|
540
|
-
</div>
|
541
|
-
<div class="sourcecode">
|
542
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000129_source')" id="l_M000129_source">+</a> ]</p>
|
543
|
-
<div id="M000129_source" class="dyn-source">
|
544
|
-
<pre>
|
545
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 308</span>
|
546
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_key</span>
|
547
|
-
<span class="ruby-identifier">order</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">yield</span>( <span class="ruby-identifier">k</span> ) }
|
548
|
-
<span class="ruby-keyword kw">self</span>
|
549
|
-
<span class="ruby-keyword kw">end</span>
|
550
|
-
</pre>
|
551
|
-
</div>
|
552
|
-
</div>
|
553
|
-
</div>
|
554
|
-
<div class="method">
|
555
|
-
<div class="title">
|
556
|
-
<a name="M000132"></a><b>each_pair</b>()
|
557
|
-
</div>
|
558
|
-
<div class="description">
|
559
|
-
<p>
|
560
|
-
Alias for <a href="Dictionary.html#M000131">each</a>
|
561
|
-
</p>
|
562
|
-
</div>
|
563
|
-
</div>
|
564
|
-
<div class="method">
|
565
|
-
<div class="title">
|
566
|
-
<a name="M000130"></a><b>each_value</b>() {|@hash[k]| ...}
|
567
|
-
</div>
|
568
|
-
<div class="sourcecode">
|
569
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000130_source')" id="l_M000130_source">+</a> ]</p>
|
570
|
-
<div id="M000130_source" class="dyn-source">
|
571
|
-
<pre>
|
572
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 313</span>
|
573
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_value</span>
|
574
|
-
<span class="ruby-identifier">order</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">yield</span>( <span class="ruby-ivar">@hash</span>[<span class="ruby-identifier">k</span>] ) }
|
575
|
-
<span class="ruby-keyword kw">self</span>
|
576
|
-
<span class="ruby-keyword kw">end</span>
|
577
|
-
</pre>
|
578
|
-
</div>
|
579
|
-
</div>
|
580
|
-
</div>
|
581
|
-
<div class="method">
|
582
|
-
<div class="title">
|
583
|
-
<a name="M000157"></a><b>empty?</b>()
|
584
|
-
</div>
|
585
|
-
<div class="sourcecode">
|
586
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000157_source')" id="l_M000157_source">+</a> ]</p>
|
587
|
-
<div id="M000157_source" class="dyn-source">
|
588
|
-
<pre>
|
589
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 455</span>
|
590
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">empty?</span>
|
591
|
-
<span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">empty?</span>
|
592
|
-
<span class="ruby-keyword kw">end</span>
|
593
|
-
</pre>
|
594
|
-
</div>
|
595
|
-
</div>
|
596
|
-
</div>
|
597
|
-
<div class="method">
|
598
|
-
<div class="title">
|
599
|
-
<a name="M000123"></a><b>fetch</b>(k, *a, &b)
|
600
|
-
</div>
|
601
|
-
<div class="sourcecode">
|
602
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000123_source')" id="l_M000123_source">+</a> ]</p>
|
603
|
-
<div id="M000123_source" class="dyn-source">
|
604
|
-
<pre>
|
605
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 268</span>
|
606
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">k</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">a</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
607
|
-
<span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">k</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">a</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
608
|
-
<span class="ruby-keyword kw">end</span>
|
609
|
-
</pre>
|
610
|
-
</div>
|
611
|
-
</div>
|
612
|
-
</div>
|
613
|
-
<div class="method">
|
614
|
-
<div class="title">
|
615
|
-
<a name="M000153"></a><b>first</b>(x=nil)
|
616
|
-
</div>
|
617
|
-
<div class="sourcecode">
|
618
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000153_source')" id="l_M000153_source">+</a> ]</p>
|
619
|
-
<div id="M000153_source" class="dyn-source">
|
620
|
-
<pre>
|
621
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 439</span>
|
622
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first</span>(<span class="ruby-identifier">x</span>=<span class="ruby-keyword kw">nil</span>)
|
623
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-identifier">order</span>.<span class="ruby-identifier">first</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">x</span>
|
624
|
-
<span class="ruby-identifier">order</span>.<span class="ruby-identifier">first</span>(<span class="ruby-identifier">x</span>).<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-identifier">k</span>] }
|
625
|
-
<span class="ruby-keyword kw">end</span>
|
626
|
-
</pre>
|
627
|
-
</div>
|
628
|
-
</div>
|
629
|
-
</div>
|
630
|
-
<div class="method">
|
631
|
-
<div class="title">
|
632
|
-
<a name="M000158"></a><b>has_key?</b>(key)
|
633
|
-
</div>
|
634
|
-
<div class="sourcecode">
|
635
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000158_source')" id="l_M000158_source">+</a> ]</p>
|
636
|
-
<div id="M000158_source" class="dyn-source">
|
637
|
-
<pre>
|
638
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 459</span>
|
639
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">key</span>)
|
640
|
-
<span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">key</span>)
|
641
|
-
<span class="ruby-keyword kw">end</span>
|
642
|
-
</pre>
|
643
|
-
</div>
|
644
|
-
</div>
|
645
|
-
</div>
|
646
|
-
<div class="method">
|
647
|
-
<div class="title">
|
648
|
-
<a name="M000125"></a><b>insert</b>( i,k,v )
|
649
|
-
</div>
|
650
|
-
<div class="sourcecode">
|
651
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000125_source')" id="l_M000125_source">+</a> ]</p>
|
652
|
-
<div id="M000125_source" class="dyn-source">
|
653
|
-
<pre>
|
654
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 288</span>
|
655
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert</span>( <span class="ruby-identifier">i</span>,<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span> )
|
656
|
-
<span class="ruby-ivar">@order</span>.<span class="ruby-identifier">insert</span>( <span class="ruby-identifier">i</span>,<span class="ruby-identifier">k</span> )
|
657
|
-
<span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">store</span>( <span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span> )
|
658
|
-
<span class="ruby-keyword kw">end</span>
|
659
|
-
</pre>
|
660
|
-
</div>
|
661
|
-
</div>
|
662
|
-
</div>
|
663
|
-
<div class="method">
|
664
|
-
<div class="title">
|
665
|
-
<a name="M000145"></a><b>inspect</b>()
|
666
|
-
</div>
|
667
|
-
<div class="sourcecode">
|
668
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000145_source')" id="l_M000145_source">+</a> ]</p>
|
669
|
-
<div id="M000145_source" class="dyn-source">
|
670
|
-
<pre>
|
671
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 400</span>
|
672
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
673
|
-
<span class="ruby-identifier">ary</span> = []
|
674
|
-
<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">ary</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">inspect</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"=>"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">inspect</span>}
|
675
|
-
<span class="ruby-value str">'{'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">ary</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">", "</span>) <span class="ruby-operator">+</span> <span class="ruby-value str">'}'</span>
|
676
|
-
<span class="ruby-keyword kw">end</span>
|
677
|
-
</pre>
|
678
|
-
</div>
|
679
|
-
</div>
|
680
|
-
</div>
|
681
|
-
<div class="method">
|
682
|
-
<div class="title">
|
683
|
-
<a name="M000136"></a><b>invert</b>()
|
684
|
-
</div>
|
685
|
-
<div class="sourcecode">
|
686
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000136_source')" id="l_M000136_source">+</a> ]</p>
|
687
|
-
<div id="M000136_source" class="dyn-source">
|
688
|
-
<pre>
|
689
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 339</span>
|
690
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">invert</span>
|
691
|
-
<span class="ruby-identifier">hsh2</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">new</span>
|
692
|
-
<span class="ruby-identifier">order</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">hsh2</span>[<span class="ruby-ivar">@hash</span>[<span class="ruby-identifier">k</span>]] = <span class="ruby-identifier">k</span> }
|
693
|
-
<span class="ruby-identifier">hsh2</span>
|
694
|
-
<span class="ruby-keyword kw">end</span>
|
695
|
-
</pre>
|
696
|
-
</div>
|
697
|
-
</div>
|
698
|
-
</div>
|
699
|
-
<div class="method">
|
700
|
-
<div class="title">
|
701
|
-
<a name="M000159"></a><b>key?</b>(key)
|
702
|
-
</div>
|
703
|
-
<div class="sourcecode">
|
704
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000159_source')" id="l_M000159_source">+</a> ]</p>
|
705
|
-
<div id="M000159_source" class="dyn-source">
|
706
|
-
<pre>
|
707
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 463</span>
|
708
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">key?</span>(<span class="ruby-identifier">key</span>)
|
709
|
-
<span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">key</span>)
|
710
|
-
<span class="ruby-keyword kw">end</span>
|
711
|
-
</pre>
|
712
|
-
</div>
|
713
|
-
</div>
|
714
|
-
</div>
|
715
|
-
<div class="method">
|
716
|
-
<div class="title">
|
717
|
-
<a name="M000135"></a><b>keys</b>()
|
718
|
-
</div>
|
719
|
-
<div class="sourcecode">
|
720
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000135_source')" id="l_M000135_source">+</a> ]</p>
|
721
|
-
<div id="M000135_source" class="dyn-source">
|
722
|
-
<pre>
|
723
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 335</span>
|
724
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">keys</span>
|
725
|
-
<span class="ruby-identifier">order</span>
|
726
|
-
<span class="ruby-keyword kw">end</span>
|
727
|
-
</pre>
|
728
|
-
</div>
|
729
|
-
</div>
|
730
|
-
</div>
|
731
|
-
<div class="method">
|
732
|
-
<div class="title">
|
733
|
-
<a name="M000154"></a><b>last</b>(x=nil)
|
734
|
-
</div>
|
735
|
-
<div class="sourcecode">
|
736
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000154_source')" id="l_M000154_source">+</a> ]</p>
|
737
|
-
<div id="M000154_source" class="dyn-source">
|
738
|
-
<pre>
|
739
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 445</span>
|
740
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last</span>(<span class="ruby-identifier">x</span>=<span class="ruby-keyword kw">nil</span>)
|
741
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-identifier">order</span>.<span class="ruby-identifier">last</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">x</span>
|
742
|
-
<span class="ruby-identifier">order</span>.<span class="ruby-identifier">last</span>(<span class="ruby-identifier">x</span>).<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-identifier">k</span>] }
|
743
|
-
<span class="ruby-keyword kw">end</span>
|
744
|
-
</pre>
|
745
|
-
</div>
|
746
|
-
</div>
|
747
|
-
</div>
|
748
|
-
<div class="method">
|
749
|
-
<div class="title">
|
750
|
-
<a name="M000155"></a><b>length</b>()
|
751
|
-
</div>
|
752
|
-
<div class="aka">
|
753
|
-
This method is also aliased as
|
754
|
-
<a href="Dictionary.html#M000156">size</a>
|
755
|
-
</div>
|
756
|
-
<div class="sourcecode">
|
757
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000155_source')" id="l_M000155_source">+</a> ]</p>
|
758
|
-
<div id="M000155_source" class="dyn-source">
|
759
|
-
<pre>
|
760
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 450</span>
|
761
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">length</span>
|
762
|
-
<span class="ruby-ivar">@order</span>.<span class="ruby-identifier">length</span>
|
763
|
-
<span class="ruby-keyword kw">end</span>
|
764
|
-
</pre>
|
765
|
-
</div>
|
766
|
-
</div>
|
767
|
-
</div>
|
768
|
-
<div class="method">
|
769
|
-
<div class="title">
|
770
|
-
<a name="M000149"></a><b>merge</b>( hsh2 )
|
771
|
-
</div>
|
772
|
-
<div class="sourcecode">
|
773
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000149_source')" id="l_M000149_source">+</a> ]</p>
|
774
|
-
<div id="M000149_source" class="dyn-source">
|
775
|
-
<pre>
|
776
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 419</span>
|
777
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">merge</span>( <span class="ruby-identifier">hsh2</span> )
|
778
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">hsh2</span>)
|
779
|
-
<span class="ruby-keyword kw">end</span>
|
780
|
-
</pre>
|
781
|
-
</div>
|
782
|
-
</div>
|
783
|
-
</div>
|
784
|
-
<div class="method">
|
785
|
-
<div class="title">
|
786
|
-
<a name="M000148"></a><b>merge!</b>( hsh2 )
|
787
|
-
</div>
|
788
|
-
<div class="description">
|
789
|
-
<p>
|
790
|
-
Alias for <a href="Dictionary.html#M000147">update</a>
|
791
|
-
</p>
|
792
|
-
</div>
|
793
|
-
</div>
|
794
|
-
<div class="method">
|
795
|
-
<div class="title">
|
796
|
-
<a name="M000116"></a><b>order</b>()
|
797
|
-
</div>
|
798
|
-
<div class="sourcecode">
|
799
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000116_source')" id="l_M000116_source">+</a> ]</p>
|
800
|
-
<div id="M000116_source" class="dyn-source">
|
801
|
-
<pre>
|
802
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 190</span>
|
803
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">order</span>
|
804
|
-
<span class="ruby-identifier">reorder</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@order_by</span>
|
805
|
-
<span class="ruby-ivar">@order</span>
|
806
|
-
<span class="ruby-keyword kw">end</span>
|
807
|
-
</pre>
|
808
|
-
</div>
|
809
|
-
</div>
|
810
|
-
</div>
|
811
|
-
<div class="method">
|
812
|
-
<div class="title">
|
813
|
-
<a name="M000117"></a><b>order_by</b>( &block )
|
814
|
-
</div>
|
815
|
-
<div class="description">
|
816
|
-
<p>
|
817
|
-
Keep dictionary sorted by a specific sort <a
|
818
|
-
href="Dictionary.html#M000116">order</a>.
|
819
|
-
</p>
|
820
|
-
</div>
|
821
|
-
<div class="sourcecode">
|
822
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000117_source')" id="l_M000117_source">+</a> ]</p>
|
823
|
-
<div id="M000117_source" class="dyn-source">
|
824
|
-
<pre>
|
825
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 197</span>
|
826
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">order_by</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">block</span> )
|
827
|
-
<span class="ruby-ivar">@order_by</span> = <span class="ruby-identifier">block</span>
|
828
|
-
<span class="ruby-identifier">order</span>
|
829
|
-
<span class="ruby-keyword kw">self</span>
|
830
|
-
<span class="ruby-keyword kw">end</span>
|
831
|
-
</pre>
|
832
|
-
</div>
|
833
|
-
</div>
|
834
|
-
</div>
|
835
|
-
<div class="method">
|
836
|
-
<div class="title">
|
837
|
-
<a name="M000118"></a><b>order_by_key</b>()
|
838
|
-
</div>
|
839
|
-
<div class="description">
|
840
|
-
<p>
|
841
|
-
Keep dictionary sorted by key.
|
842
|
-
</p>
|
843
|
-
<pre>
|
844
|
-
d = Dictionary.new.order_by_key
|
845
|
-
d["z"] = 1
|
846
|
-
d["y"] = 2
|
847
|
-
d["x"] = 3
|
848
|
-
d #=> {"x"=>3,"y"=>2,"z"=>2}
|
849
|
-
</pre>
|
850
|
-
<p>
|
851
|
-
This is equivalent to:
|
852
|
-
</p>
|
853
|
-
<pre>
|
854
|
-
Dictionary.new.order_by { |key,value| key }
|
855
|
-
</pre>
|
856
|
-
<p>
|
857
|
-
The initializer <a href="Dictionary.html#M000113">Dictionary#alpha</a> also
|
858
|
-
provides this.
|
859
|
-
</p>
|
860
|
-
</div>
|
861
|
-
<div class="sourcecode">
|
862
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000118_source')" id="l_M000118_source">+</a> ]</p>
|
863
|
-
<div id="M000118_source" class="dyn-source">
|
864
|
-
<pre>
|
865
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 217</span>
|
866
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">order_by_key</span>
|
867
|
-
<span class="ruby-ivar">@order_by</span> = <span class="ruby-identifier">lambda</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span> }
|
868
|
-
<span class="ruby-identifier">order</span>
|
869
|
-
<span class="ruby-keyword kw">self</span>
|
870
|
-
<span class="ruby-keyword kw">end</span>
|
871
|
-
</pre>
|
872
|
-
</div>
|
873
|
-
</div>
|
874
|
-
</div>
|
875
|
-
<div class="method">
|
876
|
-
<div class="title">
|
877
|
-
<a name="M000119"></a><b>order_by_value</b>()
|
878
|
-
</div>
|
879
|
-
<div class="description">
|
880
|
-
<p>
|
881
|
-
Keep dictionary sorted by value.
|
882
|
-
</p>
|
883
|
-
<pre>
|
884
|
-
d = Dictionary.new.order_by_value
|
885
|
-
d["z"] = 1
|
886
|
-
d["y"] = 2
|
887
|
-
d["x"] = 3
|
888
|
-
d #=> {"x"=>3,"y"=>2,"z"=>2}
|
889
|
-
</pre>
|
890
|
-
<p>
|
891
|
-
This is equivalent to:
|
892
|
-
</p>
|
893
|
-
<pre>
|
894
|
-
Dictionary.new.order_by { |key,value| value }
|
895
|
-
</pre>
|
896
|
-
</div>
|
897
|
-
<div class="sourcecode">
|
898
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000119_source')" id="l_M000119_source">+</a> ]</p>
|
899
|
-
<div id="M000119_source" class="dyn-source">
|
900
|
-
<pre>
|
901
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 235</span>
|
902
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">order_by_value</span>
|
903
|
-
<span class="ruby-ivar">@order_by</span> = <span class="ruby-identifier">lambda</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">v</span> }
|
904
|
-
<span class="ruby-identifier">order</span>
|
905
|
-
<span class="ruby-keyword kw">self</span>
|
906
|
-
<span class="ruby-keyword kw">end</span>
|
907
|
-
</pre>
|
908
|
-
</div>
|
909
|
-
</div>
|
910
|
-
</div>
|
911
|
-
<div class="method">
|
912
|
-
<div class="title">
|
913
|
-
<a name="M000144"></a><b>pop</b>()
|
914
|
-
</div>
|
915
|
-
<div class="sourcecode">
|
916
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000144_source')" id="l_M000144_source">+</a> ]</p>
|
917
|
-
<div id="M000144_source" class="dyn-source">
|
918
|
-
<pre>
|
919
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 395</span>
|
920
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pop</span>
|
921
|
-
<span class="ruby-identifier">key</span> = <span class="ruby-identifier">order</span>.<span class="ruby-identifier">last</span>
|
922
|
-
<span class="ruby-identifier">key</span> <span class="ruby-value">? </span>[<span class="ruby-identifier">key</span>,<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">key</span>)] <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span>
|
923
|
-
<span class="ruby-keyword kw">end</span>
|
924
|
-
</pre>
|
925
|
-
</div>
|
926
|
-
</div>
|
927
|
-
</div>
|
928
|
-
<div class="method">
|
929
|
-
<div class="title">
|
930
|
-
<a name="M000143"></a><b>push</b>( k,v )
|
931
|
-
</div>
|
932
|
-
<div class="sourcecode">
|
933
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000143_source')" id="l_M000143_source">+</a> ]</p>
|
934
|
-
<div id="M000143_source" class="dyn-source">
|
935
|
-
<pre>
|
936
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 385</span>
|
937
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span>( <span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span> )
|
938
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">include?</span>( <span class="ruby-identifier">k</span> )
|
939
|
-
<span class="ruby-ivar">@order</span>.<span class="ruby-identifier">push</span>( <span class="ruby-identifier">k</span> )
|
940
|
-
<span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">store</span>( <span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span> )
|
941
|
-
<span class="ruby-keyword kw">true</span>
|
942
|
-
<span class="ruby-keyword kw">else</span>
|
943
|
-
<span class="ruby-keyword kw">false</span>
|
944
|
-
<span class="ruby-keyword kw">end</span>
|
945
|
-
<span class="ruby-keyword kw">end</span>
|
946
|
-
</pre>
|
947
|
-
</div>
|
948
|
-
</div>
|
949
|
-
</div>
|
950
|
-
<div class="method">
|
951
|
-
<div class="title">
|
952
|
-
<a name="M000137"></a><b>reject</b>(&block)
|
953
|
-
</div>
|
954
|
-
<div class="sourcecode">
|
955
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000137_source')" id="l_M000137_source">+</a> ]</p>
|
956
|
-
<div id="M000137_source" class="dyn-source">
|
957
|
-
<pre>
|
958
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 345</span>
|
959
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reject</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
960
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">delete_if</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
961
|
-
<span class="ruby-keyword kw">end</span>
|
962
|
-
</pre>
|
963
|
-
</div>
|
964
|
-
</div>
|
965
|
-
</div>
|
966
|
-
<div class="method">
|
967
|
-
<div class="title">
|
968
|
-
<a name="M000138"></a><b>reject!</b>( &block )
|
969
|
-
</div>
|
970
|
-
<div class="sourcecode">
|
971
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000138_source')" id="l_M000138_source">+</a> ]</p>
|
972
|
-
<div id="M000138_source" class="dyn-source">
|
973
|
-
<pre>
|
974
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 349</span>
|
975
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reject!</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">block</span> )
|
976
|
-
<span class="ruby-identifier">hsh2</span> = <span class="ruby-identifier">reject</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
977
|
-
<span class="ruby-keyword kw">self</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">hsh2</span> <span class="ruby-value">? </span><span class="ruby-keyword kw">nil</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">hsh2</span>
|
978
|
-
<span class="ruby-keyword kw">end</span>
|
979
|
-
</pre>
|
980
|
-
</div>
|
981
|
-
</div>
|
982
|
-
</div>
|
983
|
-
<div class="method">
|
984
|
-
<div class="title">
|
985
|
-
<a name="M000120"></a><b>reorder</b>()
|
986
|
-
</div>
|
987
|
-
<div class="sourcecode">
|
988
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000120_source')" id="l_M000120_source">+</a> ]</p>
|
989
|
-
<div id="M000120_source" class="dyn-source">
|
990
|
-
<pre>
|
991
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 242</span>
|
992
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reorder</span>
|
993
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@order_by</span>
|
994
|
-
<span class="ruby-identifier">assoc</span> = <span class="ruby-ivar">@order</span>.<span class="ruby-identifier">collect</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> [<span class="ruby-identifier">k</span>,<span class="ruby-ivar">@hash</span>[<span class="ruby-identifier">k</span>]] }.<span class="ruby-identifier">sort_by</span>(<span class="ruby-operator">&</span><span class="ruby-ivar">@order_by</span>)
|
995
|
-
<span class="ruby-ivar">@order</span> = <span class="ruby-identifier">assoc</span>.<span class="ruby-identifier">collect</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span> }
|
996
|
-
<span class="ruby-keyword kw">end</span>
|
997
|
-
<span class="ruby-ivar">@order</span>
|
998
|
-
<span class="ruby-keyword kw">end</span>
|
999
|
-
</pre>
|
1000
|
-
</div>
|
1001
|
-
</div>
|
1002
|
-
</div>
|
1003
|
-
<div class="method">
|
1004
|
-
<div class="title">
|
1005
|
-
<a name="M000139"></a><b>replace</b>(hsh2)
|
1006
|
-
</div>
|
1007
|
-
<div class="sourcecode">
|
1008
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000139_source')" id="l_M000139_source">+</a> ]</p>
|
1009
|
-
<div id="M000139_source" class="dyn-source">
|
1010
|
-
<pre>
|
1011
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 354</span>
|
1012
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">replace</span>(<span class="ruby-identifier">hsh2</span>)
|
1013
|
-
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">hsh2</span>
|
1014
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">Hash</span>
|
1015
|
-
<span class="ruby-ivar">@order</span> = <span class="ruby-identifier">hsh2</span>.<span class="ruby-identifier">keys</span>
|
1016
|
-
<span class="ruby-ivar">@hash</span> = <span class="ruby-identifier">hsh2</span>
|
1017
|
-
<span class="ruby-keyword kw">else</span>
|
1018
|
-
<span class="ruby-ivar">@order</span> = <span class="ruby-identifier">hsh2</span>.<span class="ruby-identifier">order</span>
|
1019
|
-
<span class="ruby-ivar">@hash</span> = <span class="ruby-identifier">hsh2</span>.<span class="ruby-identifier">hash</span>
|
1020
|
-
<span class="ruby-keyword kw">end</span>
|
1021
|
-
<span class="ruby-identifier">reorder</span>
|
1022
|
-
<span class="ruby-keyword kw">end</span>
|
1023
|
-
</pre>
|
1024
|
-
</div>
|
1025
|
-
</div>
|
1026
|
-
</div>
|
1027
|
-
<div class="method">
|
1028
|
-
<div class="title">
|
1029
|
-
<a name="M000152"></a><b>reverse</b>()
|
1030
|
-
</div>
|
1031
|
-
<div class="sourcecode">
|
1032
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000152_source')" id="l_M000152_source">+</a> ]</p>
|
1033
|
-
<div id="M000152_source" class="dyn-source">
|
1034
|
-
<pre>
|
1035
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 434</span>
|
1036
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse</span>
|
1037
|
-
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">reverse!</span>
|
1038
|
-
<span class="ruby-keyword kw">end</span>
|
1039
|
-
</pre>
|
1040
|
-
</div>
|
1041
|
-
</div>
|
1042
|
-
</div>
|
1043
|
-
<div class="method">
|
1044
|
-
<div class="title">
|
1045
|
-
<a name="M000151"></a><b>reverse!</b>()
|
1046
|
-
</div>
|
1047
|
-
<div class="sourcecode">
|
1048
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000151_source')" id="l_M000151_source">+</a> ]</p>
|
1049
|
-
<div id="M000151_source" class="dyn-source">
|
1050
|
-
<pre>
|
1051
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 429</span>
|
1052
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse!</span>
|
1053
|
-
<span class="ruby-ivar">@order</span>.<span class="ruby-identifier">reverse!</span>
|
1054
|
-
<span class="ruby-keyword kw">self</span>
|
1055
|
-
<span class="ruby-keyword kw">end</span>
|
1056
|
-
</pre>
|
1057
|
-
</div>
|
1058
|
-
</div>
|
1059
|
-
</div>
|
1060
|
-
<div class="method">
|
1061
|
-
<div class="title">
|
1062
|
-
<a name="M000150"></a><b>select</b>() {|k,v| ...}
|
1063
|
-
</div>
|
1064
|
-
<div class="sourcecode">
|
1065
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000150_source')" id="l_M000150_source">+</a> ]</p>
|
1066
|
-
<div id="M000150_source" class="dyn-source">
|
1067
|
-
<pre>
|
1068
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 423</span>
|
1069
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select</span>
|
1070
|
-
<span class="ruby-identifier">ary</span> = []
|
1071
|
-
<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">ary</span> <span class="ruby-operator"><<</span> [<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span> }
|
1072
|
-
<span class="ruby-identifier">ary</span>
|
1073
|
-
<span class="ruby-keyword kw">end</span>
|
1074
|
-
</pre>
|
1075
|
-
</div>
|
1076
|
-
</div>
|
1077
|
-
</div>
|
1078
|
-
<div class="method">
|
1079
|
-
<div class="title">
|
1080
|
-
<a name="M000140"></a><b>shift</b>()
|
1081
|
-
</div>
|
1082
|
-
<div class="sourcecode">
|
1083
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000140_source')" id="l_M000140_source">+</a> ]</p>
|
1084
|
-
<div id="M000140_source" class="dyn-source">
|
1085
|
-
<pre>
|
1086
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 366</span>
|
1087
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shift</span>
|
1088
|
-
<span class="ruby-identifier">key</span> = <span class="ruby-identifier">order</span>.<span class="ruby-identifier">first</span>
|
1089
|
-
<span class="ruby-identifier">key</span> <span class="ruby-value">? </span>[<span class="ruby-identifier">key</span>,<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">key</span>)] <span class="ruby-operator">:</span> <span class="ruby-keyword kw">super</span>
|
1090
|
-
<span class="ruby-keyword kw">end</span>
|
1091
|
-
</pre>
|
1092
|
-
</div>
|
1093
|
-
</div>
|
1094
|
-
</div>
|
1095
|
-
<div class="method">
|
1096
|
-
<div class="title">
|
1097
|
-
<a name="M000156"></a><b>size</b>()
|
1098
|
-
</div>
|
1099
|
-
<div class="description">
|
1100
|
-
<p>
|
1101
|
-
Alias for <a href="Dictionary.html#M000155">length</a>
|
1102
|
-
</p>
|
1103
|
-
</div>
|
1104
|
-
</div>
|
1105
|
-
<div class="method">
|
1106
|
-
<div class="title">
|
1107
|
-
<a name="M000126"></a><b>store</b>( a,b )
|
1108
|
-
</div>
|
1109
|
-
<div class="sourcecode">
|
1110
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000126_source')" id="l_M000126_source">+</a> ]</p>
|
1111
|
-
<div id="M000126_source" class="dyn-source">
|
1112
|
-
<pre>
|
1113
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 293</span>
|
1114
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store</span>( <span class="ruby-identifier">a</span>,<span class="ruby-identifier">b</span> )
|
1115
|
-
<span class="ruby-ivar">@order</span>.<span class="ruby-identifier">push</span>( <span class="ruby-identifier">a</span> ) <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">has_key?</span>( <span class="ruby-identifier">a</span> )
|
1116
|
-
<span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">store</span>( <span class="ruby-identifier">a</span>,<span class="ruby-identifier">b</span> )
|
1117
|
-
<span class="ruby-keyword kw">end</span>
|
1118
|
-
</pre>
|
1119
|
-
</div>
|
1120
|
-
</div>
|
1121
|
-
</div>
|
1122
|
-
<div class="method">
|
1123
|
-
<div class="title">
|
1124
|
-
<a name="M000160"></a><b>to_a</b>()
|
1125
|
-
</div>
|
1126
|
-
<div class="sourcecode">
|
1127
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000160_source')" id="l_M000160_source">+</a> ]</p>
|
1128
|
-
<div id="M000160_source" class="dyn-source">
|
1129
|
-
<pre>
|
1130
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 467</span>
|
1131
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span>
|
1132
|
-
<span class="ruby-identifier">ary</span> = []
|
1133
|
-
<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">ary</span> <span class="ruby-operator"><<</span> [<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>] }
|
1134
|
-
<span class="ruby-identifier">ary</span>
|
1135
|
-
<span class="ruby-keyword kw">end</span>
|
1136
|
-
</pre>
|
1137
|
-
</div>
|
1138
|
-
</div>
|
1139
|
-
</div>
|
1140
|
-
<div class="method">
|
1141
|
-
<div class="title">
|
1142
|
-
<a name="M000163"></a><b>to_h</b>()
|
1143
|
-
</div>
|
1144
|
-
<div class="sourcecode">
|
1145
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000163_source')" id="l_M000163_source">+</a> ]</p>
|
1146
|
-
<div id="M000163_source" class="dyn-source">
|
1147
|
-
<pre>
|
1148
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 481</span>
|
1149
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>
|
1150
|
-
<span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">dup</span>
|
1151
|
-
<span class="ruby-keyword kw">end</span>
|
1152
|
-
</pre>
|
1153
|
-
</div>
|
1154
|
-
</div>
|
1155
|
-
</div>
|
1156
|
-
<div class="method">
|
1157
|
-
<div class="title">
|
1158
|
-
<a name="M000162"></a><b>to_hash</b>()
|
1159
|
-
</div>
|
1160
|
-
<div class="sourcecode">
|
1161
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000162_source')" id="l_M000162_source">+</a> ]</p>
|
1162
|
-
<div id="M000162_source" class="dyn-source">
|
1163
|
-
<pre>
|
1164
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 477</span>
|
1165
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_hash</span>
|
1166
|
-
<span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">dup</span>
|
1167
|
-
<span class="ruby-keyword kw">end</span>
|
1168
|
-
</pre>
|
1169
|
-
</div>
|
1170
|
-
</div>
|
1171
|
-
</div>
|
1172
|
-
<div class="method">
|
1173
|
-
<div class="title">
|
1174
|
-
<a name="M000161"></a><b>to_s</b>()
|
1175
|
-
</div>
|
1176
|
-
<div class="sourcecode">
|
1177
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000161_source')" id="l_M000161_source">+</a> ]</p>
|
1178
|
-
<div id="M000161_source" class="dyn-source">
|
1179
|
-
<pre>
|
1180
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 473</span>
|
1181
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
1182
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">to_s</span>
|
1183
|
-
<span class="ruby-keyword kw">end</span>
|
1184
|
-
</pre>
|
1185
|
-
</div>
|
1186
|
-
</div>
|
1187
|
-
</div>
|
1188
|
-
<div class="method">
|
1189
|
-
<div class="title">
|
1190
|
-
<a name="M000141"></a><b>unshift</b>( k,v )
|
1191
|
-
</div>
|
1192
|
-
<div class="sourcecode">
|
1193
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000141_source')" id="l_M000141_source">+</a> ]</p>
|
1194
|
-
<div id="M000141_source" class="dyn-source">
|
1195
|
-
<pre>
|
1196
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 371</span>
|
1197
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unshift</span>( <span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span> )
|
1198
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">include?</span>( <span class="ruby-identifier">k</span> )
|
1199
|
-
<span class="ruby-ivar">@order</span>.<span class="ruby-identifier">unshift</span>( <span class="ruby-identifier">k</span> )
|
1200
|
-
<span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">store</span>( <span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span> )
|
1201
|
-
<span class="ruby-keyword kw">true</span>
|
1202
|
-
<span class="ruby-keyword kw">else</span>
|
1203
|
-
<span class="ruby-keyword kw">false</span>
|
1204
|
-
<span class="ruby-keyword kw">end</span>
|
1205
|
-
<span class="ruby-keyword kw">end</span>
|
1206
|
-
</pre>
|
1207
|
-
</div>
|
1208
|
-
</div>
|
1209
|
-
</div>
|
1210
|
-
<div class="method">
|
1211
|
-
<div class="title">
|
1212
|
-
<a name="M000147"></a><b>update</b>( hsh2 )
|
1213
|
-
</div>
|
1214
|
-
<div class="aka">
|
1215
|
-
This method is also aliased as
|
1216
|
-
<a href="Dictionary.html#M000148">merge!</a>
|
1217
|
-
</div>
|
1218
|
-
<div class="sourcecode">
|
1219
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000147_source')" id="l_M000147_source">+</a> ]</p>
|
1220
|
-
<div id="M000147_source" class="dyn-source">
|
1221
|
-
<pre>
|
1222
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 412</span>
|
1223
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>( <span class="ruby-identifier">hsh2</span> )
|
1224
|
-
<span class="ruby-identifier">hsh2</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">v</span> }
|
1225
|
-
<span class="ruby-identifier">reorder</span>
|
1226
|
-
<span class="ruby-keyword kw">self</span>
|
1227
|
-
<span class="ruby-keyword kw">end</span>
|
1228
|
-
</pre>
|
1229
|
-
</div>
|
1230
|
-
</div>
|
1231
|
-
</div>
|
1232
|
-
<div class="method">
|
1233
|
-
<div class="title">
|
1234
|
-
<a name="M000134"></a><b>values</b>()
|
1235
|
-
</div>
|
1236
|
-
<div class="sourcecode">
|
1237
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000134_source')" id="l_M000134_source">+</a> ]</p>
|
1238
|
-
<div id="M000134_source" class="dyn-source">
|
1239
|
-
<pre>
|
1240
|
-
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 329</span>
|
1241
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">values</span>
|
1242
|
-
<span class="ruby-identifier">ary</span> = []
|
1243
|
-
<span class="ruby-identifier">order</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">ary</span>.<span class="ruby-identifier">push</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-identifier">k</span>] }
|
1244
|
-
<span class="ruby-identifier">ary</span>
|
1245
|
-
<span class="ruby-keyword kw">end</span>
|
1246
|
-
</pre>
|
1247
|
-
</div>
|
1248
|
-
</div>
|
1249
|
-
</div>
|
1250
|
-
</div>
|
1251
|
-
|
1252
|
-
</div>
|
1253
|
-
|
1254
|
-
</body>
|
1255
|
-
</html>
|