nano 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ANN-0.8.1 +127 -0
- data/COPYING +59 -0
- data/ChangeLog +137 -0
- data/README +161 -0
- data/README.dev +12 -0
- data/Rakefile +124 -0
- data/Reapfile +87 -0
- data/TODO +43 -0
- data/Version +14 -0
- data/data/site_ruby/nano/base +32 -0
- data/data/site_ruby/nano/index.yaml +422 -0
- data/data/site_ruby/nano/noauto +27 -0
- data/data/site_ruby/nano/unsafe +17 -0
- data/lib/nano.rb +2 -0
- data/lib/nano/array.rb +32 -0
- data/lib/nano/array/%5B%5D%3D.rb +22 -0
- data/lib/nano/array/%5B%5D.rb +18 -0
- data/lib/nano/array/at_rand%21.rb +12 -0
- data/lib/nano/array/at_rand.rb +10 -0
- data/lib/nano/array/bulk.rb +10 -0
- data/lib/nano/array/delete_unless.rb +6 -0
- data/lib/nano/array/delete_values.rb +16 -0
- data/lib/nano/array/delete_values_at.rb +31 -0
- data/lib/nano/array/first%21.rb +11 -0
- data/lib/nano/array/first%3D.rb +13 -0
- data/lib/nano/array/foot.rb +11 -0
- data/lib/nano/array/head.rb +10 -0
- data/lib/nano/array/last%21.rb +11 -0
- data/lib/nano/array/last%3D.rb +12 -0
- data/lib/nano/array/last_index.rb +11 -0
- data/lib/nano/array/mid.rb +18 -0
- data/lib/nano/array/middle.rb +17 -0
- data/lib/nano/array/pick%21.rb +23 -0
- data/lib/nano/array/pick.rb +16 -0
- data/lib/nano/array/pos.rb +15 -0
- data/lib/nano/array/rand_index.rb +5 -0
- data/lib/nano/array/rand_subset.rb +31 -0
- data/lib/nano/array/range.rb +19 -0
- data/lib/nano/array/rotate%21.rb +18 -0
- data/lib/nano/array/rotate.rb +20 -0
- data/lib/nano/array/select%21.rb +11 -0
- data/lib/nano/array/shuffle%21.rb +25 -0
- data/lib/nano/array/shuffle.rb +17 -0
- data/lib/nano/array/slap.rb +11 -0
- data/lib/nano/array/store.rb +4 -0
- data/lib/nano/array/tail.rb +9 -0
- data/lib/nano/array/thru.rb +16 -0
- data/lib/nano/array/to_b.rb +6 -0
- data/lib/nano/array/to_h.rb +28 -0
- data/lib/nano/base.rb +29 -0
- data/lib/nano/binding.rb +14 -0
- data/lib/nano/binding/%3A%3Aof_caller.rb +89 -0
- data/lib/nano/binding/%5B%5D%3D.rb +11 -0
- data/lib/nano/binding/%5B%5D.rb +11 -0
- data/lib/nano/binding/__DIR__.rb +7 -0
- data/lib/nano/binding/__FILE__.rb +7 -0
- data/lib/nano/binding/__LINE__.rb +7 -0
- data/lib/nano/binding/call_stack.rb +8 -0
- data/lib/nano/binding/called.rb +12 -0
- data/lib/nano/binding/caller.rb +7 -0
- data/lib/nano/binding/defined%3F.rb +7 -0
- data/lib/nano/binding/eval.rb +10 -0
- data/lib/nano/binding/local_variables.rb +11 -0
- data/lib/nano/binding/method_name.rb +14 -0
- data/lib/nano/binding/of_caller.rb +89 -0
- data/lib/nano/binding/self.rb +12 -0
- data/lib/nano/class.rb +5 -0
- data/lib/nano/class/by_name.rb +1 -0
- data/lib/nano/class/descendents.rb +15 -0
- data/lib/nano/class/remove_descendents.rb +14 -0
- data/lib/nano/class/remove_subclasses.rb +4 -0
- data/lib/nano/class/subclasses.rb +4 -0
- data/lib/nano/comparable.rb +5 -0
- data/lib/nano/comparable/at_least.rb +13 -0
- data/lib/nano/comparable/at_most.rb +13 -0
- data/lib/nano/comparable/cap.rb +13 -0
- data/lib/nano/comparable/clip.rb +22 -0
- data/lib/nano/comparable/cmp.rb +14 -0
- data/lib/nano/continuation.rb +1 -0
- data/lib/nano/continuation/%3A%3Acreate.rb +50 -0
- data/lib/nano/date.rb +6 -0
- data/lib/nano/date/days_in_month.rb +13 -0
- data/lib/nano/date/days_of_month.rb +6 -0
- data/lib/nano/date/stamp.rb +11 -0
- data/lib/nano/date/to_date.rb +9 -0
- data/lib/nano/date/to_s.rb +16 -0
- data/lib/nano/date/to_time.rb +10 -0
- data/lib/nano/dir.rb +2 -0
- data/lib/nano/dir/%3A%3Als_r.rb +21 -0
- data/lib/nano/dir/%3A%3Arecurse.rb +7 -0
- data/lib/nano/enumerable.rb +32 -0
- data/lib/nano/enumerable/%25.rb +17 -0
- data/lib/nano/enumerable/%2A%2A.rb +15 -0
- data/lib/nano/enumerable/%3A%3Acombinations.rb +30 -0
- data/lib/nano/enumerable/%3A%3Across.rb +52 -0
- data/lib/nano/enumerable/collect_with_counter.rb +20 -0
- data/lib/nano/enumerable/collect_with_index.rb +4 -0
- data/lib/nano/enumerable/commonality.rb +37 -0
- data/lib/nano/enumerable/compact_collect.rb +25 -0
- data/lib/nano/enumerable/compact_map.rb +7 -0
- data/lib/nano/enumerable/cross.rb +18 -0
- data/lib/nano/enumerable/eF.rb +51 -0
- data/lib/nano/enumerable/each_by.rb +9 -0
- data/lib/nano/enumerable/each_combination.rb +34 -0
- data/lib/nano/enumerable/each_permutation.rb +33 -0
- data/lib/nano/enumerable/each_slice.rb +57 -0
- data/lib/nano/enumerable/each_unique_pair.rb +41 -0
- data/lib/nano/enumerable/entropy.rb +30 -0
- data/lib/nano/enumerable/filter_collect.rb +29 -0
- data/lib/nano/enumerable/filter_map.rb +7 -0
- data/lib/nano/enumerable/find_collisions.rb +15 -0
- data/lib/nano/enumerable/frequency.rb +16 -0
- data/lib/nano/enumerable/graph.rb +28 -0
- data/lib/nano/enumerable/ideal_entropy.rb +24 -0
- data/lib/nano/enumerable/map_with_counter.rb +4 -0
- data/lib/nano/enumerable/map_with_index.rb +4 -0
- data/lib/nano/enumerable/none%3F.rb +28 -0
- data/lib/nano/enumerable/occur.rb +36 -0
- data/lib/nano/enumerable/one%3F.rb +35 -0
- data/lib/nano/enumerable/partition_by.rb +28 -0
- data/lib/nano/enumerable/probability.rb +36 -0
- data/lib/nano/enumerable/to_h.rb +14 -0
- data/lib/nano/enumerable/unique_by.rb +16 -0
- data/lib/nano/file.rb +3 -0
- data/lib/nano/file/%3A%3Acreate.rb +18 -0
- data/lib/nano/file/%3A%3Aopen_as_string.rb +45 -0
- data/lib/nano/file/%3A%3Asplit_all.rb +13 -0
- data/lib/nano/fileutils.rb +7 -0
- data/lib/nano/fileutils/head.rb +28 -0
- data/lib/nano/fileutils/safe_ln.rb +22 -0
- data/lib/nano/fileutils/slice.rb +21 -0
- data/lib/nano/fileutils/tail.rb +23 -0
- data/lib/nano/fileutils/wc.rb +64 -0
- data/lib/nano/fileutils/whereis.rb +66 -0
- data/lib/nano/fileutils/which.rb +60 -0
- data/lib/nano/float.rb +4 -0
- data/lib/nano/float/approx%3F.rb +19 -0
- data/lib/nano/float/round_at.rb +30 -0
- data/lib/nano/float/round_off.rb +12 -0
- data/lib/nano/float/round_to.rb +31 -0
- data/lib/nano/full.rb +353 -0
- data/lib/nano/hash.rb +34 -0
- data/lib/nano/hash/%3A%3Azipnew.rb +15 -0
- data/lib/nano/hash/%3C%3C.rb +5 -0
- data/lib/nano/hash/%5B%5D%3D.rb +22 -0
- data/lib/nano/hash/%5B%5D.rb +21 -0
- data/lib/nano/hash/alias%21.rb +28 -0
- data/lib/nano/hash/assert_has_keys.rb +14 -0
- data/lib/nano/hash/assert_has_only_keys.rb +14 -0
- data/lib/nano/hash/at.rb +3 -0
- data/lib/nano/hash/collate%21.rb +10 -0
- data/lib/nano/hash/collate.rb +19 -0
- data/lib/nano/hash/delete_unless.rb +7 -0
- data/lib/nano/hash/each.rb +30 -0
- data/lib/nano/hash/graph%21.rb +8 -0
- data/lib/nano/hash/has_keys%3F.rb +15 -0
- data/lib/nano/hash/has_only_keys%3F.rb +15 -0
- data/lib/nano/hash/inverse.rb +28 -0
- data/lib/nano/hash/join.rb +7 -0
- data/lib/nano/hash/keys_to_s%21.rb +33 -0
- data/lib/nano/hash/keys_to_s.rb +24 -0
- data/lib/nano/hash/keys_to_sym%21.rb +38 -0
- data/lib/nano/hash/keys_to_sym.rb +29 -0
- data/lib/nano/hash/rand_key.rb +25 -0
- data/lib/nano/hash/rand_pair.rb +26 -0
- data/lib/nano/hash/rand_value.rb +36 -0
- data/lib/nano/hash/replace_each.rb +9 -0
- data/lib/nano/hash/shuffle%21.rb +16 -0
- data/lib/nano/hash/shuffle.rb +15 -0
- data/lib/nano/hash/slice.rb +11 -0
- data/lib/nano/hash/swap%21.rb +14 -0
- data/lib/nano/hash/swapkey%21.rb +20 -0
- data/lib/nano/hash/to_h.rb +12 -0
- data/lib/nano/hash/to_ostruct.rb +14 -0
- data/lib/nano/hash/to_ostruct_recurse.rb +19 -0
- data/lib/nano/hash/traverse%21.rb +16 -0
- data/lib/nano/hash/traverse.rb +21 -0
- data/lib/nano/hash/update_each.rb +19 -0
- data/lib/nano/hash/weave.rb +64 -0
- data/lib/nano/inflect.rb +35 -0
- data/lib/nano/integer.rb +8 -0
- data/lib/nano/integer/even%3F.rb +14 -0
- data/lib/nano/integer/fact.rb +13 -0
- data/lib/nano/integer/factorial.rb +17 -0
- data/lib/nano/integer/multiple%3F.rb +12 -0
- data/lib/nano/integer/odd%3F.rb +14 -0
- data/lib/nano/integer/ordinal.rb +17 -0
- data/lib/nano/integer/times_collect.rb +14 -0
- data/lib/nano/integer/times_map.rb +5 -0
- data/lib/nano/kernel.rb +23 -0
- data/lib/nano/kernel/__require__.rb +5 -0
- data/lib/nano/kernel/autoreload.rb +35 -0
- data/lib/nano/kernel/autoreload_glob.rb +36 -0
- data/lib/nano/kernel/bug%21.rb +17 -0
- data/lib/nano/kernel/call_stack.rb +36 -0
- data/lib/nano/kernel/called.rb +19 -0
- data/lib/nano/kernel/demo.rb +23 -0
- data/lib/nano/kernel/fn.rb +8 -0
- data/lib/nano/kernel/get_by_id.rb +7 -0
- data/lib/nano/kernel/here.rb +9 -0
- data/lib/nano/kernel/maybe.rb +15 -0
- data/lib/nano/kernel/method_name.rb +19 -0
- data/lib/nano/kernel/nack.rb +12 -0
- data/lib/nano/kernel/p.rb +9 -0
- data/lib/nano/kernel/require_all.rb +22 -0
- data/lib/nano/kernel/require_esc.rb +16 -0
- data/lib/nano/kernel/require_local.rb +12 -0
- data/lib/nano/kernel/require_nano.rb +18 -0
- data/lib/nano/kernel/resc.rb +6 -0
- data/lib/nano/kernel/returning.rb +22 -0
- data/lib/nano/kernel/silence_warnings.rb +4 -0
- data/lib/nano/kernel/silently.rb +12 -0
- data/lib/nano/kernel/warn_with_line.rb +17 -0
- data/lib/nano/logger/format.rb +22 -0
- data/lib/nano/logger/format_message.rb +11 -0
- data/lib/nano/matchdata.rb +3 -0
- data/lib/nano/matchdata/match.rb +12 -0
- data/lib/nano/matchdata/matchset.rb +10 -0
- data/lib/nano/matchdata/matchtree.rb +29 -0
- data/lib/nano/module.rb +34 -0
- data/lib/nano/module/abstract.rb +18 -0
- data/lib/nano/module/alias_module_function.rb +28 -0
- data/lib/nano/module/attr_setter.rb +38 -0
- data/lib/nano/module/attr_tester.rb +46 -0
- data/lib/nano/module/basename.rb +17 -0
- data/lib/nano/module/by_name.rb +43 -0
- data/lib/nano/module/cattr_accessor.rb +25 -0
- data/lib/nano/module/cattr_reader.rb +40 -0
- data/lib/nano/module/cattr_writer.rb +44 -0
- data/lib/nano/module/clone_removing.rb +10 -0
- data/lib/nano/module/clone_renaming.rb +14 -0
- data/lib/nano/module/clone_using.rb +14 -0
- data/lib/nano/module/dirname.rb +20 -0
- data/lib/nano/module/equate_on.rb +37 -0
- data/lib/nano/module/generate_instance_method_name.rb +18 -0
- data/lib/nano/module/include_as.rb +72 -0
- data/lib/nano/module/initializer.rb +34 -0
- data/lib/nano/module/instance_methods.rb +131 -0
- data/lib/nano/module/integrate.rb +18 -0
- data/lib/nano/module/memoize.rb +50 -0
- data/lib/nano/module/modspace.rb +22 -0
- data/lib/nano/module/namespace.rb +33 -0
- data/lib/nano/module/redef.rb +6 -0
- data/lib/nano/module/redefine_method.rb +30 -0
- data/lib/nano/module/redirect.rb +5 -0
- data/lib/nano/module/redirect_method.rb +39 -0
- data/lib/nano/module/remove.rb +4 -0
- data/lib/nano/module/rename.rb +5 -0
- data/lib/nano/module/rename_method.rb +12 -0
- data/lib/nano/module/sattr.rb +56 -0
- data/lib/nano/module/sattr_accessor.rb +1 -0
- data/lib/nano/module/sattr_reader.rb +1 -0
- data/lib/nano/module/sattr_setter.rb +1 -0
- data/lib/nano/module/sattr_tester.rb +1 -0
- data/lib/nano/module/sattr_writer.rb +1 -0
- data/lib/nano/module/sort_on.rb +35 -0
- data/lib/nano/module/undef.rb +4 -0
- data/lib/nano/module/wrap.rb +5 -0
- data/lib/nano/module/wrap_method.rb +21 -0
- data/lib/nano/nil_as_emptiness.rb +34 -0
- data/lib/nano/nilclass.rb +2 -0
- data/lib/nano/nilclass/%5B%5D.rb +10 -0
- data/lib/nano/nilclass/empty%3F.rb +8 -0
- data/lib/nano/nilclass/include%3F.rb +8 -0
- data/lib/nano/nilclass/length.rb +10 -0
- data/lib/nano/nilclass/method_missing.rb +10 -0
- data/lib/nano/nilclass/size.rb +10 -0
- data/lib/nano/nilclass/to_f.rb +9 -0
- data/lib/nano/nilclass/to_h.rb +10 -0
- data/lib/nano/numeric.rb +5 -0
- data/lib/nano/numeric/ceil_multiple.rb +8 -0
- data/lib/nano/numeric/distance.rb +13 -0
- data/lib/nano/numeric/pred.rb +14 -0
- data/lib/nano/numeric/succ.rb +20 -0
- data/lib/nano/numeric/to_b.rb +13 -0
- data/lib/nano/object.rb +28 -0
- data/lib/nano/object/__class__.rb +7 -0
- data/lib/nano/object/assign_from.rb +42 -0
- data/lib/nano/object/assign_with.rb +45 -0
- data/lib/nano/object/bool%3F.rb +21 -0
- data/lib/nano/object/constant.rb +23 -0
- data/lib/nano/object/copy.rb +10 -0
- data/lib/nano/object/deep_copy.rb +10 -0
- data/lib/nano/object/false%3F.rb +21 -0
- data/lib/nano/object/generate_method_name.rb +18 -0
- data/lib/nano/object/in%3F.rb +10 -0
- data/lib/nano/object/metaclass.rb +7 -0
- data/lib/nano/object/method%21.rb +48 -0
- data/lib/nano/object/methods.rb +33 -0
- data/lib/nano/object/new.rb +11 -0
- data/lib/nano/object/object_class.rb +7 -0
- data/lib/nano/object/object_hexid.rb +10 -0
- data/lib/nano/object/set_from.rb +13 -0
- data/lib/nano/object/set_with.rb +19 -0
- data/lib/nano/object/singleton_class.rb +7 -0
- data/lib/nano/object/special_class.rb +7 -0
- data/lib/nano/object/super_method.rb +11 -0
- data/lib/nano/object/super_send.rb +11 -0
- data/lib/nano/object/superup.rb +39 -0
- data/lib/nano/object/to_b.rb +14 -0
- data/lib/nano/object/to_bool.rb +24 -0
- data/lib/nano/object/true%3F.rb +21 -0
- data/lib/nano/object/val%3F.rb +14 -0
- data/lib/nano/object/with_accessor.rb +21 -0
- data/lib/nano/object/with_reader.rb +19 -0
- data/lib/nano/object/with_writer.rb +21 -0
- data/lib/nano/ostruct.rb +3 -0
- data/lib/nano/ostruct/%5B%5D%3D.rb +18 -0
- data/lib/nano/ostruct/%5B%5D.rb +18 -0
- data/lib/nano/ostruct/ostruct_update.rb +20 -0
- data/lib/nano/pathname.rb +2 -0
- data/lib/nano/pathname/ascend.rb +21 -0
- data/lib/nano/pathname/descend.rb +20 -0
- data/lib/nano/proc.rb +3 -0
- data/lib/nano/proc/%2A.rb +8 -0
- data/lib/nano/proc/compose.rb +21 -0
- data/lib/nano/proc/to_method.rb +47 -0
- data/lib/nano/random.rb +30 -0
- data/lib/nano/range.rb +4 -0
- data/lib/nano/range/to_r.rb +9 -0
- data/lib/nano/range/to_range.rb +13 -0
- data/lib/nano/range/umbrella.rb +37 -0
- data/lib/nano/range/within%3F.rb +19 -0
- data/lib/nano/regexp.rb +3 -0
- data/lib/nano/regexp/arity.rb +12 -0
- data/lib/nano/regexp/to_re.rb +15 -0
- data/lib/nano/regexp/to_regexp.rb +11 -0
- data/lib/nano/string.rb +88 -0
- data/lib/nano/string/%3A%3Apatterns.rb +28 -0
- data/lib/nano/string/%3A%3Arand_letter.rb +13 -0
- data/lib/nano/string/%3A%3Arandom.rb +27 -0
- data/lib/nano/string/align_center.rb +36 -0
- data/lib/nano/string/align_left.rb +18 -0
- data/lib/nano/string/align_right.rb +18 -0
- data/lib/nano/string/at.rb +5 -0
- data/lib/nano/string/at_rand%21.rb +24 -0
- data/lib/nano/string/at_rand.rb +17 -0
- data/lib/nano/string/basename.rb +12 -0
- data/lib/nano/string/blank%3F.rb +14 -0
- data/lib/nano/string/bracket%21.rb +10 -0
- data/lib/nano/string/bracket.rb +19 -0
- data/lib/nano/string/brief.rb +23 -0
- data/lib/nano/string/bytes.rb +10 -0
- data/lib/nano/string/camelcase.rb +24 -0
- data/lib/nano/string/camelize.rb +14 -0
- data/lib/nano/string/capitalized%3F.rb +17 -0
- data/lib/nano/string/chars.rb +12 -0
- data/lib/nano/string/cmp.rb +18 -0
- data/lib/nano/string/demodulize.rb +7 -0
- data/lib/nano/string/dequote.rb +19 -0
- data/lib/nano/string/downcase%3F.rb +16 -0
- data/lib/nano/string/dresner%21.rb +11 -0
- data/lib/nano/string/dresner.rb +16 -0
- data/lib/nano/string/each_char.rb +11 -0
- data/lib/nano/string/each_word.rb +26 -0
- data/lib/nano/string/first%21.rb +34 -0
- data/lib/nano/string/first%3D.rb +13 -0
- data/lib/nano/string/first.rb +18 -0
- data/lib/nano/string/first_char.rb +11 -0
- data/lib/nano/string/fold.rb +33 -0
- data/lib/nano/string/frequency.rb +15 -0
- data/lib/nano/string/humanize.rb +10 -0
- data/lib/nano/string/indent.rb +17 -0
- data/lib/nano/string/index_all.rb +19 -0
- data/lib/nano/string/last%21.rb +34 -0
- data/lib/nano/string/last%3D.rb +13 -0
- data/lib/nano/string/last.rb +17 -0
- data/lib/nano/string/last_char.rb +13 -0
- data/lib/nano/string/line_wrap.rb +53 -0
- data/lib/nano/string/lines.rb +12 -0
- data/lib/nano/string/lowercase%3F.rb +11 -0
- data/lib/nano/string/margin.rb +26 -0
- data/lib/nano/string/mscan.rb +17 -0
- data/lib/nano/string/natcmp.rb +83 -0
- data/lib/nano/string/nchar.rb +21 -0
- data/lib/nano/string/ordinal.rb +7 -0
- data/lib/nano/string/plural.rb +43 -0
- data/lib/nano/string/pop.rb +7 -0
- data/lib/nano/string/probability.rb +11 -0
- data/lib/nano/string/push.rb +5 -0
- data/lib/nano/string/quote.rb +24 -0
- data/lib/nano/string/rand_byte%21.rb +17 -0
- data/lib/nano/string/rand_byte.rb +12 -0
- data/lib/nano/string/rand_index.rb +9 -0
- data/lib/nano/string/range.rb +15 -0
- data/lib/nano/string/range_all.rb +26 -0
- data/lib/nano/string/range_of_line.rb +19 -0
- data/lib/nano/string/shatter.rb +21 -0
- data/lib/nano/string/shift.rb +7 -0
- data/lib/nano/string/shuffle.rb +20 -0
- data/lib/nano/string/similarity.rb +84 -0
- data/lib/nano/string/singular.rb +51 -0
- data/lib/nano/string/slap.rb +9 -0
- data/lib/nano/string/soundex.rb +71 -0
- data/lib/nano/string/succ.rb +14 -0
- data/lib/nano/string/tab.rb +13 -0
- data/lib/nano/string/tabto.rb +17 -0
- data/lib/nano/string/to_a.rb +13 -0
- data/lib/nano/string/to_arr.rb +34 -0
- data/lib/nano/string/to_b.rb +28 -0
- data/lib/nano/string/to_const.rb +13 -0
- data/lib/nano/string/to_date.rb +10 -0
- data/lib/nano/string/to_proc.rb +26 -0
- data/lib/nano/string/to_re.rb +14 -0
- data/lib/nano/string/to_time.rb +9 -0
- data/lib/nano/string/underscore.rb +9 -0
- data/lib/nano/string/unix_crypt%21.rb +8 -0
- data/lib/nano/string/unix_crypt.rb +8 -0
- data/lib/nano/string/unpack.rb +16 -0
- data/lib/nano/string/unshift.rb +7 -0
- data/lib/nano/string/upcase%3F.rb +17 -0
- data/lib/nano/string/uppercase%3F.rb +11 -0
- data/lib/nano/string/whitespace%3F.rb +5 -0
- data/lib/nano/string/word_filter%21.rb +22 -0
- data/lib/nano/string/word_filter.rb +14 -0
- data/lib/nano/string/word_wrap%21.rb +13 -0
- data/lib/nano/string/word_wrap.rb +21 -0
- data/lib/nano/string/words.rb +12 -0
- data/lib/nano/string_as_array.rb +16 -0
- data/lib/nano/symbol.rb +12 -0
- data/lib/nano/symbol/camelcase.rb +21 -0
- data/lib/nano/symbol/camelize.rb +10 -0
- data/lib/nano/symbol/capitalized%3F.rb +10 -0
- data/lib/nano/symbol/downcase%3F.rb +10 -0
- data/lib/nano/symbol/not.rb +16 -0
- data/lib/nano/symbol/pad.rb +20 -0
- data/lib/nano/symbol/succ.rb +18 -0
- data/lib/nano/symbol/to_const.rb +14 -0
- data/lib/nano/symbol/to_proc.rb +20 -0
- data/lib/nano/symbol/to_str.rb +12 -0
- data/lib/nano/symbol/underscore.rb +10 -0
- data/lib/nano/symbol/upcase%3F.rb +10 -0
- data/lib/nano/time.rb +6 -0
- data/lib/nano/time/%3A%3Adays_extrema.rb +22 -0
- data/lib/nano/time/change.rb +20 -0
- data/lib/nano/time/elapse.rb +18 -0
- data/lib/nano/time/stamp.rb +21 -0
- data/lib/nano/time/to_date.rb +8 -0
- data/lib/nano/time/to_s.rb +6 -0
- data/lib/nano/time/to_time.rb +10 -0
- data/lib/nanoreq.rb +2 -0
- data/lib/nanosys.rb +203 -0
- data/pub/www/doc/classes/Array.html +794 -0
- data/pub/www/doc/classes/Array.src/M000039.html +36 -0
- data/pub/www/doc/classes/Array.src/M000040.html +30 -0
- data/pub/www/doc/classes/Array.src/M000041.html +30 -0
- data/pub/www/doc/classes/Array.src/M000042.html +30 -0
- data/pub/www/doc/classes/Array.src/M000043.html +35 -0
- data/pub/www/doc/classes/Array.src/M000044.html +30 -0
- data/pub/www/doc/classes/Array.src/M000045.html +30 -0
- data/pub/www/doc/classes/Array.src/M000046.html +31 -0
- data/pub/www/doc/classes/Array.src/M000047.html +30 -0
- data/pub/www/doc/classes/Array.src/M000048.html +32 -0
- data/pub/www/doc/classes/Array.src/M000049.html +37 -0
- data/pub/www/doc/classes/Array.src/M000050.html +38 -0
- data/pub/www/doc/classes/Array.src/M000051.html +31 -0
- data/pub/www/doc/classes/Array.src/M000052.html +36 -0
- data/pub/www/doc/classes/Array.src/M000053.html +30 -0
- data/pub/www/doc/classes/Array.src/M000054.html +30 -0
- data/pub/www/doc/classes/Array.src/M000055.html +34 -0
- data/pub/www/doc/classes/Array.src/M000056.html +30 -0
- data/pub/www/doc/classes/Array.src/M000057.html +36 -0
- data/pub/www/doc/classes/Array.src/M000058.html +42 -0
- data/pub/www/doc/classes/Array.src/M000059.html +30 -0
- data/pub/www/doc/classes/Array.src/M000060.html +43 -0
- data/pub/www/doc/classes/Array.src/M000061.html +30 -0
- data/pub/www/doc/classes/Array.src/M000062.html +34 -0
- data/pub/www/doc/classes/Array.src/M000063.html +30 -0
- data/pub/www/doc/classes/Array.src/M000064.html +31 -0
- data/pub/www/doc/classes/Array.src/M000065.html +34 -0
- data/pub/www/doc/classes/Array.src/M000066.html +35 -0
- data/pub/www/doc/classes/Array.src/M000067.html +30 -0
- data/pub/www/doc/classes/Array.src/M000069.html +30 -0
- data/pub/www/doc/classes/Array.src/M000070.html +34 -0
- data/pub/www/doc/classes/Array.src/M000071.html +39 -0
- data/pub/www/doc/classes/Array.src/M000072.html +41 -0
- data/pub/www/doc/classes/Array.src/M000073.html +35 -0
- data/pub/www/doc/classes/Binding.html +389 -0
- data/pub/www/doc/classes/Binding.src/M000216.html +30 -0
- data/pub/www/doc/classes/Binding.src/M000217.html +73 -0
- data/pub/www/doc/classes/Binding.src/M000218.html +30 -0
- data/pub/www/doc/classes/Binding.src/M000219.html +31 -0
- data/pub/www/doc/classes/Binding.src/M000220.html +73 -0
- data/pub/www/doc/classes/Binding.src/M000221.html +30 -0
- data/pub/www/doc/classes/Binding.src/M000222.html +30 -0
- data/pub/www/doc/classes/Binding.src/M000223.html +30 -0
- data/pub/www/doc/classes/Binding.src/M000224.html +34 -0
- data/pub/www/doc/classes/Binding.src/M000225.html +31 -0
- data/pub/www/doc/classes/Binding.src/M000226.html +30 -0
- data/pub/www/doc/classes/Binding.src/M000227.html +31 -0
- data/pub/www/doc/classes/Binding.src/M000228.html +30 -0
- data/pub/www/doc/classes/Binding.src/M000229.html +30 -0
- data/pub/www/doc/classes/Binding.src/M000230.html +30 -0
- data/pub/www/doc/classes/Class.html +130 -0
- data/pub/www/doc/classes/Class.src/M000191.html +36 -0
- data/pub/www/doc/classes/Class.src/M000192.html +33 -0
- data/pub/www/doc/classes/Comparable.html +180 -0
- data/pub/www/doc/classes/Comparable.src/M000413.html +30 -0
- data/pub/www/doc/classes/Comparable.src/M000414.html +30 -0
- data/pub/www/doc/classes/Comparable.src/M000415.html +30 -0
- data/pub/www/doc/classes/Comparable.src/M000416.html +30 -0
- data/pub/www/doc/classes/Comparable.src/M000417.html +33 -0
- data/pub/www/doc/classes/Continuation.html +147 -0
- data/pub/www/doc/classes/Continuation.src/M000366.html +33 -0
- data/pub/www/doc/classes/Date.html +177 -0
- data/pub/www/doc/classes/Date.src/M000203.html +30 -0
- data/pub/www/doc/classes/Date.src/M000204.html +30 -0
- data/pub/www/doc/classes/Date.src/M000205.html +37 -0
- data/pub/www/doc/classes/Date.src/M000207.html +30 -0
- data/pub/www/doc/classes/Date.src/M000208.html +30 -0
- data/pub/www/doc/classes/Dir.html +111 -0
- data/pub/www/doc/classes/Dir.src/M000037.html +41 -0
- data/pub/www/doc/classes/Enumerable.html +630 -0
- data/pub/www/doc/classes/Enumerable.src/M000387.html +34 -0
- data/pub/www/doc/classes/Enumerable.src/M000388.html +34 -0
- data/pub/www/doc/classes/Enumerable.src/M000389.html +43 -0
- data/pub/www/doc/classes/Enumerable.src/M000390.html +38 -0
- data/pub/www/doc/classes/Enumerable.src/M000391.html +37 -0
- data/pub/www/doc/classes/Enumerable.src/M000392.html +41 -0
- data/pub/www/doc/classes/Enumerable.src/M000393.html +32 -0
- data/pub/www/doc/classes/Enumerable.src/M000394.html +30 -0
- data/pub/www/doc/classes/Enumerable.src/M000395.html +35 -0
- data/pub/www/doc/classes/Enumerable.src/M000396.html +37 -0
- data/pub/www/doc/classes/Enumerable.src/M000397.html +34 -0
- data/pub/www/doc/classes/Enumerable.src/M000399.html +32 -0
- data/pub/www/doc/classes/Enumerable.src/M000401.html +34 -0
- data/pub/www/doc/classes/Enumerable.src/M000402.html +34 -0
- data/pub/www/doc/classes/Enumerable.src/M000405.html +45 -0
- data/pub/www/doc/classes/Enumerable.src/M000406.html +33 -0
- data/pub/www/doc/classes/Enumerable.src/M000407.html +60 -0
- data/pub/www/doc/classes/Enumerable.src/M000408.html +41 -0
- data/pub/www/doc/classes/Enumerable.src/M000409.html +46 -0
- data/pub/www/doc/classes/Enumerable.src/M000410.html +30 -0
- data/pub/www/doc/classes/Enumerable.src/M000411.html +36 -0
- data/pub/www/doc/classes/Enumerable.src/M000412.html +30 -0
- data/pub/www/doc/classes/FalseClass.html +105 -0
- data/pub/www/doc/classes/FalseClass.src/M000038.html +30 -0
- data/pub/www/doc/classes/File.html +160 -0
- data/pub/www/doc/classes/File.src/M000418.html +33 -0
- data/pub/www/doc/classes/File.src/M000419.html +51 -0
- data/pub/www/doc/classes/File.src/M000420.html +33 -0
- data/pub/www/doc/classes/FileUtils.html +239 -0
- data/pub/www/doc/classes/FileUtils.src/M000359.html +71 -0
- data/pub/www/doc/classes/FileUtils.src/M000360.html +30 -0
- data/pub/www/doc/classes/FileUtils.src/M000361.html +58 -0
- data/pub/www/doc/classes/FileUtils.src/M000362.html +39 -0
- data/pub/www/doc/classes/FileUtils.src/M000363.html +40 -0
- data/pub/www/doc/classes/FileUtils.src/M000364.html +30 -0
- data/pub/www/doc/classes/FileUtils.src/M000365.html +67 -0
- data/pub/www/doc/classes/Float.html +150 -0
- data/pub/www/doc/classes/Float.src/M000188.html +30 -0
- data/pub/www/doc/classes/Float.src/M000189.html +31 -0
- data/pub/www/doc/classes/Float.src/M000190.html +31 -0
- data/pub/www/doc/classes/Functor.html +128 -0
- data/pub/www/doc/classes/Functor.src/M000209.html +28 -0
- data/pub/www/doc/classes/Functor.src/M000210.html +28 -0
- data/pub/www/doc/classes/Functor.src/M000211.html +28 -0
- data/pub/www/doc/classes/Functor.src/M000212.html +28 -0
- data/pub/www/doc/classes/Hash.html +933 -0
- data/pub/www/doc/classes/Hash.src/M000074.html +32 -0
- data/pub/www/doc/classes/Hash.src/M000075.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000076.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000077.html +32 -0
- data/pub/www/doc/classes/Hash.src/M000078.html +31 -0
- data/pub/www/doc/classes/Hash.src/M000079.html +31 -0
- data/pub/www/doc/classes/Hash.src/M000080.html +31 -0
- data/pub/www/doc/classes/Hash.src/M000081.html +35 -0
- data/pub/www/doc/classes/Hash.src/M000082.html +37 -0
- data/pub/www/doc/classes/Hash.src/M000083.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000084.html +38 -0
- data/pub/www/doc/classes/Hash.src/M000085.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000086.html +32 -0
- data/pub/www/doc/classes/Hash.src/M000090.html +31 -0
- data/pub/www/doc/classes/Hash.src/M000091.html +34 -0
- data/pub/www/doc/classes/Hash.src/M000092.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000093.html +31 -0
- data/pub/www/doc/classes/Hash.src/M000095.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000096.html +32 -0
- data/pub/www/doc/classes/Hash.src/M000097.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000098.html +31 -0
- data/pub/www/doc/classes/Hash.src/M000099.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000100.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000101.html +32 -0
- data/pub/www/doc/classes/Hash.src/M000103.html +28 -0
- data/pub/www/doc/classes/Hash.src/M000104.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000105.html +40 -0
- data/pub/www/doc/classes/Hash.src/M000107.html +34 -0
- data/pub/www/doc/classes/Hash.src/M000108.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000109.html +34 -0
- data/pub/www/doc/classes/Hash.src/M000110.html +33 -0
- data/pub/www/doc/classes/Hash.src/M000111.html +40 -0
- data/pub/www/doc/classes/Hash.src/M000113.html +31 -0
- data/pub/www/doc/classes/Hash.src/M000115.html +67 -0
- data/pub/www/doc/classes/Hash.src/M000116.html +31 -0
- data/pub/www/doc/classes/Hash.src/M000117.html +32 -0
- data/pub/www/doc/classes/Hash.src/M000119.html +31 -0
- data/pub/www/doc/classes/Integer.html +237 -0
- data/pub/www/doc/classes/Integer.src/M000006.html +30 -0
- data/pub/www/doc/classes/Integer.src/M000007.html +30 -0
- data/pub/www/doc/classes/Integer.src/M000008.html +30 -0
- data/pub/www/doc/classes/Integer.src/M000009.html +31 -0
- data/pub/www/doc/classes/Integer.src/M000011.html +33 -0
- data/pub/www/doc/classes/Integer.src/M000012.html +39 -0
- data/pub/www/doc/classes/Integer.src/M000013.html +30 -0
- data/pub/www/doc/classes/Integer.src/M000014.html +30 -0
- data/pub/www/doc/classes/Kernel.html +415 -0
- data/pub/www/doc/classes/Kernel.src/M000367.html +39 -0
- data/pub/www/doc/classes/Kernel.src/M000368.html +31 -0
- data/pub/www/doc/classes/Kernel.src/M000369.html +30 -0
- data/pub/www/doc/classes/Kernel.src/M000370.html +30 -0
- data/pub/www/doc/classes/Kernel.src/M000371.html +30 -0
- data/pub/www/doc/classes/Kernel.src/M000372.html +38 -0
- data/pub/www/doc/classes/Kernel.src/M000373.html +30 -0
- data/pub/www/doc/classes/Kernel.src/M000374.html +31 -0
- data/pub/www/doc/classes/Kernel.src/M000375.html +50 -0
- data/pub/www/doc/classes/Kernel.src/M000376.html +49 -0
- data/pub/www/doc/classes/Kernel.src/M000377.html +30 -0
- data/pub/www/doc/classes/Kernel.src/M000378.html +28 -0
- data/pub/www/doc/classes/Kernel.src/M000379.html +31 -0
- data/pub/www/doc/classes/Kernel.src/M000380.html +34 -0
- data/pub/www/doc/classes/Kernel.src/M000381.html +32 -0
- data/pub/www/doc/classes/Kernel.src/M000382.html +31 -0
- data/pub/www/doc/classes/Kernel.src/M000383.html +31 -0
- data/pub/www/doc/classes/Kernel.src/M000384.html +33 -0
- data/pub/www/doc/classes/Kernel.src/M000385.html +35 -0
- data/pub/www/doc/classes/Kernel/NanoKernel.html +111 -0
- data/pub/www/doc/classes/Kernel/NanoKernel.src/M000386.html +35 -0
- data/pub/www/doc/classes/Logger.html +137 -0
- data/pub/www/doc/classes/Logger.src/M000231.html +31 -0
- data/pub/www/doc/classes/Logger.src/M000232.html +30 -0
- data/pub/www/doc/classes/MatchData.html +146 -0
- data/pub/www/doc/classes/MatchData.src/M000134.html +45 -0
- data/pub/www/doc/classes/MatchData.src/M000135.html +30 -0
- data/pub/www/doc/classes/MatchData.src/M000136.html +30 -0
- data/pub/www/doc/classes/Module.html +996 -0
- data/pub/www/doc/classes/Module.src/M000139.html +30 -0
- data/pub/www/doc/classes/Module.src/M000140.html +44 -0
- data/pub/www/doc/classes/Module.src/M000141.html +32 -0
- data/pub/www/doc/classes/Module.src/M000142.html +36 -0
- data/pub/www/doc/classes/Module.src/M000143.html +37 -0
- data/pub/www/doc/classes/Module.src/M000144.html +33 -0
- data/pub/www/doc/classes/Module.src/M000145.html +30 -0
- data/pub/www/doc/classes/Module.src/M000146.html +89 -0
- data/pub/www/doc/classes/Module.src/M000147.html +32 -0
- data/pub/www/doc/classes/Module.src/M000148.html +32 -0
- data/pub/www/doc/classes/Module.src/M000149.html +32 -0
- data/pub/www/doc/classes/Module.src/M000150.html +32 -0
- data/pub/www/doc/classes/Module.src/M000151.html +32 -0
- data/pub/www/doc/classes/Module.src/M000152.html +32 -0
- data/pub/www/doc/classes/Module.src/M000153.html +46 -0
- data/pub/www/doc/classes/Module.src/M000154.html +33 -0
- data/pub/www/doc/classes/Module.src/M000155.html +30 -0
- data/pub/www/doc/classes/Module.src/M000156.html +34 -0
- data/pub/www/doc/classes/Module.src/M000158.html +31 -0
- data/pub/www/doc/classes/Module.src/M000159.html +37 -0
- data/pub/www/doc/classes/Module.src/M000160.html +32 -0
- data/pub/www/doc/classes/Module.src/M000161.html +35 -0
- data/pub/www/doc/classes/Module.src/M000162.html +33 -0
- data/pub/www/doc/classes/Module.src/M000163.html +35 -0
- data/pub/www/doc/classes/Module.src/M000164.html +41 -0
- data/pub/www/doc/classes/Module.src/M000165.html +32 -0
- data/pub/www/doc/classes/Module.src/M000166.html +41 -0
- data/pub/www/doc/classes/Module.src/M000168.html +30 -0
- data/pub/www/doc/classes/Module.src/M000169.html +36 -0
- data/pub/www/doc/classes/Module.src/M000172.html +33 -0
- data/pub/www/doc/classes/Module.src/M000173.html +35 -0
- data/pub/www/doc/classes/Module.src/M000176.html +34 -0
- data/pub/www/doc/classes/Module.src/M000177.html +32 -0
- data/pub/www/doc/classes/Module.src/M000178.html +41 -0
- data/pub/www/doc/classes/NackClass.html +92 -0
- data/pub/www/doc/classes/NanoSystem.html +340 -0
- data/pub/www/doc/classes/NanoSystem.src/M000120.html +30 -0
- data/pub/www/doc/classes/NanoSystem.src/M000121.html +31 -0
- data/pub/www/doc/classes/NanoSystem.src/M000122.html +32 -0
- data/pub/www/doc/classes/NanoSystem.src/M000123.html +31 -0
- data/pub/www/doc/classes/NanoSystem.src/M000124.html +31 -0
- data/pub/www/doc/classes/NanoSystem.src/M000125.html +44 -0
- data/pub/www/doc/classes/NanoSystem.src/M000126.html +47 -0
- data/pub/www/doc/classes/NanoSystem.src/M000127.html +30 -0
- data/pub/www/doc/classes/NanoSystem.src/M000128.html +30 -0
- data/pub/www/doc/classes/NanoSystem.src/M000129.html +30 -0
- data/pub/www/doc/classes/NanoSystem.src/M000130.html +30 -0
- data/pub/www/doc/classes/NanoSystem.src/M000132.html +42 -0
- data/pub/www/doc/classes/NanoSystem.src/M000133.html +39 -0
- data/pub/www/doc/classes/NilClass.html +240 -0
- data/pub/www/doc/classes/NilClass.src/M000194.html +28 -0
- data/pub/www/doc/classes/NilClass.src/M000195.html +30 -0
- data/pub/www/doc/classes/NilClass.src/M000196.html +28 -0
- data/pub/www/doc/classes/NilClass.src/M000197.html +28 -0
- data/pub/www/doc/classes/NilClass.src/M000198.html +28 -0
- data/pub/www/doc/classes/NilClass.src/M000199.html +30 -0
- data/pub/www/doc/classes/NilClass.src/M000200.html +28 -0
- data/pub/www/doc/classes/NilClass.src/M000201.html +28 -0
- data/pub/www/doc/classes/NilClass.src/M000202.html +30 -0
- data/pub/www/doc/classes/Numeric.html +223 -0
- data/pub/www/doc/classes/Numeric.src/M000180.html +30 -0
- data/pub/www/doc/classes/Numeric.src/M000181.html +30 -0
- data/pub/www/doc/classes/Numeric.src/M000182.html +30 -0
- data/pub/www/doc/classes/Numeric.src/M000183.html +30 -0
- data/pub/www/doc/classes/Numeric.src/M000184.html +31 -0
- data/pub/www/doc/classes/Numeric.src/M000185.html +30 -0
- data/pub/www/doc/classes/Numeric.src/M000186.html +32 -0
- data/pub/www/doc/classes/Numeric.src/M000187.html +31 -0
- data/pub/www/doc/classes/Object.html +665 -0
- data/pub/www/doc/classes/Object.src/M000235.html +32 -0
- data/pub/www/doc/classes/Object.src/M000236.html +30 -0
- data/pub/www/doc/classes/Object.src/M000237.html +38 -0
- data/pub/www/doc/classes/Object.src/M000238.html +30 -0
- data/pub/www/doc/classes/Object.src/M000239.html +33 -0
- data/pub/www/doc/classes/Object.src/M000241.html +33 -0
- data/pub/www/doc/classes/Object.src/M000242.html +30 -0
- data/pub/www/doc/classes/Object.src/M000243.html +31 -0
- data/pub/www/doc/classes/Object.src/M000244.html +41 -0
- data/pub/www/doc/classes/Object.src/M000245.html +31 -0
- data/pub/www/doc/classes/Object.src/M000246.html +34 -0
- data/pub/www/doc/classes/Object.src/M000247.html +31 -0
- data/pub/www/doc/classes/Object.src/M000248.html +30 -0
- data/pub/www/doc/classes/Object.src/M000249.html +32 -0
- data/pub/www/doc/classes/Object.src/M000250.html +31 -0
- data/pub/www/doc/classes/Object.src/M000251.html +30 -0
- data/pub/www/doc/classes/Object.src/M000252.html +30 -0
- data/pub/www/doc/classes/Object.src/M000253.html +31 -0
- data/pub/www/doc/classes/Object.src/M000254.html +30 -0
- data/pub/www/doc/classes/Object.src/M000255.html +30 -0
- data/pub/www/doc/classes/Object.src/M000256.html +52 -0
- data/pub/www/doc/classes/Object.src/M000257.html +30 -0
- data/pub/www/doc/classes/Object.src/M000258.html +32 -0
- data/pub/www/doc/classes/Object.src/M000259.html +30 -0
- data/pub/www/doc/classes/Object.src/M000260.html +30 -0
- data/pub/www/doc/classes/Object.src/M000261.html +30 -0
- data/pub/www/doc/classes/Object.src/M000262.html +30 -0
- data/pub/www/doc/classes/Object.src/M000263.html +30 -0
- data/pub/www/doc/classes/OpenStruct.html +154 -0
- data/pub/www/doc/classes/OpenStruct.src/M000213.html +34 -0
- data/pub/www/doc/classes/OpenStruct.src/M000214.html +32 -0
- data/pub/www/doc/classes/OpenStruct.src/M000215.html +31 -0
- data/pub/www/doc/classes/Pathname.html +126 -0
- data/pub/www/doc/classes/Pathname.src/M000233.html +33 -0
- data/pub/www/doc/classes/Pathname.src/M000234.html +34 -0
- data/pub/www/doc/classes/Proc.html +143 -0
- data/pub/www/doc/classes/Proc.src/M000137.html +32 -0
- data/pub/www/doc/classes/Range.html +188 -0
- data/pub/www/doc/classes/Range.src/M000002.html +35 -0
- data/pub/www/doc/classes/Range.src/M000003.html +32 -0
- data/pub/www/doc/classes/Range.src/M000004.html +30 -0
- data/pub/www/doc/classes/Range.src/M000005.html +30 -0
- data/pub/www/doc/classes/Regexp.html +155 -0
- data/pub/www/doc/classes/Regexp.src/M000028.html +30 -0
- data/pub/www/doc/classes/Regexp.src/M000029.html +30 -0
- data/pub/www/doc/classes/Regexp.src/M000030.html +30 -0
- data/pub/www/doc/classes/ScriptBug.html +92 -0
- data/pub/www/doc/classes/String.html +1672 -0
- data/pub/www/doc/classes/String.src/M000264.html +30 -0
- data/pub/www/doc/classes/String.src/M000265.html +40 -0
- data/pub/www/doc/classes/String.src/M000266.html +30 -0
- data/pub/www/doc/classes/String.src/M000267.html +32 -0
- data/pub/www/doc/classes/String.src/M000268.html +30 -0
- data/pub/www/doc/classes/String.src/M000269.html +34 -0
- data/pub/www/doc/classes/String.src/M000271.html +31 -0
- data/pub/www/doc/classes/String.src/M000272.html +30 -0
- data/pub/www/doc/classes/String.src/M000273.html +34 -0
- data/pub/www/doc/classes/String.src/M000274.html +40 -0
- data/pub/www/doc/classes/String.src/M000275.html +30 -0
- data/pub/www/doc/classes/String.src/M000276.html +30 -0
- data/pub/www/doc/classes/String.src/M000277.html +37 -0
- data/pub/www/doc/classes/String.src/M000278.html +42 -0
- data/pub/www/doc/classes/String.src/M000279.html +32 -0
- data/pub/www/doc/classes/String.src/M000280.html +31 -0
- data/pub/www/doc/classes/String.src/M000281.html +34 -0
- data/pub/www/doc/classes/String.src/M000282.html +36 -0
- data/pub/www/doc/classes/String.src/M000283.html +30 -0
- data/pub/www/doc/classes/String.src/M000284.html +36 -0
- data/pub/www/doc/classes/String.src/M000285.html +34 -0
- data/pub/www/doc/classes/String.src/M000287.html +39 -0
- data/pub/www/doc/classes/String.src/M000288.html +83 -0
- data/pub/www/doc/classes/String.src/M000290.html +30 -0
- data/pub/www/doc/classes/String.src/M000291.html +36 -0
- data/pub/www/doc/classes/String.src/M000292.html +30 -0
- data/pub/www/doc/classes/String.src/M000293.html +38 -0
- data/pub/www/doc/classes/String.src/M000294.html +32 -0
- data/pub/www/doc/classes/String.src/M000295.html +30 -0
- data/pub/www/doc/classes/String.src/M000296.html +30 -0
- data/pub/www/doc/classes/String.src/M000297.html +30 -0
- data/pub/www/doc/classes/String.src/M000298.html +30 -0
- data/pub/www/doc/classes/String.src/M000299.html +30 -0
- data/pub/www/doc/classes/String.src/M000300.html +30 -0
- data/pub/www/doc/classes/String.src/M000301.html +30 -0
- data/pub/www/doc/classes/String.src/M000302.html +30 -0
- data/pub/www/doc/classes/String.src/M000303.html +30 -0
- data/pub/www/doc/classes/String.src/M000304.html +30 -0
- data/pub/www/doc/classes/String.src/M000305.html +32 -0
- data/pub/www/doc/classes/String.src/M000306.html +30 -0
- data/pub/www/doc/classes/String.src/M000307.html +32 -0
- data/pub/www/doc/classes/String.src/M000308.html +31 -0
- data/pub/www/doc/classes/String.src/M000309.html +30 -0
- data/pub/www/doc/classes/String.src/M000310.html +31 -0
- data/pub/www/doc/classes/String.src/M000312.html +32 -0
- data/pub/www/doc/classes/String.src/M000313.html +40 -0
- data/pub/www/doc/classes/String.src/M000314.html +31 -0
- data/pub/www/doc/classes/String.src/M000316.html +33 -0
- data/pub/www/doc/classes/String.src/M000317.html +37 -0
- data/pub/www/doc/classes/String.src/M000318.html +30 -0
- data/pub/www/doc/classes/String.src/M000319.html +32 -0
- data/pub/www/doc/classes/String.src/M000320.html +33 -0
- data/pub/www/doc/classes/String.src/M000321.html +34 -0
- data/pub/www/doc/classes/String.src/M000322.html +34 -0
- data/pub/www/doc/classes/String.src/M000323.html +30 -0
- data/pub/www/doc/classes/String.src/M000324.html +34 -0
- data/pub/www/doc/classes/String.src/M000325.html +34 -0
- data/pub/www/doc/classes/String.src/M000326.html +30 -0
- data/pub/www/doc/classes/String.src/M000327.html +32 -0
- data/pub/www/doc/classes/String.src/M000328.html +42 -0
- data/pub/www/doc/classes/String.src/M000329.html +34 -0
- data/pub/www/doc/classes/String.src/M000330.html +30 -0
- data/pub/www/doc/classes/String.src/M000331.html +35 -0
- data/pub/www/doc/classes/String.src/M000332.html +30 -0
- data/pub/www/doc/classes/String.src/M000333.html +31 -0
- data/pub/www/doc/classes/String.src/M000334.html +43 -0
- data/pub/www/doc/classes/String.src/M000335.html +30 -0
- data/pub/www/doc/classes/String.src/M000336.html +30 -0
- data/pub/www/doc/classes/String.src/M000337.html +30 -0
- data/pub/www/doc/classes/String.src/M000338.html +32 -0
- data/pub/www/doc/classes/String.src/M000339.html +30 -0
- data/pub/www/doc/classes/String.src/M000340.html +44 -0
- data/pub/www/doc/classes/String.src/M000341.html +31 -0
- data/pub/www/doc/classes/String.src/M000342.html +35 -0
- data/pub/www/doc/classes/String.src/M000343.html +39 -0
- data/pub/www/doc/classes/String.src/M000344.html +51 -0
- data/pub/www/doc/classes/String.src/M000345.html +30 -0
- data/pub/www/doc/classes/String.src/M000346.html +36 -0
- data/pub/www/doc/classes/String.src/M000347.html +30 -0
- data/pub/www/doc/classes/String.src/M000348.html +40 -0
- data/pub/www/doc/classes/String.src/M000349.html +36 -0
- data/pub/www/doc/classes/String.src/M000350.html +30 -0
- data/pub/www/doc/classes/String.src/M000352.html +33 -0
- data/pub/www/doc/classes/String.src/M000353.html +33 -0
- data/pub/www/doc/classes/String.src/M000354.html +30 -0
- data/pub/www/doc/classes/String.src/M000355.html +69 -0
- data/pub/www/doc/classes/String.src/M000356.html +30 -0
- data/pub/www/doc/classes/String.src/M000357.html +30 -0
- data/pub/www/doc/classes/Symbol.html +269 -0
- data/pub/www/doc/classes/Symbol.src/M000015.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000016.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000017.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000018.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000019.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000020.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000021.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000022.html +34 -0
- data/pub/www/doc/classes/Symbol.src/M000023.html +38 -0
- data/pub/www/doc/classes/Symbol.src/M000024.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000025.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000026.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000027.html +30 -0
- data/pub/www/doc/classes/Time.html +198 -0
- data/pub/www/doc/classes/Time.src/M000031.html +39 -0
- data/pub/www/doc/classes/Time.src/M000032.html +31 -0
- data/pub/www/doc/classes/Time.src/M000033.html +34 -0
- data/pub/www/doc/classes/Time.src/M000034.html +43 -0
- data/pub/www/doc/classes/Time.src/M000035.html +30 -0
- data/pub/www/doc/classes/Time.src/M000036.html +33 -0
- data/pub/www/doc/classes/TrueClass.html +105 -0
- data/pub/www/doc/classes/TrueClass.src/M000358.html +30 -0
- data/pub/www/doc/created.rid +1 -0
- data/pub/www/doc/files/COPYING.html +155 -0
- data/pub/www/doc/files/README.html +311 -0
- data/pub/www/doc/files/lib/nano/array/%5B%5D%3D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/%5B%5D_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/at_rand%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/at_rand_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/bulk_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/delete_unless_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/delete_values_at_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/delete_values_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/first%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/first%3D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/foot_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/head_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/last%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/last%3D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/last_index_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/mid_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/middle_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/pick%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/pick_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/pos_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/rand_index_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/rand_subset_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/range_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/rotate%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/rotate_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/select%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/shuffle%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/shuffle_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/slap_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/store_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/tail_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/thru_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/to_b_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/to_h_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array_rb.html +127 -0
- data/pub/www/doc/files/lib/nano/base_rb.html +124 -0
- data/pub/www/doc/files/lib/nano/binding/%3A%3Aof_caller_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/%5B%5D%3D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/%5B%5D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/__DIR___rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/__FILE___rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/__LINE___rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/call_stack_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/binding/called_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/caller_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/defined%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/eval_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/binding/local_variables_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/method_name_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/of_caller_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/self_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding_rb.html +109 -0
- data/pub/www/doc/files/lib/nano/class/by_name_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/class/descendents_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/class/remove_descendents_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/class/remove_subclasses_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/class/subclasses_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/class_rb.html +100 -0
- data/pub/www/doc/files/lib/nano/comparable/at_least_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/comparable/at_most_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/comparable/cap_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/comparable/clip_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/comparable/cmp_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/comparable_rb.html +100 -0
- data/pub/www/doc/files/lib/nano/continuation/%3A%3Acreate_rb.html +146 -0
- data/pub/www/doc/files/lib/nano/continuation_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/date/days_in_month_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/date/days_of_month_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/date/stamp_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/date/to_date_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/date/to_s_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/date/to_time_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/date_rb.html +101 -0
- data/pub/www/doc/files/lib/nano/dir/%3A%3Als_r_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/dir/%3A%3Arecurse_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/dir_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/enumerable/%25_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/%2A%2A_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/%3A%3Acombinations_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/%3A%3Across_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/collect_with_counter_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/collect_with_index_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/commonality_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/compact_collect_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/compact_map_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/cross_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/eF_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/each_by_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/each_combination_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/each_permutation_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/each_slice_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/each_unique_pair_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/entropy_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/enumerable/filter_collect_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/filter_map_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/find_collisions_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/frequency_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/graph_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/ideal_entropy_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/map_with_counter_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/map_with_index_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/none%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/occur_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/one%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/partition_by_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/probability_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/to_h_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/unique_by_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable_rb.html +127 -0
- data/pub/www/doc/files/lib/nano/file/%3A%3Acreate_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/file/%3A%3Aopen_as_string_rb.html +120 -0
- data/pub/www/doc/files/lib/nano/file/%3A%3Asplit_all_rb.html +101 -0
- data/pub/www/doc/files/lib/nano/file_rb.html +98 -0
- data/pub/www/doc/files/lib/nano/fileutils/head_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/fileutils/safe_ln_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/fileutils/slice_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/fileutils/tail_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/fileutils/wc_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/fileutils/whereis_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/fileutils/which_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/fileutils_rb.html +102 -0
- data/pub/www/doc/files/lib/nano/float/approx?_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/float/round_at_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/float/round_off_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/float/round_to_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/float_rb.html +99 -0
- data/pub/www/doc/files/lib/nano/full_rb.html +448 -0
- data/pub/www/doc/files/lib/nano/hash/%3A%3Azipnew_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/%3C%3C_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/%5B%5D%3D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/%5B%5D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/alias%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/assert_has_keys_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/assert_has_only_keys_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/at_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/collate%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/collate_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/delete_unless_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/each_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/graph%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/has_keys%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/has_only_keys%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/inverse_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/join_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/keys_to_s%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/keys_to_s_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/keys_to_sym%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/keys_to_sym_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/rand_key_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/rand_pair_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/rand_value_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/replace_each_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/shuffle%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/shuffle_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/slice_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/swap%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/swapkey%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/to_h_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/to_ostruct_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/to_ostruct_recurse_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/traverse%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/traverse_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/update_each_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/weave_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash_rb.html +129 -0
- data/pub/www/doc/files/lib/nano/inflect_rb.html +117 -0
- data/pub/www/doc/files/lib/nano/integer/even%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/integer/fact_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/integer/factorial_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/integer/multiple%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/integer/odd%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/integer/ordinal_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/integer/times_collect_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/integer/times_map_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/integer_rb.html +103 -0
- data/pub/www/doc/files/lib/nano/kernel/__require___rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/autoreload_glob_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/autoreload_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/bug%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/call_stack_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/called_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/demo_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/fn_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/get_by_id_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/here_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/maybe_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/method_name_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/nack_rb.html +98 -0
- data/pub/www/doc/files/lib/nano/kernel/p_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/require_all_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/require_esc_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/kernel/require_local_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/require_nano_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/kernel/resc_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/returning_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/silence_warnings_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/kernel/silently_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/warn_with_line_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel_rb.html +118 -0
- data/pub/www/doc/files/lib/nano/logger/format_message_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/logger/format_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/matchdata/match_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/matchdata/matchset_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/matchdata/matchtree_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/matchdata_rb.html +98 -0
- data/pub/www/doc/files/lib/nano/module/abstract_rb.html +105 -0
- data/pub/www/doc/files/lib/nano/module/alias_module_function_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/attr_setter_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/attr_tester_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/basename_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/by_name_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/cattr_accessor_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/module/cattr_reader_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/module/cattr_writer_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/module/clone_removing_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/clone_renaming_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/clone_using_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/dirname_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/equate_on_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/generate_instance_method_name_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/include_as_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/initializer_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/instance_methods_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/integrate_rb.html +100 -0
- data/pub/www/doc/files/lib/nano/module/memoize_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/modspace_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/module/namespace_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/redef_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/redefine_method_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/redirect_method_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/redirect_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/remove_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/rename_method_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/rename_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/sattr_accessor_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/sattr_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/module/sattr_reader_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/sattr_setter_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/sattr_tester_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/sattr_writer_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/sort_on_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/undef_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/wrap_method_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/wrap_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module_rb.html +129 -0
- data/pub/www/doc/files/lib/nano/nil_as_emptiness_rb.html +117 -0
- data/pub/www/doc/files/lib/nano/nilclass/%5B%5D_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/nilclass/empty%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/nilclass/include%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/nilclass/length_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/nilclass/method_missing_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/nilclass/size_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/nilclass/to_f_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/nilclass/to_h_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/nilclass_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/numeric/ceil_multiple_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/numeric/distance_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/numeric/pred_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/numeric/succ_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/numeric/to_b_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/numeric_rb.html +100 -0
- data/pub/www/doc/files/lib/nano/object/__class___rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/assign_from_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/object/assign_with_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/object/bool%3F_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/object/constant_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/copy_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/deep_copy_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/false%3F_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/object/generate_method_name_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/in%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/metaclass_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/method%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/methods_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/object/new_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/object_class_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/object_hexid_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/set_from_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/object/set_with_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/object/singleton_class_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/special_class_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/super_method_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/super_send_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/superup_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/object/to_b_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/to_bool_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/true%3F_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/object/val%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/with_accessor_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/object/with_reader_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/object/with_writer_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/object_rb.html +123 -0
- data/pub/www/doc/files/lib/nano/ostruct/%5B%5D%3D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/ostruct/%5B%5D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/ostruct/ostruct_update_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/ostruct_rb.html +98 -0
- data/pub/www/doc/files/lib/nano/pathname/ascend_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/pathname/descend_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/pathname_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/proc/%2A_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/proc/compose_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/proc/to_method_rb.html +113 -0
- data/pub/www/doc/files/lib/nano/proc/to_method_rb.src/M000001.html +40 -0
- data/pub/www/doc/files/lib/nano/proc_rb.html +98 -0
- data/pub/www/doc/files/lib/nano/random_rb.html +120 -0
- data/pub/www/doc/files/lib/nano/range/to_r_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/range/to_range_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/range/umbrella_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/range/within%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/range_rb.html +99 -0
- data/pub/www/doc/files/lib/nano/regexp/arity_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/regexp/to_re_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/regexp/to_regexp_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/regexp_rb.html +98 -0
- data/pub/www/doc/files/lib/nano/string/%3A%3Apatterns_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/%3A%3Arand_letter_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/%3A%3Arandom_rb.html +99 -0
- data/pub/www/doc/files/lib/nano/string/align_center_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/align_left_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/align_right_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/at_rand%21_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/at_rand_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/at_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/basename_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/blank%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/bracket%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/bracket_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/brief_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/bytes_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/camelcase_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/camelize_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/capitalized%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/chars_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/cmp_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/demodulize_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/dequote_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/downcase%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/dresner%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/dresner_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/each_char_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/each_word_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/first%21_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/first%3D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/first_char_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/first_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/fold_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/frequency_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/humanize_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/indent_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/index_all_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/last%21_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/last%3D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/last_char_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/last_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/line_wrap_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/lines_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/lowercase%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/margin_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/mscan_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/natcmp_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/nchar_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/ordinal_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/plural_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/pop_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/probability_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/push_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/quote_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/rand_byte%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/rand_byte_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/rand_index_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/range_all_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/range_of_line_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/range_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/shatter_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/shift_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/shuffle_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/similarity_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/singular_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/slap_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/soundex_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/succ_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/tab_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/tabto_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/to_a_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/to_arr_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/to_b_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/to_const_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/to_date_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/to_proc_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/to_re_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/to_time_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/underscore_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/unix_crypt%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/unix_crypt_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/unpack_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/unshift_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/upcase%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/uppercase%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/whitespace%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/word_filter%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/word_filter_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/word_wrap%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/word_wrap_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/words_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string_as_array_rb.html +109 -0
- data/pub/www/doc/files/lib/nano/string_rb.html +183 -0
- data/pub/www/doc/files/lib/nano/symbol/camelcase_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/symbol/camelize_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/symbol/capitalized%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/symbol/downcase%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/symbol/not_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/symbol/pad_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/symbol/succ_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/symbol/to_const_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/symbol/to_proc_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/symbol/to_str_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/symbol/underscore_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/symbol/upcase%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/symbol_rb.html +107 -0
- data/pub/www/doc/files/lib/nano/time/%3A%3Adays_extrema_rb.html +114 -0
- data/pub/www/doc/files/lib/nano/time/change_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/time/elapse_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/time/stamp_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/time/to_date_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/time/to_s_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/time/to_time_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/time_rb.html +101 -0
- data/pub/www/doc/files/lib/nano_rb.html +96 -0
- data/pub/www/doc/files/lib/nanoreq_rb.html +97 -0
- data/pub/www/doc/files/lib/nanosys_rb.html +97 -0
- data/pub/www/doc/fr_class_index.html +80 -0
- data/pub/www/doc/fr_file_index.html +476 -0
- data/pub/www/doc/fr_method_index.html +465 -0
- data/pub/www/doc/index.html +28 -0
- data/pub/www/doc/rdoc-style.css +175 -0
- data/pub/www/images/atom_logo_sm.jpg +0 -0
- data/pub/www/images/gray.jpg +0 -0
- data/pub/www/images/ruby-lg.png +0 -0
- data/pub/www/images/ruby.gif +0 -0
- data/pub/www/index.html +195 -0
- data/pub/www/methods.html +439 -0
- data/setup.rb +1361 -0
- data/test/array/tc_array.rb +324 -0
- data/test/binding/tc_binding.rb +108 -0
- data/test/binding/tc_binding_call_stack.rb +12 -0
- data/test/binding/tc_binding_of_caller.rb +20 -0
- data/test/class/tc_class.rb +48 -0
- data/test/comparable/tc_comparable.rb +62 -0
- data/test/continuation/tc_continuation.rb +12 -0
- data/test/date/tc_date.rb +54 -0
- data/test/dir/TEST/A.txt +0 -0
- data/test/dir/TEST/A/B.txt +0 -0
- data/test/dir/TEST/A/B/C.txt +0 -0
- data/test/dir/tc_dir.rb +31 -0
- data/test/enumerable/tc_enumerable.rb +370 -0
- data/test/file/TEST1 +1 -0
- data/test/file/TEST2 +1 -0
- data/test/file/tc_file.rb +41 -0
- data/test/fileutils/tc_fileutils.rb +77 -0
- data/test/fileutils/tc_wc.rb +48 -0
- data/test/fileutils/tc_whereis.rb +36 -0
- data/test/fileutils/tc_which.rb +41 -0
- data/test/fileutils/test_file.txt +25 -0
- data/test/fileutils/test_file2.txt +25 -0
- data/test/float/tc_float.rb +64 -0
- data/test/hash/tc_each.rb +25 -0
- data/test/hash/tc_hash.rb +296 -0
- data/test/hash/tc_slice-op.rb +98 -0
- data/test/integer/tc_integer.rb +77 -0
- data/test/kernel/TEST/test.rb +4 -0
- data/test/kernel/tc_kernel.rb +165 -0
- data/test/matchdata/tc_matchdata.rb +62 -0
- data/test/module/tc_abstract.rb +24 -0
- data/test/module/tc_cloning.rb +44 -0
- data/test/module/tc_instance_methods.rb +45 -0
- data/test/module/tc_memoize.rb +38 -0
- data/test/module/tc_module.rb +349 -0
- data/test/nilclass/tc_method_missing.rb +12 -0
- data/test/nilclass/tc_nilclass.rb +59 -0
- data/test/numeric/tc_numeric.rb +61 -0
- data/test/object/tc_methods.rb +39 -0
- data/test/object/tc_object.rb +299 -0
- data/test/object/tc_superup.rb +64 -0
- data/test/object/tc_val%3F.rb +33 -0
- data/test/ostruct/tc_ostruct.rb +35 -0
- data/test/proc/tc_proc.rb +40 -0
- data/test/range/tc_range.rb +49 -0
- data/test/regexp/tc_regexp.rb +38 -0
- data/test/string/tc_at.rb +25 -0
- data/test/string/tc_basename.rb +23 -0
- data/test/string/tc_demodulize.rb +23 -0
- data/test/string/tc_margin.rb +105 -0
- data/test/string/tc_pop.rb +24 -0
- data/test/string/tc_push.rb +24 -0
- data/test/string/tc_quote.rb +33 -0
- data/test/string/tc_shift.rb +24 -0
- data/test/string/tc_slap.rb +24 -0
- data/test/string/tc_soundex.rb +24 -0
- data/test/string/tc_string.rb +705 -0
- data/test/string/tc_to_a.rb +13 -0
- data/test/string/tc_unshift.rb +23 -0
- data/test/symbol/tc_symbol.rb +105 -0
- data/test/tc_fixtures/filelist/testfile.txt +1 -0
- data/test/tc_fixtures/filelist/testfile2.txt +1 -0
- data/test/tc_nil_as_emptiness.rb +20 -0
- data/test/time/tc_time.rb +70 -0
- metadata +1546 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'nano/string/to_const'
|
2
|
+
class Symbol
|
3
|
+
# Get a constant by a given symbol name.
|
4
|
+
#
|
5
|
+
# :Class.to_const #=> Class
|
6
|
+
#
|
7
|
+
# Note this method is not as verstile as it should be,
|
8
|
+
# since it can not access contants relative to the current
|
9
|
+
# execution context. But without a binding_of_caller that
|
10
|
+
# does not seem possible.
|
11
|
+
def to_const
|
12
|
+
to_s.to_const
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#--
|
2
|
+
# Credit goes to Florian Gross (flgr).
|
3
|
+
#++
|
4
|
+
class Symbol
|
5
|
+
# Turn a symbol into a proc calling the method to
|
6
|
+
# which it refers.
|
7
|
+
#
|
8
|
+
# up = :upcase.to_proc
|
9
|
+
# up.call("hello") #=> HELLO
|
10
|
+
#
|
11
|
+
# More useful is the fact that this allows <tt>&</tt>
|
12
|
+
# to be used to coerce Symbol into Proc.
|
13
|
+
#
|
14
|
+
# %w{foo bar qux}.map(&:upcase) #=> ["FOO","BAR","QUX"]
|
15
|
+
# [1, 2, 3].inject(&:+) #=> 6
|
16
|
+
#
|
17
|
+
def to_proc
|
18
|
+
lambda { |obj, *args| obj.send(self, *args) }
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class Symbol
|
2
|
+
# Symbol's really are just simplified strings.
|
3
|
+
# Thus #to_str seems quite reasonable.
|
4
|
+
# This uses the Kernal#String method.
|
5
|
+
#--
|
6
|
+
# Maybe just change to #to_s?
|
7
|
+
# BTW: This would be lots faster, I bet, if implemented in core.
|
8
|
+
#++
|
9
|
+
def to_str
|
10
|
+
String( self )
|
11
|
+
end
|
12
|
+
end
|
data/lib/nano/time.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# This method calculates the days extrema given two time objects.
|
2
|
+
# start time is the given time1 at 00:00:00
|
3
|
+
# end time is the given time2 at 23:59:59:999
|
4
|
+
#
|
5
|
+
# Input:
|
6
|
+
# - the two times (if only time1 is provided then you get an extrema
|
7
|
+
# of exactly one day extrema.
|
8
|
+
#
|
9
|
+
# Output:
|
10
|
+
# - the time range. you can get the start/end times using
|
11
|
+
# range methods.
|
12
|
+
#
|
13
|
+
#--
|
14
|
+
# Credit goes to George Moschovitis
|
15
|
+
#++
|
16
|
+
def Time.days_extrema(time1, time2=nil)
|
17
|
+
time2 = time1 if (not time2.valid? Time)
|
18
|
+
time2 = NEVER if (time2 <= time1)
|
19
|
+
start_time = Time.self.start_of_day(time1)
|
20
|
+
end_time = self.end_of_day(time2)
|
21
|
+
return (start_time..end_time)
|
22
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class Time
|
2
|
+
|
3
|
+
# Returns a new Time where one or more of the elements have been changed according
|
4
|
+
# to the +options+ parameter. The time options (hour, minute, sec, usec) reset
|
5
|
+
# cascadingly, so if only the hour is passed, then minute, sec, and usec is set to 0.
|
6
|
+
# If the hour and minute is passed, then sec and usec is set to 0.
|
7
|
+
def change(options)
|
8
|
+
opts={}; options.each_pair{ |k,v| opts[k] = v.to_i }
|
9
|
+
self.class.send( self.utc? ? :utc : :local,
|
10
|
+
opts[:year] || self.year,
|
11
|
+
opts[:month] || self.month,
|
12
|
+
opts[:day] || self.day,
|
13
|
+
opts[:hour] || self.hour,
|
14
|
+
opts[:min] || (opts[:hour] ? 0 : self.min),
|
15
|
+
opts[:sec] || ((opts[:hour] || opts[:min]) ? 0 : self.sec),
|
16
|
+
opts[:usec] || ((opts[:hour] || opts[:min] || opts[:usec]) ? 0 : self.usec)
|
17
|
+
)
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
class Time
|
3
|
+
|
4
|
+
# Tracks the elapse time of a code block.
|
5
|
+
#
|
6
|
+
# Time.elapse { sleep 1 } #=> 0.999188899993896
|
7
|
+
#
|
8
|
+
#--
|
9
|
+
# Credit goes to Hal Fulton.
|
10
|
+
#++
|
11
|
+
def self.elapse
|
12
|
+
raise "Need block" unless block_given?
|
13
|
+
t0 = Time.now.to_f
|
14
|
+
yield
|
15
|
+
Time.now.to_f - t0
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
|
2
|
+
class Time
|
3
|
+
|
4
|
+
def stamp( fmt = nil )
|
5
|
+
case fmt
|
6
|
+
when :db, :dbase, :database, :utc
|
7
|
+
strftime("%Y-%m-%d %H:%M:%S")
|
8
|
+
when :short
|
9
|
+
strftime("%e %b %H:%M")
|
10
|
+
when :long
|
11
|
+
strftime("%B %e, %Y %H:%M")
|
12
|
+
when :day1st, :dmYHM # TODO generalize
|
13
|
+
strftime("%d-%m-%Y %H:%M")
|
14
|
+
when String
|
15
|
+
strftime( fmt ).strip
|
16
|
+
else
|
17
|
+
strftime("%a %b %d %H:%M:%S %Z %Y")
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
data/lib/nanoreq.rb
ADDED
data/lib/nanosys.rb
ADDED
@@ -0,0 +1,203 @@
|
|
1
|
+
require 'rbconfig'
|
2
|
+
require 'nano/base'
|
3
|
+
|
4
|
+
#
|
5
|
+
# This module defines a new #require method and is appended
|
6
|
+
# to Object, allowing it to slip in prior to the original
|
7
|
+
# Kernel#require call.
|
8
|
+
#
|
9
|
+
module Kernel::NanoKernel
|
10
|
+
FILE_ESC_RE = %r{[^a-zA-Z_0-9./-]}
|
11
|
+
|
12
|
+
def require( fpath )
|
13
|
+
begin
|
14
|
+
super( fpath )
|
15
|
+
rescue LoadError => e
|
16
|
+
epath = URI.escape( fpath , FILE_ESC_RE )
|
17
|
+
raise e unless super( epath )
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
class Object
|
24
|
+
include NanoKernel
|
25
|
+
end
|
26
|
+
|
27
|
+
#
|
28
|
+
# The NanoSystem module provides meta-information
|
29
|
+
# on all nano-methods.
|
30
|
+
#
|
31
|
+
class NanoSystem
|
32
|
+
|
33
|
+
REQUIRE_DIR = 'nano'
|
34
|
+
DATA_DIR = File.join( Config::CONFIG['datadir'], 'site_ruby/nano' )
|
35
|
+
|
36
|
+
# class_level
|
37
|
+
|
38
|
+
class << self
|
39
|
+
alias __new__ new
|
40
|
+
def new
|
41
|
+
raise NoMethodError, 'cannot instantiate auto-singleton class'
|
42
|
+
end
|
43
|
+
private :new
|
44
|
+
|
45
|
+
def method_missing( meth, *args, &blk )
|
46
|
+
@instance ||= __new__
|
47
|
+
@instance.send( meth, *args, &blk )
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# instance_level
|
52
|
+
|
53
|
+
attr_reader :base, :full, :noauto, :unsafe
|
54
|
+
|
55
|
+
def initialize
|
56
|
+
Object.send( :require, 'yaml' )
|
57
|
+
Object.send( :require, 'rbconfig' )
|
58
|
+
load
|
59
|
+
end
|
60
|
+
|
61
|
+
# Load nano data
|
62
|
+
def load
|
63
|
+
load_index
|
64
|
+
load_info
|
65
|
+
end
|
66
|
+
|
67
|
+
private
|
68
|
+
|
69
|
+
# Load method indexes
|
70
|
+
def load_index
|
71
|
+
f = File.join( DATA_DIR, 'index.yaml' )
|
72
|
+
@index = YAML.load( File.new(f) )
|
73
|
+
end
|
74
|
+
|
75
|
+
# Load meta info
|
76
|
+
def load_info
|
77
|
+
loadfn = lambda { |name|
|
78
|
+
farr = nil
|
79
|
+
fn = File.join( DATA_DIR, name )
|
80
|
+
File.open(fn) { |f| farr = f.gets(nil).split("\n") }
|
81
|
+
farr.collect! { |line|
|
82
|
+
l = line.strip.chomp('.rb')
|
83
|
+
(l.empty? or l[0,1] == '#') ? nil : l
|
84
|
+
}
|
85
|
+
farr.compact
|
86
|
+
}
|
87
|
+
@base = loadfn.call( 'base' )
|
88
|
+
@noauto = loadfn.call( 'noauto' )
|
89
|
+
@unsafe = loadfn.call( 'unsafe' )
|
90
|
+
@full = calc_full
|
91
|
+
true
|
92
|
+
end
|
93
|
+
|
94
|
+
# Full set of require files (files minus noauto and unsafe)
|
95
|
+
def calc_full
|
96
|
+
sf = files.dup
|
97
|
+
noauto.each do |f|
|
98
|
+
if f.include?('*')
|
99
|
+
re = %r"#{f.gsub('*','.*')}"
|
100
|
+
sf.reject!{ |x| x =~ re }
|
101
|
+
elsif sf.include?(f)
|
102
|
+
sf.delete f
|
103
|
+
end
|
104
|
+
end
|
105
|
+
unsafe.each do |f|
|
106
|
+
if f.include?('*')
|
107
|
+
re = %r"#{f.gsub('*','.*')}"
|
108
|
+
sf.reject!{ |x| x =~ re }
|
109
|
+
elsif sf.include?(f)
|
110
|
+
sf.delete f
|
111
|
+
end
|
112
|
+
end
|
113
|
+
sf.sort
|
114
|
+
end
|
115
|
+
|
116
|
+
public
|
117
|
+
|
118
|
+
# top level storage
|
119
|
+
def index
|
120
|
+
@index
|
121
|
+
end
|
122
|
+
|
123
|
+
# iterate through classes { |classname, methodhash| ... }
|
124
|
+
def each( &blk )
|
125
|
+
self.index.each &blk
|
126
|
+
end
|
127
|
+
|
128
|
+
# Returns a nano method lookup hash for given classname.
|
129
|
+
def []( classname )
|
130
|
+
index[classname.to_s.downcase]
|
131
|
+
end
|
132
|
+
|
133
|
+
# Returns list of class/module names with available nano methods.
|
134
|
+
#
|
135
|
+
def classes
|
136
|
+
index.keys.sort
|
137
|
+
end
|
138
|
+
alias_method :modules, :classes
|
139
|
+
|
140
|
+
# # Returns a list of all nano method names for a given class/module name.
|
141
|
+
# # If no class/module name is give returns a list of all nano methods
|
142
|
+
# # in the format of '<classname>#<methname>' for instance methods, and
|
143
|
+
# # '<classname>.<methname>' for class/module methods.
|
144
|
+
# def method_list( classname=nil )
|
145
|
+
# lst = nil
|
146
|
+
# if classname
|
147
|
+
# lst = store[classname.to_s].keys if store.include? classname.to_s
|
148
|
+
# else
|
149
|
+
# lst = []
|
150
|
+
# store.each { |classname, methmap|
|
151
|
+
# methmap.each { |methname, path|
|
152
|
+
# md = /^(self|#{classname})[.]/.match methname
|
153
|
+
# lst << ( md ? "#{classname}.#{md.post_match}" : "#{classname}##{methname}" )
|
154
|
+
# }
|
155
|
+
# }
|
156
|
+
# end
|
157
|
+
# lst.sort
|
158
|
+
# end
|
159
|
+
|
160
|
+
def files( classname=nil )
|
161
|
+
lst = []
|
162
|
+
if classname
|
163
|
+
index[classname.to_s.downcase].each { |methname|
|
164
|
+
lst << "#{classname}/#{methname}"
|
165
|
+
}
|
166
|
+
else
|
167
|
+
index.each { |classname, methlist|
|
168
|
+
methlist.each { |methname|
|
169
|
+
lst << "#{classname}/#{methname}"
|
170
|
+
}
|
171
|
+
}
|
172
|
+
end
|
173
|
+
lst.uniq.sort
|
174
|
+
end
|
175
|
+
|
176
|
+
# Require method nano(s) for given class/module.
|
177
|
+
#
|
178
|
+
def require( klass, *meths )
|
179
|
+
classname = klass.name.downcase
|
180
|
+
raise "unknown class #{klass}" unless self.index.has_key?( classname )
|
181
|
+
success = true
|
182
|
+
meths.each do |m|
|
183
|
+
raise "unknown nano-method #{m}" unless self[ classname ].include?( m.to_s )
|
184
|
+
f = "#{NanoSystem::REQUIRE_DIR}/#{classname}/#{m}"
|
185
|
+
r = Object.send( :require, f )
|
186
|
+
success = success && r
|
187
|
+
end
|
188
|
+
success
|
189
|
+
end
|
190
|
+
|
191
|
+
end # module NanoSystem
|
192
|
+
|
193
|
+
|
194
|
+
class Module
|
195
|
+
# Require method nano(s) for the class/module.
|
196
|
+
#
|
197
|
+
# String.use :humanize, last=
|
198
|
+
#
|
199
|
+
def use( *meths )
|
200
|
+
NanoSystem.require( self, *meths )
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
@@ -0,0 +1,794 @@
|
|
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/nano/array/%5B%5D%3D_rb.html">lib/nano/array/%5B%5D%3D.rb</a>
|
61
|
+
<a href="../files/lib/nano/array/at_rand%21_rb.html">lib/nano/array/at_rand%21.rb</a>
|
62
|
+
<a href="../files/lib/nano/array/rand_index_rb.html">lib/nano/array/rand_index.rb</a>
|
63
|
+
<a href="../files/lib/nano/array/first%21_rb.html">lib/nano/array/first%21.rb</a>
|
64
|
+
<a href="../files/lib/nano/array/first%3D_rb.html">lib/nano/array/first%3D.rb</a>
|
65
|
+
<a href="../files/lib/nano/array/rand_subset_rb.html">lib/nano/array/rand_subset.rb</a>
|
66
|
+
<a href="../files/lib/nano/array/select%21_rb.html">lib/nano/array/select%21.rb</a>
|
67
|
+
<a href="../files/lib/nano/array/slap_rb.html">lib/nano/array/slap.rb</a>
|
68
|
+
<a href="../files/lib/nano/array/tail_rb.html">lib/nano/array/tail.rb</a>
|
69
|
+
<a href="../files/lib/nano/array/%5B%5D_rb.html">lib/nano/array/%5B%5D.rb</a>
|
70
|
+
<a href="../files/lib/nano/array/delete_unless_rb.html">lib/nano/array/delete_unless.rb</a>
|
71
|
+
<a href="../files/lib/nano/array/delete_values_rb.html">lib/nano/array/delete_values.rb</a>
|
72
|
+
<a href="../files/lib/nano/array/rotate%21_rb.html">lib/nano/array/rotate%21.rb</a>
|
73
|
+
<a href="../files/lib/nano/array/shuffle%21_rb.html">lib/nano/array/shuffle%21.rb</a>
|
74
|
+
<a href="../files/lib/nano/array/last_index_rb.html">lib/nano/array/last_index.rb</a>
|
75
|
+
<a href="../files/lib/nano/array/thru_rb.html">lib/nano/array/thru.rb</a>
|
76
|
+
<a href="../files/lib/nano/array/at_rand_rb.html">lib/nano/array/at_rand.rb</a>
|
77
|
+
<a href="../files/lib/nano/array/foot_rb.html">lib/nano/array/foot.rb</a>
|
78
|
+
<a href="../files/lib/nano/array/range_rb.html">lib/nano/array/range.rb</a>
|
79
|
+
<a href="../files/lib/nano/array/to_b_rb.html">lib/nano/array/to_b.rb</a>
|
80
|
+
<a href="../files/lib/nano/array/to_h_rb.html">lib/nano/array/to_h.rb</a>
|
81
|
+
<a href="../files/lib/nano/array/pick%21_rb.html">lib/nano/array/pick%21.rb</a>
|
82
|
+
<a href="../files/lib/nano/array/mid_rb.html">lib/nano/array/mid.rb</a>
|
83
|
+
<a href="../files/lib/nano/array/delete_values_at_rb.html">lib/nano/array/delete_values_at.rb</a>
|
84
|
+
<a href="../files/lib/nano/array/head_rb.html">lib/nano/array/head.rb</a>
|
85
|
+
<a href="../files/lib/nano/array/pos_rb.html">lib/nano/array/pos.rb</a>
|
86
|
+
<a href="../files/lib/nano/array/rotate_rb.html">lib/nano/array/rotate.rb</a>
|
87
|
+
<a href="../files/lib/nano/array/shuffle_rb.html">lib/nano/array/shuffle.rb</a>
|
88
|
+
<a href="../files/lib/nano/array/middle_rb.html">lib/nano/array/middle.rb</a>
|
89
|
+
<a href="../files/lib/nano/array/pick_rb.html">lib/nano/array/pick.rb</a>
|
90
|
+
<a href="../files/lib/nano/array/last%21_rb.html">lib/nano/array/last%21.rb</a>
|
91
|
+
<a href="../files/lib/nano/array/last%3D_rb.html">lib/nano/array/last%3D.rb</a>
|
92
|
+
<a href="../files/lib/nano/array/store_rb.html">lib/nano/array/store.rb</a>
|
93
|
+
<a href="../files/lib/nano/array/bulk_rb.html">lib/nano/array/bulk.rb</a>
|
94
|
+
<a href="../files/lib/nano/enumerable/each_unique_pair_rb.html">lib/nano/enumerable/each_unique_pair.rb</a>
|
95
|
+
<a href="../files/lib/nano/enumerable/each_permutation_rb.html">lib/nano/enumerable/each_permutation.rb</a>
|
96
|
+
<a href="../files/lib/nano/enumerable/each_by_rb.html">lib/nano/enumerable/each_by.rb</a>
|
97
|
+
<a href="../files/lib/nano/enumerable/each_combination_rb.html">lib/nano/enumerable/each_combination.rb</a>
|
98
|
+
<a href="../files/lib/nano/enumerable/each_slice_rb.html">lib/nano/enumerable/each_slice.rb</a>
|
99
|
+
</td>
|
100
|
+
</tr>
|
101
|
+
<tr>
|
102
|
+
<td>Parent:</td>
|
103
|
+
<td>
|
104
|
+
<a href="Object.html">
|
105
|
+
Object
|
106
|
+
</a>
|
107
|
+
</td>
|
108
|
+
</tr>
|
109
|
+
</table>
|
110
|
+
</td>
|
111
|
+
</tr>
|
112
|
+
</table>
|
113
|
+
<!-- banner header -->
|
114
|
+
|
115
|
+
<div id="bodyContent">
|
116
|
+
<div id="content">
|
117
|
+
|
118
|
+
<div class="description"><p>
|
119
|
+
Daniel Schierbeck
|
120
|
+
</p>
|
121
|
+
</div>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
<div class="sectiontitle">Methods</div>
|
126
|
+
<ul>
|
127
|
+
<li><a href="#M000046">[]</a></li>
|
128
|
+
<li><a href="#M000039">[]=</a></li>
|
129
|
+
<li><a href="#M000053">at_rand</a></li>
|
130
|
+
<li><a href="#M000040">at_rand!</a></li>
|
131
|
+
<li><a href="#M000069">bulk</a></li>
|
132
|
+
<li><a href="#M000047">delete_unless</a></li>
|
133
|
+
<li><a href="#M000048">delete_values</a></li>
|
134
|
+
<li><a href="#M000060">delete_values_at</a></li>
|
135
|
+
<li><a href="#M000072">each_combination</a></li>
|
136
|
+
<li><a href="#M000071">each_permutation</a></li>
|
137
|
+
<li><a href="#M000073">each_slice</a></li>
|
138
|
+
<li><a href="#M000070">each_unique_pair</a></li>
|
139
|
+
<li><a href="#M000042">first=</a></li>
|
140
|
+
<li><a href="#M000054">foot</a></li>
|
141
|
+
<li><a href="#M000061">head</a></li>
|
142
|
+
<li><a href="#M000067">last=</a></li>
|
143
|
+
<li><a href="#M000051">last_index</a></li>
|
144
|
+
<li><a href="#M000059">mid</a></li>
|
145
|
+
<li><a href="#M000065">middle</a></li>
|
146
|
+
<li><a href="#M000066">pick</a></li>
|
147
|
+
<li><a href="#M000058">pick!</a></li>
|
148
|
+
<li><a href="#M000062">pos</a></li>
|
149
|
+
<li><a href="#M000041">rand_index</a></li>
|
150
|
+
<li><a href="#M000043">rand_subset</a></li>
|
151
|
+
<li><a href="#M000055">range</a></li>
|
152
|
+
<li><a href="#M000063">rotate</a></li>
|
153
|
+
<li><a href="#M000049">rotate!</a></li>
|
154
|
+
<li><a href="#M000044">select!</a></li>
|
155
|
+
<li><a href="#M000064">shuffle</a></li>
|
156
|
+
<li><a href="#M000050">shuffle!</a></li>
|
157
|
+
<li><a href="#M000068">store</a></li>
|
158
|
+
<li><a href="#M000045">tail</a></li>
|
159
|
+
<li><a href="#M000052">thru</a></li>
|
160
|
+
<li><a href="#M000056">to_b</a></li>
|
161
|
+
<li><a href="#M000057">to_h</a></li>
|
162
|
+
</ul>
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
<div class="sectiontitle">Public Instance methods</div>
|
170
|
+
<div class="method">
|
171
|
+
<div class="title">
|
172
|
+
<a name="M000046"></a><b>[]</b>(*args)
|
173
|
+
[ <a href="javascript:openCode('Array.src/M000046.html')">source</a> ]
|
174
|
+
</div>
|
175
|
+
<div class="description">
|
176
|
+
<p>
|
177
|
+
Modifies #[] to also accept an array of indexes.
|
178
|
+
</p>
|
179
|
+
<pre>
|
180
|
+
a = ['a','b','c','d','e','f']
|
181
|
+
|
182
|
+
a[[1]] #=> ['b']
|
183
|
+
a[[1,1]] #=> ['b','b']
|
184
|
+
a[[1,-1]] #=> ['b','f']
|
185
|
+
a[[0,2,4]] #=> ['a','c','e']
|
186
|
+
</pre>
|
187
|
+
</div>
|
188
|
+
</div>
|
189
|
+
<div class="method">
|
190
|
+
<div class="title">
|
191
|
+
<a name="M000039"></a><b>[]=</b>(*args)
|
192
|
+
[ <a href="javascript:openCode('Array.src/M000039.html')">source</a> ]
|
193
|
+
</div>
|
194
|
+
<div class="description">
|
195
|
+
<p>
|
196
|
+
Modifies #[]= to accept an array of indexes for assignment.
|
197
|
+
</p>
|
198
|
+
<pre>
|
199
|
+
a = ['a','b','c','d']
|
200
|
+
|
201
|
+
a[[1,-1]] = ['m','n'] #=> ['m','n']
|
202
|
+
a #=> ['a','m','c','n']
|
203
|
+
</pre>
|
204
|
+
</div>
|
205
|
+
<div class="aka">
|
206
|
+
This method is also aliased as
|
207
|
+
<a href="Array.html#M000068">store</a>
|
208
|
+
</div>
|
209
|
+
</div>
|
210
|
+
<div class="method">
|
211
|
+
<div class="title">
|
212
|
+
<a name="M000053"></a><b>at_rand</b>()
|
213
|
+
[ <a href="javascript:openCode('Array.src/M000053.html')">source</a> ]
|
214
|
+
</div>
|
215
|
+
<div class="description">
|
216
|
+
<p>
|
217
|
+
Return a random element of the array.
|
218
|
+
</p>
|
219
|
+
<pre>
|
220
|
+
[1, 2, 3, 4].at_rand #=> 2
|
221
|
+
[1, 2, 3, 4].at_rand #=> 4
|
222
|
+
</pre>
|
223
|
+
</div>
|
224
|
+
</div>
|
225
|
+
<div class="method">
|
226
|
+
<div class="title">
|
227
|
+
<a name="M000040"></a><b>at_rand!</b>()
|
228
|
+
[ <a href="javascript:openCode('Array.src/M000040.html')">source</a> ]
|
229
|
+
</div>
|
230
|
+
<div class="description">
|
231
|
+
<p>
|
232
|
+
Same as <a href="Array.html#M000053">at_rand</a>, but acts in place
|
233
|
+
removing a random element from the array.
|
234
|
+
</p>
|
235
|
+
<pre>
|
236
|
+
a = [1,2,3,4]
|
237
|
+
a.at_rand! #=> 2
|
238
|
+
a #=> [1,3,4]
|
239
|
+
</pre>
|
240
|
+
</div>
|
241
|
+
</div>
|
242
|
+
<div class="method">
|
243
|
+
<div class="title">
|
244
|
+
<a name="M000069"></a><b>bulk</b>()
|
245
|
+
[ <a href="javascript:openCode('Array.src/M000069.html')">source</a> ]
|
246
|
+
</div>
|
247
|
+
<div class="description">
|
248
|
+
<p>
|
249
|
+
Returns an array of the first element upto, but not including, the last
|
250
|
+
element.
|
251
|
+
</p>
|
252
|
+
<pre>
|
253
|
+
[1,2,3].bulk #=> [1,2]
|
254
|
+
</pre>
|
255
|
+
</div>
|
256
|
+
</div>
|
257
|
+
<div class="method">
|
258
|
+
<div class="title">
|
259
|
+
<a name="M000047"></a><b>delete_unless</b>(&block)
|
260
|
+
[ <a href="javascript:openCode('Array.src/M000047.html')">source</a> ]
|
261
|
+
</div>
|
262
|
+
</div>
|
263
|
+
<div class="method">
|
264
|
+
<div class="title">
|
265
|
+
<a name="M000048"></a><b>delete_values</b>(*values)
|
266
|
+
[ <a href="javascript:openCode('Array.src/M000048.html')">source</a> ]
|
267
|
+
</div>
|
268
|
+
<div class="description">
|
269
|
+
<p>
|
270
|
+
Delete multiple values from array.
|
271
|
+
</p>
|
272
|
+
<pre>
|
273
|
+
a = [1,2,3,4]
|
274
|
+
a.delete_values(1,2) #=> [1,2]
|
275
|
+
a #=> [3,4]
|
276
|
+
</pre>
|
277
|
+
</div>
|
278
|
+
</div>
|
279
|
+
<div class="method">
|
280
|
+
<div class="title">
|
281
|
+
<a name="M000060"></a><b>delete_values_at</b>(*selectors)
|
282
|
+
[ <a href="javascript:openCode('Array.src/M000060.html')">source</a> ]
|
283
|
+
</div>
|
284
|
+
<div class="description">
|
285
|
+
<p>
|
286
|
+
Delete multiple values from array given indexes or index range.
|
287
|
+
</p>
|
288
|
+
<pre>
|
289
|
+
a = [1,2,3,4]
|
290
|
+
a.delete_values_at(1,2) #=> [2,3]
|
291
|
+
a #=> [1,4]
|
292
|
+
a = [1,2,3,4]
|
293
|
+
a.delete_values_at(0..2) #=> [1,2,3]
|
294
|
+
a #=> [4]
|
295
|
+
</pre>
|
296
|
+
</div>
|
297
|
+
</div>
|
298
|
+
<div class="method">
|
299
|
+
<div class="title">
|
300
|
+
<a name="M000072"></a><b>each_combination</b>(k=2) {|s.values_at(*idx)| ...}
|
301
|
+
[ <a href="javascript:openCode('Array.src/M000072.html')">source</a> ]
|
302
|
+
</div>
|
303
|
+
<div class="description">
|
304
|
+
<p>
|
305
|
+
Yields the block to each unique combination of <em>n</em> elements.
|
306
|
+
</p>
|
307
|
+
<pre>
|
308
|
+
a = %w|a b c d|
|
309
|
+
a.each_combination(3) do |c|
|
310
|
+
p c
|
311
|
+
end
|
312
|
+
</pre>
|
313
|
+
<p>
|
314
|
+
produces
|
315
|
+
</p>
|
316
|
+
<pre>
|
317
|
+
["a", "b", "c"]
|
318
|
+
["a", "b", "d"]
|
319
|
+
["a", "c", "d"]
|
320
|
+
["b", "c", "d"]
|
321
|
+
</pre>
|
322
|
+
</div>
|
323
|
+
</div>
|
324
|
+
<div class="method">
|
325
|
+
<div class="title">
|
326
|
+
<a name="M000071"></a><b>each_permutation</b>( prefixed=[] ) {|prefixed + self| ...}
|
327
|
+
[ <a href="javascript:openCode('Array.src/M000071.html')">source</a> ]
|
328
|
+
</div>
|
329
|
+
<div class="description">
|
330
|
+
<p>
|
331
|
+
Applys a block to each possible permutation of an array.
|
332
|
+
</p>
|
333
|
+
<pre>
|
334
|
+
%w[a b c].each_permutation { |x| puts(x.join('')) }
|
335
|
+
</pre>
|
336
|
+
<p>
|
337
|
+
produces
|
338
|
+
</p>
|
339
|
+
<pre>
|
340
|
+
abc
|
341
|
+
acb
|
342
|
+
bac
|
343
|
+
bca
|
344
|
+
cab
|
345
|
+
cba
|
346
|
+
</pre>
|
347
|
+
</div>
|
348
|
+
</div>
|
349
|
+
<div class="method">
|
350
|
+
<div class="title">
|
351
|
+
<a name="M000073"></a><b>each_slice</b>(n=nil, &yld)
|
352
|
+
[ <a href="javascript:openCode('Array.src/M000073.html')">source</a> ]
|
353
|
+
</div>
|
354
|
+
<div class="description">
|
355
|
+
<p>
|
356
|
+
Iterates over <tt>n</tt> elements at a time. If <tt>n</tt> is not given
|
357
|
+
then the arity of the block determines the slicing quantity.
|
358
|
+
</p>
|
359
|
+
<pre>
|
360
|
+
[1, 2, 3, 4].each_slice(2){ |a,b| ... }
|
361
|
+
</pre>
|
362
|
+
<p>
|
363
|
+
This is a specialized version <a
|
364
|
+
href="Enumerable.html#M000409">Enumerable#each_slice</a> but optimized
|
365
|
+
specifically for <a href="Array.html">Array</a>.
|
366
|
+
</p>
|
367
|
+
</div>
|
368
|
+
</div>
|
369
|
+
<div class="method">
|
370
|
+
<div class="title">
|
371
|
+
<a name="M000070"></a><b>each_unique_pair</b>(&yld)
|
372
|
+
[ <a href="javascript:openCode('Array.src/M000070.html')">source</a> ]
|
373
|
+
</div>
|
374
|
+
<div class="description">
|
375
|
+
<p>
|
376
|
+
Processes each unique pair (of indices, not value) in the array by yielding
|
377
|
+
them to the supplied block.
|
378
|
+
</p>
|
379
|
+
<pre>
|
380
|
+
a = [1,2,3,4]
|
381
|
+
a.each_unique_pair{ |a,b| puts a+','+b }
|
382
|
+
</pre>
|
383
|
+
<p>
|
384
|
+
produces
|
385
|
+
</p>
|
386
|
+
<pre>
|
387
|
+
1,2
|
388
|
+
1,3
|
389
|
+
1,4
|
390
|
+
2,3
|
391
|
+
2,4
|
392
|
+
3,4
|
393
|
+
</pre>
|
394
|
+
<p>
|
395
|
+
This does not guarantee the uniqueness of values. For example:
|
396
|
+
</p>
|
397
|
+
<pre>
|
398
|
+
a = [1,2,1]
|
399
|
+
a.each_unique_pair{ |a,b| puts a+','+b }
|
400
|
+
</pre>
|
401
|
+
<p>
|
402
|
+
prduces
|
403
|
+
</p>
|
404
|
+
<pre>
|
405
|
+
1,2
|
406
|
+
1,1
|
407
|
+
2,1
|
408
|
+
</pre>
|
409
|
+
<p>
|
410
|
+
This is equivalent to <tt><a
|
411
|
+
href="Array.html#M000072">each_combination</a>(2){ … }</tt>.
|
412
|
+
</p>
|
413
|
+
</div>
|
414
|
+
</div>
|
415
|
+
<div class="method">
|
416
|
+
<div class="title">
|
417
|
+
<a name="M000042"></a><b>first=</b>(x)
|
418
|
+
[ <a href="javascript:openCode('Array.src/M000042.html')">source</a> ]
|
419
|
+
</div>
|
420
|
+
<div class="description">
|
421
|
+
<p>
|
422
|
+
Change the first element.
|
423
|
+
</p>
|
424
|
+
<pre>
|
425
|
+
a = ["a","y","z"]
|
426
|
+
a.first = "x"
|
427
|
+
p a #=> ["x","y","z"]
|
428
|
+
</pre>
|
429
|
+
</div>
|
430
|
+
</div>
|
431
|
+
<div class="method">
|
432
|
+
<div class="title">
|
433
|
+
<a name="M000054"></a><b>foot</b>()
|
434
|
+
[ <a href="javascript:openCode('Array.src/M000054.html')">source</a> ]
|
435
|
+
</div>
|
436
|
+
<div class="description">
|
437
|
+
<p>
|
438
|
+
Like last, returning the last element in an array.
|
439
|
+
</p>
|
440
|
+
<pre>
|
441
|
+
[1,2,3].foot #=> [3]
|
442
|
+
</pre>
|
443
|
+
</div>
|
444
|
+
</div>
|
445
|
+
<div class="method">
|
446
|
+
<div class="title">
|
447
|
+
<a name="M000061"></a><b>head</b>()
|
448
|
+
[ <a href="javascript:openCode('Array.src/M000061.html')">source</a> ]
|
449
|
+
</div>
|
450
|
+
<div class="description">
|
451
|
+
<p>
|
452
|
+
Like first but returns the first element in a new array.
|
453
|
+
</p>
|
454
|
+
<pre>
|
455
|
+
[1,2,3].head #=> [1]
|
456
|
+
</pre>
|
457
|
+
</div>
|
458
|
+
</div>
|
459
|
+
<div class="method">
|
460
|
+
<div class="title">
|
461
|
+
<a name="M000067"></a><b>last=</b>(x)
|
462
|
+
[ <a href="javascript:openCode('Array.src/M000067.html')">source</a> ]
|
463
|
+
</div>
|
464
|
+
<div class="description">
|
465
|
+
<p>
|
466
|
+
Change the last element.
|
467
|
+
</p>
|
468
|
+
<pre>
|
469
|
+
a = [1,2,5]
|
470
|
+
a.last = 3
|
471
|
+
p a #=> [1,2,3]
|
472
|
+
</pre>
|
473
|
+
</div>
|
474
|
+
</div>
|
475
|
+
<div class="method">
|
476
|
+
<div class="title">
|
477
|
+
<a name="M000051"></a><b>last_index</b>()
|
478
|
+
[ <a href="javascript:openCode('Array.src/M000051.html')">source</a> ]
|
479
|
+
</div>
|
480
|
+
<div class="description">
|
481
|
+
<p>
|
482
|
+
Returns the last index of the array. Returns nil is array has no elements.
|
483
|
+
</p>
|
484
|
+
<pre>
|
485
|
+
[1,2,3,4,5].last_index #=> 4
|
486
|
+
</pre>
|
487
|
+
</div>
|
488
|
+
</div>
|
489
|
+
<div class="method">
|
490
|
+
<div class="title">
|
491
|
+
<a name="M000059"></a><b>mid</b>(offset=0)
|
492
|
+
[ <a href="javascript:openCode('Array.src/M000059.html')">source</a> ]
|
493
|
+
</div>
|
494
|
+
<div class="description">
|
495
|
+
<p>
|
496
|
+
Returns the middle element of an array, or the element offset from middle
|
497
|
+
if the parameter is given. Even-sized arrays, not having an exact middle,
|
498
|
+
return the middle-right element.
|
499
|
+
</p>
|
500
|
+
<pre>
|
501
|
+
[1,2,3,4,5].mid #=> 3
|
502
|
+
[1,2,3,4,5,6].mid #=> 4
|
503
|
+
[1,2,3,4,5,6].mid(-1) #=> 3
|
504
|
+
[1,2,3,4,5,6].mid(-2) #=> 2
|
505
|
+
[1,2,3,4,5,6].mid(1) #=> 5
|
506
|
+
</pre>
|
507
|
+
<p>
|
508
|
+
In other words, If there are an even number of elements the higher-indexed
|
509
|
+
of the two center elements is indexed as orgin (0).
|
510
|
+
</p>
|
511
|
+
</div>
|
512
|
+
</div>
|
513
|
+
<div class="method">
|
514
|
+
<div class="title">
|
515
|
+
<a name="M000065"></a><b>middle</b>()
|
516
|
+
[ <a href="javascript:openCode('Array.src/M000065.html')">source</a> ]
|
517
|
+
</div>
|
518
|
+
<div class="description">
|
519
|
+
<p>
|
520
|
+
Returns the middle element(s) of an array. Even-sized arrays, not having an
|
521
|
+
exact middle, returns a two-element array of the two middle elements.
|
522
|
+
</p>
|
523
|
+
<pre>
|
524
|
+
[1,2,3,4,5].mid #=> 3
|
525
|
+
[1,2,3,4,5,6].mid #=> [3,4]
|
526
|
+
</pre>
|
527
|
+
<p>
|
528
|
+
In contrast to <a href="Array.html#M000059">mid</a> which utilizes an
|
529
|
+
offset.
|
530
|
+
</p>
|
531
|
+
</div>
|
532
|
+
</div>
|
533
|
+
<div class="method">
|
534
|
+
<div class="title">
|
535
|
+
<a name="M000066"></a><b>pick</b>(n=nil)
|
536
|
+
[ <a href="javascript:openCode('Array.src/M000066.html')">source</a> ]
|
537
|
+
</div>
|
538
|
+
<div class="description">
|
539
|
+
<p>
|
540
|
+
Similar to <a href="Array.html#M000053">at_rand</a>, but will return an
|
541
|
+
array of randomly picked exclusive elements if given a number.
|
542
|
+
</p>
|
543
|
+
</div>
|
544
|
+
</div>
|
545
|
+
<div class="method">
|
546
|
+
<div class="title">
|
547
|
+
<a name="M000058"></a><b>pick!</b>(n=nil)
|
548
|
+
[ <a href="javascript:openCode('Array.src/M000058.html')">source</a> ]
|
549
|
+
</div>
|
550
|
+
<div class="description">
|
551
|
+
<p>
|
552
|
+
Similar to <a href="Array.html#M000040">at_rand!</a>, but given a number
|
553
|
+
will return an array of exclusive elements.
|
554
|
+
</p>
|
555
|
+
</div>
|
556
|
+
</div>
|
557
|
+
<div class="method">
|
558
|
+
<div class="title">
|
559
|
+
<a name="M000062"></a><b>pos</b>(i)
|
560
|
+
[ <a href="javascript:openCode('Array.src/M000062.html')">source</a> ]
|
561
|
+
</div>
|
562
|
+
<div class="description">
|
563
|
+
<p>
|
564
|
+
Returns the positive ordinal index given a cardinal position, 1 to n or -n
|
565
|
+
to -1.
|
566
|
+
</p>
|
567
|
+
<pre>
|
568
|
+
[1,2,3,4,5].pos(1) #=> 0
|
569
|
+
[1,2,3,4,5].pos(-1) #=> 4
|
570
|
+
</pre>
|
571
|
+
</div>
|
572
|
+
</div>
|
573
|
+
<div class="method">
|
574
|
+
<div class="title">
|
575
|
+
<a name="M000041"></a><b>rand_index</b>()
|
576
|
+
[ <a href="javascript:openCode('Array.src/M000041.html')">source</a> ]
|
577
|
+
</div>
|
578
|
+
</div>
|
579
|
+
<div class="method">
|
580
|
+
<div class="title">
|
581
|
+
<a name="M000043"></a><b>rand_subset</b>( number=nil, exclusive=true )
|
582
|
+
[ <a href="javascript:openCode('Array.src/M000043.html')">source</a> ]
|
583
|
+
</div>
|
584
|
+
<div class="description">
|
585
|
+
<p>
|
586
|
+
Returns a random subset of an <a href="Array.html">Array</a>. If a
|
587
|
+
<em>number</em> of elements is specified then returns that number of
|
588
|
+
elements, otherwise returns a random number of elements upto the size of
|
589
|
+
the <a href="Array.html">Array</a>.
|
590
|
+
</p>
|
591
|
+
<p>
|
592
|
+
By defualt the returned values are exclusive of each other, but if
|
593
|
+
<em>exclusive</em> is set to <tt>false</tt>, the same values can be choosen
|
594
|
+
more than once.
|
595
|
+
</p>
|
596
|
+
<p>
|
597
|
+
When <em>exclusive</em> is <tt>true</tt> (the default) and the
|
598
|
+
<em>number</em> given is greater than the size of the array, then all
|
599
|
+
values are returned.
|
600
|
+
</p>
|
601
|
+
<pre>
|
602
|
+
[1, 2, 3, 4].rand_subset(1) #=> [2]
|
603
|
+
[1, 2, 3, 4].rand_subset(4) #=> [2, 1, 3, 4]
|
604
|
+
[1, 2, 3, 4].rand_subset #=> [1, 3, 4]
|
605
|
+
[1, 2, 3, 4].rand_subset #=> [2, 3]
|
606
|
+
</pre>
|
607
|
+
</div>
|
608
|
+
</div>
|
609
|
+
<div class="method">
|
610
|
+
<div class="title">
|
611
|
+
<a name="M000055"></a><b>range</b>(a=nil,z=nil)
|
612
|
+
[ <a href="javascript:openCode('Array.src/M000055.html')">source</a> ]
|
613
|
+
</div>
|
614
|
+
<div class="description">
|
615
|
+
<p>
|
616
|
+
Returns the index range between two elements. If no elements are given,
|
617
|
+
returns the range from first to last.
|
618
|
+
</p>
|
619
|
+
<pre>
|
620
|
+
['a','b','c','d'].range #=> 0..3
|
621
|
+
['a','b','c','d'].range('b','d') #=> 1..2
|
622
|
+
</pre>
|
623
|
+
</div>
|
624
|
+
</div>
|
625
|
+
<div class="method">
|
626
|
+
<div class="title">
|
627
|
+
<a name="M000063"></a><b>rotate</b>(n=1)
|
628
|
+
[ <a href="javascript:openCode('Array.src/M000063.html')">source</a> ]
|
629
|
+
</div>
|
630
|
+
<div class="description">
|
631
|
+
<p>
|
632
|
+
Rotates an array’s elements from back to front n times.
|
633
|
+
</p>
|
634
|
+
<pre>
|
635
|
+
[1,2,3].rotate #=> [3,1,2]
|
636
|
+
[3,1,2].rotate #=> [2,3,1]
|
637
|
+
[3,1,2].rotate #=> [1,2,3]
|
638
|
+
[1,2,3].rotate(3) #=> [1,2,3]
|
639
|
+
</pre>
|
640
|
+
<p>
|
641
|
+
A negative parameter reverses the order from front to back.
|
642
|
+
</p>
|
643
|
+
<pre>
|
644
|
+
[1,2,3].rotate(-1) #=> [2,3,1]
|
645
|
+
</pre>
|
646
|
+
</div>
|
647
|
+
</div>
|
648
|
+
<div class="method">
|
649
|
+
<div class="title">
|
650
|
+
<a name="M000049"></a><b>rotate!</b>(n=1)
|
651
|
+
[ <a href="javascript:openCode('Array.src/M000049.html')">source</a> ]
|
652
|
+
</div>
|
653
|
+
<div class="description">
|
654
|
+
<p>
|
655
|
+
Same as <a href="Array.html#M000063">rotate</a>, but acts in place.
|
656
|
+
</p>
|
657
|
+
<pre>
|
658
|
+
a = [1,2,3]
|
659
|
+
a.rotate!
|
660
|
+
a #=> [3,1,2]
|
661
|
+
</pre>
|
662
|
+
</div>
|
663
|
+
</div>
|
664
|
+
<div class="method">
|
665
|
+
<div class="title">
|
666
|
+
<a name="M000044"></a><b>select!</b>( {|| ...}
|
667
|
+
[ <a href="javascript:openCode('Array.src/M000044.html')">source</a> ]
|
668
|
+
</div>
|
669
|
+
<div class="description">
|
670
|
+
<p>
|
671
|
+
As with select but modifies the <a href="Array.html">Array</a> in place.
|
672
|
+
</p>
|
673
|
+
<pre>
|
674
|
+
a = [1,2,3,4,5,6,7,8,9,10]
|
675
|
+
a.select!{ |e| e % 2 == 0 }
|
676
|
+
a #=> [2,4,6,8,10]
|
677
|
+
</pre>
|
678
|
+
</div>
|
679
|
+
</div>
|
680
|
+
<div class="method">
|
681
|
+
<div class="title">
|
682
|
+
<a name="M000064"></a><b>shuffle</b>()
|
683
|
+
[ <a href="javascript:openCode('Array.src/M000064.html')">source</a> ]
|
684
|
+
</div>
|
685
|
+
<div class="description">
|
686
|
+
<p>
|
687
|
+
Randomize the order of an array.
|
688
|
+
</p>
|
689
|
+
<pre>
|
690
|
+
[1,2,3,4].shuffle #=> [2,4,1,3]
|
691
|
+
</pre>
|
692
|
+
</div>
|
693
|
+
</div>
|
694
|
+
<div class="method">
|
695
|
+
<div class="title">
|
696
|
+
<a name="M000050"></a><b>shuffle!</b>()
|
697
|
+
[ <a href="javascript:openCode('Array.src/M000050.html')">source</a> ]
|
698
|
+
</div>
|
699
|
+
<div class="description">
|
700
|
+
<p>
|
701
|
+
As with <a href="Array.html#M000064">shuffle</a> but modifies the array in
|
702
|
+
place. The algorithm used here is known as a Fisher-Yates shuffle.
|
703
|
+
</p>
|
704
|
+
<pre>
|
705
|
+
a = [1,2,3,4]
|
706
|
+
a.shuffle!
|
707
|
+
a #=> [2,4,1,3]
|
708
|
+
</pre>
|
709
|
+
</div>
|
710
|
+
</div>
|
711
|
+
<div class="method">
|
712
|
+
<div class="title">
|
713
|
+
<a name="M000068"></a><b>store</b>(*args)
|
714
|
+
</div>
|
715
|
+
<div class="description">
|
716
|
+
<p>
|
717
|
+
Alias for #[]=
|
718
|
+
</p>
|
719
|
+
</div>
|
720
|
+
</div>
|
721
|
+
<div class="method">
|
722
|
+
<div class="title">
|
723
|
+
<a name="M000045"></a><b>tail</b>()
|
724
|
+
[ <a href="javascript:openCode('Array.src/M000045.html')">source</a> ]
|
725
|
+
</div>
|
726
|
+
<div class="description">
|
727
|
+
<p>
|
728
|
+
Returns an array from second element to last element.
|
729
|
+
</p>
|
730
|
+
<pre>
|
731
|
+
[1,2,3].tail #=> [2,3]
|
732
|
+
</pre>
|
733
|
+
</div>
|
734
|
+
</div>
|
735
|
+
<div class="method">
|
736
|
+
<div class="title">
|
737
|
+
<a name="M000052"></a><b>thru</b>( from, to )
|
738
|
+
[ <a href="javascript:openCode('Array.src/M000052.html')">source</a> ]
|
739
|
+
</div>
|
740
|
+
<div class="description">
|
741
|
+
<p>
|
742
|
+
Fetch values from a start index thru an end index.
|
743
|
+
</p>
|
744
|
+
<pre>
|
745
|
+
[1,2,3,4,5].thru(0,2) #=> [1,2,3]
|
746
|
+
[1,2,3,4,5].thru(2,4) #=> [3,4,5]
|
747
|
+
</pre>
|
748
|
+
</div>
|
749
|
+
</div>
|
750
|
+
<div class="method">
|
751
|
+
<div class="title">
|
752
|
+
<a name="M000056"></a><b>to_b</b>()
|
753
|
+
[ <a href="javascript:openCode('Array.src/M000056.html')">source</a> ]
|
754
|
+
</div>
|
755
|
+
<div class="description">
|
756
|
+
<p>
|
757
|
+
Boolean conversion for not empty?
|
758
|
+
</p>
|
759
|
+
</div>
|
760
|
+
</div>
|
761
|
+
<div class="method">
|
762
|
+
<div class="title">
|
763
|
+
<a name="M000057"></a><b>to_h</b>(values=nil)
|
764
|
+
[ <a href="javascript:openCode('Array.src/M000057.html')">source</a> ]
|
765
|
+
</div>
|
766
|
+
<div class="description">
|
767
|
+
<p>
|
768
|
+
Produces a hash for an <a href="Array.html">Array</a>, or two arrays.
|
769
|
+
</p>
|
770
|
+
<p>
|
771
|
+
If no parameter is given, <a href="Array.html#M000057">to_h</a> expects the
|
772
|
+
receiving array to be associative.
|
773
|
+
</p>
|
774
|
+
<pre>
|
775
|
+
a1 = [ [:a,1], [:b,2] ]
|
776
|
+
a1.to_h #=> { :a=>1, :b=>2 }
|
777
|
+
</pre>
|
778
|
+
<p>
|
779
|
+
If an array is given it is considered values and zipped with the receiver,
|
780
|
+
to produce the hash.
|
781
|
+
</p>
|
782
|
+
<pre>
|
783
|
+
a1 = [ :a, :b ]
|
784
|
+
a2 = [ 1, 2 ]
|
785
|
+
a1.to_h(a2) #=> { :a=>1, :b=>2 }
|
786
|
+
</pre>
|
787
|
+
</div>
|
788
|
+
</div>
|
789
|
+
</div>
|
790
|
+
|
791
|
+
</div>
|
792
|
+
|
793
|
+
</body>
|
794
|
+
</html>
|