facets 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/{test/FIXTURE → FIXTURE}/filelist/testfile.txt +0 -0
- data/{test/FIXTURE → FIXTURE}/filelist/testfile2.txt +0 -0
- data/{test/FIXTURE → FIXTURE}/ls_r/A.txt +0 -0
- data/{test/FIXTURE → FIXTURE}/ls_r/A/B.txt +0 -0
- data/{test/FIXTURE → FIXTURE}/ls_r/A/B/C.txt +0 -0
- data/{test/FIXTURE → FIXTURE}/test_file.txt +0 -0
- data/{test/FIXTURE → FIXTURE}/test_file2.txt +0 -0
- data/ProjectInfo +15 -2
- data/Reapfile +1 -1
- data/data/roll/facets/Libspec +17 -0
- data/forge/core/class/to_module.rb +3 -0
- data/forge/core/module/inherit.rb +79 -39
- data/forge/core/module/inherit0.rb +59 -0
- data/forge/core/module/to_module.rb +37 -0
- data/{lib/facets → forge}/core/string/frequency.rb +1 -0
- data/{lib/facets → forge}/core/string/probability.rb +1 -0
- data/forge/core/string/to_arr.rb +57 -0
- data/forge/more/capsule2.rb +152 -0
- data/{lib/facets → forge}/more/classinherit.rb +0 -2
- data/forge/more/clean.rb +35 -0
- data/forge/more/codepack.rb +16 -10
- data/lib/facet/command.rb +1 -0
- data/lib/facet/config/datadir.rb +1 -0
- data/lib/facet/file/self/rootname.rb +1 -0
- data/lib/facet/kernel/__callee__.rb +1 -0
- data/lib/facet/kernel/__method__.rb +1 -0
- data/lib/facet/kernel/quaclass.rb +1 -0
- data/lib/facet/kernel/singleton_class.rb +1 -0
- data/lib/facet/module/class_extension.rb +1 -0
- data/lib/facets/core/config/datadir.rb +20 -0
- data/lib/facets/core/file/self/rootname.rb +22 -0
- data/lib/facets/core/hash/to_ostruct_recurse.rb +4 -0
- data/lib/facets/core/kernel/__callee__.rb +2 -0
- data/lib/facets/core/kernel/__method__.rb +45 -0
- data/lib/facets/core/kernel/quaclass.rb +36 -0
- data/lib/facets/core/kernel/singleton_class.rb +36 -0
- data/lib/facets/core/module/class_extension.rb +153 -0
- data/lib/facets/core/symbol/to_proc.rb +12 -3
- data/lib/facets/more/annattr.rb +1 -0
- data/lib/facets/more/annotation.rb +12 -9
- data/lib/facets/more/basicobject.rb +8 -0
- data/lib/facets/more/classmethods.rb +17 -20
- data/lib/facets/more/command.rb +307 -0
- data/lib/facets/more/inheritor.rb +7 -3
- data/lib/facets/more/tuple.rb +61 -13
- data/lib/facets/more/typecast.rb +59 -58
- data/note/CHANGELOG +13 -0
- data/test/lib/facets/core/array/test_at_rand.rb +1 -1
- data/test/lib/facets/core/array/test_delete_unless.rb +1 -1
- data/test/lib/facets/core/array/test_delete_values.rb +1 -1
- data/test/lib/facets/core/array/test_delete_values_at.rb +1 -1
- data/test/lib/facets/core/array/test_first.rb +1 -1
- data/test/lib/facets/core/array/test_head.rb +1 -1
- data/test/lib/facets/core/array/test_last_index.rb +1 -1
- data/test/lib/facets/core/array/test_merge.rb +1 -1
- data/test/lib/facets/core/array/test_mid.rb +1 -1
- data/test/lib/facets/core/array/test_middle.rb +1 -1
- data/test/lib/facets/core/array/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/array/test_op_store.rb +1 -1
- data/test/lib/facets/core/array/test_pick.rb +1 -1
- data/test/lib/facets/core/array/test_pos.rb +1 -1
- data/test/lib/facets/core/array/test_pot.rb +1 -1
- data/test/lib/facets/core/array/test_pull.rb +1 -1
- data/test/lib/facets/core/array/test_rand_index.rb +1 -1
- data/test/lib/facets/core/array/test_rand_subset.rb +1 -1
- data/test/lib/facets/core/array/test_range.rb +1 -1
- data/test/lib/facets/core/array/test_rotate.rb +1 -1
- data/test/lib/facets/core/array/test_select.rb +1 -1
- data/test/lib/facets/core/array/test_shuffle.rb +1 -1
- data/test/lib/facets/core/array/test_thru.rb +1 -1
- data/test/lib/facets/core/array/test_to_b.rb +1 -1
- data/test/lib/facets/core/array/test_to_h.rb +1 -1
- data/test/lib/facets/core/array/test_to_hash.rb +1 -1
- data/test/lib/facets/core/binding/self/test_of_caller.rb +1 -1
- data/test/lib/facets/core/binding/test___LINE__.rb +1 -1
- data/test/lib/facets/core/binding/test_call_stack.rb +1 -1
- data/test/lib/facets/core/binding/test_called.rb +1 -1
- data/test/lib/facets/core/binding/test_caller.rb +1 -1
- data/test/lib/facets/core/binding/test_defined.rb +1 -1
- data/test/lib/facets/core/binding/test_eval.rb +1 -1
- data/test/lib/facets/core/binding/test_local_variables.rb +1 -1
- data/test/lib/facets/core/binding/test_method_name.rb +1 -1
- data/test/lib/facets/core/binding/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/binding/test_op_store.rb +1 -1
- data/test/lib/facets/core/binding/test_self.rb +1 -1
- data/test/lib/facets/core/class/test_cattr.rb +1 -1
- data/test/lib/facets/core/class/test_descendents.rb +1 -1
- data/test/lib/facets/core/class/test_method_name.rb +1 -1
- data/test/lib/facets/core/class/test_remove_descendents.rb +1 -1
- data/test/lib/facets/core/class/test_unix_path.rb +1 -1
- data/test/lib/facets/core/comparable/test_at_least.rb +1 -1
- data/test/lib/facets/core/comparable/test_clip.rb +1 -1
- data/test/lib/facets/core/comparable/test_cmp.rb +1 -1
- data/test/lib/facets/core/continuation/self/test_create.rb +1 -1
- data/test/lib/facets/core/date/test_days_in_month.rb +1 -1
- data/test/lib/facets/core/date/test_days_of_month.rb +1 -1
- data/test/lib/facets/core/date/test_stamp.rb +1 -1
- data/test/lib/facets/core/date/test_to_date.rb +1 -1
- data/test/lib/facets/core/date/test_to_s.rb +1 -1
- data/test/lib/facets/core/date/test_to_time.rb +1 -1
- data/test/lib/facets/core/dir/self/test_ancestor.rb +1 -1
- data/test/lib/facets/core/dir/self/test_ascend.rb +1 -1
- data/test/lib/facets/core/enumerable/self/test_combinations.rb +1 -1
- data/test/lib/facets/core/enumerable/self/test_cross.rb +1 -1
- data/test/lib/facets/core/enumerable/test_collect_with_index.rb +1 -1
- data/test/lib/facets/core/enumerable/test_commonality.rb +1 -1
- data/test/lib/facets/core/enumerable/test_compact_collect.rb +1 -1
- data/test/lib/facets/core/enumerable/test_count.rb +1 -1
- data/test/lib/facets/core/enumerable/test_cross.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_combination.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_pair.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_slice.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_unique_pair.rb +1 -1
- data/test/lib/facets/core/enumerable/test_entropy.rb +1 -1
- data/test/lib/facets/core/enumerable/test_every.rb +1 -1
- data/test/lib/facets/core/enumerable/test_ew.rb +1 -1
- data/test/lib/facets/core/enumerable/test_filter_collect.rb +1 -1
- data/test/lib/facets/core/enumerable/test_find_collisions.rb +1 -1
- data/test/lib/facets/core/enumerable/test_frequency.rb +1 -1
- data/test/lib/facets/core/enumerable/test_graph.rb +1 -1
- data/test/lib/facets/core/enumerable/test_ideal_entropy.rb +1 -1
- data/test/lib/facets/core/enumerable/test_none.rb +1 -1
- data/test/lib/facets/core/enumerable/test_occur.rb +1 -1
- data/test/lib/facets/core/enumerable/test_one.rb +1 -1
- data/test/lib/facets/core/enumerable/test_op_pow.rb +1 -1
- data/test/lib/facets/core/enumerable/test_partition_by.rb +1 -1
- data/test/lib/facets/core/enumerable/test_permute.rb +1 -1
- data/test/lib/facets/core/enumerable/test_probability.rb +1 -1
- data/test/lib/facets/core/enumerable/test_to_h.rb +1 -1
- data/test/lib/facets/core/enumerable/test_uniq_by.rb +1 -1
- data/test/lib/facets/core/file/self/test_create.rb +1 -1
- data/test/lib/facets/core/file/self/test_open_as_string.rb +1 -1
- data/test/lib/facets/core/file/self/test_read_list.rb +1 -1
- data/test/lib/facets/core/file/self/test_sanitize.rb +1 -1
- data/test/lib/facets/core/file/self/test_split_all.rb +1 -1
- data/test/lib/facets/core/float/test_round_at.rb +1 -1
- data/test/lib/facets/core/float/test_round_to.rb +1 -1
- data/test/lib/facets/core/hash/self/test_zipnew.rb +1 -1
- data/test/lib/facets/core/hash/test_alias.rb +1 -1
- data/test/lib/facets/core/hash/test_assert_has_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_assert_has_only_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_at.rb +1 -1
- data/test/lib/facets/core/hash/test_collate.rb +1 -1
- data/test/lib/facets/core/hash/test_each.rb +1 -1
- data/test/lib/facets/core/hash/test_each_with_index.rb +1 -1
- data/test/lib/facets/core/hash/test_each_with_key.rb +1 -1
- data/test/lib/facets/core/hash/test_graph.rb +1 -1
- data/test/lib/facets/core/hash/test_has_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_has_only_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_inverse.rb +1 -1
- data/test/lib/facets/core/hash/test_keys_to_s.rb +1 -1
- data/test/lib/facets/core/hash/test_keys_to_sym.rb +1 -1
- data/test/lib/facets/core/hash/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/hash/test_op_lshift.rb +1 -1
- data/test/lib/facets/core/hash/test_rand_key.rb +1 -1
- data/test/lib/facets/core/hash/test_rand_pair.rb +1 -1
- data/test/lib/facets/core/hash/test_rand_value.rb +1 -1
- data/test/lib/facets/core/hash/test_replace_each.rb +1 -1
- data/test/lib/facets/core/hash/test_shuffle.rb +1 -1
- data/test/lib/facets/core/hash/test_slice.rb +1 -1
- data/test/lib/facets/core/hash/test_swap.rb +1 -1
- data/test/lib/facets/core/hash/test_swapkey.rb +1 -1
- data/test/lib/facets/core/hash/test_to_h.rb +1 -1
- data/test/lib/facets/core/hash/test_to_ostruct.rb +1 -1
- data/test/lib/facets/core/hash/test_to_ostruct_recurse.rb +1 -1
- data/test/lib/facets/core/hash/test_traverse.rb +1 -1
- data/test/lib/facets/core/hash/test_update_each.rb +1 -1
- data/test/lib/facets/core/hash/test_update_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_update_values.rb +1 -1
- data/test/lib/facets/core/hash/test_weave.rb +1 -1
- data/test/lib/facets/core/integer/test_factorial.rb +1 -1
- data/test/lib/facets/core/integer/test_multiple.rb +1 -1
- data/test/lib/facets/core/integer/test_ordinal.rb +1 -1
- data/test/lib/facets/core/integer/test_times_collect.rb +1 -1
- data/test/lib/facets/core/kernel/test___class__.rb +1 -1
- data/test/lib/facets/core/kernel/test___method__.rb +26 -0
- data/test/lib/facets/core/kernel/test_as.rb +1 -1
- data/test/lib/facets/core/kernel/test_assign_from.rb +1 -1
- data/test/lib/facets/core/kernel/test_assign_with.rb +1 -1
- data/test/lib/facets/core/kernel/test_bool.rb +1 -1
- data/test/lib/facets/core/kernel/test_bug.rb +1 -1
- data/test/lib/facets/core/kernel/test_call_stack.rb +1 -1
- data/test/lib/facets/core/kernel/test_called.rb +1 -1
- data/test/lib/facets/core/kernel/test_constant.rb +1 -1
- data/test/lib/facets/core/kernel/test_copy.rb +1 -1
- data/test/lib/facets/core/kernel/test_deep_copy.rb +1 -1
- data/test/lib/facets/core/kernel/test_demo.rb +1 -1
- data/test/lib/facets/core/kernel/test_fn.rb +1 -1
- data/test/lib/facets/core/kernel/test_generate_method_name.rb +1 -1
- data/test/lib/facets/core/kernel/test_get_by_id.rb +1 -1
- data/test/lib/facets/core/kernel/test_here.rb +1 -1
- data/test/lib/facets/core/kernel/test_in.rb +1 -1
- data/test/lib/facets/core/kernel/test_maybe.rb +1 -1
- data/test/lib/facets/core/kernel/test_metaclass.rb +1 -1
- data/test/lib/facets/core/kernel/test_method.rb +1 -1
- data/test/lib/facets/core/kernel/test_methods.rb +1 -1
- data/test/lib/facets/core/kernel/test_new.rb +1 -1
- data/test/lib/facets/core/kernel/test_object_class.rb +1 -1
- data/test/lib/facets/core/kernel/test_object_hexid.rb +1 -1
- data/test/lib/facets/core/kernel/test_quaclass.rb +27 -0
- data/test/lib/facets/core/kernel/test_require_all.rb +1 -1
- data/test/lib/facets/core/kernel/test_require_esc.rb +1 -1
- data/test/lib/facets/core/kernel/test_require_facet.rb +1 -1
- data/test/lib/facets/core/kernel/test_resc.rb +1 -1
- data/test/lib/facets/core/kernel/test_returning.rb +1 -1
- data/test/lib/facets/core/kernel/test_send_as.rb +1 -1
- data/test/lib/facets/core/kernel/test_set_from.rb +1 -1
- data/test/lib/facets/core/kernel/test_set_with.rb +1 -1
- data/test/lib/facets/core/kernel/test_silently.rb +1 -1
- data/test/lib/facets/core/kernel/test_singleton.rb +1 -1
- data/test/lib/facets/core/kernel/test_singleton_class.rb +27 -0
- data/test/lib/facets/core/kernel/test_superior.rb +1 -1
- data/test/lib/facets/core/kernel/test_supermethod.rb +1 -1
- data/test/lib/facets/core/kernel/test_this.rb +1 -1
- data/test/lib/facets/core/kernel/test_to_b.rb +1 -1
- data/test/lib/facets/core/kernel/test_to_bool.rb +1 -1
- data/test/lib/facets/core/kernel/test_uri.rb +1 -1
- data/test/lib/facets/core/kernel/test_val.rb +1 -1
- data/test/lib/facets/core/kernel/test_with_accessor.rb +1 -1
- data/test/lib/facets/core/matchdata/test_match.rb +1 -1
- data/test/lib/facets/core/matchdata/test_matchtree.rb +1 -1
- data/test/lib/facets/core/module/test_abstract.rb +1 -1
- data/test/lib/facets/core/module/test_alias_module_function.rb +1 -1
- data/test/lib/facets/core/module/test_ancestor.rb +1 -1
- data/test/lib/facets/core/module/test_basename.rb +1 -1
- data/test/lib/facets/core/module/test_by_name.rb +1 -1
- data/test/lib/facets/{more/test_classinherit.rb → core/module/test_class_extension.rb} +13 -8
- data/test/lib/facets/core/module/test_clone_using.rb +1 -1
- data/test/lib/facets/core/module/test_dirname.rb +1 -1
- data/test/lib/facets/core/module/test_equate_on.rb +1 -1
- data/test/lib/facets/core/module/test_generate_instance_method_name.rb +1 -1
- data/test/lib/facets/core/module/test_include_as.rb +1 -1
- data/test/lib/facets/core/module/test_initializer.rb +1 -1
- data/test/lib/facets/core/module/test_instance_methods.rb +1 -1
- data/test/lib/facets/core/module/test_integrate.rb +1 -1
- data/test/lib/facets/core/module/test_memoize.rb +1 -1
- data/test/lib/facets/core/module/test_modspace.rb +1 -1
- data/test/lib/facets/core/module/test_namespace.rb +1 -1
- data/test/lib/facets/core/module/test_nesting.rb +1 -1
- data/test/lib/facets/core/module/test_nodef.rb +1 -1
- data/test/lib/facets/core/module/test_on_included.rb +1 -1
- data/test/lib/facets/core/module/test_redef.rb +1 -1
- data/test/lib/facets/core/module/test_redefine_method.rb +1 -1
- data/test/lib/facets/core/module/test_redirect.rb +1 -1
- data/test/lib/facets/core/module/test_redirect_method.rb +1 -1
- data/test/lib/facets/core/module/test_remove.rb +1 -1
- data/test/lib/facets/core/module/test_rename.rb +1 -1
- data/test/lib/facets/core/module/test_rename_method.rb +1 -1
- data/test/lib/facets/core/module/test_revisal.rb +1 -1
- data/test/lib/facets/core/module/test_shadow_method.rb +1 -1
- data/test/lib/facets/core/module/test_sort_on.rb +1 -1
- data/test/lib/facets/core/module/test_this.rb +1 -1
- data/test/lib/facets/core/module/test_wrap.rb +1 -1
- data/test/lib/facets/core/module/test_wrap_method.rb +1 -1
- data/test/lib/facets/core/nilclass/test_blank.rb +1 -1
- data/test/lib/facets/core/nilclass/test_empty.rb +1 -1
- data/test/lib/facets/core/nilclass/test_include.rb +1 -1
- data/test/lib/facets/core/nilclass/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/nilclass/test_size.rb +1 -1
- data/test/lib/facets/core/nilclass/test_to_h.rb +1 -1
- data/test/lib/facets/core/numeric/test_approx.rb +1 -1
- data/test/lib/facets/core/numeric/test_ceil_multiple.rb +1 -1
- data/test/lib/facets/core/numeric/test_succ.rb +1 -1
- data/test/lib/facets/core/numeric/test_to_b.rb +1 -1
- data/test/lib/facets/core/ostruct/test___merge__.rb +1 -1
- data/test/lib/facets/core/ostruct/test___update__.rb +1 -1
- data/test/lib/facets/core/ostruct/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/ostruct/test_op_store.rb +1 -1
- data/test/lib/facets/core/proc/test_compose.rb +1 -1
- data/test/lib/facets/core/proc/test_to_method.rb +1 -1
- data/test/lib/facets/core/range/test_to_r.rb +1 -1
- data/test/lib/facets/core/range/test_to_range.rb +1 -1
- data/test/lib/facets/core/range/test_umbrella.rb +1 -1
- data/test/lib/facets/core/range/test_within.rb +1 -1
- data/test/lib/facets/core/regexp/test_arity.rb +1 -1
- data/test/lib/facets/core/regexp/test_to_re.rb +1 -1
- data/test/lib/facets/core/regexp/test_to_regexp.rb +1 -1
- data/test/lib/facets/core/string/self/test_interpolate.rb +1 -1
- data/test/lib/facets/core/string/self/test_patterns.rb +1 -1
- data/test/lib/facets/core/string/self/test_rand_letter.rb +1 -1
- data/test/lib/facets/core/string/test_align_center.rb +1 -1
- data/test/lib/facets/core/string/test_at_rand.rb +1 -1
- data/test/lib/facets/core/string/test_basename.rb +1 -1
- data/test/lib/facets/core/string/test_blank.rb +1 -1
- data/test/lib/facets/core/string/test_bracket.rb +1 -1
- data/test/lib/facets/core/string/test_camelcase.rb +1 -1
- data/test/lib/facets/core/string/test_camelize.rb +1 -1
- data/test/lib/facets/core/string/test_capitalized.rb +1 -1
- data/test/lib/facets/core/string/test_chars.rb +1 -1
- data/test/lib/facets/core/string/test_cmp.rb +1 -1
- data/test/lib/facets/core/string/test_demodulize.rb +1 -1
- data/test/lib/facets/core/string/test_downcase.rb +1 -1
- data/test/lib/facets/core/string/test_dresner.rb +1 -1
- data/test/lib/facets/core/string/test_each_char.rb +1 -1
- data/test/lib/facets/core/string/test_each_word.rb +1 -1
- data/test/lib/facets/core/string/test_first.rb +1 -1
- data/test/lib/facets/core/string/test_fold.rb +1 -1
- data/test/lib/facets/core/string/test_humanize.rb +1 -1
- data/test/lib/facets/core/string/test_indent.rb +1 -1
- data/test/lib/facets/core/string/test_index_all.rb +1 -1
- data/test/lib/facets/core/string/test_last.rb +1 -1
- data/test/lib/facets/core/string/test_line_wrap.rb +1 -1
- data/test/lib/facets/core/string/test_lines.rb +1 -1
- data/test/lib/facets/core/string/test_lowercase.rb +1 -1
- data/test/lib/facets/core/string/test_margin.rb +1 -1
- data/test/lib/facets/core/string/test_methodize.rb +1 -1
- data/test/lib/facets/core/string/test_modulize.rb +1 -1
- data/test/lib/facets/core/string/test_mscan.rb +1 -1
- data/test/lib/facets/core/string/test_natcmp.rb +1 -1
- data/test/lib/facets/core/string/test_nchar.rb +1 -1
- data/test/lib/facets/core/string/test_pathize.rb +1 -1
- data/test/lib/facets/core/string/test_pop.rb +1 -1
- data/test/lib/facets/core/string/test_pot.rb +1 -1
- data/test/lib/facets/core/string/test_push.rb +1 -1
- data/test/lib/facets/core/string/test_quote.rb +1 -1
- data/test/lib/facets/core/string/test_rand_byte.rb +1 -1
- data/test/lib/facets/core/string/test_rand_index.rb +1 -1
- data/test/lib/facets/core/string/test_range.rb +1 -1
- data/test/lib/facets/core/string/test_range_all.rb +1 -1
- data/test/lib/facets/core/string/test_range_of_line.rb +1 -1
- data/test/lib/facets/core/string/test_regesc.rb +1 -1
- data/test/lib/facets/core/string/test_shatter.rb +1 -1
- data/test/lib/facets/core/string/test_shift.rb +1 -1
- data/test/lib/facets/core/string/test_shuffle.rb +1 -1
- data/test/lib/facets/core/string/test_similarity.rb +1 -1
- data/test/lib/facets/core/string/test_singular.rb +1 -1
- data/test/lib/facets/core/string/test_soundex.rb +1 -1
- data/test/lib/facets/core/string/test_succ.rb +1 -1
- data/test/lib/facets/core/string/test_to_a.rb +1 -1
- data/test/lib/facets/core/string/test_to_b.rb +1 -1
- data/test/lib/facets/core/string/test_to_const.rb +1 -1
- data/test/lib/facets/core/string/test_to_date.rb +1 -1
- data/test/lib/facets/core/string/test_to_proc.rb +1 -1
- data/test/lib/facets/core/string/test_to_re.rb +1 -1
- data/test/lib/facets/core/string/test_to_time.rb +1 -1
- data/test/lib/facets/core/string/test_unix_crypt.rb +1 -1
- data/test/lib/facets/core/string/test_unpack.rb +1 -1
- data/test/lib/facets/core/string/test_unshift.rb +1 -1
- data/test/lib/facets/core/string/test_upcase.rb +1 -1
- data/test/lib/facets/core/string/test_whitespace.rb +1 -1
- data/test/lib/facets/core/string/test_word_filter.rb +1 -1
- data/test/lib/facets/core/string/test_word_wrap.rb +1 -1
- data/test/lib/facets/core/string/test_words.rb +1 -1
- data/test/lib/facets/core/symbol/test_camelcase.rb +1 -1
- data/test/lib/facets/core/symbol/test_camelize.rb +1 -1
- data/test/lib/facets/core/symbol/test_capitalize.rb +1 -1
- data/test/lib/facets/core/symbol/test_capitalized.rb +1 -1
- data/test/lib/facets/core/symbol/test_downcase.rb +1 -1
- data/test/lib/facets/core/symbol/test_not.rb +1 -1
- data/test/lib/facets/core/symbol/test_pad.rb +1 -1
- data/test/lib/facets/core/symbol/test_succ.rb +1 -1
- data/test/lib/facets/core/symbol/test_to_const.rb +1 -1
- data/test/lib/facets/core/symbol/test_to_proc.rb +8 -2
- data/test/lib/facets/core/symbol/test_to_str.rb +1 -1
- data/test/lib/facets/core/symbol/test_underscore.rb +1 -1
- data/test/lib/facets/core/symbol/test_upcase.rb +1 -1
- data/test/lib/facets/core/time/test_change.rb +1 -1
- data/test/lib/facets/core/time/test_elapse.rb +1 -1
- data/test/lib/facets/core/time/test_stamp.rb +1 -1
- data/test/lib/facets/core/time/test_to_date.rb +1 -1
- data/test/lib/facets/core/time/test_to_s.rb +1 -1
- data/test/lib/facets/core/time/test_to_time.rb +1 -1
- data/test/lib/facets/more/test_annattr.rb +1 -1
- data/test/lib/facets/more/test_annotation.rb +1 -1
- data/test/lib/facets/more/test_ansicode.rb +1 -1
- data/test/lib/facets/more/test_association.rb +1 -1
- data/test/lib/facets/more/test_basicobject.rb +1 -1
- data/test/lib/facets/more/test_bbcode.rb +1 -1
- data/test/lib/facets/more/test_binaryreader.rb +1 -1
- data/test/lib/facets/more/test_bitmask.rb +1 -1
- data/test/lib/facets/more/test_bytes.rb +1 -1
- data/test/lib/facets/more/test_classmethods.rb +8 -4
- data/test/lib/facets/more/test_command.rb +38 -0
- data/test/lib/facets/more/test_coroutine.rb +1 -1
- data/test/lib/facets/more/test_crypt.rb +1 -1
- data/test/lib/facets/more/test_dictionary.rb +1 -1
- data/test/lib/facets/more/test_elementor.rb +1 -1
- data/test/lib/facets/more/test_enumerablepass.rb +1 -1
- data/test/lib/facets/more/test_floatstring.rb +1 -1
- data/test/lib/facets/more/test_functor.rb +1 -1
- data/test/lib/facets/more/test_htmlbuilder.rb +1 -1
- data/test/lib/facets/more/test_inheritor.rb +1 -1
- data/test/lib/facets/more/test_interval.rb +1 -1
- data/test/lib/facets/more/test_json.rb +1 -1
- data/test/lib/facets/more/test_lisp.rb +1 -1
- data/test/lib/facets/more/test_lisp_format.rb +1 -1
- data/test/lib/facets/more/test_lrucache.rb +1 -1
- data/test/lib/facets/more/test_mathconstants.rb +1 -1
- data/test/lib/facets/more/test_methodprobe.rb +1 -1
- data/test/lib/facets/more/test_multipliers.rb +1 -1
- data/test/lib/facets/more/test_multiton.rb +1 -1
- data/test/lib/facets/more/test_nackclass.rb +1 -1
- data/test/lib/facets/more/test_nilcomparable.rb +1 -1
- data/test/lib/facets/more/test_opencascade.rb +1 -1
- data/test/lib/facets/more/test_openobject.rb +1 -1
- data/test/lib/facets/more/test_overload.rb +1 -1
- data/test/lib/facets/more/test_paramix.rb +1 -1
- data/test/lib/facets/more/test_pqueue.rb +1 -1
- data/test/lib/facets/more/test_preinitialize.rb +1 -1
- data/test/lib/facets/more/test_promoteself.rb +1 -1
- data/test/lib/facets/more/test_recorder.rb +1 -1
- data/test/lib/facets/more/test_snapshot.rb +1 -1
- data/test/lib/facets/more/test_statichash.rb +1 -1
- data/test/lib/facets/more/test_syncarray.rb +1 -1
- data/test/lib/facets/more/test_synchash.rb +1 -1
- data/test/lib/facets/more/test_tagiterator.rb +1 -1
- data/test/lib/facets/more/test_taskable.rb +1 -1
- data/test/lib/facets/more/test_timer.rb +1 -1
- data/test/lib/facets/more/test_times.rb +1 -1
- data/test/lib/facets/more/test_tuple.rb +10 -2
- data/test/lib/facets/more/test_typecast.rb +7 -4
- data/test/lib/facets/more/test_uninheritable.rb +1 -1
- data/test/lib/facets/more/test_units.rb +1 -1
- data/test/lib/facets/more/test_xmlbuilder.rb +1 -1
- data/test/lib/facets/more/test_xmlhelper.rb +1 -1
- data/test/lib/facets/more/test_xoxo.rb +1 -1
- data/test/lib/facets/more/test_yamlstruct.rb +1 -1
- metadata +1660 -2489
- data/lib/facet/classinherit.rb +0 -1
- data/lib/facet/consoleapp.rb +0 -1
- data/lib/facet/gem/self/gemdir.rb +0 -1
- data/lib/facet/kernel/me.rb +0 -1
- data/lib/facet/kernel/method_name.rb +0 -1
- data/lib/facet/kernel/methodname.rb +0 -1
- data/lib/facet/module/inherit.rb +0 -1
- data/lib/facet/module/singleton_to_module.rb +0 -1
- data/lib/facet/string/frequency.rb +0 -1
- data/lib/facet/string/probability.rb +0 -1
- data/lib/facets/core/gem/self/gemdir.rb +0 -12
- data/lib/facets/core/kernel/me.rb +0 -18
- data/lib/facets/core/kernel/method_name.rb +0 -2
- data/lib/facets/core/kernel/methodname.rb +0 -49
- data/lib/facets/core/module/inherit.rb +0 -70
- data/lib/facets/core/module/singleton_to_module.rb +0 -23
- data/lib/facets/more/consoleapp.rb +0 -167
- data/test/lib/facets/core/kernel/test_methodname.rb +0 -31
- data/test/lib/facets/core/module/test_inherit.rb +0 -58
- data/test/lib/facets/core/string/test_frequency.rb +0 -28
- data/test/lib/facets/core/string/test_probability.rb +0 -28
- data/test/lib/facets/more/test_annotatedattr.rb +0 -39
- data/web/doc/api/core/classes/Array.html +0 -1356
- data/web/doc/api/core/classes/Binding.html +0 -538
- data/web/doc/api/core/classes/Class.html +0 -475
- data/web/doc/api/core/classes/Comparable.html +0 -231
- data/web/doc/api/core/classes/Continuation.html +0 -168
- data/web/doc/api/core/classes/Date.html +0 -219
- data/web/doc/api/core/classes/Dir.html +0 -208
- data/web/doc/api/core/classes/Enumerable.html +0 -1435
- data/web/doc/api/core/classes/FalseClass.html +0 -115
- data/web/doc/api/core/classes/File.html +0 -349
- data/web/doc/api/core/classes/FileUtils.html +0 -468
- data/web/doc/api/core/classes/Float.html +0 -157
- data/web/doc/api/core/classes/Gem.html +0 -171
- data/web/doc/api/core/classes/Hash.html +0 -1657
- data/web/doc/api/core/classes/Integer.html +0 -353
- data/web/doc/api/core/classes/Kernal.html +0 -86
- data/web/doc/api/core/classes/Kernel.html +0 -1972
- data/web/doc/api/core/classes/Logger.html +0 -157
- data/web/doc/api/core/classes/MatchData.html +0 -195
- data/web/doc/api/core/classes/Module.html +0 -1712
- data/web/doc/api/core/classes/NackClass.html +0 -92
- data/web/doc/api/core/classes/NilClass.html +0 -332
- data/web/doc/api/core/classes/Numeric.html +0 -306
- data/web/doc/api/core/classes/Object.html +0 -332
- data/web/doc/api/core/classes/OpenStruct.html +0 -315
- data/web/doc/api/core/classes/Pathname.html +0 -154
- data/web/doc/api/core/classes/Proc.html +0 -154
- data/web/doc/api/core/classes/Range.html +0 -235
- data/web/doc/api/core/classes/Regexp.html +0 -185
- data/web/doc/api/core/classes/ScriptBug.html +0 -92
- data/web/doc/api/core/classes/String.html +0 -3286
- data/web/doc/api/core/classes/Symbol.html +0 -463
- data/web/doc/api/core/classes/Time.html +0 -307
- data/web/doc/api/core/classes/TrueClass.html +0 -115
- data/web/doc/api/core/classes/UnboundMethod.html +0 -121
- data/web/doc/api/core/created.rid +0 -1
- data/web/doc/api/core/files/AUTHORS.html +0 -206
- data/web/doc/api/core/files/COPYING.html +0 -517
- data/web/doc/api/core/files/README.html +0 -386
- data/web/doc/api/core/files/WARNING.html +0 -151
- data/web/doc/api/core/files/lib/facets/core/all_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/array/at_rand_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/body_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/array/delete_unless_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/delete_values_at_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/delete_values_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/each_with_key_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/first_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/array/foot_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/array/head_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/join_sentence_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/last_index_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/last_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/array/merge_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/mid_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/middle_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/op_fetch_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/op_mod_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/op_store_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/array/pick_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/pos_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/pot_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/pull_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/rand_index_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/rand_subset_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/range_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/rotate_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/select_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/shuffle_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/store_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/tail_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/array/thru_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/to_b_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/to_h_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/to_hash_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/unzip_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/binding/__DIR___rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/binding/__FILE___rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/binding/__LINE___rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/binding/call_stack_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/binding/called_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/binding/caller_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/binding/defined_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/binding/eval_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/binding/local_variables_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/binding/method_name_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/binding/op_fetch_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/binding/op_store_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/binding/self/of_caller_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/binding/self_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/binding_rb.html +0 -109
- data/web/doc/api/core/files/lib/facets/core/class/by_name_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/class/cattr_accessor_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/class/cattr_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/class/cattr_reader_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/class/cattr_writer_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/class/descendents_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/class/method_name_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/class/remove_descendents_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/class/remove_subclasses_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/class/subclasses_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/class/to_proc_rb.html +0 -98
- data/web/doc/api/core/files/lib/facets/core/class/unix_path_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/comparable/at_least_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/comparable/at_most_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/comparable/cap_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/comparable/clip_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/comparable/cmp_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/continuation/self/create_rb.html +0 -148
- data/web/doc/api/core/files/lib/facets/core/date/days_in_month_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/date/days_of_month_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/date/stamp_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/date/to_date_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/date/to_s_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/date/to_time_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/dir/self/ancestor_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/dir/self/ascend_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/dir/self/descend_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/dir/self/ls_r_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/dir/self/recurse_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/accumulate_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/collect_if_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/collect_with_counter_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/collect_with_index_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/commonality_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/compact_collect_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/compact_map_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/count_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/cross_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/each_by_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/each_combination_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/each_pair_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/each_permutation_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/each_slice_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/each_unique_pair_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/each_with_counter_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/elementwise_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/entropy_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/enumerable/every_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/ew_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/filter_collect_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/filter_map_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/find_collisions_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/frequency_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/graph_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/ideal_entropy_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/map_if_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/map_with_counter_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/map_with_index_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/mode_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/none_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/nonuniq_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/occur_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/one_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/op_pow_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/partition_by_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/permute_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/probability_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/project_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/self/combinations_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/self/cross_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/to_h_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/uniq_by_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/where_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/file/self/append_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/file/self/create_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/file/self/open_as_string_rb.html +0 -118
- data/web/doc/api/core/files/lib/facets/core/file/self/read_binary_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/file/self/read_list_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/file/self/sanitize_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/file/self/split_all_rb.html +0 -101
- data/web/doc/api/core/files/lib/facets/core/file/self/write_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/fileutils/head_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/fileutils/safe_ln_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/fileutils/slice_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/fileutils/split_all_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/fileutils/tail_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/fileutils/wc_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/fileutils/whereis_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/fileutils/which_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/float/approx_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/float/round_at_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/float/round_off_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/float/round_to_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/gem/self/active_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/gem/self/gemdir_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/gem/self/gempath_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/gem/self/gemspec_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/alias_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/assert_has_keys_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/assert_has_only_keys_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/at_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/collate_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/delete_unless_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/each_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/each_with_index_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/hash/each_with_key_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/graph_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/has_keys_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/has_only_keys_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/inverse_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/join_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/keys_to_iv_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/keys_to_s_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/keys_to_sym_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/op_fetch_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/op_lshift_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/op_store_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/hash/rand_key_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/rand_pair_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/rand_value_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/replace_each_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/self/zipnew_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/shuffle_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/slice_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/stringify_keys_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/hash/swap_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/swapkey_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/symoblize_keys_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/hash/to_h_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/to_ostruct_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/to_ostruct_recurse_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/hash/to_proc_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/traverse_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/update_each_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/update_keys_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/update_values_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/variablize_keys_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/hash/weave_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/inflect_rb.html +0 -117
- data/web/doc/api/core/files/lib/facets/core/integer/even_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/integer/fac_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/integer/fact_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/integer/factorial_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/integer/multiple_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/integer/odd_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/integer/ordinal_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/integer/times_collect_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/integer/times_map_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/__DIR___rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/__class___rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/__get___rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/__self___rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/__set___rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/adhoc_rb.html +0 -99
- data/web/doc/api/core/files/lib/facets/core/kernel/as_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/assign_from_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/assign_with_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/kernel/autoreload_files_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/autoreload_glob_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/autoreload_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/bool_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/bug_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/cache_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/call_stack_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/called_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/complete_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/constant_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/copy_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/deep_copy_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/demo_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/eigenclass_rb.html +0 -103
- data/web/doc/api/core/files/lib/facets/core/kernel/false_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/fn_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/generate_method_name_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/get_by_id_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/here_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/in_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/instance_assign_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/instvar_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/is_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/maybe_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/me_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/metaclass_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/method_name_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/method_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/methodname_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/methods_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/nack_rb.html +0 -98
- data/web/doc/api/core/files/lib/facets/core/kernel/new_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/object_class_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/object_hexid_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/op_esc_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/own_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/p_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/pp_exception_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/require_all_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/require_esc_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/require_facet_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/require_local_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/resc_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/respond_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/returning_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/send_as_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/set_from_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/set_with_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/silence_warnings_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/silently_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/singleton_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/superior_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/supermethod_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/this_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/to_b_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/to_bool_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/true_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/unuri_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/uri_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/val_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/warn_with_line_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/with_accessor_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/with_reader_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/with_writer_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/logger/format_message_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/logger/format_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/matchdata/match_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/matchdata/matchset_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/matchdata/matchtree_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/abstract_rb.html +0 -105
- data/web/doc/api/core/files/lib/facets/core/module/alias_module_function_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/ancestor_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/attr_query_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/attr_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/attr_setter_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/attr_tester_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/attr_validator_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/basename_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/by_name_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/class_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/clone_removing_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/module/clone_renaming_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/module/clone_using_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/dirname_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/equate_on_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/generate_instance_method_name_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/include_as_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/inherit_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/initializer_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/instance_methods_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/integrate_rb.html +0 -104
- data/web/doc/api/core/files/lib/facets/core/module/is_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/memoize_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/modspace_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/module/namespace_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/nesting_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/nodef_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/on_included_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/redef_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/redefine_method_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/redirect_method_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/redirect_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/remove_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/rename_method_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/rename_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/revisal_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/module/shadow_all_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/shadow_method_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/singleton_to_module_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/sort_on_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/this_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/wrap_method_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/wrap_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/nil_as_emptiness_rb.html +0 -116
- data/web/doc/api/core/files/lib/facets/core/nilclass/blank_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/nilclass/empty_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/nilclass/include_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/nilclass/length_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/nilclass/op_cmp_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/nilclass/op_fetch_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/nilclass/size_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/nilclass/succ_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/nilclass/to_h_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/numeric/approx_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/numeric/ceil_multiple_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/numeric/pred_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/numeric/succ_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/numeric/to_b_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/ostruct/__merge___rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/ostruct/__table___rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/ostruct/__update___rb.html +0 -98
- data/web/doc/api/core/files/lib/facets/core/ostruct/instance_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/ostruct/op_fetch_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/ostruct/op_store_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/ostruct/to_h_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/ostruct_rb.html +0 -102
- data/web/doc/api/core/files/lib/facets/core/pathname/ascend_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/pathname/descend_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/proc/compose_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/proc/op_mul_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/proc/to_method_rb.html +0 -133
- data/web/doc/api/core/files/lib/facets/core/random_rb.html +0 -111
- data/web/doc/api/core/files/lib/facets/core/range/to_r_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/range/to_range_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/range/umbrella_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/range/within_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/regexp/arity_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/regexp/to_re_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/regexp/to_regexp_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/align_center_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/align_left_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/string/align_right_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/string/at_rand_rb.html +0 -98
- data/web/doc/api/core/files/lib/facets/core/string/at_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/basename_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/blank_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/bracket_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/brief_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/bytes_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/camelcase_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/camelize_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/capitalized_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/chars_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/cmp_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/demodulize_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/dequote_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/downcase_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/dresner_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/each_char_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/each_word_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/ends_with_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/string/first_char_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/first_rb.html +0 -98
- data/web/doc/api/core/files/lib/facets/core/string/fold_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/format_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/frequency_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/string/humanize_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/indent_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/index_all_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/last_char_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/last_rb.html +0 -98
- data/web/doc/api/core/files/lib/facets/core/string/line_wrap_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/lines_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/lowercase_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/margin_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/methodize_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/modulize_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/mscan_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/natcmp_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/nchar_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/ordinal_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/pathize_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/plural_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/string/pop_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/pot_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/probability_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/string/pull_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/push_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/quote_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/rand_byte_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/rand_index_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/range_all_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/range_of_line_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/range_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/regesc_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/self/format_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/self/interpolate_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/self/patterns_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/self/rand_letter_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/self/random_rb.html +0 -99
- data/web/doc/api/core/files/lib/facets/core/string/shatter_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/shell_escape_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/shift_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/shuffle_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/similarity_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/singular_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/soundex_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/starts_with_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/succ_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/tab_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/string/tabto_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/string/to_a_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/to_b_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/to_const_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/to_date_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/string/to_proc_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/to_re_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/to_rx_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/string/to_time_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/unbracket_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/underscore_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/unix_crypt_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/unpack_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/unshift_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/upcase_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/uppercase_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/string/whitespace_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/word_filter_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/word_wrap_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/words_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string_as_array_rb.html +0 -109
- data/web/doc/api/core/files/lib/facets/core/symbol/camelcase_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/symbol/camelize_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/symbol/capitalize_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/symbol/capitalized_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/symbol/downcase_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/symbol/not_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/symbol/pad_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/symbol/succ_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/symbol/to_const_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/symbol/to_proc_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/symbol/to_str_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/symbol/underscore_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/symbol/upcase_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/time/change_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/time/elapse_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/time/self/days_extrema_rb.html +0 -114
- data/web/doc/api/core/files/lib/facets/core/time/self/stamp_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/time/stamp_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/time/to_date_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/time/to_s_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/time/to_time_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/unboundmethod/name_rb.html +0 -92
- data/web/doc/api/core/fr_class_index.html +0 -80
- data/web/doc/api/core/fr_file_index.html +0 -521
- data/web/doc/api/core/fr_method_index.html +0 -555
- data/web/doc/api/core/index.html +0 -26
- data/web/doc/api/core/rdoc-style.css +0 -175
- data/web/doc/api/more/classes/Annotation.html +0 -258
- data/web/doc/api/more/classes/Array.html +0 -362
- data/web/doc/api/more/classes/Aspect.html +0 -159
- data/web/doc/api/more/classes/Aspects.html +0 -240
- data/web/doc/api/more/classes/Aspects/ClassMethods.html +0 -254
- data/web/doc/api/more/classes/Association.html +0 -289
- data/web/doc/api/more/classes/BBCode.html +0 -531
- data/web/doc/api/more/classes/BasicObject.html +0 -260
- data/web/doc/api/more/classes/BasicObject/Self.html +0 -142
- data/web/doc/api/more/classes/BinaryReader.html +0 -535
- data/web/doc/api/more/classes/BinaryReader/ByteOrder.html +0 -225
- data/web/doc/api/more/classes/BuilderObject.html +0 -248
- data/web/doc/api/more/classes/Class.html +0 -201
- data/web/doc/api/more/classes/Client.html +0 -1251
- data/web/doc/api/more/classes/Cloneable.html +0 -133
- data/web/doc/api/more/classes/Console.html +0 -105
- data/web/doc/api/more/classes/Console/ANSICode.html +0 -488
- data/web/doc/api/more/classes/Console/Command.html +0 -275
- data/web/doc/api/more/classes/Console/ProgressBar.html +0 -640
- data/web/doc/api/more/classes/Coroutine.html +0 -284
- data/web/doc/api/more/classes/Crypt.html +0 -270
- data/web/doc/api/more/classes/DebugSocket.html +0 -242
- data/web/doc/api/more/classes/Dictionary.html +0 -974
- data/web/doc/api/more/classes/Downloader.html +0 -515
- data/web/doc/api/more/classes/Downloader/Checksum.html +0 -96
- data/web/doc/api/more/classes/Downloader/Mirror.html +0 -134
- data/web/doc/api/more/classes/Elementor.html +0 -202
- data/web/doc/api/more/classes/Enumerable.html +0 -86
- data/web/doc/api/more/classes/EnumerablePass.html +0 -217
- data/web/doc/api/more/classes/Expirable.html +0 -197
- data/web/doc/api/more/classes/FalseClass.html +0 -119
- data/web/doc/api/more/classes/FileList.html +0 -971
- data/web/doc/api/more/classes/Float.html +0 -140
- data/web/doc/api/more/classes/FloatString.html +0 -413
- data/web/doc/api/more/classes/Functor.html +0 -203
- data/web/doc/api/more/classes/HTMLBuilder.html +0 -132
- data/web/doc/api/more/classes/HTMLHelper.html +0 -189
- data/web/doc/api/more/classes/HTTP.html +0 -154
- data/web/doc/api/more/classes/HTTP/BadResponseError.html +0 -94
- data/web/doc/api/more/classes/HTTP/Error.html +0 -96
- data/web/doc/api/more/classes/HTTP/Message.html +0 -633
- data/web/doc/api/more/classes/HTTP/Message/Body.html +0 -299
- data/web/doc/api/more/classes/HTTP/Message/Headers.html +0 -641
- data/web/doc/api/more/classes/HTTP/Status.html +0 -148
- data/web/doc/api/more/classes/HTTPAccess.html +0 -115
- data/web/doc/api/more/classes/Hash.html +0 -257
- data/web/doc/api/more/classes/HashBuilder.html +0 -216
- data/web/doc/api/more/classes/Heap.html +0 -535
- data/web/doc/api/more/classes/Heap/EmptyHeapException.html +0 -92
- data/web/doc/api/more/classes/Heap/Max.html +0 -133
- data/web/doc/api/more/classes/Heap/Min.html +0 -133
- data/web/doc/api/more/classes/IORedirect.html +0 -225
- data/web/doc/api/more/classes/Integer.html +0 -298
- data/web/doc/api/more/classes/Interval.html +0 -853
- data/web/doc/api/more/classes/InvalidNackError.html +0 -117
- data/web/doc/api/more/classes/JSON.html +0 -410
- data/web/doc/api/more/classes/JSON/Parser.html +0 -374
- data/web/doc/api/more/classes/JSON/State.html +0 -280
- data/web/doc/api/more/classes/Kernel.html +0 -400
- data/web/doc/api/more/classes/LRUCache.html +0 -461
- data/web/doc/api/more/classes/LRUCache/Item.html +0 -114
- data/web/doc/api/more/classes/LRUCache/Sentinel.html +0 -102
- data/web/doc/api/more/classes/Lazy.html +0 -96
- data/web/doc/api/more/classes/Lazy/Future.html +0 -100
- data/web/doc/api/more/classes/Lazy/Promise.html +0 -114
- data/web/doc/api/more/classes/Lazy/PromiseSafe.html +0 -99
- data/web/doc/api/more/classes/Lisp.html +0 -846
- data/web/doc/api/more/classes/Lisp/DottedPair.html +0 -289
- data/web/doc/api/more/classes/Lisp/Format.html +0 -147
- data/web/doc/api/more/classes/Math.html +0 -110
- data/web/doc/api/more/classes/Math/Constants.html +0 -691
- data/web/doc/api/more/classes/Math/Constants/CGS.html +0 -584
- data/web/doc/api/more/classes/Method.html +0 -170
- data/web/doc/api/more/classes/Method/Probe.html +0 -267
- data/web/doc/api/more/classes/Mock.html +0 -276
- data/web/doc/api/more/classes/Module.html +0 -691
- data/web/doc/api/more/classes/Multiton.html +0 -256
- data/web/doc/api/more/classes/NackClass.html +0 -245
- data/web/doc/api/more/classes/NilClass.html +0 -238
- data/web/doc/api/more/classes/NullClass.html +0 -202
- data/web/doc/api/more/classes/Numeric.html +0 -1104
- data/web/doc/api/more/classes/ORMSupport.html +0 -357
- data/web/doc/api/more/classes/Object.html +0 -323
- data/web/doc/api/more/classes/OpenCascade.html +0 -230
- data/web/doc/api/more/classes/OpenObject.html +0 -552
- data/web/doc/api/more/classes/PQueue.html +0 -471
- data/web/doc/api/more/classes/PathList.html +0 -162
- data/web/doc/api/more/classes/PathList/Finder.html +0 -137
- data/web/doc/api/more/classes/Pool.html +0 -207
- data/web/doc/api/more/classes/Proc.html +0 -140
- data/web/doc/api/more/classes/PromoteSelf.html +0 -138
- data/web/doc/api/more/classes/Quaternion.html +0 -1497
- data/web/doc/api/more/classes/REXMLBuilder.html +0 -357
- data/web/doc/api/more/classes/REXMLBuilder/REXMLUtil.html +0 -396
- data/web/doc/api/more/classes/Recorder.html +0 -208
- data/web/doc/api/more/classes/Reference.html +0 -201
- data/web/doc/api/more/classes/RubyOneLiners.html +0 -139
- data/web/doc/api/more/classes/RubyTals.html +0 -316
- data/web/doc/api/more/classes/SSLSocketWrap.html +0 -410
- data/web/doc/api/more/classes/Semaphore.html +0 -264
- data/web/doc/api/more/classes/SimpleStringIO.html +0 -139
- data/web/doc/api/more/classes/Snapshot.html +0 -191
- data/web/doc/api/more/classes/StateMachine.html +0 -248
- data/web/doc/api/more/classes/StateParser.html +0 -276
- data/web/doc/api/more/classes/StateParser/Constants.html +0 -109
- data/web/doc/api/more/classes/StateParser/Marker.html +0 -269
- data/web/doc/api/more/classes/StateParser/State.html +0 -448
- data/web/doc/api/more/classes/StaticHash.html +0 -144
- data/web/doc/api/more/classes/String.html +0 -278
- data/web/doc/api/more/classes/StringIO.html +0 -123
- data/web/doc/api/more/classes/Struct.html +0 -134
- data/web/doc/api/more/classes/Symbol.html +0 -116
- data/web/doc/api/more/classes/SyncArray.html +0 -131
- data/web/doc/api/more/classes/SyncHash.html +0 -135
- data/web/doc/api/more/classes/SyncHash/Delegator.html +0 -213
- data/web/doc/api/more/classes/SyncHash/Inheritor.html +0 -213
- data/web/doc/api/more/classes/System.html +0 -1055
- data/web/doc/api/more/classes/TSort.html +0 -123
- data/web/doc/api/more/classes/TagIterator.html +0 -706
- data/web/doc/api/more/classes/Task.html +0 -237
- data/web/doc/api/more/classes/Task/Graph.html +0 -165
- data/web/doc/api/more/classes/Taskable.html +0 -300
- data/web/doc/api/more/classes/Time.html +0 -746
- data/web/doc/api/more/classes/Timer.html +0 -471
- data/web/doc/api/more/classes/Timer/Dummy.html +0 -141
- data/web/doc/api/more/classes/TracePoint.html +0 -453
- data/web/doc/api/more/classes/TrueClass.html +0 -118
- data/web/doc/api/more/classes/Tuple.html +0 -861
- data/web/doc/api/more/classes/URI.html +0 -107
- data/web/doc/api/more/classes/Uninheritable.html +0 -130
- data/web/doc/api/more/classes/Units.html +0 -191
- data/web/doc/api/more/classes/Units/Config.html +0 -120
- data/web/doc/api/more/classes/Units/Converter.html +0 -808
- data/web/doc/api/more/classes/Units/Converter/ExchangeRate.html +0 -155
- data/web/doc/api/more/classes/Units/Converter/ExchangeRate/CachedXMethods.html +0 -143
- data/web/doc/api/more/classes/Units/Converter/ExchangeRate/XMethods.html +0 -197
- data/web/doc/api/more/classes/Units/Unit.html +0 -434
- data/web/doc/api/more/classes/Units/Value.html +0 -331
- data/web/doc/api/more/classes/ValueHolder.html +0 -167
- data/web/doc/api/more/classes/WebAgent.html +0 -103
- data/web/doc/api/more/classes/WebAgent/Cookie.html +0 -513
- data/web/doc/api/more/classes/WebAgent/CookieManager.html +0 -515
- data/web/doc/api/more/classes/WebAgent/CookieManager/Error.html +0 -96
- data/web/doc/api/more/classes/WebAgent/CookieManager/ErrorOverrideOK.html +0 -94
- data/web/doc/api/more/classes/WebAgent/CookieManager/NoDotError.html +0 -94
- data/web/doc/api/more/classes/WebAgent/CookieManager/SpecialError.html +0 -94
- data/web/doc/api/more/classes/WebAgent/CookieUtils.html +0 -171
- data/web/doc/api/more/classes/XMLBuilder.html +0 -132
- data/web/doc/api/more/classes/XMLHelper.html +0 -428
- data/web/doc/api/more/classes/XOXO.html +0 -252
- data/web/doc/api/more/classes/YAMLStruct.html +0 -166
- data/web/doc/api/more/created.rid +0 -1
- data/web/doc/api/more/files/AUTHORS.html +0 -206
- data/web/doc/api/more/files/COPYING.html +0 -517
- data/web/doc/api/more/files/README.html +0 -389
- data/web/doc/api/more/files/WARNING.html +0 -151
- data/web/doc/api/more/files/lib/facets/more/annattr_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/annotation_rb.html +0 -118
- data/web/doc/api/more/files/lib/facets/more/ansicode_rb.html +0 -128
- data/web/doc/api/more/files/lib/facets/more/aspects_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/association_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/basicobject_rb.html +0 -129
- data/web/doc/api/more/files/lib/facets/more/bbcode_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/binaryreader_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/bitmask_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/blankslate_rb.html +0 -113
- data/web/doc/api/more/files/lib/facets/more/builderobject_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/bytes_rb.html +0 -131
- data/web/doc/api/more/files/lib/facets/more/classinherit_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/classmethods_rb.html +0 -121
- data/web/doc/api/more/files/lib/facets/more/cloneable_rb.html +0 -132
- data/web/doc/api/more/files/lib/facets/more/consoleapp_rb.html +0 -131
- data/web/doc/api/more/files/lib/facets/more/cookie_rb.html +0 -133
- data/web/doc/api/more/files/lib/facets/more/coroutine_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/crypt_rb.html +0 -146
- data/web/doc/api/more/files/lib/facets/more/dictionary_rb.html +0 -123
- data/web/doc/api/more/files/lib/facets/more/downloader_rb.html +0 -124
- data/web/doc/api/more/files/lib/facets/more/elementor_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/enumerablepass_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/expirable_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/filelist_rb.html +0 -128
- data/web/doc/api/more/files/lib/facets/more/floatstring_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/functor_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/hashbuilder_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/heap_rb.html +0 -131
- data/web/doc/api/more/files/lib/facets/more/htmlbuilder_rb.html +0 -116
- data/web/doc/api/more/files/lib/facets/more/htmlhelper_rb.html +0 -119
- data/web/doc/api/more/files/lib/facets/more/http_rb.html +0 -116
- data/web/doc/api/more/files/lib/facets/more/httpaccess_rb.html +0 -137
- data/web/doc/api/more/files/lib/facets/more/inheritor_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/interval_rb.html +0 -120
- data/web/doc/api/more/files/lib/facets/more/ioredirect_rb.html +0 -116
- data/web/doc/api/more/files/lib/facets/more/json_rb.html +0 -141
- data/web/doc/api/more/files/lib/facets/more/lazy_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/lisp_format_rb.html +0 -129
- data/web/doc/api/more/files/lib/facets/more/lisp_rb.html +0 -119
- data/web/doc/api/more/files/lib/facets/more/lrucache_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/mathconstants_rb.html +0 -121
- data/web/doc/api/more/files/lib/facets/more/methodprobe_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/mock_rb.html +0 -208
- data/web/doc/api/more/files/lib/facets/more/multipliers_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/multiton_rb.html +0 -114
- data/web/doc/api/more/files/lib/facets/more/nackclass_rb.html +0 -151
- data/web/doc/api/more/files/lib/facets/more/nilcomparable_rb.html +0 -118
- data/web/doc/api/more/files/lib/facets/more/nullclass_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/one_rb.html +0 -158
- data/web/doc/api/more/files/lib/facets/more/opencascade_rb.html +0 -129
- data/web/doc/api/more/files/lib/facets/more/openobject_rb.html +0 -120
- data/web/doc/api/more/files/lib/facets/more/orderedhash_rb.html +0 -113
- data/web/doc/api/more/files/lib/facets/more/ormsupport_rb.html +0 -125
- data/web/doc/api/more/files/lib/facets/more/overload_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/paramix_rb.html +0 -118
- data/web/doc/api/more/files/lib/facets/more/pathlist_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/pool_rb.html +0 -120
- data/web/doc/api/more/files/lib/facets/more/pqueue_rb.html +0 -122
- data/web/doc/api/more/files/lib/facets/more/preinitialize_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/progressbar_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/promoteself_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/quaternion_rb.html +0 -150
- data/web/doc/api/more/files/lib/facets/more/recorder_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/reference_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/rexmlbuilder_rb.html +0 -116
- data/web/doc/api/more/files/lib/facets/more/rtals_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/semaphore_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/snapshot_rb.html +0 -121
- data/web/doc/api/more/files/lib/facets/more/stateparser_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/statichash_rb.html +0 -133
- data/web/doc/api/more/files/lib/facets/more/syncarray_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/synchash_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/system_rb.html +0 -123
- data/web/doc/api/more/files/lib/facets/more/tagiterator_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/taskable_rb.html +0 -118
- data/web/doc/api/more/files/lib/facets/more/timer_rb.html +0 -127
- data/web/doc/api/more/files/lib/facets/more/times_rb.html +0 -127
- data/web/doc/api/more/files/lib/facets/more/tracepoint_rb.html +0 -131
- data/web/doc/api/more/files/lib/facets/more/tuple_rb.html +0 -122
- data/web/doc/api/more/files/lib/facets/more/typecast_rb.html +0 -124
- data/web/doc/api/more/files/lib/facets/more/uninheritable_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/units_rb.html +0 -118
- data/web/doc/api/more/files/lib/facets/more/xmlbuilder_rb.html +0 -116
- data/web/doc/api/more/files/lib/facets/more/xmlhelper_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/xoxo_rb.html +0 -125
- data/web/doc/api/more/files/lib/facets/more/yamlstruct_rb.html +0 -123
- data/web/doc/api/more/fr_class_index.html +0 -197
- data/web/doc/api/more/fr_file_index.html +0 -136
- data/web/doc/api/more/fr_method_index.html +0 -1290
- data/web/doc/api/more/index.html +0 -26
- data/web/doc/api/more/rdoc-style.css +0 -175
- data/web/images/best_jupiter_cass.jpg +0 -0
- data/web/images/super-friends-volume-two-20050606010933166-001.jpg +0 -0
@@ -1,28 +0,0 @@
|
|
1
|
-
# _____ _
|
2
|
-
# |_ _|__ ___| |_
|
3
|
-
# | |/ _ \/ __| __|
|
4
|
-
# | | __/\__ \ |_
|
5
|
-
# |_|\___||___/\__|
|
6
|
-
#
|
7
|
-
# for lib/facets/core/string/frequency.rb
|
8
|
-
#
|
9
|
-
# Extracted Tue Jun 06 09:30:19 EDT 2006
|
10
|
-
# Unit Tools Reap Test Extractor
|
11
|
-
#
|
12
|
-
|
13
|
-
require 'facets/core/string/frequency.rb'
|
14
|
-
|
15
|
-
|
16
|
-
require 'test/unit'
|
17
|
-
|
18
|
-
class TCString < Test::Unit::TestCase
|
19
|
-
|
20
|
-
def test_frequency
|
21
|
-
assert_equal( {'a'=>1,'b'=>1}, "ab".frequency )
|
22
|
-
assert_equal( {'tom'=>1,'boy'=>1}, "tom boy".frequency(:word) )
|
23
|
-
assert_equal( {'tom'=>1,'boy'=>1}, "tom\nboy".frequency(:line) )
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
|
28
|
-
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# _____ _
|
2
|
-
# |_ _|__ ___| |_
|
3
|
-
# | |/ _ \/ __| __|
|
4
|
-
# | | __/\__ \ |_
|
5
|
-
# |_|\___||___/\__|
|
6
|
-
#
|
7
|
-
# for lib/facets/core/string/probability.rb
|
8
|
-
#
|
9
|
-
# Extracted Tue Jun 06 09:30:19 EDT 2006
|
10
|
-
# Unit Tools Reap Test Extractor
|
11
|
-
#
|
12
|
-
|
13
|
-
require 'facets/core/string/probability.rb'
|
14
|
-
|
15
|
-
|
16
|
-
require 'test/unit'
|
17
|
-
|
18
|
-
class TCString < Test::Unit::TestCase
|
19
|
-
|
20
|
-
def test_probability
|
21
|
-
assert_equal( {'a'=>0.5,'b'=>0.5}, "ab".probability )
|
22
|
-
assert_equal( {'tom'=>0.5,'boy'=>0.5}, "tom boy".probability(:word) )
|
23
|
-
assert_equal( {'tom'=>0.5,'boy'=>0.5}, "tom\nboy".probability(:line) )
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
|
28
|
-
|
@@ -1,39 +0,0 @@
|
|
1
|
-
# _____ _
|
2
|
-
# |_ _|__ ___| |_
|
3
|
-
# | |/ _ \/ __| __|
|
4
|
-
# | | __/\__ \ |_
|
5
|
-
# |_|\___||___/\__|
|
6
|
-
#
|
7
|
-
# for lib/facets/more/annotatedattr.rb
|
8
|
-
#
|
9
|
-
# Extracted Sun Jun 04 04:27:11 EDT 2006
|
10
|
-
# Unit Tools Reap Test Extractor
|
11
|
-
#
|
12
|
-
|
13
|
-
require 'facets/more/annotatedattr.rb'
|
14
|
-
|
15
|
-
|
16
|
-
require 'test/unit'
|
17
|
-
|
18
|
-
class TC01 < Test::Unit::TestCase
|
19
|
-
class A
|
20
|
-
attr_accessor :x, :cast=>"to_s"
|
21
|
-
end
|
22
|
-
|
23
|
-
def test_09_001
|
24
|
-
a = A.new
|
25
|
-
assert_equal( [:x], A.attributes )
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
class TC10 < Test::Unit::TestCase
|
30
|
-
class A
|
31
|
-
attr :x, :cast=>"to_s"
|
32
|
-
end
|
33
|
-
|
34
|
-
def test_10_001
|
35
|
-
assert_equal( "to_s", A.ann.x.cast )
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
|
@@ -1,1356 +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: Array</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 = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
|
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 />Array</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/facets/core/array/pull_rb.html">lib/facets/core/array/pull.rb</a>
|
61
|
-
<a href="../files/lib/facets/core/array/each_with_key_rb.html">lib/facets/core/array/each_with_key.rb</a>
|
62
|
-
<a href="../files/lib/facets/core/array/merge_rb.html">lib/facets/core/array/merge.rb</a>
|
63
|
-
<a href="../files/lib/facets/core/array/select_rb.html">lib/facets/core/array/select.rb</a>
|
64
|
-
<a href="../files/lib/facets/core/array/rand_index_rb.html">lib/facets/core/array/rand_index.rb</a>
|
65
|
-
<a href="../files/lib/facets/core/array/rand_subset_rb.html">lib/facets/core/array/rand_subset.rb</a>
|
66
|
-
<a href="../files/lib/facets/core/array/unzip_rb.html">lib/facets/core/array/unzip.rb</a>
|
67
|
-
<a href="../files/lib/facets/core/array/delete_unless_rb.html">lib/facets/core/array/delete_unless.rb</a>
|
68
|
-
<a href="../files/lib/facets/core/array/delete_values_rb.html">lib/facets/core/array/delete_values.rb</a>
|
69
|
-
<a href="../files/lib/facets/core/array/last_index_rb.html">lib/facets/core/array/last_index.rb</a>
|
70
|
-
<a href="../files/lib/facets/core/array/thru_rb.html">lib/facets/core/array/thru.rb</a>
|
71
|
-
<a href="../files/lib/facets/core/array/at_rand_rb.html">lib/facets/core/array/at_rand.rb</a>
|
72
|
-
<a href="../files/lib/facets/core/array/first_rb.html">lib/facets/core/array/first.rb</a>
|
73
|
-
<a href="../files/lib/facets/core/array/range_rb.html">lib/facets/core/array/range.rb</a>
|
74
|
-
<a href="../files/lib/facets/core/array/to_b_rb.html">lib/facets/core/array/to_b.rb</a>
|
75
|
-
<a href="../files/lib/facets/core/array/to_h_rb.html">lib/facets/core/array/to_h.rb</a>
|
76
|
-
<a href="../files/lib/facets/core/array/mid_rb.html">lib/facets/core/array/mid.rb</a>
|
77
|
-
<a href="../files/lib/facets/core/array/delete_values_at_rb.html">lib/facets/core/array/delete_values_at.rb</a>
|
78
|
-
<a href="../files/lib/facets/core/array/head_rb.html">lib/facets/core/array/head.rb</a>
|
79
|
-
<a href="../files/lib/facets/core/array/pos_rb.html">lib/facets/core/array/pos.rb</a>
|
80
|
-
<a href="../files/lib/facets/core/array/rotate_rb.html">lib/facets/core/array/rotate.rb</a>
|
81
|
-
<a href="../files/lib/facets/core/array/shuffle_rb.html">lib/facets/core/array/shuffle.rb</a>
|
82
|
-
<a href="../files/lib/facets/core/array/op_store_rb.html">lib/facets/core/array/op_store.rb</a>
|
83
|
-
<a href="../files/lib/facets/core/array/op_fetch_rb.html">lib/facets/core/array/op_fetch.rb</a>
|
84
|
-
<a href="../files/lib/facets/core/array/middle_rb.html">lib/facets/core/array/middle.rb</a>
|
85
|
-
<a href="../files/lib/facets/core/array/pick_rb.html">lib/facets/core/array/pick.rb</a>
|
86
|
-
<a href="../files/lib/facets/core/array/to_hash_rb.html">lib/facets/core/array/to_hash.rb</a>
|
87
|
-
<a href="../files/lib/facets/core/array/store_rb.html">lib/facets/core/array/store.rb</a>
|
88
|
-
<a href="../files/lib/facets/core/array/op_mod_rb.html">lib/facets/core/array/op_mod.rb</a>
|
89
|
-
<a href="../files/lib/facets/core/array/join_sentence_rb.html">lib/facets/core/array/join_sentence.rb</a>
|
90
|
-
<a href="../files/lib/facets/core/array/pot_rb.html">lib/facets/core/array/pot.rb</a>
|
91
|
-
<a href="../files/lib/facets/core/enumerable/each_unique_pair_rb.html">lib/facets/core/enumerable/each_unique_pair.rb</a>
|
92
|
-
<a href="../files/lib/facets/core/enumerable/every_rb.html">lib/facets/core/enumerable/every.rb</a>
|
93
|
-
<a href="../files/lib/facets/core/enumerable/each_combination_rb.html">lib/facets/core/enumerable/each_combination.rb</a>
|
94
|
-
<a href="../files/lib/facets/core/enumerable/each_slice_rb.html">lib/facets/core/enumerable/each_slice.rb</a>
|
95
|
-
</td>
|
96
|
-
</tr>
|
97
|
-
<tr>
|
98
|
-
<td>Parent:</td>
|
99
|
-
<td>
|
100
|
-
<a href="Object.html">
|
101
|
-
Object
|
102
|
-
</a>
|
103
|
-
</td>
|
104
|
-
</tr>
|
105
|
-
</table>
|
106
|
-
</td>
|
107
|
-
</tr>
|
108
|
-
</table>
|
109
|
-
<!-- banner header -->
|
110
|
-
|
111
|
-
<div id="bodyContent">
|
112
|
-
<div id="content">
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
<div class="sectiontitle">Methods</div>
|
118
|
-
<ul>
|
119
|
-
<li><a href="#M000138">/</a></li>
|
120
|
-
<li><a href="#M000132">[]</a></li>
|
121
|
-
<li><a href="#M000131">[]=</a></li>
|
122
|
-
<li><a href="#M000113">at_rand</a></li>
|
123
|
-
<li><a href="#M000114">at_rand!</a></li>
|
124
|
-
<li><a href="#M000125">body</a></li>
|
125
|
-
<li><a href="#M000109">delete_unless</a></li>
|
126
|
-
<li><a href="#M000110">delete_values</a></li>
|
127
|
-
<li><a href="#M000121">delete_values_at</a></li>
|
128
|
-
<li><a href="#M000144">each_by</a></li>
|
129
|
-
<li><a href="#M000142">each_combination</a></li>
|
130
|
-
<li><a href="#M000143">each_slice</a></li>
|
131
|
-
<li><a href="#M000140">each_unique_pair</a></li>
|
132
|
-
<li><a href="#M000141">every!</a></li>
|
133
|
-
<li><a href="#M000115">first=</a></li>
|
134
|
-
<li><a href="#M000124">foot</a></li>
|
135
|
-
<li><a href="#M000122">head</a></li>
|
136
|
-
<li><a href="#M000139">join_sentence</a></li>
|
137
|
-
<li><a href="#M000116">last=</a></li>
|
138
|
-
<li><a href="#M000111">last_index</a></li>
|
139
|
-
<li><a href="#M000104">merge!</a></li>
|
140
|
-
<li><a href="#M000120">mid</a></li>
|
141
|
-
<li><a href="#M000133">middle</a></li>
|
142
|
-
<li><a href="#M000134">pick</a></li>
|
143
|
-
<li><a href="#M000135">pick!</a></li>
|
144
|
-
<li><a href="#M000126">pos</a></li>
|
145
|
-
<li><a href="#M000106">rand_index</a></li>
|
146
|
-
<li><a href="#M000107">rand_subset</a></li>
|
147
|
-
<li><a href="#M000117">range</a></li>
|
148
|
-
<li><a href="#M000127">rotate</a></li>
|
149
|
-
<li><a href="#M000128">rotate!</a></li>
|
150
|
-
<li><a href="#M000105">select!</a></li>
|
151
|
-
<li><a href="#M000129">shuffle</a></li>
|
152
|
-
<li><a href="#M000130">shuffle!</a></li>
|
153
|
-
<li><a href="#M000137">store</a></li>
|
154
|
-
<li><a href="#M000123">tail</a></li>
|
155
|
-
<li><a href="#M000112">thru</a></li>
|
156
|
-
<li><a href="#M000118">to_b</a></li>
|
157
|
-
<li><a href="#M000119">to_h</a></li>
|
158
|
-
<li><a href="#M000136">to_hash</a></li>
|
159
|
-
<li><a href="#M000108">unzip</a></li>
|
160
|
-
</ul>
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
<div class="sectiontitle">Public Instance methods</div>
|
168
|
-
<div class="method">
|
169
|
-
<div class="title">
|
170
|
-
<a name="M000138"></a><b>/</b>(len)
|
171
|
-
</div>
|
172
|
-
<div class="description">
|
173
|
-
<p>
|
174
|
-
Partition an array into parts of given length.
|
175
|
-
</p>
|
176
|
-
</div>
|
177
|
-
<div class="sourcecode">
|
178
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000138_source')" id="l_M000138_source">show source</a> ]</p>
|
179
|
-
<div id="M000138_source" class="dyn-source">
|
180
|
-
<pre>
|
181
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/op_mod.rb, line 8</span>
|
182
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">len</span>
|
183
|
-
<span class="ruby-identifier">inject</span>([]) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ary</span>, <span class="ruby-identifier">x</span><span class="ruby-operator">|</span>
|
184
|
-
<span class="ruby-identifier">ary</span> <span class="ruby-operator"><<</span> [] <span class="ruby-keyword kw">if</span> [<span class="ruby-operator">*</span><span class="ruby-identifier">ary</span>.<span class="ruby-identifier">last</span>].<span class="ruby-identifier">nitems</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">len</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
185
|
-
<span class="ruby-identifier">ary</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">x</span>
|
186
|
-
<span class="ruby-identifier">ary</span>
|
187
|
-
<span class="ruby-keyword kw">end</span>
|
188
|
-
<span class="ruby-keyword kw">end</span>
|
189
|
-
</pre>
|
190
|
-
</div>
|
191
|
-
</div>
|
192
|
-
</div>
|
193
|
-
<div class="method">
|
194
|
-
<div class="title">
|
195
|
-
<a name="M000132"></a><b>[]</b>(*args)
|
196
|
-
</div>
|
197
|
-
<div class="description">
|
198
|
-
<p>
|
199
|
-
Modifies #[] to also accept an array of indexes.
|
200
|
-
</p>
|
201
|
-
<pre>
|
202
|
-
a = ['a','b','c','d','e','f']
|
203
|
-
|
204
|
-
a[[1]] #=> ['b']
|
205
|
-
a[[1,1]] #=> ['b','b']
|
206
|
-
a[[1,-1]] #=> ['b','f']
|
207
|
-
a[[0,2,4]] #=> ['a','c','e']
|
208
|
-
</pre>
|
209
|
-
</div>
|
210
|
-
<div class="sourcecode">
|
211
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000132_source')" id="l_M000132_source">show source</a> ]</p>
|
212
|
-
<div id="M000132_source" class="dyn-source">
|
213
|
-
<pre>
|
214
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/op_fetch.rb, line 13</span>
|
215
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
216
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>.<span class="ruby-identifier">at</span>(<span class="ruby-value">0</span>)) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Array</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">at</span>(<span class="ruby-value">0</span>)
|
217
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">slice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
218
|
-
<span class="ruby-keyword kw">end</span>
|
219
|
-
</pre>
|
220
|
-
</div>
|
221
|
-
</div>
|
222
|
-
</div>
|
223
|
-
<div class="method">
|
224
|
-
<div class="title">
|
225
|
-
<a name="M000131"></a><b>[]=</b>(*args)
|
226
|
-
</div>
|
227
|
-
<div class="description">
|
228
|
-
<p>
|
229
|
-
Modifies #[]= to accept an array of indexes for assignment.
|
230
|
-
</p>
|
231
|
-
<pre>
|
232
|
-
a = ['a','b','c','d']
|
233
|
-
|
234
|
-
a[[1,-1]] = ['m','n'] #=> ['m','n']
|
235
|
-
a #=> ['a','m','c','n']
|
236
|
-
</pre>
|
237
|
-
</div>
|
238
|
-
<div class="aka">
|
239
|
-
This method is also aliased as
|
240
|
-
<a href="Array.html#M000137">store</a>
|
241
|
-
</div>
|
242
|
-
<div class="sourcecode">
|
243
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000131_source')" id="l_M000131_source">show source</a> ]</p>
|
244
|
-
<div id="M000131_source" class="dyn-source">
|
245
|
-
<pre>
|
246
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/op_store.rb, line 12</span>
|
247
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
248
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">Array</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">at</span>(<span class="ruby-value">0</span>)
|
249
|
-
<span class="ruby-identifier">idx</span>,<span class="ruby-identifier">vals</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">at</span>(<span class="ruby-value">0</span>),<span class="ruby-identifier">args</span>.<span class="ruby-identifier">at</span>(<span class="ruby-value">1</span>)
|
250
|
-
<span class="ruby-identifier">idx</span>.<span class="ruby-identifier">each_with_index</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">a</span>,<span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">store</span>(<span class="ruby-identifier">a</span>,<span class="ruby-identifier">vals</span>.<span class="ruby-identifier">at</span>(<span class="ruby-identifier">i</span>)) }
|
251
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">values_at</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">idx</span> )
|
252
|
-
<span class="ruby-keyword kw">else</span>
|
253
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">store</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
254
|
-
<span class="ruby-keyword kw">end</span>
|
255
|
-
<span class="ruby-keyword kw">end</span>
|
256
|
-
</pre>
|
257
|
-
</div>
|
258
|
-
</div>
|
259
|
-
</div>
|
260
|
-
<div class="method">
|
261
|
-
<div class="title">
|
262
|
-
<a name="M000113"></a><b>at_rand</b>()
|
263
|
-
</div>
|
264
|
-
<div class="description">
|
265
|
-
<p>
|
266
|
-
Return a random element of the array.
|
267
|
-
</p>
|
268
|
-
<pre>
|
269
|
-
[1, 2, 3, 4].at_rand #=> 2
|
270
|
-
[1, 2, 3, 4].at_rand #=> 4
|
271
|
-
</pre>
|
272
|
-
</div>
|
273
|
-
<div class="sourcecode">
|
274
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000113_source')" id="l_M000113_source">show source</a> ]</p>
|
275
|
-
<div id="M000113_source" class="dyn-source">
|
276
|
-
<pre>
|
277
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/at_rand.rb, line 8</span>
|
278
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">at_rand</span>
|
279
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">at</span>( <span class="ruby-identifier">rand</span>( <span class="ruby-identifier">size</span> ) )
|
280
|
-
<span class="ruby-keyword kw">end</span>
|
281
|
-
</pre>
|
282
|
-
</div>
|
283
|
-
</div>
|
284
|
-
</div>
|
285
|
-
<div class="method">
|
286
|
-
<div class="title">
|
287
|
-
<a name="M000114"></a><b>at_rand!</b>()
|
288
|
-
</div>
|
289
|
-
<div class="description">
|
290
|
-
<p>
|
291
|
-
Same as <a href="Array.html#M000113">at_rand</a>, but acts in place
|
292
|
-
removing a random element from the array.
|
293
|
-
</p>
|
294
|
-
<pre>
|
295
|
-
a = [1,2,3,4]
|
296
|
-
a.at_rand! #=> 2
|
297
|
-
a #=> [1,3,4]
|
298
|
-
</pre>
|
299
|
-
</div>
|
300
|
-
<div class="sourcecode">
|
301
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000114_source')" id="l_M000114_source">show source</a> ]</p>
|
302
|
-
<div id="M000114_source" class="dyn-source">
|
303
|
-
<pre>
|
304
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/at_rand.rb, line 19</span>
|
305
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">at_rand!</span>
|
306
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">delete_at</span>( <span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">rand</span>( <span class="ruby-identifier">size</span> ) )
|
307
|
-
<span class="ruby-keyword kw">end</span>
|
308
|
-
</pre>
|
309
|
-
</div>
|
310
|
-
</div>
|
311
|
-
</div>
|
312
|
-
<div class="method">
|
313
|
-
<div class="title">
|
314
|
-
<a name="M000125"></a><b>body</b>()
|
315
|
-
</div>
|
316
|
-
<div class="description">
|
317
|
-
<p>
|
318
|
-
Returns an array of the first element upto, but not including, the last
|
319
|
-
element.
|
320
|
-
</p>
|
321
|
-
<pre>
|
322
|
-
[1,2,3].body #=> [1,2]
|
323
|
-
</pre>
|
324
|
-
</div>
|
325
|
-
<div class="sourcecode">
|
326
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000125_source')" id="l_M000125_source">show source</a> ]</p>
|
327
|
-
<div id="M000125_source" class="dyn-source">
|
328
|
-
<pre>
|
329
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/head.rb, line 38</span>
|
330
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">body</span>
|
331
|
-
<span class="ruby-identifier">slice</span>(<span class="ruby-value">0</span>,<span class="ruby-identifier">length</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>)
|
332
|
-
<span class="ruby-keyword kw">end</span>
|
333
|
-
</pre>
|
334
|
-
</div>
|
335
|
-
</div>
|
336
|
-
</div>
|
337
|
-
<div class="method">
|
338
|
-
<div class="title">
|
339
|
-
<a name="M000109"></a><b>delete_unless</b>(&block)
|
340
|
-
</div>
|
341
|
-
<div class="sourcecode">
|
342
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000109_source')" id="l_M000109_source">show source</a> ]</p>
|
343
|
-
<div id="M000109_source" class="dyn-source">
|
344
|
-
<pre>
|
345
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/delete_unless.rb, line 7</span>
|
346
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_unless</span> (<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
347
|
-
<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">element</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">block</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">element</span>) }
|
348
|
-
<span class="ruby-keyword kw">end</span>
|
349
|
-
</pre>
|
350
|
-
</div>
|
351
|
-
</div>
|
352
|
-
</div>
|
353
|
-
<div class="method">
|
354
|
-
<div class="title">
|
355
|
-
<a name="M000110"></a><b>delete_values</b>(*values)
|
356
|
-
</div>
|
357
|
-
<div class="description">
|
358
|
-
<p>
|
359
|
-
Delete multiple values from array.
|
360
|
-
</p>
|
361
|
-
<pre>
|
362
|
-
a = [1,2,3,4]
|
363
|
-
a.delete_values(1,2) #=> [1,2]
|
364
|
-
a #=> [3,4]
|
365
|
-
</pre>
|
366
|
-
</div>
|
367
|
-
<div class="sourcecode">
|
368
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000110_source')" id="l_M000110_source">show source</a> ]</p>
|
369
|
-
<div id="M000110_source" class="dyn-source">
|
370
|
-
<pre>
|
371
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/delete_values.rb, line 9</span>
|
372
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_values</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">values</span>)
|
373
|
-
<span class="ruby-identifier">d</span> = []
|
374
|
-
<span class="ruby-identifier">values</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">d</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">v</span>) }
|
375
|
-
<span class="ruby-identifier">d</span>
|
376
|
-
<span class="ruby-keyword kw">end</span>
|
377
|
-
</pre>
|
378
|
-
</div>
|
379
|
-
</div>
|
380
|
-
</div>
|
381
|
-
<div class="method">
|
382
|
-
<div class="title">
|
383
|
-
<a name="M000121"></a><b>delete_values_at</b>(*selectors)
|
384
|
-
</div>
|
385
|
-
<div class="description">
|
386
|
-
<p>
|
387
|
-
Delete multiple values from array given indexes or index range.
|
388
|
-
</p>
|
389
|
-
<pre>
|
390
|
-
a = [1,2,3,4]
|
391
|
-
a.delete_values_at(1,2) #=> [2,3]
|
392
|
-
a #=> [1,4]
|
393
|
-
a = [1,2,3,4]
|
394
|
-
a.delete_values_at(0..2) #=> [1,2,3]
|
395
|
-
a #=> [4]
|
396
|
-
</pre>
|
397
|
-
</div>
|
398
|
-
<div class="sourcecode">
|
399
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000121_source')" id="l_M000121_source">show source</a> ]</p>
|
400
|
-
<div id="M000121_source" class="dyn-source">
|
401
|
-
<pre>
|
402
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/delete_values_at.rb, line 14</span>
|
403
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">selectors</span>)
|
404
|
-
<span class="ruby-identifier">idx</span> = []
|
405
|
-
<span class="ruby-identifier">selectors</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
|
406
|
-
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">i</span>
|
407
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">Range</span>
|
408
|
-
<span class="ruby-identifier">idx</span>.<span class="ruby-identifier">concat</span>( <span class="ruby-identifier">i</span>.<span class="ruby-identifier">to_a</span> )
|
409
|
-
<span class="ruby-keyword kw">else</span>
|
410
|
-
<span class="ruby-identifier">idx</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">i</span>.<span class="ruby-identifier">to_i</span>
|
411
|
-
<span class="ruby-keyword kw">end</span>
|
412
|
-
}
|
413
|
-
<span class="ruby-identifier">idx</span>.<span class="ruby-identifier">uniq!</span>
|
414
|
-
<span class="ruby-identifier">dvals</span> = <span class="ruby-identifier">values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">idx</span>)
|
415
|
-
<span class="ruby-identifier">idx</span> = (<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">size</span>).<span class="ruby-identifier">to_a</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">idx</span>
|
416
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">replace</span>( <span class="ruby-identifier">values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">idx</span>) )
|
417
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">dvals</span>
|
418
|
-
<span class="ruby-keyword kw">end</span>
|
419
|
-
</pre>
|
420
|
-
</div>
|
421
|
-
</div>
|
422
|
-
</div>
|
423
|
-
<div class="method">
|
424
|
-
<div class="title">
|
425
|
-
<a name="M000144"></a><b>each_by</b>(n=nil, &yld)
|
426
|
-
</div>
|
427
|
-
<div class="description">
|
428
|
-
<p>
|
429
|
-
Alias for <a href="Array.html#M000143">each_slice</a>
|
430
|
-
</p>
|
431
|
-
</div>
|
432
|
-
</div>
|
433
|
-
<div class="method">
|
434
|
-
<div class="title">
|
435
|
-
<a name="M000142"></a><b>each_combination</b>(k=2) {|s.values_at(*idx)| ...}
|
436
|
-
</div>
|
437
|
-
<div class="description">
|
438
|
-
<p>
|
439
|
-
Yields the block to each unique combination of <em>n</em> elements.
|
440
|
-
</p>
|
441
|
-
<pre>
|
442
|
-
a = %w|a b c d|
|
443
|
-
a.each_combination(3) do |c|
|
444
|
-
p c
|
445
|
-
end
|
446
|
-
</pre>
|
447
|
-
<p>
|
448
|
-
produces
|
449
|
-
</p>
|
450
|
-
<pre>
|
451
|
-
["a", "b", "c"]
|
452
|
-
["a", "b", "d"]
|
453
|
-
["a", "c", "d"]
|
454
|
-
["b", "c", "d"]
|
455
|
-
</pre>
|
456
|
-
</div>
|
457
|
-
<div class="sourcecode">
|
458
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000142_source')" id="l_M000142_source">show source</a> ]</p>
|
459
|
-
<div id="M000142_source" class="dyn-source">
|
460
|
-
<pre>
|
461
|
-
<span class="ruby-comment cmt"># File lib/facets/core/enumerable/each_combination.rb, line 18</span>
|
462
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_combination</span>(<span class="ruby-identifier">k</span>=<span class="ruby-value">2</span>)
|
463
|
-
<span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_a</span>
|
464
|
-
<span class="ruby-identifier">n</span> = <span class="ruby-identifier">s</span>.<span class="ruby-identifier">size</span>
|
465
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">unless</span> (<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-identifier">n</span>) <span class="ruby-operator">===</span> <span class="ruby-identifier">k</span>
|
466
|
-
<span class="ruby-identifier">idx</span> = (<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">k</span>).<span class="ruby-identifier">to_a</span>
|
467
|
-
<span class="ruby-identifier">loop</span> <span class="ruby-keyword kw">do</span>
|
468
|
-
<span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">idx</span>)
|
469
|
-
<span class="ruby-identifier">i</span> = <span class="ruby-identifier">k</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>
|
470
|
-
<span class="ruby-identifier">i</span> <span class="ruby-operator">-=</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">idx</span>[<span class="ruby-identifier">i</span>] <span class="ruby-operator">==</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">k</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">i</span>
|
471
|
-
<span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">i</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
472
|
-
<span class="ruby-identifier">idx</span>[<span class="ruby-identifier">i</span>] <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
473
|
-
(<span class="ruby-identifier">i</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span> <span class="ruby-operator">...</span> <span class="ruby-identifier">k</span>).<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">j</span><span class="ruby-operator">|</span> <span class="ruby-identifier">idx</span>[<span class="ruby-identifier">j</span>] = <span class="ruby-identifier">idx</span>[<span class="ruby-identifier">i</span>] <span class="ruby-operator">+</span> <span class="ruby-identifier">j</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">i</span>}
|
474
|
-
<span class="ruby-keyword kw">end</span>
|
475
|
-
<span class="ruby-keyword kw">end</span>
|
476
|
-
</pre>
|
477
|
-
</div>
|
478
|
-
</div>
|
479
|
-
</div>
|
480
|
-
<div class="method">
|
481
|
-
<div class="title">
|
482
|
-
<a name="M000143"></a><b>each_slice</b>(n=nil, &yld)
|
483
|
-
</div>
|
484
|
-
<div class="description">
|
485
|
-
<p>
|
486
|
-
Iterates over <tt>n</tt> elements at a time. If <tt>n</tt> is not given
|
487
|
-
then the arity of the block determines the slicing quantity.
|
488
|
-
</p>
|
489
|
-
<pre>
|
490
|
-
[1, 2, 3, 4].each_slice(2){ |a,b| ... }
|
491
|
-
</pre>
|
492
|
-
<p>
|
493
|
-
This is a specialized version <a
|
494
|
-
href="Enumerable.html#M000494">Enumerable#each_slice</a> but optimized
|
495
|
-
specifically for <a href="Array.html">Array</a>.
|
496
|
-
</p>
|
497
|
-
</div>
|
498
|
-
<div class="aka">
|
499
|
-
This method is also aliased as
|
500
|
-
<a href="Array.html#M000144">each_by</a>
|
501
|
-
</div>
|
502
|
-
<div class="sourcecode">
|
503
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000143_source')" id="l_M000143_source">show source</a> ]</p>
|
504
|
-
<div id="M000143_source" class="dyn-source">
|
505
|
-
<pre>
|
506
|
-
<span class="ruby-comment cmt"># File lib/facets/core/enumerable/each_slice.rb, line 50</span>
|
507
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_slice</span>(<span class="ruby-identifier">n</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span>)
|
508
|
-
<span class="ruby-identifier">n</span> = <span class="ruby-identifier">yld</span>.<span class="ruby-identifier">arity</span>.<span class="ruby-identifier">abs</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">n</span>
|
509
|
-
<span class="ruby-identifier">i</span>=<span class="ruby-value">0</span>
|
510
|
-
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">i</span> <span class="ruby-operator"><</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span>
|
511
|
-
<span class="ruby-identifier">yld</span>.<span class="ruby-identifier">call</span>(<span class="ruby-operator">*</span><span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">slice</span>(<span class="ruby-identifier">i</span>,<span class="ruby-identifier">n</span>))
|
512
|
-
<span class="ruby-identifier">i</span><span class="ruby-operator">+=</span><span class="ruby-identifier">n</span>
|
513
|
-
<span class="ruby-keyword kw">end</span>
|
514
|
-
<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="M000140"></a><b>each_unique_pair</b>(&yld)
|
522
|
-
</div>
|
523
|
-
<div class="description">
|
524
|
-
<p>
|
525
|
-
Processes each unique pair (of indices, not value) in the array by yielding
|
526
|
-
them to the supplied block.
|
527
|
-
</p>
|
528
|
-
<pre>
|
529
|
-
a = [1,2,3,4]
|
530
|
-
a.each_unique_pair{ |a,b| puts a+','+b }
|
531
|
-
</pre>
|
532
|
-
<p>
|
533
|
-
produces
|
534
|
-
</p>
|
535
|
-
<pre>
|
536
|
-
1,2
|
537
|
-
1,3
|
538
|
-
1,4
|
539
|
-
2,3
|
540
|
-
2,4
|
541
|
-
3,4
|
542
|
-
</pre>
|
543
|
-
<p>
|
544
|
-
This does not guarantee the uniqueness of values. For example:
|
545
|
-
</p>
|
546
|
-
<pre>
|
547
|
-
a = [1,2,1]
|
548
|
-
a.each_unique_pair{ |a,b| puts a+','+b }
|
549
|
-
</pre>
|
550
|
-
<p>
|
551
|
-
prduces
|
552
|
-
</p>
|
553
|
-
<pre>
|
554
|
-
1,2
|
555
|
-
1,1
|
556
|
-
2,1
|
557
|
-
</pre>
|
558
|
-
<p>
|
559
|
-
This is equivalent to <tt><a
|
560
|
-
href="Array.html#M000142">each_combination</a>(2){ … }</tt>.
|
561
|
-
</p>
|
562
|
-
</div>
|
563
|
-
<div class="sourcecode">
|
564
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000140_source')" id="l_M000140_source">show source</a> ]</p>
|
565
|
-
<div id="M000140_source" class="dyn-source">
|
566
|
-
<pre>
|
567
|
-
<span class="ruby-comment cmt"># File lib/facets/core/enumerable/each_unique_pair.rb, line 33</span>
|
568
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_unique_pair</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">yld</span>)
|
569
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">each_combination</span>(<span class="ruby-value">2</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">yld</span>)
|
570
|
-
<span class="ruby-comment cmt">#s = self.to_a</span>
|
571
|
-
<span class="ruby-comment cmt">#self.each_with_index{ |a,i|</span>
|
572
|
-
<span class="ruby-comment cmt"># self[(i+1)..-1].each{ |b| yield a,b }</span>
|
573
|
-
<span class="ruby-comment cmt">#}</span>
|
574
|
-
<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="M000141"></a><b>every!</b>()
|
582
|
-
</div>
|
583
|
-
<div class="description">
|
584
|
-
<p>
|
585
|
-
In place version of every.
|
586
|
-
</p>
|
587
|
-
</div>
|
588
|
-
<div class="sourcecode">
|
589
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000141_source')" id="l_M000141_source">show source</a> ]</p>
|
590
|
-
<div id="M000141_source" class="dyn-source">
|
591
|
-
<pre>
|
592
|
-
<span class="ruby-comment cmt"># File lib/facets/core/enumerable/every.rb, line 25</span>
|
593
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">every!</span>
|
594
|
-
<span class="ruby-constant">Functor</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">op</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">args</span><span class="ruby-operator">|</span>
|
595
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">replace</span>( <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">collect</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">op</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) } )
|
596
|
-
<span class="ruby-keyword kw">end</span>
|
597
|
-
<span class="ruby-keyword kw">end</span>
|
598
|
-
</pre>
|
599
|
-
</div>
|
600
|
-
</div>
|
601
|
-
</div>
|
602
|
-
<div class="method">
|
603
|
-
<div class="title">
|
604
|
-
<a name="M000115"></a><b>first=</b>(x)
|
605
|
-
</div>
|
606
|
-
<div class="description">
|
607
|
-
<p>
|
608
|
-
Change the first element.
|
609
|
-
</p>
|
610
|
-
<pre>
|
611
|
-
a = ["a","y","z"]
|
612
|
-
a.first = "x"
|
613
|
-
p a #=> ["x","y","z"]
|
614
|
-
</pre>
|
615
|
-
</div>
|
616
|
-
<div class="sourcecode">
|
617
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000115_source')" id="l_M000115_source">show source</a> ]</p>
|
618
|
-
<div id="M000115_source" class="dyn-source">
|
619
|
-
<pre>
|
620
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/first.rb, line 11</span>
|
621
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first=</span>(<span class="ruby-identifier">x</span>)
|
622
|
-
<span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span>] = <span class="ruby-identifier">x</span>
|
623
|
-
<span class="ruby-keyword kw">end</span>
|
624
|
-
</pre>
|
625
|
-
</div>
|
626
|
-
</div>
|
627
|
-
</div>
|
628
|
-
<div class="method">
|
629
|
-
<div class="title">
|
630
|
-
<a name="M000124"></a><b>foot</b>()
|
631
|
-
</div>
|
632
|
-
<div class="description">
|
633
|
-
<p>
|
634
|
-
Like last, returning the last element in an array.
|
635
|
-
</p>
|
636
|
-
<pre>
|
637
|
-
[1,2,3].foot #=> [3]
|
638
|
-
</pre>
|
639
|
-
</div>
|
640
|
-
<div class="sourcecode">
|
641
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000124_source')" id="l_M000124_source">show source</a> ]</p>
|
642
|
-
<div id="M000124_source" class="dyn-source">
|
643
|
-
<pre>
|
644
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/head.rb, line 26</span>
|
645
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">foot</span>
|
646
|
-
<span class="ruby-identifier">slice</span>(<span class="ruby-value">-1</span>,<span class="ruby-value">1</span>)
|
647
|
-
<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="M000122"></a><b>head</b>()
|
655
|
-
</div>
|
656
|
-
<div class="description">
|
657
|
-
<p>
|
658
|
-
Like first but returns the first element in a new array.
|
659
|
-
</p>
|
660
|
-
<pre>
|
661
|
-
[1,2,3].head #=> [1]
|
662
|
-
</pre>
|
663
|
-
</div>
|
664
|
-
<div class="sourcecode">
|
665
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000122_source')" id="l_M000122_source">show source</a> ]</p>
|
666
|
-
<div id="M000122_source" class="dyn-source">
|
667
|
-
<pre>
|
668
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/head.rb, line 9</span>
|
669
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">head</span>
|
670
|
-
<span class="ruby-identifier">slice</span>(<span class="ruby-value">0</span>,<span class="ruby-value">1</span>)
|
671
|
-
<span class="ruby-keyword kw">end</span>
|
672
|
-
</pre>
|
673
|
-
</div>
|
674
|
-
</div>
|
675
|
-
</div>
|
676
|
-
<div class="method">
|
677
|
-
<div class="title">
|
678
|
-
<a name="M000139"></a><b>join_sentence</b>()
|
679
|
-
</div>
|
680
|
-
<div class="sourcecode">
|
681
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000139_source')" id="l_M000139_source">show source</a> ]</p>
|
682
|
-
<div id="M000139_source" class="dyn-source">
|
683
|
-
<pre>
|
684
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/join_sentence.rb, line 4</span>
|
685
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">join_sentence</span>
|
686
|
-
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">length</span>
|
687
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-value">0</span><span class="ruby-operator">:</span> <span class="ruby-value str">""</span>
|
688
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-value">1</span><span class="ruby-operator">:</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span>]
|
689
|
-
<span class="ruby-keyword kw">else</span> [<span class="ruby-keyword kw">self</span>[<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">-2</span>].<span class="ruby-identifier">join</span>(<span class="ruby-value str">", "</span>), <span class="ruby-keyword kw">self</span>[<span class="ruby-value">-1</span>]].<span class="ruby-identifier">join</span>(<span class="ruby-value str">" and "</span>)
|
690
|
-
<span class="ruby-keyword kw">end</span>
|
691
|
-
<span class="ruby-keyword kw">end</span>
|
692
|
-
</pre>
|
693
|
-
</div>
|
694
|
-
</div>
|
695
|
-
</div>
|
696
|
-
<div class="method">
|
697
|
-
<div class="title">
|
698
|
-
<a name="M000116"></a><b>last=</b>(x)
|
699
|
-
</div>
|
700
|
-
<div class="description">
|
701
|
-
<p>
|
702
|
-
Change the last element.
|
703
|
-
</p>
|
704
|
-
<pre>
|
705
|
-
a = [1,2,5]
|
706
|
-
a.last = 3
|
707
|
-
p a #=> [1,2,3]
|
708
|
-
</pre>
|
709
|
-
</div>
|
710
|
-
<div class="sourcecode">
|
711
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000116_source')" id="l_M000116_source">show source</a> ]</p>
|
712
|
-
<div id="M000116_source" class="dyn-source">
|
713
|
-
<pre>
|
714
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/first.rb, line 30</span>
|
715
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last=</span>(<span class="ruby-identifier">x</span>)
|
716
|
-
<span class="ruby-keyword kw">self</span>[<span class="ruby-value">-1</span>] = <span class="ruby-identifier">x</span>
|
717
|
-
<span class="ruby-keyword kw">end</span>
|
718
|
-
</pre>
|
719
|
-
</div>
|
720
|
-
</div>
|
721
|
-
</div>
|
722
|
-
<div class="method">
|
723
|
-
<div class="title">
|
724
|
-
<a name="M000111"></a><b>last_index</b>()
|
725
|
-
</div>
|
726
|
-
<div class="description">
|
727
|
-
<p>
|
728
|
-
Returns the last index of the array. Returns nil is array has no elements.
|
729
|
-
</p>
|
730
|
-
<pre>
|
731
|
-
[1,2,3,4,5].last_index #=> 4
|
732
|
-
</pre>
|
733
|
-
</div>
|
734
|
-
<div class="sourcecode">
|
735
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">show source</a> ]</p>
|
736
|
-
<div id="M000111_source" class="dyn-source">
|
737
|
-
<pre>
|
738
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/last_index.rb, line 9</span>
|
739
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last_index</span>
|
740
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
741
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>
|
742
|
-
<span class="ruby-keyword kw">end</span>
|
743
|
-
</pre>
|
744
|
-
</div>
|
745
|
-
</div>
|
746
|
-
</div>
|
747
|
-
<div class="method">
|
748
|
-
<div class="title">
|
749
|
-
<a name="M000104"></a><b>merge!</b>( other )
|
750
|
-
</div>
|
751
|
-
<div class="sourcecode">
|
752
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000104_source')" id="l_M000104_source">show source</a> ]</p>
|
753
|
-
<div id="M000104_source" class="dyn-source">
|
754
|
-
<pre>
|
755
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/merge.rb, line 6</span>
|
756
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">merge!</span>( <span class="ruby-identifier">other</span> )
|
757
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">replace</span>( <span class="ruby-keyword kw">self</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">other</span> )
|
758
|
-
<span class="ruby-keyword kw">end</span>
|
759
|
-
</pre>
|
760
|
-
</div>
|
761
|
-
</div>
|
762
|
-
</div>
|
763
|
-
<div class="method">
|
764
|
-
<div class="title">
|
765
|
-
<a name="M000120"></a><b>mid</b>(offset=0)
|
766
|
-
</div>
|
767
|
-
<div class="description">
|
768
|
-
<p>
|
769
|
-
Returns the middle element of an array, or the element offset from middle
|
770
|
-
if the parameter is given. Even-sized arrays, not having an exact middle,
|
771
|
-
return the middle-right element.
|
772
|
-
</p>
|
773
|
-
<pre>
|
774
|
-
[1,2,3,4,5].mid #=> 3
|
775
|
-
[1,2,3,4,5,6].mid #=> 4
|
776
|
-
[1,2,3,4,5,6].mid(-1) #=> 3
|
777
|
-
[1,2,3,4,5,6].mid(-2) #=> 2
|
778
|
-
[1,2,3,4,5,6].mid(1) #=> 5
|
779
|
-
</pre>
|
780
|
-
<p>
|
781
|
-
In other words, If there are an even number of elements the higher-indexed
|
782
|
-
of the two center elements is indexed as orgin (0).
|
783
|
-
</p>
|
784
|
-
</div>
|
785
|
-
<div class="sourcecode">
|
786
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000120_source')" id="l_M000120_source">show source</a> ]</p>
|
787
|
-
<div id="M000120_source" class="dyn-source">
|
788
|
-
<pre>
|
789
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/mid.rb, line 17</span>
|
790
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mid</span>(<span class="ruby-identifier">offset</span>=<span class="ruby-value">0</span>)
|
791
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">at</span>( (<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">/</span> <span class="ruby-value">2</span>) <span class="ruby-operator">+</span> <span class="ruby-identifier">offset</span> )
|
792
|
-
<span class="ruby-keyword kw">end</span>
|
793
|
-
</pre>
|
794
|
-
</div>
|
795
|
-
</div>
|
796
|
-
</div>
|
797
|
-
<div class="method">
|
798
|
-
<div class="title">
|
799
|
-
<a name="M000133"></a><b>middle</b>()
|
800
|
-
</div>
|
801
|
-
<div class="description">
|
802
|
-
<p>
|
803
|
-
Returns the middle element(s) of an array. Even-sized arrays, not having an
|
804
|
-
exact middle, returns a two-element array of the two middle elements.
|
805
|
-
</p>
|
806
|
-
<pre>
|
807
|
-
[1,2,3,4,5].mid #=> 3
|
808
|
-
[1,2,3,4,5,6].mid #=> [3,4]
|
809
|
-
</pre>
|
810
|
-
<p>
|
811
|
-
In contrast to <a href="Array.html#M000120">mid</a> which utilizes an
|
812
|
-
offset.
|
813
|
-
</p>
|
814
|
-
</div>
|
815
|
-
<div class="sourcecode">
|
816
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000133_source')" id="l_M000133_source">show source</a> ]</p>
|
817
|
-
<div id="M000133_source" class="dyn-source">
|
818
|
-
<pre>
|
819
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/middle.rb, line 12</span>
|
820
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">middle</span>
|
821
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">size</span> <span class="ruby-operator">%</span> <span class="ruby-value">2</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
822
|
-
[ <span class="ruby-identifier">at</span>((<span class="ruby-identifier">size</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>)<span class="ruby-operator">-</span><span class="ruby-value">1</span>), <span class="ruby-identifier">at</span>(<span class="ruby-identifier">size</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>) ]
|
823
|
-
<span class="ruby-keyword kw">else</span>
|
824
|
-
<span class="ruby-identifier">at</span>(<span class="ruby-identifier">size</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>)
|
825
|
-
<span class="ruby-keyword kw">end</span>
|
826
|
-
<span class="ruby-keyword kw">end</span>
|
827
|
-
</pre>
|
828
|
-
</div>
|
829
|
-
</div>
|
830
|
-
</div>
|
831
|
-
<div class="method">
|
832
|
-
<div class="title">
|
833
|
-
<a name="M000134"></a><b>pick</b>(n=nil)
|
834
|
-
</div>
|
835
|
-
<div class="description">
|
836
|
-
<p>
|
837
|
-
Similar to <a href="Array.html#M000113">at_rand</a>, but will return an
|
838
|
-
array of randomly picked exclusive elements if given a number.
|
839
|
-
</p>
|
840
|
-
</div>
|
841
|
-
<div class="sourcecode">
|
842
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000134_source')" id="l_M000134_source">show source</a> ]</p>
|
843
|
-
<div id="M000134_source" class="dyn-source">
|
844
|
-
<pre>
|
845
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/pick.rb, line 6</span>
|
846
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pick</span>(<span class="ruby-identifier">n</span>=<span class="ruby-keyword kw">nil</span>)
|
847
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span>
|
848
|
-
<span class="ruby-identifier">a</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
849
|
-
<span class="ruby-identifier">a</span>.<span class="ruby-identifier">pick!</span>(<span class="ruby-identifier">n</span>)
|
850
|
-
<span class="ruby-keyword kw">else</span>
|
851
|
-
<span class="ruby-identifier">at</span>( <span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">rand</span>( <span class="ruby-identifier">size</span> ) )
|
852
|
-
<span class="ruby-keyword kw">end</span>
|
853
|
-
<span class="ruby-keyword kw">end</span>
|
854
|
-
</pre>
|
855
|
-
</div>
|
856
|
-
</div>
|
857
|
-
</div>
|
858
|
-
<div class="method">
|
859
|
-
<div class="title">
|
860
|
-
<a name="M000135"></a><b>pick!</b>(n=nil)
|
861
|
-
</div>
|
862
|
-
<div class="description">
|
863
|
-
<p>
|
864
|
-
Similar to <a href="Array.html#M000114">at_rand!</a>, but given a number
|
865
|
-
will return an array of exclusive elements.
|
866
|
-
</p>
|
867
|
-
</div>
|
868
|
-
<div class="sourcecode">
|
869
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000135_source')" id="l_M000135_source">show source</a> ]</p>
|
870
|
-
<div id="M000135_source" class="dyn-source">
|
871
|
-
<pre>
|
872
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/pick.rb, line 17</span>
|
873
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pick!</span>(<span class="ruby-identifier">n</span>=<span class="ruby-keyword kw">nil</span>)
|
874
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span>
|
875
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">></span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">size</span>
|
876
|
-
<span class="ruby-identifier">r</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
877
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">replace</span>([])
|
878
|
-
<span class="ruby-identifier">r</span>
|
879
|
-
<span class="ruby-keyword kw">else</span>
|
880
|
-
<span class="ruby-identifier">r</span> = []
|
881
|
-
<span class="ruby-identifier">n</span>.<span class="ruby-identifier">times</span> { <span class="ruby-identifier">r</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">delete_at</span>( <span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">rand</span>( <span class="ruby-identifier">size</span> ) ) }
|
882
|
-
<span class="ruby-identifier">r</span>
|
883
|
-
<span class="ruby-keyword kw">end</span>
|
884
|
-
<span class="ruby-keyword kw">else</span>
|
885
|
-
<span class="ruby-identifier">delete_at</span>( <span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">rand</span>( <span class="ruby-identifier">size</span> ) )
|
886
|
-
<span class="ruby-keyword kw">end</span>
|
887
|
-
<span class="ruby-keyword kw">end</span>
|
888
|
-
</pre>
|
889
|
-
</div>
|
890
|
-
</div>
|
891
|
-
</div>
|
892
|
-
<div class="method">
|
893
|
-
<div class="title">
|
894
|
-
<a name="M000126"></a><b>pos</b>(i)
|
895
|
-
</div>
|
896
|
-
<div class="description">
|
897
|
-
<p>
|
898
|
-
Returns the positive ordinal index given a cardinal position, 1 to n or -n
|
899
|
-
to -1.
|
900
|
-
</p>
|
901
|
-
<pre>
|
902
|
-
[1,2,3,4,5].pos(1) #=> 0
|
903
|
-
[1,2,3,4,5].pos(-1) #=> 4
|
904
|
-
</pre>
|
905
|
-
</div>
|
906
|
-
<div class="sourcecode">
|
907
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000126_source')" id="l_M000126_source">show source</a> ]</p>
|
908
|
-
<div id="M000126_source" class="dyn-source">
|
909
|
-
<pre>
|
910
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/pos.rb, line 8</span>
|
911
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pos</span>(<span class="ruby-identifier">i</span>)
|
912
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
913
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>
|
914
|
-
<span class="ruby-keyword kw">else</span>
|
915
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">i</span>
|
916
|
-
<span class="ruby-keyword kw">end</span>
|
917
|
-
<span class="ruby-keyword kw">end</span>
|
918
|
-
</pre>
|
919
|
-
</div>
|
920
|
-
</div>
|
921
|
-
</div>
|
922
|
-
<div class="method">
|
923
|
-
<div class="title">
|
924
|
-
<a name="M000106"></a><b>rand_index</b>()
|
925
|
-
</div>
|
926
|
-
<div class="sourcecode">
|
927
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000106_source')" id="l_M000106_source">show source</a> ]</p>
|
928
|
-
<div id="M000106_source" class="dyn-source">
|
929
|
-
<pre>
|
930
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/rand_index.rb, line 2</span>
|
931
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rand_index</span>
|
932
|
-
<span class="ruby-identifier">rand</span>( <span class="ruby-identifier">size</span> )
|
933
|
-
<span class="ruby-keyword kw">end</span>
|
934
|
-
</pre>
|
935
|
-
</div>
|
936
|
-
</div>
|
937
|
-
</div>
|
938
|
-
<div class="method">
|
939
|
-
<div class="title">
|
940
|
-
<a name="M000107"></a><b>rand_subset</b>( number=nil, exclusive=true )
|
941
|
-
</div>
|
942
|
-
<div class="description">
|
943
|
-
<p>
|
944
|
-
Returns a random subset of an <a href="Array.html">Array</a>. If a
|
945
|
-
<em>number</em> of elements is specified then returns that number of
|
946
|
-
elements, otherwise returns a random number of elements upto the size of
|
947
|
-
the <a href="Array.html">Array</a>.
|
948
|
-
</p>
|
949
|
-
<p>
|
950
|
-
By defualt the returned values are exclusive of each other, but if
|
951
|
-
<em>exclusive</em> is set to <tt>false</tt>, the same values can be choosen
|
952
|
-
more than once.
|
953
|
-
</p>
|
954
|
-
<p>
|
955
|
-
When <em>exclusive</em> is <tt>true</tt> (the default) and the
|
956
|
-
<em>number</em> given is greater than the size of the array, then all
|
957
|
-
values are returned.
|
958
|
-
</p>
|
959
|
-
<pre>
|
960
|
-
[1, 2, 3, 4].rand_subset(1) #=> [2]
|
961
|
-
[1, 2, 3, 4].rand_subset(4) #=> [2, 1, 3, 4]
|
962
|
-
[1, 2, 3, 4].rand_subset #=> [1, 3, 4]
|
963
|
-
[1, 2, 3, 4].rand_subset #=> [2, 3]
|
964
|
-
</pre>
|
965
|
-
</div>
|
966
|
-
<div class="sourcecode">
|
967
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">show source</a> ]</p>
|
968
|
-
<div id="M000107_source" class="dyn-source">
|
969
|
-
<pre>
|
970
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/rand_subset.rb, line 22</span>
|
971
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rand_subset</span>( <span class="ruby-identifier">number</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">exclusive</span>=<span class="ruby-keyword kw">true</span> )
|
972
|
-
<span class="ruby-identifier">number</span> = <span class="ruby-identifier">rand</span>( <span class="ruby-identifier">size</span> ) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">number</span>
|
973
|
-
<span class="ruby-identifier">number</span> = <span class="ruby-identifier">number</span>.<span class="ruby-identifier">to_int</span>
|
974
|
-
<span class="ruby-comment cmt">#return self.dup if (number >= size and exlusive)</span>
|
975
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">sort_by</span>{<span class="ruby-identifier">rand</span>}.<span class="ruby-identifier">slice</span>(<span class="ruby-value">0</span>,<span class="ruby-identifier">number</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">exclusive</span>
|
976
|
-
<span class="ruby-identifier">ri</span> =[]; <span class="ruby-identifier">number</span>.<span class="ruby-identifier">times</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">n</span><span class="ruby-operator">|</span> <span class="ruby-identifier">ri</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">rand</span>( <span class="ruby-identifier">size</span> ) }
|
977
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">ri</span>)
|
978
|
-
<span class="ruby-keyword kw">end</span>
|
979
|
-
</pre>
|
980
|
-
</div>
|
981
|
-
</div>
|
982
|
-
</div>
|
983
|
-
<div class="method">
|
984
|
-
<div class="title">
|
985
|
-
<a name="M000117"></a><b>range</b>(a=nil,z=nil)
|
986
|
-
</div>
|
987
|
-
<div class="description">
|
988
|
-
<p>
|
989
|
-
Returns the index range between two elements. If no elements are given,
|
990
|
-
returns the range from first to last.
|
991
|
-
</p>
|
992
|
-
<pre>
|
993
|
-
['a','b','c','d'].range #=> 0..3
|
994
|
-
['a','b','c','d'].range('b','d') #=> 1..2
|
995
|
-
</pre>
|
996
|
-
</div>
|
997
|
-
<div class="sourcecode">
|
998
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000117_source')" id="l_M000117_source">show source</a> ]</p>
|
999
|
-
<div id="M000117_source" class="dyn-source">
|
1000
|
-
<pre>
|
1001
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/range.rb, line 12</span>
|
1002
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range</span>(<span class="ruby-identifier">a</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-identifier">z</span>=<span class="ruby-keyword kw">nil</span>)
|
1003
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">a</span>
|
1004
|
-
<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>
|
1005
|
-
<span class="ruby-keyword kw">else</span>
|
1006
|
-
<span class="ruby-identifier">index</span>(<span class="ruby-identifier">a</span>)<span class="ruby-operator">..</span><span class="ruby-identifier">index</span>(<span class="ruby-identifier">z</span>)
|
1007
|
-
<span class="ruby-keyword kw">end</span>
|
1008
|
-
<span class="ruby-keyword kw">end</span>
|
1009
|
-
</pre>
|
1010
|
-
</div>
|
1011
|
-
</div>
|
1012
|
-
</div>
|
1013
|
-
<div class="method">
|
1014
|
-
<div class="title">
|
1015
|
-
<a name="M000127"></a><b>rotate</b>(n=1)
|
1016
|
-
</div>
|
1017
|
-
<div class="description">
|
1018
|
-
<p>
|
1019
|
-
Rotates an array’s elements from back to front n times.
|
1020
|
-
</p>
|
1021
|
-
<pre>
|
1022
|
-
[1,2,3].rotate #=> [3,1,2]
|
1023
|
-
[3,1,2].rotate #=> [2,3,1]
|
1024
|
-
[3,1,2].rotate #=> [1,2,3]
|
1025
|
-
[1,2,3].rotate(3) #=> [1,2,3]
|
1026
|
-
</pre>
|
1027
|
-
<p>
|
1028
|
-
A negative parameter reverses the order from front to back.
|
1029
|
-
</p>
|
1030
|
-
<pre>
|
1031
|
-
[1,2,3].rotate(-1) #=> [2,3,1]
|
1032
|
-
</pre>
|
1033
|
-
</div>
|
1034
|
-
<div class="sourcecode">
|
1035
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000127_source')" id="l_M000127_source">show source</a> ]</p>
|
1036
|
-
<div id="M000127_source" class="dyn-source">
|
1037
|
-
<pre>
|
1038
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/rotate.rb, line 15</span>
|
1039
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rotate</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
|
1040
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">rotate!</span>(<span class="ruby-identifier">n</span>)
|
1041
|
-
<span class="ruby-keyword kw">end</span>
|
1042
|
-
</pre>
|
1043
|
-
</div>
|
1044
|
-
</div>
|
1045
|
-
</div>
|
1046
|
-
<div class="method">
|
1047
|
-
<div class="title">
|
1048
|
-
<a name="M000128"></a><b>rotate!</b>(n=1)
|
1049
|
-
</div>
|
1050
|
-
<div class="description">
|
1051
|
-
<p>
|
1052
|
-
Same as <a href="Array.html#M000127">rotate</a>, but acts in place.
|
1053
|
-
</p>
|
1054
|
-
<pre>
|
1055
|
-
a = [1,2,3]
|
1056
|
-
a.rotate!
|
1057
|
-
a #=> [3,1,2]
|
1058
|
-
</pre>
|
1059
|
-
</div>
|
1060
|
-
<div class="sourcecode">
|
1061
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000128_source')" id="l_M000128_source">show source</a> ]</p>
|
1062
|
-
<div id="M000128_source" class="dyn-source">
|
1063
|
-
<pre>
|
1064
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/rotate.rb, line 25</span>
|
1065
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rotate!</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
|
1066
|
-
<span class="ruby-identifier">n</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_int</span>
|
1067
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">n</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">empty?</span>)
|
1068
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
1069
|
-
<span class="ruby-identifier">n</span>.<span class="ruby-identifier">abs</span>.<span class="ruby-identifier">times</span>{ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">unshift</span>( <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">pop</span> ) }
|
1070
|
-
<span class="ruby-keyword kw">else</span>
|
1071
|
-
<span class="ruby-identifier">n</span>.<span class="ruby-identifier">abs</span>.<span class="ruby-identifier">times</span>{ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">push</span>( <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">shift</span> ) }
|
1072
|
-
<span class="ruby-keyword kw">end</span>
|
1073
|
-
<span class="ruby-keyword kw">self</span>
|
1074
|
-
<span class="ruby-keyword kw">end</span>
|
1075
|
-
</pre>
|
1076
|
-
</div>
|
1077
|
-
</div>
|
1078
|
-
</div>
|
1079
|
-
<div class="method">
|
1080
|
-
<div class="title">
|
1081
|
-
<a name="M000105"></a><b>select!</b>( {|| ...}
|
1082
|
-
</div>
|
1083
|
-
<div class="description">
|
1084
|
-
<p>
|
1085
|
-
As with select but modifies the <a href="Array.html">Array</a> in place.
|
1086
|
-
</p>
|
1087
|
-
<pre>
|
1088
|
-
a = [1,2,3,4,5,6,7,8,9,10]
|
1089
|
-
a.select!{ |e| e % 2 == 0 }
|
1090
|
-
a #=> [2,4,6,8,10]
|
1091
|
-
</pre>
|
1092
|
-
</div>
|
1093
|
-
<div class="sourcecode">
|
1094
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">show source</a> ]</p>
|
1095
|
-
<div id="M000105_source" class="dyn-source">
|
1096
|
-
<pre>
|
1097
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/select.rb, line 10</span>
|
1098
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select!</span> <span class="ruby-comment cmt"># :yield:</span>
|
1099
|
-
<span class="ruby-identifier">reject!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">not</span> <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">e</span>) }
|
1100
|
-
<span class="ruby-keyword kw">end</span>
|
1101
|
-
</pre>
|
1102
|
-
</div>
|
1103
|
-
</div>
|
1104
|
-
</div>
|
1105
|
-
<div class="method">
|
1106
|
-
<div class="title">
|
1107
|
-
<a name="M000129"></a><b>shuffle</b>()
|
1108
|
-
</div>
|
1109
|
-
<div class="description">
|
1110
|
-
<p>
|
1111
|
-
Randomize the order of an array.
|
1112
|
-
</p>
|
1113
|
-
<pre>
|
1114
|
-
[1,2,3,4].shuffle #=> [2,4,1,3]
|
1115
|
-
</pre>
|
1116
|
-
</div>
|
1117
|
-
<div class="sourcecode">
|
1118
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000129_source')" id="l_M000129_source">show source</a> ]</p>
|
1119
|
-
<div id="M000129_source" class="dyn-source">
|
1120
|
-
<pre>
|
1121
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/shuffle.rb, line 11</span>
|
1122
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shuffle</span>
|
1123
|
-
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">shuffle!</span>
|
1124
|
-
<span class="ruby-comment cmt">#sort_by{Kernel.rand}</span>
|
1125
|
-
<span class="ruby-keyword kw">end</span>
|
1126
|
-
</pre>
|
1127
|
-
</div>
|
1128
|
-
</div>
|
1129
|
-
</div>
|
1130
|
-
<div class="method">
|
1131
|
-
<div class="title">
|
1132
|
-
<a name="M000130"></a><b>shuffle!</b>()
|
1133
|
-
</div>
|
1134
|
-
<div class="description">
|
1135
|
-
<p>
|
1136
|
-
As with <a href="Array.html#M000129">shuffle</a> but modifies the array in
|
1137
|
-
place. The algorithm used here is known as a Fisher-Yates shuffle.
|
1138
|
-
</p>
|
1139
|
-
<pre>
|
1140
|
-
a = [1,2,3,4]
|
1141
|
-
a.shuffle!
|
1142
|
-
a #=> [2,4,1,3]
|
1143
|
-
</pre>
|
1144
|
-
</div>
|
1145
|
-
<div class="sourcecode">
|
1146
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000130_source')" id="l_M000130_source">show source</a> ]</p>
|
1147
|
-
<div id="M000130_source" class="dyn-source">
|
1148
|
-
<pre>
|
1149
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/shuffle.rb, line 23</span>
|
1150
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shuffle!</span>
|
1151
|
-
<span class="ruby-identifier">s</span> = <span class="ruby-identifier">size</span>
|
1152
|
-
<span class="ruby-identifier">each_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">j</span><span class="ruby-operator">|</span>
|
1153
|
-
<span class="ruby-identifier">i</span> = <span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">rand</span>(<span class="ruby-identifier">s</span><span class="ruby-operator">-</span><span class="ruby-identifier">j</span>)
|
1154
|
-
<span class="ruby-comment cmt">#self[j], self[j+i] = self[j+i], self[j]</span>
|
1155
|
-
<span class="ruby-identifier">tmp</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">j</span>]
|
1156
|
-
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">j</span>] = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">j</span><span class="ruby-operator">+</span><span class="ruby-identifier">i</span>]
|
1157
|
-
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">j</span><span class="ruby-operator">+</span><span class="ruby-identifier">i</span>] = <span class="ruby-identifier">tmp</span>
|
1158
|
-
<span class="ruby-keyword kw">end</span>
|
1159
|
-
<span class="ruby-keyword kw">self</span>
|
1160
|
-
<span class="ruby-keyword kw">end</span>
|
1161
|
-
</pre>
|
1162
|
-
</div>
|
1163
|
-
</div>
|
1164
|
-
</div>
|
1165
|
-
<div class="method">
|
1166
|
-
<div class="title">
|
1167
|
-
<a name="M000137"></a><b>store</b>(*args)
|
1168
|
-
</div>
|
1169
|
-
<div class="description">
|
1170
|
-
<p>
|
1171
|
-
Alias for #[]=
|
1172
|
-
</p>
|
1173
|
-
</div>
|
1174
|
-
</div>
|
1175
|
-
<div class="method">
|
1176
|
-
<div class="title">
|
1177
|
-
<a name="M000123"></a><b>tail</b>()
|
1178
|
-
</div>
|
1179
|
-
<div class="description">
|
1180
|
-
<p>
|
1181
|
-
Returns an array from second element to last element.
|
1182
|
-
</p>
|
1183
|
-
<pre>
|
1184
|
-
[1,2,3].tail #=> [2,3]
|
1185
|
-
</pre>
|
1186
|
-
</div>
|
1187
|
-
<div class="sourcecode">
|
1188
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000123_source')" id="l_M000123_source">show source</a> ]</p>
|
1189
|
-
<div id="M000123_source" class="dyn-source">
|
1190
|
-
<pre>
|
1191
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/head.rb, line 17</span>
|
1192
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tail</span>
|
1193
|
-
<span class="ruby-identifier">slice</span>(<span class="ruby-value">1</span>,<span class="ruby-identifier">length</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>)
|
1194
|
-
<span class="ruby-keyword kw">end</span>
|
1195
|
-
</pre>
|
1196
|
-
</div>
|
1197
|
-
</div>
|
1198
|
-
</div>
|
1199
|
-
<div class="method">
|
1200
|
-
<div class="title">
|
1201
|
-
<a name="M000112"></a><b>thru</b>( from, to )
|
1202
|
-
</div>
|
1203
|
-
<div class="description">
|
1204
|
-
<p>
|
1205
|
-
Fetch values from a start index thru an end index.
|
1206
|
-
</p>
|
1207
|
-
<pre>
|
1208
|
-
[1,2,3,4,5].thru(0,2) #=> [1,2,3]
|
1209
|
-
[1,2,3,4,5].thru(2,4) #=> [3,4,5]
|
1210
|
-
</pre>
|
1211
|
-
</div>
|
1212
|
-
<div class="sourcecode">
|
1213
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000112_source')" id="l_M000112_source">show source</a> ]</p>
|
1214
|
-
<div id="M000112_source" class="dyn-source">
|
1215
|
-
<pre>
|
1216
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/thru.rb, line 7</span>
|
1217
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">thru</span>( <span class="ruby-identifier">from</span>, <span class="ruby-identifier">to</span> )
|
1218
|
-
<span class="ruby-identifier">a</span> = []
|
1219
|
-
<span class="ruby-identifier">i</span> = <span class="ruby-identifier">from</span>
|
1220
|
-
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">i</span> <span class="ruby-operator"><=</span> <span class="ruby-identifier">to</span>
|
1221
|
-
<span class="ruby-identifier">a</span> <span class="ruby-operator"><<</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">at</span>(<span class="ruby-identifier">i</span>)
|
1222
|
-
<span class="ruby-identifier">i</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
1223
|
-
<span class="ruby-keyword kw">end</span>
|
1224
|
-
<span class="ruby-identifier">a</span>
|
1225
|
-
<span class="ruby-keyword kw">end</span>
|
1226
|
-
</pre>
|
1227
|
-
</div>
|
1228
|
-
</div>
|
1229
|
-
</div>
|
1230
|
-
<div class="method">
|
1231
|
-
<div class="title">
|
1232
|
-
<a name="M000118"></a><b>to_b</b>()
|
1233
|
-
</div>
|
1234
|
-
<div class="description">
|
1235
|
-
<p>
|
1236
|
-
Boolean conversion for not empty?
|
1237
|
-
</p>
|
1238
|
-
</div>
|
1239
|
-
<div class="sourcecode">
|
1240
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000118_source')" id="l_M000118_source">show source</a> ]</p>
|
1241
|
-
<div id="M000118_source" class="dyn-source">
|
1242
|
-
<pre>
|
1243
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/to_b.rb, line 5</span>
|
1244
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_b</span>
|
1245
|
-
<span class="ruby-operator">!</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">empty?</span>
|
1246
|
-
<span class="ruby-keyword kw">end</span>
|
1247
|
-
</pre>
|
1248
|
-
</div>
|
1249
|
-
</div>
|
1250
|
-
</div>
|
1251
|
-
<div class="method">
|
1252
|
-
<div class="title">
|
1253
|
-
<a name="M000119"></a><b>to_h</b>(arrayed=nil)
|
1254
|
-
</div>
|
1255
|
-
<div class="description">
|
1256
|
-
<p>
|
1257
|
-
Converts a two-element associative array into a hash.
|
1258
|
-
</p>
|
1259
|
-
<pre>
|
1260
|
-
a = [ [:a,1], [:b,2] ]
|
1261
|
-
a.to_h #=> { :a=>1, :b=>2 }
|
1262
|
-
</pre>
|
1263
|
-
<p>
|
1264
|
-
If <tt>arrayed</tt> is set it will maintain trailing arrays.
|
1265
|
-
</p>
|
1266
|
-
<pre>
|
1267
|
-
a = [ [:a,1,2], [:b,3] ]
|
1268
|
-
a.to_h(true) #=> { :a=>[1,2], :b=>[3] }
|
1269
|
-
</pre>
|
1270
|
-
<p>
|
1271
|
-
NOTE: the use of a values parameter has been deprecated because that
|
1272
|
-
functionality is as simple as:
|
1273
|
-
</p>
|
1274
|
-
<pre>
|
1275
|
-
array1.zip(array2).to_h
|
1276
|
-
</pre>
|
1277
|
-
</div>
|
1278
|
-
<div class="sourcecode">
|
1279
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000119_source')" id="l_M000119_source">show source</a> ]</p>
|
1280
|
-
<div id="M000119_source" class="dyn-source">
|
1281
|
-
<pre>
|
1282
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/to_h.rb, line 19</span>
|
1283
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>(<span class="ruby-identifier">arrayed</span>=<span class="ruby-keyword kw">nil</span>)
|
1284
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">arrayed</span>
|
1285
|
-
<span class="ruby-constant">Hash</span>[<span class="ruby-operator">*</span><span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">flatten</span>]
|
1286
|
-
<span class="ruby-keyword kw">else</span>
|
1287
|
-
<span class="ruby-identifier">h</span> = {}
|
1288
|
-
<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>[<span class="ruby-identifier">e</span>.<span class="ruby-identifier">first</span>] = <span class="ruby-identifier">e</span>.<span class="ruby-identifier">slice</span>(<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>) }
|
1289
|
-
<span class="ruby-identifier">h</span>
|
1290
|
-
<span class="ruby-keyword kw">end</span>
|
1291
|
-
<span class="ruby-keyword kw">end</span>
|
1292
|
-
</pre>
|
1293
|
-
</div>
|
1294
|
-
</div>
|
1295
|
-
</div>
|
1296
|
-
<div class="method">
|
1297
|
-
<div class="title">
|
1298
|
-
<a name="M000136"></a><b>to_hash</b>()
|
1299
|
-
</div>
|
1300
|
-
<div class="description">
|
1301
|
-
<p>
|
1302
|
-
Converts an array into a hash.
|
1303
|
-
</p>
|
1304
|
-
<p>
|
1305
|
-
This methd is just like <a
|
1306
|
-
href="Enumerable.html#M000479">Enumerable#to_h</a>. But has been moved in
|
1307
|
-
order to accomodate associtiave arrays. We use <a
|
1308
|
-
href="Array.html#M000136">to_hash</a> becasue an <a
|
1309
|
-
href="Array.html">Array</a> is, in essence, a hash, just with a restricted
|
1310
|
-
set of keys and maintained order.
|
1311
|
-
</p>
|
1312
|
-
<pre>
|
1313
|
-
a = [ :a, :b, :c ]
|
1314
|
-
a.to_hash #=> { 0=>:a, 1=>:b, 2=>:c }
|
1315
|
-
</pre>
|
1316
|
-
</div>
|
1317
|
-
<div class="sourcecode">
|
1318
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000136_source')" id="l_M000136_source">show source</a> ]</p>
|
1319
|
-
<div id="M000136_source" class="dyn-source">
|
1320
|
-
<pre>
|
1321
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/to_hash.rb, line 18</span>
|
1322
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_hash</span>
|
1323
|
-
<span class="ruby-identifier">h</span> = {}
|
1324
|
-
<span class="ruby-identifier">each_with_index</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">e</span>,<span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>[<span class="ruby-identifier">i</span>] = <span class="ruby-identifier">e</span> }
|
1325
|
-
<span class="ruby-identifier">h</span>
|
1326
|
-
<span class="ruby-keyword kw">end</span>
|
1327
|
-
</pre>
|
1328
|
-
</div>
|
1329
|
-
</div>
|
1330
|
-
</div>
|
1331
|
-
<div class="method">
|
1332
|
-
<div class="title">
|
1333
|
-
<a name="M000108"></a><b>unzip</b>(level)
|
1334
|
-
</div>
|
1335
|
-
<div class="sourcecode">
|
1336
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000108_source')" id="l_M000108_source">show source</a> ]</p>
|
1337
|
-
<div id="M000108_source" class="dyn-source">
|
1338
|
-
<pre>
|
1339
|
-
<span class="ruby-comment cmt"># File lib/facets/core/array/unzip.rb, line 3</span>
|
1340
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unzip</span>(<span class="ruby-identifier">level</span>)
|
1341
|
-
<span class="ruby-identifier">res</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">level</span>, [])
|
1342
|
-
(<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">size</span>).<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
|
1343
|
-
<span class="ruby-identifier">res</span>[<span class="ruby-identifier">i</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">level</span>] <span class="ruby-operator">+=</span> [<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">i</span>]]
|
1344
|
-
}
|
1345
|
-
<span class="ruby-identifier">res</span>
|
1346
|
-
<span class="ruby-keyword kw">end</span>
|
1347
|
-
</pre>
|
1348
|
-
</div>
|
1349
|
-
</div>
|
1350
|
-
</div>
|
1351
|
-
</div>
|
1352
|
-
|
1353
|
-
</div>
|
1354
|
-
|
1355
|
-
</body>
|
1356
|
-
</html>
|