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,140 +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>Module: Instantiable</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">Module</span><br />Instantiable</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/instantiable_rb.html">lib/more/facets/instantiable.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
</table>
|
64
|
-
</td>
|
65
|
-
</tr>
|
66
|
-
</table>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
<div id="content">
|
71
|
-
|
72
|
-
<div class="description"><h1><a href="Instantiable.html">Instantiable</a></h1>
|
73
|
-
<p>
|
74
|
-
Initialize modules, almost as if they were classes.
|
75
|
-
</p>
|
76
|
-
<p>
|
77
|
-
Alows a module to be used much like a class, by defining a <a
|
78
|
-
href="Instantiable.html#M000954">new</a> method that creates a class on
|
79
|
-
demand.
|
80
|
-
</p>
|
81
|
-
</div>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<div class="sectiontitle">Methods</div>
|
86
|
-
<span style="padding-right: 5px;"><a href="#M000953">append_features</a></span>
|
87
|
-
<span style="padding-right: 5px;"><a href="#M000954">new</a></span>
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
<div class="sectiontitle">Public Class methods</div>
|
95
|
-
<div class="method">
|
96
|
-
<div class="title">
|
97
|
-
<a name="M000953"></a><b>append_features</b>(mod)
|
98
|
-
</div>
|
99
|
-
<div class="sourcecode">
|
100
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000953_source')" id="l_M000953_source">+</a> ]</p>
|
101
|
-
<div id="M000953_source" class="dyn-source">
|
102
|
-
<pre>
|
103
|
-
<span class="ruby-comment cmt"># File lib/more/facets/instantiable.rb, line 32</span>
|
104
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">append_features</span>(<span class="ruby-identifier">mod</span>)
|
105
|
-
<span class="ruby-identifier">mod</span>.<span class="ruby-identifier">extend</span> <span class="ruby-keyword kw">self</span>
|
106
|
-
<span class="ruby-keyword kw">end</span>
|
107
|
-
</pre>
|
108
|
-
</div>
|
109
|
-
</div>
|
110
|
-
</div>
|
111
|
-
<div class="sectiontitle">Public Instance methods</div>
|
112
|
-
<div class="method">
|
113
|
-
<div class="title">
|
114
|
-
<a name="M000954"></a><b>new</b>(*args,&blk)
|
115
|
-
</div>
|
116
|
-
<div class="description">
|
117
|
-
<p>
|
118
|
-
Never use a class agian! ;)
|
119
|
-
</p>
|
120
|
-
</div>
|
121
|
-
<div class="sourcecode">
|
122
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000954_source')" id="l_M000954_source">+</a> ]</p>
|
123
|
-
<div id="M000954_source" class="dyn-source">
|
124
|
-
<pre>
|
125
|
-
<span class="ruby-comment cmt"># File lib/more/facets/instantiable.rb, line 38</span>
|
126
|
-
<span class="ruby-keyword kw">def</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">blk</span>)
|
127
|
-
<span class="ruby-identifier">mod</span> = <span class="ruby-keyword kw">self</span>
|
128
|
-
<span class="ruby-ivar">@instantiable_class</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Class</span>.<span class="ruby-identifier">new</span>{<span class="ruby-identifier">include</span> <span class="ruby-identifier">mod</span>}
|
129
|
-
<span class="ruby-ivar">@instantiable_class</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">blk</span>)
|
130
|
-
<span class="ruby-keyword kw">end</span>
|
131
|
-
</pre>
|
132
|
-
</div>
|
133
|
-
</div>
|
134
|
-
</div>
|
135
|
-
</div>
|
136
|
-
|
137
|
-
</div>
|
138
|
-
|
139
|
-
</body>
|
140
|
-
</html>
|
@@ -1,160 +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>Module: Instantize</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">Module</span><br />Instantize</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/instantize_rb.html">lib/more/facets/instantize.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
</table>
|
64
|
-
</td>
|
65
|
-
</tr>
|
66
|
-
</table>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
<div id="content">
|
71
|
-
|
72
|
-
<div class="description"><h1><a href="Instantize.html">Instantize</a></h1>
|
73
|
-
<p>
|
74
|
-
<a href="Instantize.html">Instantize</a> converts module methods into
|
75
|
-
instance methods such that the first parameter is passed self at the
|
76
|
-
instance level. This promotes DRY programming when wishing to offer both an
|
77
|
-
inheritable and a module callable procedure.
|
78
|
-
</p>
|
79
|
-
<pre>
|
80
|
-
module MyModule
|
81
|
-
extend Instantize
|
82
|
-
|
83
|
-
def self.jumble( obj, arg )
|
84
|
-
obj + arg
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
class String
|
89
|
-
include MyModule
|
90
|
-
end
|
91
|
-
|
92
|
-
MyModule.jumble( "Try", "Me" ) #=> "TryMe"
|
93
|
-
|
94
|
-
"Try".jumble( "Me" ) #=> 'TryMe'
|
95
|
-
</pre>
|
96
|
-
<h2>Notes</h2>
|
97
|
-
<p>
|
98
|
-
This module used to be called PromoteSelf. <a
|
99
|
-
href="Instantize.html">Instantize</a> is more descriptive, but a better
|
100
|
-
name is probably still out there.
|
101
|
-
</p>
|
102
|
-
</div>
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
<div class="sectiontitle">Methods</div>
|
107
|
-
<span style="padding-right: 5px;"><a href="#M000975">append_features</a></span>
|
108
|
-
<span style="padding-right: 5px;"><a href="#M000976">singleton_method_added</a></span>
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
<div class="sectiontitle">Public Class methods</div>
|
116
|
-
<div class="method">
|
117
|
-
<div class="title">
|
118
|
-
<a name="M000975"></a><b>append_features</b>(mod)
|
119
|
-
</div>
|
120
|
-
<div class="sourcecode">
|
121
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000975_source')" id="l_M000975_source">+</a> ]</p>
|
122
|
-
<div id="M000975_source" class="dyn-source">
|
123
|
-
<pre>
|
124
|
-
<span class="ruby-comment cmt"># File lib/more/facets/instantize.rb, line 77</span>
|
125
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">append_features</span>(<span class="ruby-identifier">mod</span>)
|
126
|
-
<span class="ruby-identifier">mod</span>.<span class="ruby-identifier">extend</span> <span class="ruby-keyword kw">self</span>
|
127
|
-
<span class="ruby-keyword kw">end</span>
|
128
|
-
</pre>
|
129
|
-
</div>
|
130
|
-
</div>
|
131
|
-
</div>
|
132
|
-
<div class="sectiontitle">Public Instance methods</div>
|
133
|
-
<div class="method">
|
134
|
-
<div class="title">
|
135
|
-
<a name="M000976"></a><b>singleton_method_added</b>( meth )
|
136
|
-
</div>
|
137
|
-
<div class="sourcecode">
|
138
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000976_source')" id="l_M000976_source">+</a> ]</p>
|
139
|
-
<div id="M000976_source" class="dyn-source">
|
140
|
-
<pre>
|
141
|
-
<span class="ruby-comment cmt"># File lib/more/facets/instantize.rb, line 81</span>
|
142
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singleton_method_added</span>( <span class="ruby-identifier">meth</span> )
|
143
|
-
<span class="ruby-identifier">d</span> = <span class="ruby-node">%{
|
144
|
-
def #{meth}(*args)
|
145
|
-
#{self.name}.#{meth}(self,*args)
|
146
|
-
end
|
147
|
-
}</span>
|
148
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-identifier">d</span>
|
149
|
-
<span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">meth</span>)
|
150
|
-
<span class="ruby-keyword kw">end</span>
|
151
|
-
</pre>
|
152
|
-
</div>
|
153
|
-
</div>
|
154
|
-
</div>
|
155
|
-
</div>
|
156
|
-
|
157
|
-
</div>
|
158
|
-
|
159
|
-
</body>
|
160
|
-
</html>
|
@@ -1,877 +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: Interval</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 />Interval</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/interval_rb.html">lib/more/facets/interval.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="Interval.html">Interval</a></h1>
|
79
|
-
<p>
|
80
|
-
While Ruby support the Range class out of the box, is does not quite
|
81
|
-
fullfil the role od a real <a href="Interval.html">Interval</a> class. For
|
82
|
-
instance, it does not support excluding the front sentinel. This is because
|
83
|
-
Range also tries to do triple duty as a simple Sequence and as a simple <a
|
84
|
-
href="Tuple.html">Tuple</a>-Pair, thus limiting its potential as an <a
|
85
|
-
href="Interval.html">Interval</a>. The <a href="Interval.html">Interval</a>
|
86
|
-
class remedies the situation by commiting to interval behavior, and then
|
87
|
-
extends the class’ capabilites beyond that of the standard Range in
|
88
|
-
ways that naturally fall out of that.
|
89
|
-
</p>
|
90
|
-
<p>
|
91
|
-
Range depends on two methods: succ and #<=>. If numeric ranges were
|
92
|
-
the only concern, those could just as well be #+ and #<=>, but
|
93
|
-
esoteric forms make that unfeasible —the obvious example being a
|
94
|
-
String range. But a proper <a href="Interval.html">Interval</a> class
|
95
|
-
requires mathematical continuation, thus the <a
|
96
|
-
href="Interval.html">Interval</a> depends on #+ and #<=>, as well as
|
97
|
-
#- as the inverse of #+.
|
98
|
-
</p>
|
99
|
-
<pre>
|
100
|
-
i = Interval.new(1,5)
|
101
|
-
i.to_a #=> [1,2,3,4,5]
|
102
|
-
|
103
|
-
i = Interval[0,5]
|
104
|
-
i.to_a(2) #=> [0,2,4]
|
105
|
-
|
106
|
-
i = Interval[1,5]
|
107
|
-
i.to_a(-1) #=> [5,4,3,2,1]
|
108
|
-
|
109
|
-
i = Interval[1,3]
|
110
|
-
i.to_a(1,2) #=> [1.0,1.5,2.0,2.5,3.0]
|
111
|
-
</pre>
|
112
|
-
</div>
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
<div class="sectiontitle">Methods</div>
|
117
|
-
<span style="padding-right: 5px;"><a href="#M000610">+@</a></span>
|
118
|
-
<span style="padding-right: 5px;"><a href="#M000611">-@</a></span>
|
119
|
-
<span style="padding-right: 5px;"><a href="#M000620">===</a></span>
|
120
|
-
<span style="padding-right: 5px;"><a href="#M000589">[]</a></span>
|
121
|
-
<span style="padding-right: 5px;"><a href="#M000596">begin</a></span>
|
122
|
-
<span style="padding-right: 5px;"><a href="#M000603">closed</a></span>
|
123
|
-
<span style="padding-right: 5px;"><a href="#M000600">degenerate?</a></span>
|
124
|
-
<span style="padding-right: 5px;"><a href="#M000602">direction</a></span>
|
125
|
-
<span style="padding-right: 5px;"><a href="#M000614">distance</a></span>
|
126
|
-
<span style="padding-right: 5px;"><a href="#M000622">each</a></span>
|
127
|
-
<span style="padding-right: 5px;"><a href="#M000597">end</a></span>
|
128
|
-
<span style="padding-right: 5px;"><a href="#M000624">eql?</a></span>
|
129
|
-
<span style="padding-right: 5px;"><a href="#M000598">exclude_begin?</a></span>
|
130
|
-
<span style="padding-right: 5px;"><a href="#M000599">exclude_end?</a></span>
|
131
|
-
<span style="padding-right: 5px;"><a href="#M000594">exclude_first?</a></span>
|
132
|
-
<span style="padding-right: 5px;"><a href="#M000595">exclude_last?</a></span>
|
133
|
-
<span style="padding-right: 5px;"><a href="#M000592">first</a></span>
|
134
|
-
<span style="padding-right: 5px;"><a href="#M000606">first_closed</a></span>
|
135
|
-
<span style="padding-right: 5px;"><a href="#M000608">first_opened</a></span>
|
136
|
-
<span style="padding-right: 5px;"><a href="#M000605">half_closed</a></span>
|
137
|
-
<span style="padding-right: 5px;"><a href="#M000619">include?</a></span>
|
138
|
-
<span style="padding-right: 5px;"><a href="#M000593">last</a></span>
|
139
|
-
<span style="padding-right: 5px;"><a href="#M000607">last_closed</a></span>
|
140
|
-
<span style="padding-right: 5px;"><a href="#M000609">last_opened</a></span>
|
141
|
-
<span style="padding-right: 5px;"><a href="#M000615">length</a></span>
|
142
|
-
<span style="padding-right: 5px;"><a href="#M000618">max</a></span>
|
143
|
-
<span style="padding-right: 5px;"><a href="#M000621">member?</a></span>
|
144
|
-
<span style="padding-right: 5px;"><a href="#M000617">min</a></span>
|
145
|
-
<span style="padding-right: 5px;"><a href="#M000590">new</a></span>
|
146
|
-
<span style="padding-right: 5px;"><a href="#M000601">null?</a></span>
|
147
|
-
<span style="padding-right: 5px;"><a href="#M000604">opened</a></span>
|
148
|
-
<span style="padding-right: 5px;"><a href="#M000613">reversed</a></span>
|
149
|
-
<span style="padding-right: 5px;"><a href="#M000591">sentinels</a></span>
|
150
|
-
<span style="padding-right: 5px;"><a href="#M000616">size</a></span>
|
151
|
-
<span style="padding-right: 5px;"><a href="#M000623">step</a></span>
|
152
|
-
<span style="padding-right: 5px;"><a href="#M000612">~</a></span>
|
153
|
-
|
154
|
-
<div class="sectiontitle">Included Modules</div>
|
155
|
-
<ul>
|
156
|
-
<li><a href="Multiton.html">Multiton</a></li>
|
157
|
-
<li><a href="EnumerablePass.html">EnumerablePass</a></li>
|
158
|
-
</ul>
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
<div class="sectiontitle">Public Class methods</div>
|
165
|
-
<div class="method">
|
166
|
-
<div class="title">
|
167
|
-
<a name="M000589"></a><b>[]</b>( *args )
|
168
|
-
</div>
|
169
|
-
<div class="sourcecode">
|
170
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000589_source')" id="l_M000589_source">+</a> ]</p>
|
171
|
-
<div id="M000589_source" class="dyn-source">
|
172
|
-
<pre>
|
173
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 89</span>
|
174
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-operator">[]</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">args</span> )
|
175
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">args</span> )
|
176
|
-
<span class="ruby-keyword kw">end</span>
|
177
|
-
</pre>
|
178
|
-
</div>
|
179
|
-
</div>
|
180
|
-
</div>
|
181
|
-
<div class="method">
|
182
|
-
<div class="title">
|
183
|
-
<a name="M000590"></a><b>new</b>(first, last, exclude_first=false, exclude_last=false )
|
184
|
-
</div>
|
185
|
-
<div class="sourcecode">
|
186
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000590_source')" id="l_M000590_source">+</a> ]</p>
|
187
|
-
<div id="M000590_source" class="dyn-source">
|
188
|
-
<pre>
|
189
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 93</span>
|
190
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">first</span>, <span class="ruby-identifier">last</span>, <span class="ruby-identifier">exclude_first</span>=<span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">exclude_last</span>=<span class="ruby-keyword kw">false</span> )
|
191
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"bad value for interval"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">first</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">last</span>.<span class="ruby-identifier">class</span>
|
192
|
-
<span class="ruby-ivar">@first</span> = <span class="ruby-identifier">first</span>
|
193
|
-
<span class="ruby-ivar">@last</span> = <span class="ruby-identifier">last</span>
|
194
|
-
<span class="ruby-ivar">@exclude_first</span> = <span class="ruby-identifier">exclude_first</span>
|
195
|
-
<span class="ruby-ivar">@exclude_last</span> = <span class="ruby-identifier">exclude_last</span>
|
196
|
-
<span class="ruby-ivar">@direction</span> = (<span class="ruby-ivar">@last</span> <span class="ruby-operator"><=></span> <span class="ruby-ivar">@first</span>)
|
197
|
-
<span class="ruby-keyword kw">end</span>
|
198
|
-
</pre>
|
199
|
-
</div>
|
200
|
-
</div>
|
201
|
-
</div>
|
202
|
-
<div class="sectiontitle">Public Instance methods</div>
|
203
|
-
<div class="method">
|
204
|
-
<div class="title">
|
205
|
-
<a name="M000610"></a><b>+@</b>()
|
206
|
-
</div>
|
207
|
-
<div class="description">
|
208
|
-
<p>
|
209
|
-
Unary shorthands. These return a <a href="Interval.html#M000590">new</a>
|
210
|
-
interval exclusive of <a href="Interval.html#M000592">first</a>, <a
|
211
|
-
href="Interval.html#M000593">last</a> or both <a
|
212
|
-
href="Interval.html#M000591">sentinels</a>, repectively.
|
213
|
-
</p>
|
214
|
-
</div>
|
215
|
-
<div class="sourcecode">
|
216
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000610_source')" id="l_M000610_source">+</a> ]</p>
|
217
|
-
<div id="M000610_source" class="dyn-source">
|
218
|
-
<pre>
|
219
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 159</span>
|
220
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">+@</span> ; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">first</span>, <span class="ruby-identifier">last</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">false</span>) ; <span class="ruby-keyword kw">end</span>
|
221
|
-
</pre>
|
222
|
-
</div>
|
223
|
-
</div>
|
224
|
-
</div>
|
225
|
-
<div class="method">
|
226
|
-
<div class="title">
|
227
|
-
<a name="M000611"></a><b>-@</b>()
|
228
|
-
</div>
|
229
|
-
<div class="sourcecode">
|
230
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000611_source')" id="l_M000611_source">+</a> ]</p>
|
231
|
-
<div id="M000611_source" class="dyn-source">
|
232
|
-
<pre>
|
233
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 160</span>
|
234
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-@</span> ; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">first</span>, <span class="ruby-identifier">last</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">true</span>) ; <span class="ruby-keyword kw">end</span>
|
235
|
-
</pre>
|
236
|
-
</div>
|
237
|
-
</div>
|
238
|
-
</div>
|
239
|
-
<div class="method">
|
240
|
-
<div class="title">
|
241
|
-
<a name="M000620"></a><b>===</b>(x)
|
242
|
-
</div>
|
243
|
-
<div class="description">
|
244
|
-
<p>
|
245
|
-
Alias for include?
|
246
|
-
</p>
|
247
|
-
</div>
|
248
|
-
</div>
|
249
|
-
<div class="method">
|
250
|
-
<div class="title">
|
251
|
-
<a name="M000596"></a><b>begin</b>()
|
252
|
-
</div>
|
253
|
-
<div class="description">
|
254
|
-
<p>
|
255
|
-
Alias for <a href="Interval.html#M000592">first</a>
|
256
|
-
</p>
|
257
|
-
</div>
|
258
|
-
</div>
|
259
|
-
<div class="method">
|
260
|
-
<div class="title">
|
261
|
-
<a name="M000603"></a><b>closed</b>()
|
262
|
-
</div>
|
263
|
-
<div class="description">
|
264
|
-
<p>
|
265
|
-
Returns a <a href="Interval.html#M000590">new</a> interval inclusive of of
|
266
|
-
both <a href="Interval.html#M000591">sentinels</a>.
|
267
|
-
</p>
|
268
|
-
</div>
|
269
|
-
<div class="sourcecode">
|
270
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000603_source')" id="l_M000603_source">+</a> ]</p>
|
271
|
-
<div id="M000603_source" class="dyn-source">
|
272
|
-
<pre>
|
273
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 139</span>
|
274
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">closed</span>; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">true</span>) ; <span class="ruby-keyword kw">end</span>
|
275
|
-
</pre>
|
276
|
-
</div>
|
277
|
-
</div>
|
278
|
-
</div>
|
279
|
-
<div class="method">
|
280
|
-
<div class="title">
|
281
|
-
<a name="M000600"></a><b>degenerate?</b>()
|
282
|
-
</div>
|
283
|
-
<div class="description">
|
284
|
-
<p>
|
285
|
-
Returns <tt>true</tt> if the start and <a
|
286
|
-
href="Interval.html#M000597">end</a> <a
|
287
|
-
href="Interval.html#M000591">sentinels</a> are equal and the interval is <a
|
288
|
-
href="Interval.html#M000603">closed</a>; otherwise <tt>false</tt>.
|
289
|
-
</p>
|
290
|
-
</div>
|
291
|
-
<div class="sourcecode">
|
292
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000600_source')" id="l_M000600_source">+</a> ]</p>
|
293
|
-
<div id="M000600_source" class="dyn-source">
|
294
|
-
<pre>
|
295
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 125</span>
|
296
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">degenerate?</span> ; <span class="ruby-ivar">@direction</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">and</span> <span class="ruby-operator">!</span> (<span class="ruby-ivar">@exclusive_first</span> <span class="ruby-keyword kw">or</span> <span class="ruby-ivar">@exclusive_last</span>) ; <span class="ruby-keyword kw">end</span>
|
297
|
-
</pre>
|
298
|
-
</div>
|
299
|
-
</div>
|
300
|
-
</div>
|
301
|
-
<div class="method">
|
302
|
-
<div class="title">
|
303
|
-
<a name="M000602"></a><b>direction</b>()
|
304
|
-
</div>
|
305
|
-
<div class="description">
|
306
|
-
<p>
|
307
|
-
Returns the <a href="Interval.html#M000602">direction</a> of the interval
|
308
|
-
indicated by +1, 0 or -1.
|
309
|
-
</p>
|
310
|
-
<pre>
|
311
|
-
(1..5).direction #=> 1
|
312
|
-
(5..1).direction #=> -1
|
313
|
-
(1..1).direction #=> 0
|
314
|
-
</pre>
|
315
|
-
</div>
|
316
|
-
<div class="sourcecode">
|
317
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000602_source')" id="l_M000602_source">+</a> ]</p>
|
318
|
-
<div id="M000602_source" class="dyn-source">
|
319
|
-
<pre>
|
320
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 136</span>
|
321
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">direction</span> ; <span class="ruby-ivar">@direction</span> ; <span class="ruby-keyword kw">end</span>
|
322
|
-
</pre>
|
323
|
-
</div>
|
324
|
-
</div>
|
325
|
-
</div>
|
326
|
-
<div class="method">
|
327
|
-
<div class="title">
|
328
|
-
<a name="M000614"></a><b>distance</b>()
|
329
|
-
</div>
|
330
|
-
<div class="description">
|
331
|
-
<p>
|
332
|
-
Returns the <a href="Interval.html#M000615">length</a> of the interval as
|
333
|
-
the difference between the <a href="Interval.html#M000592">first</a> and <a
|
334
|
-
href="Interval.html#M000593">last</a> elements. Returns <tt>nil</tt> if the
|
335
|
-
sentinal objects do not support <a
|
336
|
-
href="Interval.html#M000614">distance</a> comparison (<a
|
337
|
-
href="Interval.html#M000614">distance</a>). TODO: Add <tt>n</tt> parameter
|
338
|
-
to count segmentations like those produced by <a
|
339
|
-
href="Interval.html#M000622">each</a>.
|
340
|
-
</p>
|
341
|
-
</div>
|
342
|
-
<div class="aka">
|
343
|
-
This method is also aliased as
|
344
|
-
<a href="Interval.html#M000615">length</a>
|
345
|
-
<a href="Interval.html#M000616">size</a>
|
346
|
-
</div>
|
347
|
-
<div class="sourcecode">
|
348
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000614_source')" id="l_M000614_source">+</a> ]</p>
|
349
|
-
<div id="M000614_source" class="dyn-source">
|
350
|
-
<pre>
|
351
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 175</span>
|
352
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">distance</span>
|
353
|
-
<span class="ruby-ivar">@last</span> <span class="ruby-operator">-</span> <span class="ruby-ivar">@first</span>
|
354
|
-
<span class="ruby-comment cmt">#if @last.respond_to?( :distance )</span>
|
355
|
-
<span class="ruby-comment cmt"># @last.distance( @first )</span>
|
356
|
-
<span class="ruby-comment cmt">#else</span>
|
357
|
-
<span class="ruby-comment cmt"># #self.to_a.length</span>
|
358
|
-
<span class="ruby-comment cmt">#end</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="M000622"></a><b>each</b>(n=1, d=nil) {|| ...}
|
367
|
-
</div>
|
368
|
-
<div class="description">
|
369
|
-
<p>
|
370
|
-
Iterates over the interval, passing <a
|
371
|
-
href="Interval.html#M000622">each</a> _n_th element to the block. If n is
|
372
|
-
not given then n defaults to 1. Each _n_th <a
|
373
|
-
href="Interval.html#M000623">step</a> is determined by invoking +++ or +\-+
|
374
|
-
n, depending on the <a href="Interval.html#M000602">direction</a> of the
|
375
|
-
interval. If n is negative the iteration is preformed in reverse form <a
|
376
|
-
href="Interval.html#M000597">end</a> sentinal to front sentinal. A second
|
377
|
-
parameter, d, can be given in which case the applied <a
|
378
|
-
href="Interval.html#M000623">step</a> is calculated as a fraction of the
|
379
|
-
interval‘s <a href="Interval.html#M000615">length</a> times n / d.
|
380
|
-
This allows iteration over the whole interval in equal sized segments.
|
381
|
-
</p>
|
382
|
-
<pre>
|
383
|
-
1..5.each { |e| ... } #=> 1 2 3 4 5
|
384
|
-
1..5.each(2) { |e| ... } #=> 1 3 5
|
385
|
-
1..5.each(1,2) { |e| ... } #=> 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
|
386
|
-
</pre>
|
387
|
-
</div>
|
388
|
-
<div class="aka">
|
389
|
-
This method is also aliased as
|
390
|
-
<a href="Interval.html#M000623">step</a>
|
391
|
-
</div>
|
392
|
-
<div class="sourcecode">
|
393
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000622_source')" id="l_M000622_source">+</a> ]</p>
|
394
|
-
<div id="M000622_source" class="dyn-source">
|
395
|
-
<pre>
|
396
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 239</span>
|
397
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">d</span>=<span class="ruby-keyword kw">nil</span>) <span class="ruby-comment cmt"># :yield:</span>
|
398
|
-
<span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">n</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-ivar">@last</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@first</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">degenerate?</span> <span class="ruby-comment cmt"># is this right for all values of n ?</span>
|
399
|
-
<span class="ruby-identifier">s</span> = <span class="ruby-identifier">d</span> <span class="ruby-value">? </span><span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">*</span> (<span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">d</span>.<span class="ruby-identifier">to_f</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">abs</span>
|
400
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"Cannot iterate over zero length steps."</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">s</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
401
|
-
<span class="ruby-identifier">s</span> = <span class="ruby-identifier">s</span> <span class="ruby-operator">*</span> <span class="ruby-ivar">@direction</span>
|
402
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
403
|
-
<span class="ruby-identifier">e</span> = <span class="ruby-ivar">@exclude_last</span> <span class="ruby-operator">?</span> <span class="ruby-ivar">@last</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">s</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@last</span>
|
404
|
-
<span class="ruby-comment cmt">#e = @exclude_last ? @last.pred(s) : @last</span>
|
405
|
-
<span class="ruby-identifier">t</span> = <span class="ruby-ivar">@exclude_last</span> <span class="ruby-operator">?</span> <span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span>
|
406
|
-
<span class="ruby-comment cmt">#while e.cmp(@first) >= t</span>
|
407
|
-
<span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">e</span> <span class="ruby-operator"><=></span> <span class="ruby-ivar">@first</span>) <span class="ruby-operator">>=</span> <span class="ruby-identifier">t</span>
|
408
|
-
<span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">e</span>)
|
409
|
-
<span class="ruby-identifier">e</span> <span class="ruby-operator">-=</span> <span class="ruby-identifier">s</span>
|
410
|
-
<span class="ruby-comment cmt">#e = e.pred(s)</span>
|
411
|
-
<span class="ruby-keyword kw">end</span>
|
412
|
-
<span class="ruby-keyword kw">else</span>
|
413
|
-
<span class="ruby-identifier">e</span> = <span class="ruby-ivar">@exclude_first</span> <span class="ruby-operator">?</span> <span class="ruby-ivar">@first</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">s</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@first</span>
|
414
|
-
<span class="ruby-comment cmt">#e = @exclude_first ? @first.succ(s) : @first</span>
|
415
|
-
<span class="ruby-identifier">t</span> = <span class="ruby-ivar">@exclude_last</span> <span class="ruby-operator">?</span> <span class="ruby-value">-1</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span>
|
416
|
-
<span class="ruby-comment cmt">#while e.cmp(@last) <= t</span>
|
417
|
-
<span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">e</span> <span class="ruby-operator"><=></span> <span class="ruby-ivar">@last</span>) <span class="ruby-operator"><=</span> <span class="ruby-identifier">t</span>
|
418
|
-
<span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">e</span>)
|
419
|
-
<span class="ruby-identifier">e</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">s</span>
|
420
|
-
<span class="ruby-comment cmt">#e = e.succ(s)</span>
|
421
|
-
<span class="ruby-keyword kw">end</span>
|
422
|
-
<span class="ruby-keyword kw">end</span>
|
423
|
-
<span class="ruby-keyword kw">end</span>
|
424
|
-
</pre>
|
425
|
-
</div>
|
426
|
-
</div>
|
427
|
-
</div>
|
428
|
-
<div class="method">
|
429
|
-
<div class="title">
|
430
|
-
<a name="M000597"></a><b>end</b>()
|
431
|
-
</div>
|
432
|
-
<div class="description">
|
433
|
-
<p>
|
434
|
-
Alias for <a href="Interval.html#M000593">last</a>
|
435
|
-
</p>
|
436
|
-
</div>
|
437
|
-
</div>
|
438
|
-
<div class="method">
|
439
|
-
<div class="title">
|
440
|
-
<a name="M000624"></a><b>eql?</b>(other)
|
441
|
-
</div>
|
442
|
-
<div class="description">
|
443
|
-
<p>
|
444
|
-
Compares two intervals to see if they are equal
|
445
|
-
</p>
|
446
|
-
</div>
|
447
|
-
<div class="sourcecode">
|
448
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000624_source')" id="l_M000624_source">+</a> ]</p>
|
449
|
-
<div id="M000624_source" class="dyn-source">
|
450
|
-
<pre>
|
451
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 274</span>
|
452
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eql?</span>(<span class="ruby-identifier">other</span>)
|
453
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@first</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">first</span>
|
454
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@last</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">last</span>
|
455
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@exclude_first</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">exclude_first?</span>
|
456
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@exclude_last</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">exclude_last?</span>
|
457
|
-
<span class="ruby-keyword kw">true</span>
|
458
|
-
<span class="ruby-keyword kw">end</span>
|
459
|
-
</pre>
|
460
|
-
</div>
|
461
|
-
</div>
|
462
|
-
</div>
|
463
|
-
<div class="method">
|
464
|
-
<div class="title">
|
465
|
-
<a name="M000598"></a><b>exclude_begin?</b>()
|
466
|
-
</div>
|
467
|
-
<div class="description">
|
468
|
-
<p>
|
469
|
-
Alias for exclude_first?
|
470
|
-
</p>
|
471
|
-
</div>
|
472
|
-
</div>
|
473
|
-
<div class="method">
|
474
|
-
<div class="title">
|
475
|
-
<a name="M000599"></a><b>exclude_end?</b>()
|
476
|
-
</div>
|
477
|
-
<div class="description">
|
478
|
-
<p>
|
479
|
-
Alias for exclude_last?
|
480
|
-
</p>
|
481
|
-
</div>
|
482
|
-
</div>
|
483
|
-
<div class="method">
|
484
|
-
<div class="title">
|
485
|
-
<a name="M000594"></a><b>exclude_first?</b>()
|
486
|
-
</div>
|
487
|
-
<div class="aka">
|
488
|
-
This method is also aliased as
|
489
|
-
<a href="Interval.html#M000598">exclude_begin?</a>
|
490
|
-
</div>
|
491
|
-
<div class="sourcecode">
|
492
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000594_source')" id="l_M000594_source">+</a> ]</p>
|
493
|
-
<div id="M000594_source" class="dyn-source">
|
494
|
-
<pre>
|
495
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 115</span>
|
496
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exclude_first?</span> ; <span class="ruby-ivar">@exclude_first</span> ; <span class="ruby-keyword kw">end</span>
|
497
|
-
</pre>
|
498
|
-
</div>
|
499
|
-
</div>
|
500
|
-
</div>
|
501
|
-
<div class="method">
|
502
|
-
<div class="title">
|
503
|
-
<a name="M000595"></a><b>exclude_last?</b>()
|
504
|
-
</div>
|
505
|
-
<div class="aka">
|
506
|
-
This method is also aliased as
|
507
|
-
<a href="Interval.html#M000599">exclude_end?</a>
|
508
|
-
</div>
|
509
|
-
<div class="sourcecode">
|
510
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000595_source')" id="l_M000595_source">+</a> ]</p>
|
511
|
-
<div id="M000595_source" class="dyn-source">
|
512
|
-
<pre>
|
513
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 116</span>
|
514
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exclude_last?</span> ; <span class="ruby-ivar">@exclude_last</span> ; <span class="ruby-keyword kw">end</span>
|
515
|
-
</pre>
|
516
|
-
</div>
|
517
|
-
</div>
|
518
|
-
</div>
|
519
|
-
<div class="method">
|
520
|
-
<div class="title">
|
521
|
-
<a name="M000592"></a><b>first</b>()
|
522
|
-
</div>
|
523
|
-
<div class="description">
|
524
|
-
<p>
|
525
|
-
Returns the <a href="Interval.html#M000592">first</a> or <a
|
526
|
-
href="Interval.html#M000593">last</a> sentinal of the interval.
|
527
|
-
</p>
|
528
|
-
</div>
|
529
|
-
<div class="aka">
|
530
|
-
This method is also aliased as
|
531
|
-
<a href="Interval.html#M000596">begin</a>
|
532
|
-
</div>
|
533
|
-
<div class="sourcecode">
|
534
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000592_source')" id="l_M000592_source">+</a> ]</p>
|
535
|
-
<div id="M000592_source" class="dyn-source">
|
536
|
-
<pre>
|
537
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 111</span>
|
538
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first</span> ; <span class="ruby-ivar">@first</span> ; <span class="ruby-keyword kw">end</span>
|
539
|
-
</pre>
|
540
|
-
</div>
|
541
|
-
</div>
|
542
|
-
</div>
|
543
|
-
<div class="method">
|
544
|
-
<div class="title">
|
545
|
-
<a name="M000606"></a><b>first_closed</b>()
|
546
|
-
</div>
|
547
|
-
<div class="description">
|
548
|
-
<p>
|
549
|
-
Returns a <a href="Interval.html#M000590">new</a> interval with one of the
|
550
|
-
two <a href="Interval.html#M000591">sentinels</a> <a
|
551
|
-
href="Interval.html#M000604">opened</a> or <a
|
552
|
-
href="Interval.html#M000603">closed</a>
|
553
|
-
</p>
|
554
|
-
</div>
|
555
|
-
<div class="sourcecode">
|
556
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000606_source')" id="l_M000606_source">+</a> ]</p>
|
557
|
-
<div id="M000606_source" class="dyn-source">
|
558
|
-
<pre>
|
559
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 152</span>
|
560
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first_closed</span> ; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">true</span>) ; <span class="ruby-keyword kw">end</span>
|
561
|
-
</pre>
|
562
|
-
</div>
|
563
|
-
</div>
|
564
|
-
</div>
|
565
|
-
<div class="method">
|
566
|
-
<div class="title">
|
567
|
-
<a name="M000608"></a><b>first_opened</b>()
|
568
|
-
</div>
|
569
|
-
<div class="sourcecode">
|
570
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000608_source')" id="l_M000608_source">+</a> ]</p>
|
571
|
-
<div id="M000608_source" class="dyn-source">
|
572
|
-
<pre>
|
573
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 154</span>
|
574
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first_opened</span> ; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">false</span>) ; <span class="ruby-keyword kw">end</span>
|
575
|
-
</pre>
|
576
|
-
</div>
|
577
|
-
</div>
|
578
|
-
</div>
|
579
|
-
<div class="method">
|
580
|
-
<div class="title">
|
581
|
-
<a name="M000605"></a><b>half_closed</b>(e=false)
|
582
|
-
</div>
|
583
|
-
<div class="description">
|
584
|
-
<p>
|
585
|
-
Returns a <a href="Interval.html#M000590">new</a> interval with either the
|
586
|
-
<a href="Interval.html#M000592">first</a> or the <a
|
587
|
-
href="Interval.html#M000593">last</a> sentinel exclusive. If the parameter
|
588
|
-
is false, the deafult, then the <a href="Interval.html#M000592">first</a>
|
589
|
-
sentinel is excluded; if the parameter is true, the <a
|
590
|
-
href="Interval.html#M000593">last</a> sentinel is excluded.
|
591
|
-
</p>
|
592
|
-
</div>
|
593
|
-
<div class="sourcecode">
|
594
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000605_source')" id="l_M000605_source">+</a> ]</p>
|
595
|
-
<div id="M000605_source" class="dyn-source">
|
596
|
-
<pre>
|
597
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 147</span>
|
598
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">half_closed</span>(<span class="ruby-identifier">e</span>=<span class="ruby-keyword kw">false</span>)
|
599
|
-
<span class="ruby-identifier">e</span> <span class="ruby-value">? </span><span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">false</span>) <span class="ruby-operator">:</span> <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">true</span>)
|
600
|
-
<span class="ruby-keyword kw">end</span>
|
601
|
-
</pre>
|
602
|
-
</div>
|
603
|
-
</div>
|
604
|
-
</div>
|
605
|
-
<div class="method">
|
606
|
-
<div class="title">
|
607
|
-
<a name="M000619"></a><b>include?</b>(x)
|
608
|
-
</div>
|
609
|
-
<div class="description">
|
610
|
-
<p>
|
611
|
-
Returns true or false if the element is part of the interval.
|
612
|
-
</p>
|
613
|
-
</div>
|
614
|
-
<div class="aka">
|
615
|
-
This method is also aliased as
|
616
|
-
<a href="Interval.html#M000620">===</a>
|
617
|
-
<a href="Interval.html#M000621">member?</a>
|
618
|
-
</div>
|
619
|
-
<div class="sourcecode">
|
620
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000619_source')" id="l_M000619_source">+</a> ]</p>
|
621
|
-
<div id="M000619_source" class="dyn-source">
|
622
|
-
<pre>
|
623
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 197</span>
|
624
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include?</span>(<span class="ruby-identifier">x</span>)
|
625
|
-
<span class="ruby-comment cmt"># todo: infinity?</span>
|
626
|
-
<span class="ruby-identifier">tf</span> = <span class="ruby-identifier">exclude_first?</span> <span class="ruby-value">? </span><span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span>
|
627
|
-
<span class="ruby-identifier">tl</span> = <span class="ruby-identifier">exclude_last?</span> <span class="ruby-value">? </span><span class="ruby-operator">-</span><span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span>
|
628
|
-
(<span class="ruby-identifier">x</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">first</span>) <span class="ruby-operator">>=</span> <span class="ruby-identifier">tf</span> <span class="ruby-keyword kw">and</span> (<span class="ruby-identifier">x</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">last</span>) <span class="ruby-operator"><=</span> <span class="ruby-identifier">tl</span>
|
629
|
-
<span class="ruby-keyword kw">end</span>
|
630
|
-
</pre>
|
631
|
-
</div>
|
632
|
-
</div>
|
633
|
-
</div>
|
634
|
-
<div class="method">
|
635
|
-
<div class="title">
|
636
|
-
<a name="M000593"></a><b>last</b>()
|
637
|
-
</div>
|
638
|
-
<div class="aka">
|
639
|
-
This method is also aliased as
|
640
|
-
<a href="Interval.html#M000597">end</a>
|
641
|
-
</div>
|
642
|
-
<div class="sourcecode">
|
643
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000593_source')" id="l_M000593_source">+</a> ]</p>
|
644
|
-
<div id="M000593_source" class="dyn-source">
|
645
|
-
<pre>
|
646
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 112</span>
|
647
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last</span> ; <span class="ruby-ivar">@last</span> ; <span class="ruby-keyword kw">end</span>
|
648
|
-
</pre>
|
649
|
-
</div>
|
650
|
-
</div>
|
651
|
-
</div>
|
652
|
-
<div class="method">
|
653
|
-
<div class="title">
|
654
|
-
<a name="M000607"></a><b>last_closed</b>()
|
655
|
-
</div>
|
656
|
-
<div class="sourcecode">
|
657
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000607_source')" id="l_M000607_source">+</a> ]</p>
|
658
|
-
<div id="M000607_source" class="dyn-source">
|
659
|
-
<pre>
|
660
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 153</span>
|
661
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last_closed</span> ; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">false</span>) ; <span class="ruby-keyword kw">end</span>
|
662
|
-
</pre>
|
663
|
-
</div>
|
664
|
-
</div>
|
665
|
-
</div>
|
666
|
-
<div class="method">
|
667
|
-
<div class="title">
|
668
|
-
<a name="M000609"></a><b>last_opened</b>()
|
669
|
-
</div>
|
670
|
-
<div class="sourcecode">
|
671
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000609_source')" id="l_M000609_source">+</a> ]</p>
|
672
|
-
<div id="M000609_source" class="dyn-source">
|
673
|
-
<pre>
|
674
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 155</span>
|
675
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last_opened</span> ; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">true</span>) ; <span class="ruby-keyword kw">end</span>
|
676
|
-
</pre>
|
677
|
-
</div>
|
678
|
-
</div>
|
679
|
-
</div>
|
680
|
-
<div class="method">
|
681
|
-
<div class="title">
|
682
|
-
<a name="M000615"></a><b>length</b>()
|
683
|
-
</div>
|
684
|
-
<div class="description">
|
685
|
-
<p>
|
686
|
-
Alias for <a href="Interval.html#M000614">distance</a>
|
687
|
-
</p>
|
688
|
-
</div>
|
689
|
-
</div>
|
690
|
-
<div class="method">
|
691
|
-
<div class="title">
|
692
|
-
<a name="M000618"></a><b>max</b>()
|
693
|
-
</div>
|
694
|
-
<div class="description">
|
695
|
-
<p>
|
696
|
-
Returns the greater of the <a href="Interval.html#M000592">first</a> and <a
|
697
|
-
href="Interval.html#M000593">last</a> sentinals.
|
698
|
-
</p>
|
699
|
-
</div>
|
700
|
-
<div class="sourcecode">
|
701
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000618_source')" id="l_M000618_source">+</a> ]</p>
|
702
|
-
<div id="M000618_source" class="dyn-source">
|
703
|
-
<pre>
|
704
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 192</span>
|
705
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">max</span>
|
706
|
-
((<span class="ruby-ivar">@first</span> <span class="ruby-operator"><=></span> <span class="ruby-ivar">@last</span>) <span class="ruby-operator">==</span> <span class="ruby-value">1</span>) <span class="ruby-operator">?</span> <span class="ruby-ivar">@first</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@last</span>
|
707
|
-
<span class="ruby-keyword kw">end</span>
|
708
|
-
</pre>
|
709
|
-
</div>
|
710
|
-
</div>
|
711
|
-
</div>
|
712
|
-
<div class="method">
|
713
|
-
<div class="title">
|
714
|
-
<a name="M000621"></a><b>member?</b>(x)
|
715
|
-
</div>
|
716
|
-
<div class="description">
|
717
|
-
<p>
|
718
|
-
Alias for include?
|
719
|
-
</p>
|
720
|
-
</div>
|
721
|
-
</div>
|
722
|
-
<div class="method">
|
723
|
-
<div class="title">
|
724
|
-
<a name="M000617"></a><b>min</b>()
|
725
|
-
</div>
|
726
|
-
<div class="description">
|
727
|
-
<p>
|
728
|
-
Returns the lesser of the <a href="Interval.html#M000592">first</a> and <a
|
729
|
-
href="Interval.html#M000593">last</a> sentinals.
|
730
|
-
</p>
|
731
|
-
</div>
|
732
|
-
<div class="sourcecode">
|
733
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000617_source')" id="l_M000617_source">+</a> ]</p>
|
734
|
-
<div id="M000617_source" class="dyn-source">
|
735
|
-
<pre>
|
736
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 187</span>
|
737
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">min</span>
|
738
|
-
((<span class="ruby-ivar">@first</span> <span class="ruby-operator"><=></span> <span class="ruby-ivar">@last</span>) <span class="ruby-operator">==</span> <span class="ruby-value">-1</span>) <span class="ruby-operator">?</span> <span class="ruby-ivar">@first</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@last</span>
|
739
|
-
<span class="ruby-keyword kw">end</span>
|
740
|
-
</pre>
|
741
|
-
</div>
|
742
|
-
</div>
|
743
|
-
</div>
|
744
|
-
<div class="method">
|
745
|
-
<div class="title">
|
746
|
-
<a name="M000601"></a><b>null?</b>()
|
747
|
-
</div>
|
748
|
-
<div class="description">
|
749
|
-
<p>
|
750
|
-
Returns <tt>true</tt> if the start and <a
|
751
|
-
href="Interval.html#M000597">end</a> <a
|
752
|
-
href="Interval.html#M000591">sentinels</a> are equal and the interval is
|
753
|
-
open; otherwise <tt>false</tt>.
|
754
|
-
</p>
|
755
|
-
</div>
|
756
|
-
<div class="sourcecode">
|
757
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000601_source')" id="l_M000601_source">+</a> ]</p>
|
758
|
-
<div id="M000601_source" class="dyn-source">
|
759
|
-
<pre>
|
760
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 128</span>
|
761
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">null?</span> ; <span class="ruby-ivar">@direction</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@exclusive_first</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@exclusive_last</span> ; <span class="ruby-keyword kw">end</span>
|
762
|
-
</pre>
|
763
|
-
</div>
|
764
|
-
</div>
|
765
|
-
</div>
|
766
|
-
<div class="method">
|
767
|
-
<div class="title">
|
768
|
-
<a name="M000604"></a><b>opened</b>()
|
769
|
-
</div>
|
770
|
-
<div class="description">
|
771
|
-
<p>
|
772
|
-
Returns a <a href="Interval.html#M000590">new</a> interval exclusive of
|
773
|
-
both <a href="Interval.html#M000591">sentinels</a>.
|
774
|
-
</p>
|
775
|
-
</div>
|
776
|
-
<div class="sourcecode">
|
777
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000604_source')" id="l_M000604_source">+</a> ]</p>
|
778
|
-
<div id="M000604_source" class="dyn-source">
|
779
|
-
<pre>
|
780
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 142</span>
|
781
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">opened</span>; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">true</span>) ; <span class="ruby-keyword kw">end</span>
|
782
|
-
</pre>
|
783
|
-
</div>
|
784
|
-
</div>
|
785
|
-
</div>
|
786
|
-
<div class="method">
|
787
|
-
<div class="title">
|
788
|
-
<a name="M000613"></a><b>reversed</b>()
|
789
|
-
</div>
|
790
|
-
<div class="description">
|
791
|
-
<p>
|
792
|
-
Returns a <a href="Interval.html#M000590">new</a> interval with the <a
|
793
|
-
href="Interval.html#M000591">sentinels</a> <a
|
794
|
-
href="Interval.html#M000613">reversed</a>.
|
795
|
-
</p>
|
796
|
-
<pre>
|
797
|
-
(0..10).reversed #=> 10..0
|
798
|
-
</pre>
|
799
|
-
</div>
|
800
|
-
<div class="sourcecode">
|
801
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000613_source')" id="l_M000613_source">+</a> ]</p>
|
802
|
-
<div id="M000613_source" class="dyn-source">
|
803
|
-
<pre>
|
804
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 167</span>
|
805
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reversed</span>
|
806
|
-
<span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@last</span>, <span class="ruby-ivar">@first</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">true</span>)
|
807
|
-
<span class="ruby-keyword kw">end</span>
|
808
|
-
</pre>
|
809
|
-
</div>
|
810
|
-
</div>
|
811
|
-
</div>
|
812
|
-
<div class="method">
|
813
|
-
<div class="title">
|
814
|
-
<a name="M000591"></a><b>sentinels</b>()
|
815
|
-
</div>
|
816
|
-
<div class="description">
|
817
|
-
<p>
|
818
|
-
Returns a two element array of <a href="Interval.html#M000592">first</a>
|
819
|
-
and <a href="Interval.html#M000593">last</a> <a
|
820
|
-
href="Interval.html#M000591">sentinels</a>.
|
821
|
-
</p>
|
822
|
-
<pre>
|
823
|
-
(0..10).sentinels #=> [0,10]
|
824
|
-
</pre>
|
825
|
-
</div>
|
826
|
-
<div class="sourcecode">
|
827
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000591_source')" id="l_M000591_source">+</a> ]</p>
|
828
|
-
<div id="M000591_source" class="dyn-source">
|
829
|
-
<pre>
|
830
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 106</span>
|
831
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sentinels</span>
|
832
|
-
<span class="ruby-keyword kw">return</span> [<span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span>]
|
833
|
-
<span class="ruby-keyword kw">end</span>
|
834
|
-
</pre>
|
835
|
-
</div>
|
836
|
-
</div>
|
837
|
-
</div>
|
838
|
-
<div class="method">
|
839
|
-
<div class="title">
|
840
|
-
<a name="M000616"></a><b>size</b>()
|
841
|
-
</div>
|
842
|
-
<div class="description">
|
843
|
-
<p>
|
844
|
-
Alias for <a href="Interval.html#M000614">distance</a>
|
845
|
-
</p>
|
846
|
-
</div>
|
847
|
-
</div>
|
848
|
-
<div class="method">
|
849
|
-
<div class="title">
|
850
|
-
<a name="M000623"></a><b>step</b>(n=1, d=nil)
|
851
|
-
</div>
|
852
|
-
<div class="description">
|
853
|
-
<p>
|
854
|
-
Alias for <a href="Interval.html#M000622">each</a>
|
855
|
-
</p>
|
856
|
-
</div>
|
857
|
-
</div>
|
858
|
-
<div class="method">
|
859
|
-
<div class="title">
|
860
|
-
<a name="M000612"></a><b>~</b>()
|
861
|
-
</div>
|
862
|
-
<div class="sourcecode">
|
863
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000612_source')" id="l_M000612_source">+</a> ]</p>
|
864
|
-
<div id="M000612_source" class="dyn-source">
|
865
|
-
<pre>
|
866
|
-
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 161</span>
|
867
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">~@</span> ; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">first</span>, <span class="ruby-identifier">last</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">true</span>) ; <span class="ruby-keyword kw">end</span>
|
868
|
-
</pre>
|
869
|
-
</div>
|
870
|
-
</div>
|
871
|
-
</div>
|
872
|
-
</div>
|
873
|
-
|
874
|
-
</div>
|
875
|
-
|
876
|
-
</body>
|
877
|
-
</html>
|