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
data/test/file/TEST1
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
This is a test
|
data/test/file/TEST2
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
tset a si sihT
|
@@ -0,0 +1,41 @@
|
|
1
|
+
|
2
|
+
require 'test/unit'
|
3
|
+
|
4
|
+
require 'nano/file/%3A%3Acreate'
|
5
|
+
require 'nano/file/%3A%3Aopen_as_string'
|
6
|
+
require 'nano/file/%3A%3Asplit_all'
|
7
|
+
|
8
|
+
|
9
|
+
class TC_File < Test::Unit::TestCase
|
10
|
+
|
11
|
+
# create
|
12
|
+
|
13
|
+
def test_create
|
14
|
+
f = File.join( File.dirname(__FILE__), 'TEST1' )
|
15
|
+
t = 'This is a test'
|
16
|
+
File.create( f, t )
|
17
|
+
assert( File.exists?( f ) )
|
18
|
+
s = File.read( f )
|
19
|
+
assert_equal( t, s )
|
20
|
+
end
|
21
|
+
|
22
|
+
# open_as_string
|
23
|
+
|
24
|
+
def test_open_as_string
|
25
|
+
f = File.join( File.dirname(__FILE__), 'TEST2' )
|
26
|
+
t = 'This is a test'
|
27
|
+
File.open( f, 'w' ) { |s| s << t }
|
28
|
+
assert( File.exists?( f ) )
|
29
|
+
File.open_as_string(f) { |s| s.reverse! }
|
30
|
+
s = File.read( f )
|
31
|
+
assert_equal( t.reverse, s )
|
32
|
+
end
|
33
|
+
|
34
|
+
# split_all
|
35
|
+
|
36
|
+
def test_split_all
|
37
|
+
fp = "this/is/test"
|
38
|
+
assert_equal( ['this', 'is', 'test'], File.split_all(fp) )
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
|
2
|
+
require 'test/unit'
|
3
|
+
|
4
|
+
require 'nano/fileutils/head'
|
5
|
+
require 'nano/fileutils/slice'
|
6
|
+
require 'nano/fileutils/tail'
|
7
|
+
|
8
|
+
|
9
|
+
class TC_FileUtils_HeadTail < Test::Unit::TestCase
|
10
|
+
|
11
|
+
def setup
|
12
|
+
@workdir = Dir.getwd
|
13
|
+
@thisdir = File.dirname(__FILE__)
|
14
|
+
|
15
|
+
@tfile = 'test_file.txt'
|
16
|
+
|
17
|
+
@expected_head1 = ["line1\n","line2\n","line3\n","line4\n","line5\n"]
|
18
|
+
@expected_head1.push("line6\n","line7\n","line8\n","line9\n","line10\n")
|
19
|
+
@expected_head2 = ["line1\n","line2\n","line3\n","line4\n","line5\n"]
|
20
|
+
|
21
|
+
@expected_tail1 = ["line16\n","line17\n","line18\n","line19\n","line20\n"]
|
22
|
+
@expected_tail1.push("line21\n","line22\n","line23\n","line24\n","line25\n")
|
23
|
+
@expected_tail2 = ["line21\n","line22\n","line23\n","line24\n","line25\n"]
|
24
|
+
|
25
|
+
@expected_body1 = ["line10\n", "line11\n", "line12\n", "line13\n", "line14\n"]
|
26
|
+
@expected_body1.push("line15\n","line16\n", "line17\n", "line18\n", "line19\n","line20\n")
|
27
|
+
@expected_body2 = ["line14\n","line15\n","line16\n","line17\n","line18\n","line19\n","line20\n"]
|
28
|
+
@expected_body3 = ["line5\n","line6\n","line7\n","line8\n","line9\n","line10\n"]
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_method
|
32
|
+
assert_respond_to( FileUtils, :head )
|
33
|
+
assert_respond_to( FileUtils, :tail )
|
34
|
+
assert_respond_to( FileUtils, :slice )
|
35
|
+
end
|
36
|
+
|
37
|
+
# head
|
38
|
+
|
39
|
+
def test_head
|
40
|
+
Dir.chdir @thisdir
|
41
|
+
begin
|
42
|
+
assert_nothing_raised{ FileUtils.head(@tfile) }
|
43
|
+
assert_nothing_raised{ FileUtils.head(@tfile,5) }
|
44
|
+
assert_equal(@expected_head1,FileUtils.head(@tfile))
|
45
|
+
assert_equal(@expected_head2,FileUtils.head(@tfile,5))
|
46
|
+
ensure
|
47
|
+
Dir.chdir @workdir
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# slice
|
52
|
+
|
53
|
+
def test_slice
|
54
|
+
Dir.chdir @thisdir
|
55
|
+
begin
|
56
|
+
assert_nothing_raised{ FileUtils.slice(@tfile,5,10) }
|
57
|
+
assert_equal(@expected_body3,FileUtils.slice(@tfile,5,10))
|
58
|
+
ensure
|
59
|
+
Dir.chdir @workdir
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# tail
|
64
|
+
|
65
|
+
def test_tail
|
66
|
+
Dir.chdir @thisdir
|
67
|
+
begin
|
68
|
+
assert_nothing_raised{ FileUtils.tail(@tfile) }
|
69
|
+
assert_nothing_raised{ FileUtils.tail(@tfile,5) }
|
70
|
+
assert_equal(@expected_tail1,FileUtils.tail(@tfile))
|
71
|
+
assert_equal(@expected_tail2,FileUtils.tail(@tfile,5))
|
72
|
+
ensure
|
73
|
+
Dir.chdir @workdir
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
|
2
|
+
require 'test/unit'
|
3
|
+
|
4
|
+
require 'nano/fileutils/wc'
|
5
|
+
|
6
|
+
|
7
|
+
class TC_FileUtils_WC < Test::Unit::TestCase
|
8
|
+
|
9
|
+
def setup
|
10
|
+
@workdir = Dir.getwd
|
11
|
+
@thisdir = File.dirname(__FILE__)
|
12
|
+
|
13
|
+
@file = 'test_file.txt'
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_method
|
17
|
+
assert_respond_to( FileUtils, :wc )
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_wc
|
21
|
+
Dir.chdir @thisdir
|
22
|
+
begin
|
23
|
+
assert_nothing_raised{ FileUtils.wc(@file) }
|
24
|
+
assert_nothing_raised{ FileUtils.wc(@file,'bytes') }
|
25
|
+
assert_nothing_raised{ FileUtils.wc(@file,'chars') }
|
26
|
+
assert_nothing_raised{ FileUtils.wc(@file,'words') }
|
27
|
+
assert_nothing_raised{ FileUtils.wc(@file,'lines') }
|
28
|
+
assert_raises(RuntimeError){ FileUtils.wc(@file,'bogus') }
|
29
|
+
ensure
|
30
|
+
Dir.chdir @workdir
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def test_wc_results
|
35
|
+
Dir.chdir @thisdir
|
36
|
+
begin
|
37
|
+
assert_equal([166,166,25,25],FileUtils.wc(@file))
|
38
|
+
assert_equal(166,FileUtils.wc(@file,'bytes'),"Wrong number of bytes")
|
39
|
+
assert_equal(166,FileUtils.wc(@file,'chars'),"Wrong number of chars")
|
40
|
+
assert_equal(25,FileUtils.wc(@file,'words'),"Wrong number of words")
|
41
|
+
assert_equal(25,FileUtils.wc(@file,'lines'),"Wrong number of lines")
|
42
|
+
ensure
|
43
|
+
Dir.chdir @workdir
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
|
2
|
+
require 'test/unit'
|
3
|
+
|
4
|
+
require 'nano/fileutils/whereis'
|
5
|
+
|
6
|
+
|
7
|
+
class TC_FileUtils_Whereis < Test::Unit::TestCase
|
8
|
+
|
9
|
+
# Need a universal way to test. But how?
|
10
|
+
# def setup
|
11
|
+
# @workdir = Dir.getwd
|
12
|
+
# @thisdir = File.dirname(__FILE__)
|
13
|
+
#
|
14
|
+
# # Change this to suit your system
|
15
|
+
# @expected_locs = ['/usr/local/bin/ruby','/opt/sfw/bin/ruby', '/opt/bin/ruby']
|
16
|
+
#
|
17
|
+
# # MS Windows - change as needed
|
18
|
+
# if File::ALT_SEPARATOR
|
19
|
+
# @expected_locs = ["c:\\ruby\\bin\\ruby.exe"]
|
20
|
+
# end
|
21
|
+
# end
|
22
|
+
|
23
|
+
def test_method
|
24
|
+
assert_respond_to( FileUtils, :whereis )
|
25
|
+
end
|
26
|
+
|
27
|
+
# def test_whereis
|
28
|
+
# Dir.chdir( @thisdir )
|
29
|
+
# assert_nothing_raised{ @locs = FileUtils.whereis("ruby") }
|
30
|
+
# assert_nothing_raised{ FileUtils.whereis("ruby"){ |loc| } }
|
31
|
+
# assert_equal(@expected_locs, @locs, "Not found where expected")
|
32
|
+
# assert_equal(nil,FileUtils.whereis("blahblah"))
|
33
|
+
# Dir.chdir( @workdir )
|
34
|
+
# end
|
35
|
+
|
36
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Largely borrowed from Michael Granger's "FileWhich" RubyGarden wiki.
|
2
|
+
|
3
|
+
require 'test/unit'
|
4
|
+
require 'rbconfig'
|
5
|
+
|
6
|
+
require 'nano/fileutils/which'
|
7
|
+
|
8
|
+
|
9
|
+
class TC_FileUtils_Which < Test::Unit::TestCase
|
10
|
+
include Config
|
11
|
+
|
12
|
+
def setup
|
13
|
+
@workdir = Dir.getwd
|
14
|
+
@thisdir = File.dirname(__FILE__)
|
15
|
+
|
16
|
+
@expected_ruby_exe = File.join( CONFIG['bindir'], CONFIG['ruby_install_name'] )
|
17
|
+
if File::ALT_SEPARATOR
|
18
|
+
@expected_ruby_exe.gsub!(/\//,'\\')
|
19
|
+
@expected_ruby_exe += ".exe"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_method
|
24
|
+
assert_respond_to( FileUtils, :which )
|
25
|
+
end
|
26
|
+
|
27
|
+
# which
|
28
|
+
|
29
|
+
def test_which
|
30
|
+
Dir.chdir @thisdir
|
31
|
+
begin
|
32
|
+
ruby_exe = nil
|
33
|
+
assert_nothing_raised { ruby_exe = FileUtils.which(CONFIG['ruby_install_name']) }
|
34
|
+
assert_equal(@expected_ruby_exe, ruby_exe)
|
35
|
+
assert_equal(nil, FileUtils.which("blahblah"))
|
36
|
+
ensure
|
37
|
+
Dir.chdir @workdir
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
|
2
|
+
require 'test/unit'
|
3
|
+
|
4
|
+
require 'nano/float/approx?'
|
5
|
+
require 'nano/float/round_at'
|
6
|
+
require 'nano/float/round_off'
|
7
|
+
require 'nano/float/round_to'
|
8
|
+
|
9
|
+
|
10
|
+
class TC < Test::Unit::TestCase
|
11
|
+
|
12
|
+
def setup
|
13
|
+
@f0 = [ 0, 10, 15, 105 ]
|
14
|
+
@f1 = [ 10.1, 10.01, 10.9, 10.09, 10.5, 10.05, 10.49 ]
|
15
|
+
end
|
16
|
+
|
17
|
+
# approx?
|
18
|
+
|
19
|
+
def test_approx?
|
20
|
+
f = 10.006
|
21
|
+
assert( f.approx?(10.01) )
|
22
|
+
assert( f.approx?(10,0.1) )
|
23
|
+
end
|
24
|
+
|
25
|
+
# round_at
|
26
|
+
|
27
|
+
def test_round_at_arg1
|
28
|
+
fr = @f0.collect{ |f| f.round_at(1) }
|
29
|
+
assert_equal( [0,10,15,105], fr )
|
30
|
+
fr = @f1.collect { |f| f.round_at(1) }
|
31
|
+
assert_equal( [10.1,10.0,10.9,10.1,10.5,10.1,10.5], fr )
|
32
|
+
end
|
33
|
+
|
34
|
+
def test_round_at_arg2
|
35
|
+
fr = @f0.collect { |f| f.round_at(2) }
|
36
|
+
assert_equal( [0,10,15,105], fr )
|
37
|
+
fr = @f1.collect { |f| f.round_at(2) }
|
38
|
+
assert_equal( [10.1,10.01,10.9,10.09,10.5,10.05,10.49], fr )
|
39
|
+
end
|
40
|
+
|
41
|
+
# round_off
|
42
|
+
|
43
|
+
def test_round_off
|
44
|
+
assert_equal( 1.0, 1.2.round_off )
|
45
|
+
assert_equal( 2.0, 1.8.round_off )
|
46
|
+
end
|
47
|
+
|
48
|
+
# round_to
|
49
|
+
|
50
|
+
def test_round_to_arg1
|
51
|
+
fr = @f0.collect { |f| f.round_to(0.1) }
|
52
|
+
assert_equal( [0,10,15,105], fr )
|
53
|
+
fr = @f1.collect { |f| f.round_to(0.1) }
|
54
|
+
assert_equal( [10.1,10.0,10.9,10.1,10.5,10.1,10.5], fr )
|
55
|
+
end
|
56
|
+
|
57
|
+
def test_round_to_arg10
|
58
|
+
fr = @f0.collect { |f| f.round_to(10) }
|
59
|
+
assert_equal( [0,10,20,110], fr )
|
60
|
+
fr = @f1.collect { |f| f.round_to(10) }
|
61
|
+
assert_equal( [10,10,10,10,10,10,10], fr )
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
|
2
|
+
require 'test/unit'
|
3
|
+
|
4
|
+
require 'nano/hash/each'
|
5
|
+
|
6
|
+
|
7
|
+
class TC_Hash < Test::Unit::TestCase
|
8
|
+
|
9
|
+
# each
|
10
|
+
|
11
|
+
def test_each
|
12
|
+
|
13
|
+
h = { :a=>1, :b=>2, :c=>3 }
|
14
|
+
a = []
|
15
|
+
h.each { |v| a << v }
|
16
|
+
assert_equal( [1,2,3], a.sort )
|
17
|
+
|
18
|
+
h = { 'a'=>1, 'b'=>2, 'c'=>3 }
|
19
|
+
a = []
|
20
|
+
h.each { |k,v| a << [k,v] }
|
21
|
+
assert_equal( [['a',1],['b',2],['c',3]], a.sort )
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
@@ -0,0 +1,296 @@
|
|
1
|
+
|
2
|
+
require 'test/unit'
|
3
|
+
|
4
|
+
require 'nano/hash/%3A%3Azipnew'
|
5
|
+
require 'nano/hash/%3C%3C'
|
6
|
+
require 'nano/hash/alias%21'
|
7
|
+
require 'nano/hash/assert_has_keys'
|
8
|
+
require 'nano/hash/assert_has_only_keys'
|
9
|
+
require 'nano/hash/at'
|
10
|
+
require 'nano/hash/collate'
|
11
|
+
require 'nano/hash/collate%21'
|
12
|
+
require 'nano/hash/graph%21'
|
13
|
+
require 'nano/hash/has_keys%3F'
|
14
|
+
require 'nano/hash/has_only_keys%3F'
|
15
|
+
require 'nano/hash/inverse'
|
16
|
+
require 'nano/hash/keys_to_s'
|
17
|
+
require 'nano/hash/keys_to_s%21'
|
18
|
+
require 'nano/hash/keys_to_sym'
|
19
|
+
require 'nano/hash/keys_to_sym%21'
|
20
|
+
require 'nano/hash/rand_key'
|
21
|
+
require 'nano/hash/rand_pair'
|
22
|
+
require 'nano/hash/rand_value'
|
23
|
+
require 'nano/hash/replace_each'
|
24
|
+
require 'nano/hash/shuffle'
|
25
|
+
require 'nano/hash/shuffle%21'
|
26
|
+
require 'nano/hash/slice'
|
27
|
+
require 'nano/hash/swap%21'
|
28
|
+
require 'nano/hash/swapkey%21'
|
29
|
+
require 'nano/hash/to_h'
|
30
|
+
require 'nano/hash/to_ostruct'
|
31
|
+
require 'nano/hash/to_ostruct_recurse'
|
32
|
+
require 'nano/hash/traverse'
|
33
|
+
require 'nano/hash/update_each'
|
34
|
+
require 'nano/hash/weave'
|
35
|
+
|
36
|
+
|
37
|
+
class TC_Hash < Test::Unit::TestCase
|
38
|
+
|
39
|
+
# ::zipnew
|
40
|
+
|
41
|
+
def test_weave
|
42
|
+
a = [1,2,3]
|
43
|
+
b = [4,5,6]
|
44
|
+
assert_equal( {1=>4,2=>5,3=>6}, Hash.zipnew(a,b) )
|
45
|
+
# and another
|
46
|
+
b = { :a => 1, :b => [1,2,3], :c => { :x => 'X' } }
|
47
|
+
c = { :a => 2, :b => [4,5,6], :c => { :x => 'A', :y => 'B' } }
|
48
|
+
r = { :a => 2, :b => [1,2,3,4,5,6], :c => { :x => 'A', :y => 'B' } }
|
49
|
+
assert_equal( r, b.weave(c) )
|
50
|
+
end
|
51
|
+
|
52
|
+
# <<
|
53
|
+
|
54
|
+
def test_shift_update
|
55
|
+
a = { :a => 1, :b => 2, :c => 3 }
|
56
|
+
b = { :a => 0, :d => 4 }
|
57
|
+
e = { :a => 0, :b => 2, :c => 3, :d => 4 }
|
58
|
+
assert_equal( e, a << b )
|
59
|
+
end
|
60
|
+
|
61
|
+
# alias!
|
62
|
+
|
63
|
+
def test_alias!
|
64
|
+
foo = { 'a'=>1, 'b'=>2 }
|
65
|
+
assert_equal( { 'a'=>1, 'b'=>2, 'c'=>2 }, foo.alias!('c','b') )
|
66
|
+
foo = { 'a'=>1, 'b'=>2 }
|
67
|
+
assert_equal( { :a=>1, 'a'=>1, 'b'=>2 }, foo.alias!(:a,'a') )
|
68
|
+
foo = { :a=>1, :b=>2 }
|
69
|
+
assert_equal( { :a=>1, :b=>2 }, foo.alias!('bar','foo') )
|
70
|
+
end
|
71
|
+
|
72
|
+
# assert_has_keys
|
73
|
+
|
74
|
+
def test_assert_has_keys
|
75
|
+
assert_nothing_raised { { :a=>1,:b=>2,:c=>3 }.assert_has_keys(:a,:b) }
|
76
|
+
assert_raises( ArgumentError ) { { :a=>1,:b=>2,:c=>3 }.assert_has_keys(:d) }
|
77
|
+
end
|
78
|
+
|
79
|
+
# assert_has_only_keys
|
80
|
+
|
81
|
+
def test_assert_has_only_keys
|
82
|
+
assert_nothing_raised { { :a=>1,:b=>2,:c=>3 }.assert_has_only_keys(:a,:b,:c) }
|
83
|
+
assert_raises( ArgumentError ) { { :a=>1,:b=>2,:c=>3 }.assert_has_only_keys(:a,:b) }
|
84
|
+
end
|
85
|
+
|
86
|
+
# at
|
87
|
+
|
88
|
+
def test_at
|
89
|
+
h = { :a=>1, :b=>2 }
|
90
|
+
assert_equal( 1, h.at(:a) )
|
91
|
+
assert_equal( 2, h.at(:b) )
|
92
|
+
end
|
93
|
+
|
94
|
+
# collate
|
95
|
+
|
96
|
+
def test_collate
|
97
|
+
a = { :a => 1, :b => 2, :c => 3 }
|
98
|
+
e = { :a => 2, :b => 3, :c => 4 }
|
99
|
+
assert_equal( e, a.collate{ |k,v| { k => v+1 } } )
|
100
|
+
end
|
101
|
+
|
102
|
+
# collate!
|
103
|
+
|
104
|
+
def test_collate!
|
105
|
+
a = { :a => 1, :b => 2, :c => 3 }
|
106
|
+
e = { :a => 2, :b => 3, :c => 4 }
|
107
|
+
a.collate!{ |k,v| { k => v+1 } }
|
108
|
+
assert_equal( e, a )
|
109
|
+
end
|
110
|
+
|
111
|
+
# graph!
|
112
|
+
|
113
|
+
def test_graph
|
114
|
+
h = {:a=>1,:b=>2,:c=>3}
|
115
|
+
h.graph!{ |k,v| [v, v*v] }
|
116
|
+
assert_equal( {1=>1, 2=>4, 3=>9}, h )
|
117
|
+
end
|
118
|
+
|
119
|
+
# has_keys?
|
120
|
+
|
121
|
+
def test_has_keys?
|
122
|
+
assert( { :a=>1,:b=>2,:c=>3 }.has_keys?(:a,:b) )
|
123
|
+
assert( ! { :a=>1,:b=>2,:c=>3 }.has_keys?(:a,:b,:d) )
|
124
|
+
end
|
125
|
+
|
126
|
+
# has_only_keys?
|
127
|
+
|
128
|
+
def test_has_only_keys?
|
129
|
+
assert( { :a=>1,:b=>2,:c=>3 }.has_only_keys?(:a,:b,:c) )
|
130
|
+
assert( ! { :a=>1,:b=>2,:c=>3 }.has_only_keys?(:a,:b) )
|
131
|
+
end
|
132
|
+
|
133
|
+
# keys_to_s
|
134
|
+
|
135
|
+
def test_keys_to_s
|
136
|
+
foo = { :a=>1, :b=>2 }
|
137
|
+
assert_equal( { "a"=>1, "b"=>2 }, foo.keys_to_s )
|
138
|
+
assert_equal( { :a =>1, :b=>2 }, foo )
|
139
|
+
end
|
140
|
+
|
141
|
+
# keys_to_s!
|
142
|
+
|
143
|
+
def test_keys_to_s!
|
144
|
+
foo = { :a=>1, :b=>2 }
|
145
|
+
assert_equal( { "a"=>1, "b"=>2 }, foo.keys_to_s! )
|
146
|
+
assert_equal( { "a"=>1, "b"=>2 }, foo )
|
147
|
+
end
|
148
|
+
|
149
|
+
# keys_to_sym
|
150
|
+
|
151
|
+
def test_keys_to_sym
|
152
|
+
foo = { 'a'=>1, 'b'=>2 }
|
153
|
+
assert_equal( { :a=>1, :b=>2 }, foo.keys_to_sym )
|
154
|
+
assert_equal( { "a" =>1, "b"=>2 }, foo )
|
155
|
+
end
|
156
|
+
|
157
|
+
# keys_to_sym!
|
158
|
+
|
159
|
+
def test_keys_to_sym!
|
160
|
+
foo = { 'a'=>1, 'b'=>2 }
|
161
|
+
assert_equal( { :a=>1, :b=>2 }, foo.keys_to_sym! )
|
162
|
+
assert_equal( { :a=>1, :b=>2 }, foo )
|
163
|
+
end
|
164
|
+
|
165
|
+
# rand_key
|
166
|
+
|
167
|
+
def test_rand_key
|
168
|
+
h = { :a=>1, :b=>2, :c=>3 }
|
169
|
+
10.times { assert( h.keys.include?( h.rand_key ) ) }
|
170
|
+
end
|
171
|
+
|
172
|
+
# rand_value
|
173
|
+
|
174
|
+
def test_rand_value
|
175
|
+
h = { :a=>1, :b=>2, :c=>3 }
|
176
|
+
10.times { assert( h.values.include?( h.rand_value ) ) }
|
177
|
+
end
|
178
|
+
|
179
|
+
# rand_pair
|
180
|
+
|
181
|
+
def test_rand_pair
|
182
|
+
h = { :a=>1, :b=>2, :c=>3 }
|
183
|
+
10.times { k,v = *h.rand_pair; assert_equal( v, h[k] ) }
|
184
|
+
end
|
185
|
+
|
186
|
+
# replace_each
|
187
|
+
|
188
|
+
def test_replace_each
|
189
|
+
a = { :a => 1, :b => 2, :c => 3 }
|
190
|
+
e = { :a => 2, :b => 3, :c => 4 }
|
191
|
+
a.replace_each{ |k,v| { k => v+1 } }
|
192
|
+
assert_equal( e, a )
|
193
|
+
end
|
194
|
+
|
195
|
+
# shuffle
|
196
|
+
|
197
|
+
def test_shuffle
|
198
|
+
h = {:a=>1, :b=>2, :c=>3 }
|
199
|
+
assert_nothing_raised { h.shuffle }
|
200
|
+
end
|
201
|
+
|
202
|
+
# shuffle!
|
203
|
+
|
204
|
+
def test_shuffle!
|
205
|
+
h = {:a=>1, :b=>2, :c=>3 }
|
206
|
+
assert_nothing_raised { h.shuffle! }
|
207
|
+
end
|
208
|
+
|
209
|
+
# slice
|
210
|
+
|
211
|
+
def test_slice
|
212
|
+
h = {:a=>1, :b=>2, :c=>3 }
|
213
|
+
assert_equal( [1,2], h.slice(:a,:b) )
|
214
|
+
end
|
215
|
+
|
216
|
+
# swap!
|
217
|
+
|
218
|
+
def test_swap!
|
219
|
+
h = { :a=>1, :b=>2 }
|
220
|
+
assert_equal( { :a=>2, :b=>1 }, h.swap!(:a, :b) )
|
221
|
+
end
|
222
|
+
|
223
|
+
# swapkeys!
|
224
|
+
|
225
|
+
def test_swapkeys!
|
226
|
+
foo = { :a=>1, :b=>2 }
|
227
|
+
assert_equal( { 'a'=>1, :b=>2 }, foo.swapkey!('a', :a) )
|
228
|
+
assert_equal( { 'a'=>1, 'b'=>2 }, foo.swapkey!('b', :b) )
|
229
|
+
assert_equal( { 'a'=>1, 'b'=>2 }, foo.swapkey!('foo','bar') )
|
230
|
+
end
|
231
|
+
|
232
|
+
# to_h
|
233
|
+
|
234
|
+
def test_to_h
|
235
|
+
a = { :a => 1, :b => 2, :c => 3 }
|
236
|
+
assert_equal( a, a.to_h )
|
237
|
+
end
|
238
|
+
|
239
|
+
# to_ostruct
|
240
|
+
|
241
|
+
def test_to_ostruct
|
242
|
+
a = { :a => 1, :b => 2, :c => 3 }
|
243
|
+
ao = a.to_ostruct
|
244
|
+
assert_equal( a[:a], ao.a )
|
245
|
+
assert_equal( a[:b], ao.b )
|
246
|
+
assert_equal( a[:c], ao.c )
|
247
|
+
end
|
248
|
+
|
249
|
+
# to_ostruct_recurse
|
250
|
+
|
251
|
+
def test_to_ostruct_recurse
|
252
|
+
a = { :a => 1, :b => 2, :c => { :x => 4 } }
|
253
|
+
ao = a.to_ostruct_recurse
|
254
|
+
assert_equal( a[:a], ao.a )
|
255
|
+
assert_equal( a[:b], ao.b )
|
256
|
+
assert_equal( a[:c][:x], ao.c.x )
|
257
|
+
end
|
258
|
+
|
259
|
+
# traverse
|
260
|
+
|
261
|
+
def test_traverse
|
262
|
+
h = { "A" => "x", "B" => "y" }
|
263
|
+
h2 = h.traverse { |k,v| [k.downcase, v.upcase] }
|
264
|
+
e = { "a" => "X", "b" => "Y" }
|
265
|
+
assert_not_equal( h, h2 )
|
266
|
+
assert_equal( e, h2 )
|
267
|
+
end
|
268
|
+
|
269
|
+
# traverse!
|
270
|
+
|
271
|
+
def test_traverse!
|
272
|
+
h = { "A" => "x", "B" => "y" }
|
273
|
+
h.traverse! { |k,v| [k.downcase, v.upcase] }
|
274
|
+
e = { "a" => "X", "b" => "Y" }
|
275
|
+
assert_equal( e, h )
|
276
|
+
end
|
277
|
+
|
278
|
+
# update_each
|
279
|
+
|
280
|
+
def test_update_each
|
281
|
+
a = { :a => 1, :b => 2, :c => 3 }
|
282
|
+
e = { :a => 2, :b => 3, :c => 4 }
|
283
|
+
a.update_each{ |k,v| { k => v+1 } }
|
284
|
+
assert_equal( e, a )
|
285
|
+
end
|
286
|
+
|
287
|
+
# weave
|
288
|
+
|
289
|
+
def test_weave
|
290
|
+
b = { :a => 1, :b => [1,2,3], :c => { :x => 'X' } }
|
291
|
+
c = { :a => 2, :b => [4,5,6], :c => { :x => 'A', :y => 'B' } }
|
292
|
+
r = { :a => 2, :b => [1,2,3,4,5,6], :c => { :x => 'A', :y => 'B' } }
|
293
|
+
assert_equal( r, b.weave(c) )
|
294
|
+
end
|
295
|
+
|
296
|
+
end
|