nano 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ANN-0.8.1 +127 -0
- data/COPYING +59 -0
- data/ChangeLog +137 -0
- data/README +161 -0
- data/README.dev +12 -0
- data/Rakefile +124 -0
- data/Reapfile +87 -0
- data/TODO +43 -0
- data/Version +14 -0
- data/data/site_ruby/nano/base +32 -0
- data/data/site_ruby/nano/index.yaml +422 -0
- data/data/site_ruby/nano/noauto +27 -0
- data/data/site_ruby/nano/unsafe +17 -0
- data/lib/nano.rb +2 -0
- data/lib/nano/array.rb +32 -0
- data/lib/nano/array/%5B%5D%3D.rb +22 -0
- data/lib/nano/array/%5B%5D.rb +18 -0
- data/lib/nano/array/at_rand%21.rb +12 -0
- data/lib/nano/array/at_rand.rb +10 -0
- data/lib/nano/array/bulk.rb +10 -0
- data/lib/nano/array/delete_unless.rb +6 -0
- data/lib/nano/array/delete_values.rb +16 -0
- data/lib/nano/array/delete_values_at.rb +31 -0
- data/lib/nano/array/first%21.rb +11 -0
- data/lib/nano/array/first%3D.rb +13 -0
- data/lib/nano/array/foot.rb +11 -0
- data/lib/nano/array/head.rb +10 -0
- data/lib/nano/array/last%21.rb +11 -0
- data/lib/nano/array/last%3D.rb +12 -0
- data/lib/nano/array/last_index.rb +11 -0
- data/lib/nano/array/mid.rb +18 -0
- data/lib/nano/array/middle.rb +17 -0
- data/lib/nano/array/pick%21.rb +23 -0
- data/lib/nano/array/pick.rb +16 -0
- data/lib/nano/array/pos.rb +15 -0
- data/lib/nano/array/rand_index.rb +5 -0
- data/lib/nano/array/rand_subset.rb +31 -0
- data/lib/nano/array/range.rb +19 -0
- data/lib/nano/array/rotate%21.rb +18 -0
- data/lib/nano/array/rotate.rb +20 -0
- data/lib/nano/array/select%21.rb +11 -0
- data/lib/nano/array/shuffle%21.rb +25 -0
- data/lib/nano/array/shuffle.rb +17 -0
- data/lib/nano/array/slap.rb +11 -0
- data/lib/nano/array/store.rb +4 -0
- data/lib/nano/array/tail.rb +9 -0
- data/lib/nano/array/thru.rb +16 -0
- data/lib/nano/array/to_b.rb +6 -0
- data/lib/nano/array/to_h.rb +28 -0
- data/lib/nano/base.rb +29 -0
- data/lib/nano/binding.rb +14 -0
- data/lib/nano/binding/%3A%3Aof_caller.rb +89 -0
- data/lib/nano/binding/%5B%5D%3D.rb +11 -0
- data/lib/nano/binding/%5B%5D.rb +11 -0
- data/lib/nano/binding/__DIR__.rb +7 -0
- data/lib/nano/binding/__FILE__.rb +7 -0
- data/lib/nano/binding/__LINE__.rb +7 -0
- data/lib/nano/binding/call_stack.rb +8 -0
- data/lib/nano/binding/called.rb +12 -0
- data/lib/nano/binding/caller.rb +7 -0
- data/lib/nano/binding/defined%3F.rb +7 -0
- data/lib/nano/binding/eval.rb +10 -0
- data/lib/nano/binding/local_variables.rb +11 -0
- data/lib/nano/binding/method_name.rb +14 -0
- data/lib/nano/binding/of_caller.rb +89 -0
- data/lib/nano/binding/self.rb +12 -0
- data/lib/nano/class.rb +5 -0
- data/lib/nano/class/by_name.rb +1 -0
- data/lib/nano/class/descendents.rb +15 -0
- data/lib/nano/class/remove_descendents.rb +14 -0
- data/lib/nano/class/remove_subclasses.rb +4 -0
- data/lib/nano/class/subclasses.rb +4 -0
- data/lib/nano/comparable.rb +5 -0
- data/lib/nano/comparable/at_least.rb +13 -0
- data/lib/nano/comparable/at_most.rb +13 -0
- data/lib/nano/comparable/cap.rb +13 -0
- data/lib/nano/comparable/clip.rb +22 -0
- data/lib/nano/comparable/cmp.rb +14 -0
- data/lib/nano/continuation.rb +1 -0
- data/lib/nano/continuation/%3A%3Acreate.rb +50 -0
- data/lib/nano/date.rb +6 -0
- data/lib/nano/date/days_in_month.rb +13 -0
- data/lib/nano/date/days_of_month.rb +6 -0
- data/lib/nano/date/stamp.rb +11 -0
- data/lib/nano/date/to_date.rb +9 -0
- data/lib/nano/date/to_s.rb +16 -0
- data/lib/nano/date/to_time.rb +10 -0
- data/lib/nano/dir.rb +2 -0
- data/lib/nano/dir/%3A%3Als_r.rb +21 -0
- data/lib/nano/dir/%3A%3Arecurse.rb +7 -0
- data/lib/nano/enumerable.rb +32 -0
- data/lib/nano/enumerable/%25.rb +17 -0
- data/lib/nano/enumerable/%2A%2A.rb +15 -0
- data/lib/nano/enumerable/%3A%3Acombinations.rb +30 -0
- data/lib/nano/enumerable/%3A%3Across.rb +52 -0
- data/lib/nano/enumerable/collect_with_counter.rb +20 -0
- data/lib/nano/enumerable/collect_with_index.rb +4 -0
- data/lib/nano/enumerable/commonality.rb +37 -0
- data/lib/nano/enumerable/compact_collect.rb +25 -0
- data/lib/nano/enumerable/compact_map.rb +7 -0
- data/lib/nano/enumerable/cross.rb +18 -0
- data/lib/nano/enumerable/eF.rb +51 -0
- data/lib/nano/enumerable/each_by.rb +9 -0
- data/lib/nano/enumerable/each_combination.rb +34 -0
- data/lib/nano/enumerable/each_permutation.rb +33 -0
- data/lib/nano/enumerable/each_slice.rb +57 -0
- data/lib/nano/enumerable/each_unique_pair.rb +41 -0
- data/lib/nano/enumerable/entropy.rb +30 -0
- data/lib/nano/enumerable/filter_collect.rb +29 -0
- data/lib/nano/enumerable/filter_map.rb +7 -0
- data/lib/nano/enumerable/find_collisions.rb +15 -0
- data/lib/nano/enumerable/frequency.rb +16 -0
- data/lib/nano/enumerable/graph.rb +28 -0
- data/lib/nano/enumerable/ideal_entropy.rb +24 -0
- data/lib/nano/enumerable/map_with_counter.rb +4 -0
- data/lib/nano/enumerable/map_with_index.rb +4 -0
- data/lib/nano/enumerable/none%3F.rb +28 -0
- data/lib/nano/enumerable/occur.rb +36 -0
- data/lib/nano/enumerable/one%3F.rb +35 -0
- data/lib/nano/enumerable/partition_by.rb +28 -0
- data/lib/nano/enumerable/probability.rb +36 -0
- data/lib/nano/enumerable/to_h.rb +14 -0
- data/lib/nano/enumerable/unique_by.rb +16 -0
- data/lib/nano/file.rb +3 -0
- data/lib/nano/file/%3A%3Acreate.rb +18 -0
- data/lib/nano/file/%3A%3Aopen_as_string.rb +45 -0
- data/lib/nano/file/%3A%3Asplit_all.rb +13 -0
- data/lib/nano/fileutils.rb +7 -0
- data/lib/nano/fileutils/head.rb +28 -0
- data/lib/nano/fileutils/safe_ln.rb +22 -0
- data/lib/nano/fileutils/slice.rb +21 -0
- data/lib/nano/fileutils/tail.rb +23 -0
- data/lib/nano/fileutils/wc.rb +64 -0
- data/lib/nano/fileutils/whereis.rb +66 -0
- data/lib/nano/fileutils/which.rb +60 -0
- data/lib/nano/float.rb +4 -0
- data/lib/nano/float/approx%3F.rb +19 -0
- data/lib/nano/float/round_at.rb +30 -0
- data/lib/nano/float/round_off.rb +12 -0
- data/lib/nano/float/round_to.rb +31 -0
- data/lib/nano/full.rb +353 -0
- data/lib/nano/hash.rb +34 -0
- data/lib/nano/hash/%3A%3Azipnew.rb +15 -0
- data/lib/nano/hash/%3C%3C.rb +5 -0
- data/lib/nano/hash/%5B%5D%3D.rb +22 -0
- data/lib/nano/hash/%5B%5D.rb +21 -0
- data/lib/nano/hash/alias%21.rb +28 -0
- data/lib/nano/hash/assert_has_keys.rb +14 -0
- data/lib/nano/hash/assert_has_only_keys.rb +14 -0
- data/lib/nano/hash/at.rb +3 -0
- data/lib/nano/hash/collate%21.rb +10 -0
- data/lib/nano/hash/collate.rb +19 -0
- data/lib/nano/hash/delete_unless.rb +7 -0
- data/lib/nano/hash/each.rb +30 -0
- data/lib/nano/hash/graph%21.rb +8 -0
- data/lib/nano/hash/has_keys%3F.rb +15 -0
- data/lib/nano/hash/has_only_keys%3F.rb +15 -0
- data/lib/nano/hash/inverse.rb +28 -0
- data/lib/nano/hash/join.rb +7 -0
- data/lib/nano/hash/keys_to_s%21.rb +33 -0
- data/lib/nano/hash/keys_to_s.rb +24 -0
- data/lib/nano/hash/keys_to_sym%21.rb +38 -0
- data/lib/nano/hash/keys_to_sym.rb +29 -0
- data/lib/nano/hash/rand_key.rb +25 -0
- data/lib/nano/hash/rand_pair.rb +26 -0
- data/lib/nano/hash/rand_value.rb +36 -0
- data/lib/nano/hash/replace_each.rb +9 -0
- data/lib/nano/hash/shuffle%21.rb +16 -0
- data/lib/nano/hash/shuffle.rb +15 -0
- data/lib/nano/hash/slice.rb +11 -0
- data/lib/nano/hash/swap%21.rb +14 -0
- data/lib/nano/hash/swapkey%21.rb +20 -0
- data/lib/nano/hash/to_h.rb +12 -0
- data/lib/nano/hash/to_ostruct.rb +14 -0
- data/lib/nano/hash/to_ostruct_recurse.rb +19 -0
- data/lib/nano/hash/traverse%21.rb +16 -0
- data/lib/nano/hash/traverse.rb +21 -0
- data/lib/nano/hash/update_each.rb +19 -0
- data/lib/nano/hash/weave.rb +64 -0
- data/lib/nano/inflect.rb +35 -0
- data/lib/nano/integer.rb +8 -0
- data/lib/nano/integer/even%3F.rb +14 -0
- data/lib/nano/integer/fact.rb +13 -0
- data/lib/nano/integer/factorial.rb +17 -0
- data/lib/nano/integer/multiple%3F.rb +12 -0
- data/lib/nano/integer/odd%3F.rb +14 -0
- data/lib/nano/integer/ordinal.rb +17 -0
- data/lib/nano/integer/times_collect.rb +14 -0
- data/lib/nano/integer/times_map.rb +5 -0
- data/lib/nano/kernel.rb +23 -0
- data/lib/nano/kernel/__require__.rb +5 -0
- data/lib/nano/kernel/autoreload.rb +35 -0
- data/lib/nano/kernel/autoreload_glob.rb +36 -0
- data/lib/nano/kernel/bug%21.rb +17 -0
- data/lib/nano/kernel/call_stack.rb +36 -0
- data/lib/nano/kernel/called.rb +19 -0
- data/lib/nano/kernel/demo.rb +23 -0
- data/lib/nano/kernel/fn.rb +8 -0
- data/lib/nano/kernel/get_by_id.rb +7 -0
- data/lib/nano/kernel/here.rb +9 -0
- data/lib/nano/kernel/maybe.rb +15 -0
- data/lib/nano/kernel/method_name.rb +19 -0
- data/lib/nano/kernel/nack.rb +12 -0
- data/lib/nano/kernel/p.rb +9 -0
- data/lib/nano/kernel/require_all.rb +22 -0
- data/lib/nano/kernel/require_esc.rb +16 -0
- data/lib/nano/kernel/require_local.rb +12 -0
- data/lib/nano/kernel/require_nano.rb +18 -0
- data/lib/nano/kernel/resc.rb +6 -0
- data/lib/nano/kernel/returning.rb +22 -0
- data/lib/nano/kernel/silence_warnings.rb +4 -0
- data/lib/nano/kernel/silently.rb +12 -0
- data/lib/nano/kernel/warn_with_line.rb +17 -0
- data/lib/nano/logger/format.rb +22 -0
- data/lib/nano/logger/format_message.rb +11 -0
- data/lib/nano/matchdata.rb +3 -0
- data/lib/nano/matchdata/match.rb +12 -0
- data/lib/nano/matchdata/matchset.rb +10 -0
- data/lib/nano/matchdata/matchtree.rb +29 -0
- data/lib/nano/module.rb +34 -0
- data/lib/nano/module/abstract.rb +18 -0
- data/lib/nano/module/alias_module_function.rb +28 -0
- data/lib/nano/module/attr_setter.rb +38 -0
- data/lib/nano/module/attr_tester.rb +46 -0
- data/lib/nano/module/basename.rb +17 -0
- data/lib/nano/module/by_name.rb +43 -0
- data/lib/nano/module/cattr_accessor.rb +25 -0
- data/lib/nano/module/cattr_reader.rb +40 -0
- data/lib/nano/module/cattr_writer.rb +44 -0
- data/lib/nano/module/clone_removing.rb +10 -0
- data/lib/nano/module/clone_renaming.rb +14 -0
- data/lib/nano/module/clone_using.rb +14 -0
- data/lib/nano/module/dirname.rb +20 -0
- data/lib/nano/module/equate_on.rb +37 -0
- data/lib/nano/module/generate_instance_method_name.rb +18 -0
- data/lib/nano/module/include_as.rb +72 -0
- data/lib/nano/module/initializer.rb +34 -0
- data/lib/nano/module/instance_methods.rb +131 -0
- data/lib/nano/module/integrate.rb +18 -0
- data/lib/nano/module/memoize.rb +50 -0
- data/lib/nano/module/modspace.rb +22 -0
- data/lib/nano/module/namespace.rb +33 -0
- data/lib/nano/module/redef.rb +6 -0
- data/lib/nano/module/redefine_method.rb +30 -0
- data/lib/nano/module/redirect.rb +5 -0
- data/lib/nano/module/redirect_method.rb +39 -0
- data/lib/nano/module/remove.rb +4 -0
- data/lib/nano/module/rename.rb +5 -0
- data/lib/nano/module/rename_method.rb +12 -0
- data/lib/nano/module/sattr.rb +56 -0
- data/lib/nano/module/sattr_accessor.rb +1 -0
- data/lib/nano/module/sattr_reader.rb +1 -0
- data/lib/nano/module/sattr_setter.rb +1 -0
- data/lib/nano/module/sattr_tester.rb +1 -0
- data/lib/nano/module/sattr_writer.rb +1 -0
- data/lib/nano/module/sort_on.rb +35 -0
- data/lib/nano/module/undef.rb +4 -0
- data/lib/nano/module/wrap.rb +5 -0
- data/lib/nano/module/wrap_method.rb +21 -0
- data/lib/nano/nil_as_emptiness.rb +34 -0
- data/lib/nano/nilclass.rb +2 -0
- data/lib/nano/nilclass/%5B%5D.rb +10 -0
- data/lib/nano/nilclass/empty%3F.rb +8 -0
- data/lib/nano/nilclass/include%3F.rb +8 -0
- data/lib/nano/nilclass/length.rb +10 -0
- data/lib/nano/nilclass/method_missing.rb +10 -0
- data/lib/nano/nilclass/size.rb +10 -0
- data/lib/nano/nilclass/to_f.rb +9 -0
- data/lib/nano/nilclass/to_h.rb +10 -0
- data/lib/nano/numeric.rb +5 -0
- data/lib/nano/numeric/ceil_multiple.rb +8 -0
- data/lib/nano/numeric/distance.rb +13 -0
- data/lib/nano/numeric/pred.rb +14 -0
- data/lib/nano/numeric/succ.rb +20 -0
- data/lib/nano/numeric/to_b.rb +13 -0
- data/lib/nano/object.rb +28 -0
- data/lib/nano/object/__class__.rb +7 -0
- data/lib/nano/object/assign_from.rb +42 -0
- data/lib/nano/object/assign_with.rb +45 -0
- data/lib/nano/object/bool%3F.rb +21 -0
- data/lib/nano/object/constant.rb +23 -0
- data/lib/nano/object/copy.rb +10 -0
- data/lib/nano/object/deep_copy.rb +10 -0
- data/lib/nano/object/false%3F.rb +21 -0
- data/lib/nano/object/generate_method_name.rb +18 -0
- data/lib/nano/object/in%3F.rb +10 -0
- data/lib/nano/object/metaclass.rb +7 -0
- data/lib/nano/object/method%21.rb +48 -0
- data/lib/nano/object/methods.rb +33 -0
- data/lib/nano/object/new.rb +11 -0
- data/lib/nano/object/object_class.rb +7 -0
- data/lib/nano/object/object_hexid.rb +10 -0
- data/lib/nano/object/set_from.rb +13 -0
- data/lib/nano/object/set_with.rb +19 -0
- data/lib/nano/object/singleton_class.rb +7 -0
- data/lib/nano/object/special_class.rb +7 -0
- data/lib/nano/object/super_method.rb +11 -0
- data/lib/nano/object/super_send.rb +11 -0
- data/lib/nano/object/superup.rb +39 -0
- data/lib/nano/object/to_b.rb +14 -0
- data/lib/nano/object/to_bool.rb +24 -0
- data/lib/nano/object/true%3F.rb +21 -0
- data/lib/nano/object/val%3F.rb +14 -0
- data/lib/nano/object/with_accessor.rb +21 -0
- data/lib/nano/object/with_reader.rb +19 -0
- data/lib/nano/object/with_writer.rb +21 -0
- data/lib/nano/ostruct.rb +3 -0
- data/lib/nano/ostruct/%5B%5D%3D.rb +18 -0
- data/lib/nano/ostruct/%5B%5D.rb +18 -0
- data/lib/nano/ostruct/ostruct_update.rb +20 -0
- data/lib/nano/pathname.rb +2 -0
- data/lib/nano/pathname/ascend.rb +21 -0
- data/lib/nano/pathname/descend.rb +20 -0
- data/lib/nano/proc.rb +3 -0
- data/lib/nano/proc/%2A.rb +8 -0
- data/lib/nano/proc/compose.rb +21 -0
- data/lib/nano/proc/to_method.rb +47 -0
- data/lib/nano/random.rb +30 -0
- data/lib/nano/range.rb +4 -0
- data/lib/nano/range/to_r.rb +9 -0
- data/lib/nano/range/to_range.rb +13 -0
- data/lib/nano/range/umbrella.rb +37 -0
- data/lib/nano/range/within%3F.rb +19 -0
- data/lib/nano/regexp.rb +3 -0
- data/lib/nano/regexp/arity.rb +12 -0
- data/lib/nano/regexp/to_re.rb +15 -0
- data/lib/nano/regexp/to_regexp.rb +11 -0
- data/lib/nano/string.rb +88 -0
- data/lib/nano/string/%3A%3Apatterns.rb +28 -0
- data/lib/nano/string/%3A%3Arand_letter.rb +13 -0
- data/lib/nano/string/%3A%3Arandom.rb +27 -0
- data/lib/nano/string/align_center.rb +36 -0
- data/lib/nano/string/align_left.rb +18 -0
- data/lib/nano/string/align_right.rb +18 -0
- data/lib/nano/string/at.rb +5 -0
- data/lib/nano/string/at_rand%21.rb +24 -0
- data/lib/nano/string/at_rand.rb +17 -0
- data/lib/nano/string/basename.rb +12 -0
- data/lib/nano/string/blank%3F.rb +14 -0
- data/lib/nano/string/bracket%21.rb +10 -0
- data/lib/nano/string/bracket.rb +19 -0
- data/lib/nano/string/brief.rb +23 -0
- data/lib/nano/string/bytes.rb +10 -0
- data/lib/nano/string/camelcase.rb +24 -0
- data/lib/nano/string/camelize.rb +14 -0
- data/lib/nano/string/capitalized%3F.rb +17 -0
- data/lib/nano/string/chars.rb +12 -0
- data/lib/nano/string/cmp.rb +18 -0
- data/lib/nano/string/demodulize.rb +7 -0
- data/lib/nano/string/dequote.rb +19 -0
- data/lib/nano/string/downcase%3F.rb +16 -0
- data/lib/nano/string/dresner%21.rb +11 -0
- data/lib/nano/string/dresner.rb +16 -0
- data/lib/nano/string/each_char.rb +11 -0
- data/lib/nano/string/each_word.rb +26 -0
- data/lib/nano/string/first%21.rb +34 -0
- data/lib/nano/string/first%3D.rb +13 -0
- data/lib/nano/string/first.rb +18 -0
- data/lib/nano/string/first_char.rb +11 -0
- data/lib/nano/string/fold.rb +33 -0
- data/lib/nano/string/frequency.rb +15 -0
- data/lib/nano/string/humanize.rb +10 -0
- data/lib/nano/string/indent.rb +17 -0
- data/lib/nano/string/index_all.rb +19 -0
- data/lib/nano/string/last%21.rb +34 -0
- data/lib/nano/string/last%3D.rb +13 -0
- data/lib/nano/string/last.rb +17 -0
- data/lib/nano/string/last_char.rb +13 -0
- data/lib/nano/string/line_wrap.rb +53 -0
- data/lib/nano/string/lines.rb +12 -0
- data/lib/nano/string/lowercase%3F.rb +11 -0
- data/lib/nano/string/margin.rb +26 -0
- data/lib/nano/string/mscan.rb +17 -0
- data/lib/nano/string/natcmp.rb +83 -0
- data/lib/nano/string/nchar.rb +21 -0
- data/lib/nano/string/ordinal.rb +7 -0
- data/lib/nano/string/plural.rb +43 -0
- data/lib/nano/string/pop.rb +7 -0
- data/lib/nano/string/probability.rb +11 -0
- data/lib/nano/string/push.rb +5 -0
- data/lib/nano/string/quote.rb +24 -0
- data/lib/nano/string/rand_byte%21.rb +17 -0
- data/lib/nano/string/rand_byte.rb +12 -0
- data/lib/nano/string/rand_index.rb +9 -0
- data/lib/nano/string/range.rb +15 -0
- data/lib/nano/string/range_all.rb +26 -0
- data/lib/nano/string/range_of_line.rb +19 -0
- data/lib/nano/string/shatter.rb +21 -0
- data/lib/nano/string/shift.rb +7 -0
- data/lib/nano/string/shuffle.rb +20 -0
- data/lib/nano/string/similarity.rb +84 -0
- data/lib/nano/string/singular.rb +51 -0
- data/lib/nano/string/slap.rb +9 -0
- data/lib/nano/string/soundex.rb +71 -0
- data/lib/nano/string/succ.rb +14 -0
- data/lib/nano/string/tab.rb +13 -0
- data/lib/nano/string/tabto.rb +17 -0
- data/lib/nano/string/to_a.rb +13 -0
- data/lib/nano/string/to_arr.rb +34 -0
- data/lib/nano/string/to_b.rb +28 -0
- data/lib/nano/string/to_const.rb +13 -0
- data/lib/nano/string/to_date.rb +10 -0
- data/lib/nano/string/to_proc.rb +26 -0
- data/lib/nano/string/to_re.rb +14 -0
- data/lib/nano/string/to_time.rb +9 -0
- data/lib/nano/string/underscore.rb +9 -0
- data/lib/nano/string/unix_crypt%21.rb +8 -0
- data/lib/nano/string/unix_crypt.rb +8 -0
- data/lib/nano/string/unpack.rb +16 -0
- data/lib/nano/string/unshift.rb +7 -0
- data/lib/nano/string/upcase%3F.rb +17 -0
- data/lib/nano/string/uppercase%3F.rb +11 -0
- data/lib/nano/string/whitespace%3F.rb +5 -0
- data/lib/nano/string/word_filter%21.rb +22 -0
- data/lib/nano/string/word_filter.rb +14 -0
- data/lib/nano/string/word_wrap%21.rb +13 -0
- data/lib/nano/string/word_wrap.rb +21 -0
- data/lib/nano/string/words.rb +12 -0
- data/lib/nano/string_as_array.rb +16 -0
- data/lib/nano/symbol.rb +12 -0
- data/lib/nano/symbol/camelcase.rb +21 -0
- data/lib/nano/symbol/camelize.rb +10 -0
- data/lib/nano/symbol/capitalized%3F.rb +10 -0
- data/lib/nano/symbol/downcase%3F.rb +10 -0
- data/lib/nano/symbol/not.rb +16 -0
- data/lib/nano/symbol/pad.rb +20 -0
- data/lib/nano/symbol/succ.rb +18 -0
- data/lib/nano/symbol/to_const.rb +14 -0
- data/lib/nano/symbol/to_proc.rb +20 -0
- data/lib/nano/symbol/to_str.rb +12 -0
- data/lib/nano/symbol/underscore.rb +10 -0
- data/lib/nano/symbol/upcase%3F.rb +10 -0
- data/lib/nano/time.rb +6 -0
- data/lib/nano/time/%3A%3Adays_extrema.rb +22 -0
- data/lib/nano/time/change.rb +20 -0
- data/lib/nano/time/elapse.rb +18 -0
- data/lib/nano/time/stamp.rb +21 -0
- data/lib/nano/time/to_date.rb +8 -0
- data/lib/nano/time/to_s.rb +6 -0
- data/lib/nano/time/to_time.rb +10 -0
- data/lib/nanoreq.rb +2 -0
- data/lib/nanosys.rb +203 -0
- data/pub/www/doc/classes/Array.html +794 -0
- data/pub/www/doc/classes/Array.src/M000039.html +36 -0
- data/pub/www/doc/classes/Array.src/M000040.html +30 -0
- data/pub/www/doc/classes/Array.src/M000041.html +30 -0
- data/pub/www/doc/classes/Array.src/M000042.html +30 -0
- data/pub/www/doc/classes/Array.src/M000043.html +35 -0
- data/pub/www/doc/classes/Array.src/M000044.html +30 -0
- data/pub/www/doc/classes/Array.src/M000045.html +30 -0
- data/pub/www/doc/classes/Array.src/M000046.html +31 -0
- data/pub/www/doc/classes/Array.src/M000047.html +30 -0
- data/pub/www/doc/classes/Array.src/M000048.html +32 -0
- data/pub/www/doc/classes/Array.src/M000049.html +37 -0
- data/pub/www/doc/classes/Array.src/M000050.html +38 -0
- data/pub/www/doc/classes/Array.src/M000051.html +31 -0
- data/pub/www/doc/classes/Array.src/M000052.html +36 -0
- data/pub/www/doc/classes/Array.src/M000053.html +30 -0
- data/pub/www/doc/classes/Array.src/M000054.html +30 -0
- data/pub/www/doc/classes/Array.src/M000055.html +34 -0
- data/pub/www/doc/classes/Array.src/M000056.html +30 -0
- data/pub/www/doc/classes/Array.src/M000057.html +36 -0
- data/pub/www/doc/classes/Array.src/M000058.html +42 -0
- data/pub/www/doc/classes/Array.src/M000059.html +30 -0
- data/pub/www/doc/classes/Array.src/M000060.html +43 -0
- data/pub/www/doc/classes/Array.src/M000061.html +30 -0
- data/pub/www/doc/classes/Array.src/M000062.html +34 -0
- data/pub/www/doc/classes/Array.src/M000063.html +30 -0
- data/pub/www/doc/classes/Array.src/M000064.html +31 -0
- data/pub/www/doc/classes/Array.src/M000065.html +34 -0
- data/pub/www/doc/classes/Array.src/M000066.html +35 -0
- data/pub/www/doc/classes/Array.src/M000067.html +30 -0
- data/pub/www/doc/classes/Array.src/M000069.html +30 -0
- data/pub/www/doc/classes/Array.src/M000070.html +34 -0
- data/pub/www/doc/classes/Array.src/M000071.html +39 -0
- data/pub/www/doc/classes/Array.src/M000072.html +41 -0
- data/pub/www/doc/classes/Array.src/M000073.html +35 -0
- data/pub/www/doc/classes/Binding.html +389 -0
- data/pub/www/doc/classes/Binding.src/M000216.html +30 -0
- data/pub/www/doc/classes/Binding.src/M000217.html +73 -0
- data/pub/www/doc/classes/Binding.src/M000218.html +30 -0
- data/pub/www/doc/classes/Binding.src/M000219.html +31 -0
- data/pub/www/doc/classes/Binding.src/M000220.html +73 -0
- data/pub/www/doc/classes/Binding.src/M000221.html +30 -0
- data/pub/www/doc/classes/Binding.src/M000222.html +30 -0
- data/pub/www/doc/classes/Binding.src/M000223.html +30 -0
- data/pub/www/doc/classes/Binding.src/M000224.html +34 -0
- data/pub/www/doc/classes/Binding.src/M000225.html +31 -0
- data/pub/www/doc/classes/Binding.src/M000226.html +30 -0
- data/pub/www/doc/classes/Binding.src/M000227.html +31 -0
- data/pub/www/doc/classes/Binding.src/M000228.html +30 -0
- data/pub/www/doc/classes/Binding.src/M000229.html +30 -0
- data/pub/www/doc/classes/Binding.src/M000230.html +30 -0
- data/pub/www/doc/classes/Class.html +130 -0
- data/pub/www/doc/classes/Class.src/M000191.html +36 -0
- data/pub/www/doc/classes/Class.src/M000192.html +33 -0
- data/pub/www/doc/classes/Comparable.html +180 -0
- data/pub/www/doc/classes/Comparable.src/M000413.html +30 -0
- data/pub/www/doc/classes/Comparable.src/M000414.html +30 -0
- data/pub/www/doc/classes/Comparable.src/M000415.html +30 -0
- data/pub/www/doc/classes/Comparable.src/M000416.html +30 -0
- data/pub/www/doc/classes/Comparable.src/M000417.html +33 -0
- data/pub/www/doc/classes/Continuation.html +147 -0
- data/pub/www/doc/classes/Continuation.src/M000366.html +33 -0
- data/pub/www/doc/classes/Date.html +177 -0
- data/pub/www/doc/classes/Date.src/M000203.html +30 -0
- data/pub/www/doc/classes/Date.src/M000204.html +30 -0
- data/pub/www/doc/classes/Date.src/M000205.html +37 -0
- data/pub/www/doc/classes/Date.src/M000207.html +30 -0
- data/pub/www/doc/classes/Date.src/M000208.html +30 -0
- data/pub/www/doc/classes/Dir.html +111 -0
- data/pub/www/doc/classes/Dir.src/M000037.html +41 -0
- data/pub/www/doc/classes/Enumerable.html +630 -0
- data/pub/www/doc/classes/Enumerable.src/M000387.html +34 -0
- data/pub/www/doc/classes/Enumerable.src/M000388.html +34 -0
- data/pub/www/doc/classes/Enumerable.src/M000389.html +43 -0
- data/pub/www/doc/classes/Enumerable.src/M000390.html +38 -0
- data/pub/www/doc/classes/Enumerable.src/M000391.html +37 -0
- data/pub/www/doc/classes/Enumerable.src/M000392.html +41 -0
- data/pub/www/doc/classes/Enumerable.src/M000393.html +32 -0
- data/pub/www/doc/classes/Enumerable.src/M000394.html +30 -0
- data/pub/www/doc/classes/Enumerable.src/M000395.html +35 -0
- data/pub/www/doc/classes/Enumerable.src/M000396.html +37 -0
- data/pub/www/doc/classes/Enumerable.src/M000397.html +34 -0
- data/pub/www/doc/classes/Enumerable.src/M000399.html +32 -0
- data/pub/www/doc/classes/Enumerable.src/M000401.html +34 -0
- data/pub/www/doc/classes/Enumerable.src/M000402.html +34 -0
- data/pub/www/doc/classes/Enumerable.src/M000405.html +45 -0
- data/pub/www/doc/classes/Enumerable.src/M000406.html +33 -0
- data/pub/www/doc/classes/Enumerable.src/M000407.html +60 -0
- data/pub/www/doc/classes/Enumerable.src/M000408.html +41 -0
- data/pub/www/doc/classes/Enumerable.src/M000409.html +46 -0
- data/pub/www/doc/classes/Enumerable.src/M000410.html +30 -0
- data/pub/www/doc/classes/Enumerable.src/M000411.html +36 -0
- data/pub/www/doc/classes/Enumerable.src/M000412.html +30 -0
- data/pub/www/doc/classes/FalseClass.html +105 -0
- data/pub/www/doc/classes/FalseClass.src/M000038.html +30 -0
- data/pub/www/doc/classes/File.html +160 -0
- data/pub/www/doc/classes/File.src/M000418.html +33 -0
- data/pub/www/doc/classes/File.src/M000419.html +51 -0
- data/pub/www/doc/classes/File.src/M000420.html +33 -0
- data/pub/www/doc/classes/FileUtils.html +239 -0
- data/pub/www/doc/classes/FileUtils.src/M000359.html +71 -0
- data/pub/www/doc/classes/FileUtils.src/M000360.html +30 -0
- data/pub/www/doc/classes/FileUtils.src/M000361.html +58 -0
- data/pub/www/doc/classes/FileUtils.src/M000362.html +39 -0
- data/pub/www/doc/classes/FileUtils.src/M000363.html +40 -0
- data/pub/www/doc/classes/FileUtils.src/M000364.html +30 -0
- data/pub/www/doc/classes/FileUtils.src/M000365.html +67 -0
- data/pub/www/doc/classes/Float.html +150 -0
- data/pub/www/doc/classes/Float.src/M000188.html +30 -0
- data/pub/www/doc/classes/Float.src/M000189.html +31 -0
- data/pub/www/doc/classes/Float.src/M000190.html +31 -0
- data/pub/www/doc/classes/Functor.html +128 -0
- data/pub/www/doc/classes/Functor.src/M000209.html +28 -0
- data/pub/www/doc/classes/Functor.src/M000210.html +28 -0
- data/pub/www/doc/classes/Functor.src/M000211.html +28 -0
- data/pub/www/doc/classes/Functor.src/M000212.html +28 -0
- data/pub/www/doc/classes/Hash.html +933 -0
- data/pub/www/doc/classes/Hash.src/M000074.html +32 -0
- data/pub/www/doc/classes/Hash.src/M000075.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000076.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000077.html +32 -0
- data/pub/www/doc/classes/Hash.src/M000078.html +31 -0
- data/pub/www/doc/classes/Hash.src/M000079.html +31 -0
- data/pub/www/doc/classes/Hash.src/M000080.html +31 -0
- data/pub/www/doc/classes/Hash.src/M000081.html +35 -0
- data/pub/www/doc/classes/Hash.src/M000082.html +37 -0
- data/pub/www/doc/classes/Hash.src/M000083.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000084.html +38 -0
- data/pub/www/doc/classes/Hash.src/M000085.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000086.html +32 -0
- data/pub/www/doc/classes/Hash.src/M000090.html +31 -0
- data/pub/www/doc/classes/Hash.src/M000091.html +34 -0
- data/pub/www/doc/classes/Hash.src/M000092.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000093.html +31 -0
- data/pub/www/doc/classes/Hash.src/M000095.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000096.html +32 -0
- data/pub/www/doc/classes/Hash.src/M000097.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000098.html +31 -0
- data/pub/www/doc/classes/Hash.src/M000099.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000100.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000101.html +32 -0
- data/pub/www/doc/classes/Hash.src/M000103.html +28 -0
- data/pub/www/doc/classes/Hash.src/M000104.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000105.html +40 -0
- data/pub/www/doc/classes/Hash.src/M000107.html +34 -0
- data/pub/www/doc/classes/Hash.src/M000108.html +30 -0
- data/pub/www/doc/classes/Hash.src/M000109.html +34 -0
- data/pub/www/doc/classes/Hash.src/M000110.html +33 -0
- data/pub/www/doc/classes/Hash.src/M000111.html +40 -0
- data/pub/www/doc/classes/Hash.src/M000113.html +31 -0
- data/pub/www/doc/classes/Hash.src/M000115.html +67 -0
- data/pub/www/doc/classes/Hash.src/M000116.html +31 -0
- data/pub/www/doc/classes/Hash.src/M000117.html +32 -0
- data/pub/www/doc/classes/Hash.src/M000119.html +31 -0
- data/pub/www/doc/classes/Integer.html +237 -0
- data/pub/www/doc/classes/Integer.src/M000006.html +30 -0
- data/pub/www/doc/classes/Integer.src/M000007.html +30 -0
- data/pub/www/doc/classes/Integer.src/M000008.html +30 -0
- data/pub/www/doc/classes/Integer.src/M000009.html +31 -0
- data/pub/www/doc/classes/Integer.src/M000011.html +33 -0
- data/pub/www/doc/classes/Integer.src/M000012.html +39 -0
- data/pub/www/doc/classes/Integer.src/M000013.html +30 -0
- data/pub/www/doc/classes/Integer.src/M000014.html +30 -0
- data/pub/www/doc/classes/Kernel.html +415 -0
- data/pub/www/doc/classes/Kernel.src/M000367.html +39 -0
- data/pub/www/doc/classes/Kernel.src/M000368.html +31 -0
- data/pub/www/doc/classes/Kernel.src/M000369.html +30 -0
- data/pub/www/doc/classes/Kernel.src/M000370.html +30 -0
- data/pub/www/doc/classes/Kernel.src/M000371.html +30 -0
- data/pub/www/doc/classes/Kernel.src/M000372.html +38 -0
- data/pub/www/doc/classes/Kernel.src/M000373.html +30 -0
- data/pub/www/doc/classes/Kernel.src/M000374.html +31 -0
- data/pub/www/doc/classes/Kernel.src/M000375.html +50 -0
- data/pub/www/doc/classes/Kernel.src/M000376.html +49 -0
- data/pub/www/doc/classes/Kernel.src/M000377.html +30 -0
- data/pub/www/doc/classes/Kernel.src/M000378.html +28 -0
- data/pub/www/doc/classes/Kernel.src/M000379.html +31 -0
- data/pub/www/doc/classes/Kernel.src/M000380.html +34 -0
- data/pub/www/doc/classes/Kernel.src/M000381.html +32 -0
- data/pub/www/doc/classes/Kernel.src/M000382.html +31 -0
- data/pub/www/doc/classes/Kernel.src/M000383.html +31 -0
- data/pub/www/doc/classes/Kernel.src/M000384.html +33 -0
- data/pub/www/doc/classes/Kernel.src/M000385.html +35 -0
- data/pub/www/doc/classes/Kernel/NanoKernel.html +111 -0
- data/pub/www/doc/classes/Kernel/NanoKernel.src/M000386.html +35 -0
- data/pub/www/doc/classes/Logger.html +137 -0
- data/pub/www/doc/classes/Logger.src/M000231.html +31 -0
- data/pub/www/doc/classes/Logger.src/M000232.html +30 -0
- data/pub/www/doc/classes/MatchData.html +146 -0
- data/pub/www/doc/classes/MatchData.src/M000134.html +45 -0
- data/pub/www/doc/classes/MatchData.src/M000135.html +30 -0
- data/pub/www/doc/classes/MatchData.src/M000136.html +30 -0
- data/pub/www/doc/classes/Module.html +996 -0
- data/pub/www/doc/classes/Module.src/M000139.html +30 -0
- data/pub/www/doc/classes/Module.src/M000140.html +44 -0
- data/pub/www/doc/classes/Module.src/M000141.html +32 -0
- data/pub/www/doc/classes/Module.src/M000142.html +36 -0
- data/pub/www/doc/classes/Module.src/M000143.html +37 -0
- data/pub/www/doc/classes/Module.src/M000144.html +33 -0
- data/pub/www/doc/classes/Module.src/M000145.html +30 -0
- data/pub/www/doc/classes/Module.src/M000146.html +89 -0
- data/pub/www/doc/classes/Module.src/M000147.html +32 -0
- data/pub/www/doc/classes/Module.src/M000148.html +32 -0
- data/pub/www/doc/classes/Module.src/M000149.html +32 -0
- data/pub/www/doc/classes/Module.src/M000150.html +32 -0
- data/pub/www/doc/classes/Module.src/M000151.html +32 -0
- data/pub/www/doc/classes/Module.src/M000152.html +32 -0
- data/pub/www/doc/classes/Module.src/M000153.html +46 -0
- data/pub/www/doc/classes/Module.src/M000154.html +33 -0
- data/pub/www/doc/classes/Module.src/M000155.html +30 -0
- data/pub/www/doc/classes/Module.src/M000156.html +34 -0
- data/pub/www/doc/classes/Module.src/M000158.html +31 -0
- data/pub/www/doc/classes/Module.src/M000159.html +37 -0
- data/pub/www/doc/classes/Module.src/M000160.html +32 -0
- data/pub/www/doc/classes/Module.src/M000161.html +35 -0
- data/pub/www/doc/classes/Module.src/M000162.html +33 -0
- data/pub/www/doc/classes/Module.src/M000163.html +35 -0
- data/pub/www/doc/classes/Module.src/M000164.html +41 -0
- data/pub/www/doc/classes/Module.src/M000165.html +32 -0
- data/pub/www/doc/classes/Module.src/M000166.html +41 -0
- data/pub/www/doc/classes/Module.src/M000168.html +30 -0
- data/pub/www/doc/classes/Module.src/M000169.html +36 -0
- data/pub/www/doc/classes/Module.src/M000172.html +33 -0
- data/pub/www/doc/classes/Module.src/M000173.html +35 -0
- data/pub/www/doc/classes/Module.src/M000176.html +34 -0
- data/pub/www/doc/classes/Module.src/M000177.html +32 -0
- data/pub/www/doc/classes/Module.src/M000178.html +41 -0
- data/pub/www/doc/classes/NackClass.html +92 -0
- data/pub/www/doc/classes/NanoSystem.html +340 -0
- data/pub/www/doc/classes/NanoSystem.src/M000120.html +30 -0
- data/pub/www/doc/classes/NanoSystem.src/M000121.html +31 -0
- data/pub/www/doc/classes/NanoSystem.src/M000122.html +32 -0
- data/pub/www/doc/classes/NanoSystem.src/M000123.html +31 -0
- data/pub/www/doc/classes/NanoSystem.src/M000124.html +31 -0
- data/pub/www/doc/classes/NanoSystem.src/M000125.html +44 -0
- data/pub/www/doc/classes/NanoSystem.src/M000126.html +47 -0
- data/pub/www/doc/classes/NanoSystem.src/M000127.html +30 -0
- data/pub/www/doc/classes/NanoSystem.src/M000128.html +30 -0
- data/pub/www/doc/classes/NanoSystem.src/M000129.html +30 -0
- data/pub/www/doc/classes/NanoSystem.src/M000130.html +30 -0
- data/pub/www/doc/classes/NanoSystem.src/M000132.html +42 -0
- data/pub/www/doc/classes/NanoSystem.src/M000133.html +39 -0
- data/pub/www/doc/classes/NilClass.html +240 -0
- data/pub/www/doc/classes/NilClass.src/M000194.html +28 -0
- data/pub/www/doc/classes/NilClass.src/M000195.html +30 -0
- data/pub/www/doc/classes/NilClass.src/M000196.html +28 -0
- data/pub/www/doc/classes/NilClass.src/M000197.html +28 -0
- data/pub/www/doc/classes/NilClass.src/M000198.html +28 -0
- data/pub/www/doc/classes/NilClass.src/M000199.html +30 -0
- data/pub/www/doc/classes/NilClass.src/M000200.html +28 -0
- data/pub/www/doc/classes/NilClass.src/M000201.html +28 -0
- data/pub/www/doc/classes/NilClass.src/M000202.html +30 -0
- data/pub/www/doc/classes/Numeric.html +223 -0
- data/pub/www/doc/classes/Numeric.src/M000180.html +30 -0
- data/pub/www/doc/classes/Numeric.src/M000181.html +30 -0
- data/pub/www/doc/classes/Numeric.src/M000182.html +30 -0
- data/pub/www/doc/classes/Numeric.src/M000183.html +30 -0
- data/pub/www/doc/classes/Numeric.src/M000184.html +31 -0
- data/pub/www/doc/classes/Numeric.src/M000185.html +30 -0
- data/pub/www/doc/classes/Numeric.src/M000186.html +32 -0
- data/pub/www/doc/classes/Numeric.src/M000187.html +31 -0
- data/pub/www/doc/classes/Object.html +665 -0
- data/pub/www/doc/classes/Object.src/M000235.html +32 -0
- data/pub/www/doc/classes/Object.src/M000236.html +30 -0
- data/pub/www/doc/classes/Object.src/M000237.html +38 -0
- data/pub/www/doc/classes/Object.src/M000238.html +30 -0
- data/pub/www/doc/classes/Object.src/M000239.html +33 -0
- data/pub/www/doc/classes/Object.src/M000241.html +33 -0
- data/pub/www/doc/classes/Object.src/M000242.html +30 -0
- data/pub/www/doc/classes/Object.src/M000243.html +31 -0
- data/pub/www/doc/classes/Object.src/M000244.html +41 -0
- data/pub/www/doc/classes/Object.src/M000245.html +31 -0
- data/pub/www/doc/classes/Object.src/M000246.html +34 -0
- data/pub/www/doc/classes/Object.src/M000247.html +31 -0
- data/pub/www/doc/classes/Object.src/M000248.html +30 -0
- data/pub/www/doc/classes/Object.src/M000249.html +32 -0
- data/pub/www/doc/classes/Object.src/M000250.html +31 -0
- data/pub/www/doc/classes/Object.src/M000251.html +30 -0
- data/pub/www/doc/classes/Object.src/M000252.html +30 -0
- data/pub/www/doc/classes/Object.src/M000253.html +31 -0
- data/pub/www/doc/classes/Object.src/M000254.html +30 -0
- data/pub/www/doc/classes/Object.src/M000255.html +30 -0
- data/pub/www/doc/classes/Object.src/M000256.html +52 -0
- data/pub/www/doc/classes/Object.src/M000257.html +30 -0
- data/pub/www/doc/classes/Object.src/M000258.html +32 -0
- data/pub/www/doc/classes/Object.src/M000259.html +30 -0
- data/pub/www/doc/classes/Object.src/M000260.html +30 -0
- data/pub/www/doc/classes/Object.src/M000261.html +30 -0
- data/pub/www/doc/classes/Object.src/M000262.html +30 -0
- data/pub/www/doc/classes/Object.src/M000263.html +30 -0
- data/pub/www/doc/classes/OpenStruct.html +154 -0
- data/pub/www/doc/classes/OpenStruct.src/M000213.html +34 -0
- data/pub/www/doc/classes/OpenStruct.src/M000214.html +32 -0
- data/pub/www/doc/classes/OpenStruct.src/M000215.html +31 -0
- data/pub/www/doc/classes/Pathname.html +126 -0
- data/pub/www/doc/classes/Pathname.src/M000233.html +33 -0
- data/pub/www/doc/classes/Pathname.src/M000234.html +34 -0
- data/pub/www/doc/classes/Proc.html +143 -0
- data/pub/www/doc/classes/Proc.src/M000137.html +32 -0
- data/pub/www/doc/classes/Range.html +188 -0
- data/pub/www/doc/classes/Range.src/M000002.html +35 -0
- data/pub/www/doc/classes/Range.src/M000003.html +32 -0
- data/pub/www/doc/classes/Range.src/M000004.html +30 -0
- data/pub/www/doc/classes/Range.src/M000005.html +30 -0
- data/pub/www/doc/classes/Regexp.html +155 -0
- data/pub/www/doc/classes/Regexp.src/M000028.html +30 -0
- data/pub/www/doc/classes/Regexp.src/M000029.html +30 -0
- data/pub/www/doc/classes/Regexp.src/M000030.html +30 -0
- data/pub/www/doc/classes/ScriptBug.html +92 -0
- data/pub/www/doc/classes/String.html +1672 -0
- data/pub/www/doc/classes/String.src/M000264.html +30 -0
- data/pub/www/doc/classes/String.src/M000265.html +40 -0
- data/pub/www/doc/classes/String.src/M000266.html +30 -0
- data/pub/www/doc/classes/String.src/M000267.html +32 -0
- data/pub/www/doc/classes/String.src/M000268.html +30 -0
- data/pub/www/doc/classes/String.src/M000269.html +34 -0
- data/pub/www/doc/classes/String.src/M000271.html +31 -0
- data/pub/www/doc/classes/String.src/M000272.html +30 -0
- data/pub/www/doc/classes/String.src/M000273.html +34 -0
- data/pub/www/doc/classes/String.src/M000274.html +40 -0
- data/pub/www/doc/classes/String.src/M000275.html +30 -0
- data/pub/www/doc/classes/String.src/M000276.html +30 -0
- data/pub/www/doc/classes/String.src/M000277.html +37 -0
- data/pub/www/doc/classes/String.src/M000278.html +42 -0
- data/pub/www/doc/classes/String.src/M000279.html +32 -0
- data/pub/www/doc/classes/String.src/M000280.html +31 -0
- data/pub/www/doc/classes/String.src/M000281.html +34 -0
- data/pub/www/doc/classes/String.src/M000282.html +36 -0
- data/pub/www/doc/classes/String.src/M000283.html +30 -0
- data/pub/www/doc/classes/String.src/M000284.html +36 -0
- data/pub/www/doc/classes/String.src/M000285.html +34 -0
- data/pub/www/doc/classes/String.src/M000287.html +39 -0
- data/pub/www/doc/classes/String.src/M000288.html +83 -0
- data/pub/www/doc/classes/String.src/M000290.html +30 -0
- data/pub/www/doc/classes/String.src/M000291.html +36 -0
- data/pub/www/doc/classes/String.src/M000292.html +30 -0
- data/pub/www/doc/classes/String.src/M000293.html +38 -0
- data/pub/www/doc/classes/String.src/M000294.html +32 -0
- data/pub/www/doc/classes/String.src/M000295.html +30 -0
- data/pub/www/doc/classes/String.src/M000296.html +30 -0
- data/pub/www/doc/classes/String.src/M000297.html +30 -0
- data/pub/www/doc/classes/String.src/M000298.html +30 -0
- data/pub/www/doc/classes/String.src/M000299.html +30 -0
- data/pub/www/doc/classes/String.src/M000300.html +30 -0
- data/pub/www/doc/classes/String.src/M000301.html +30 -0
- data/pub/www/doc/classes/String.src/M000302.html +30 -0
- data/pub/www/doc/classes/String.src/M000303.html +30 -0
- data/pub/www/doc/classes/String.src/M000304.html +30 -0
- data/pub/www/doc/classes/String.src/M000305.html +32 -0
- data/pub/www/doc/classes/String.src/M000306.html +30 -0
- data/pub/www/doc/classes/String.src/M000307.html +32 -0
- data/pub/www/doc/classes/String.src/M000308.html +31 -0
- data/pub/www/doc/classes/String.src/M000309.html +30 -0
- data/pub/www/doc/classes/String.src/M000310.html +31 -0
- data/pub/www/doc/classes/String.src/M000312.html +32 -0
- data/pub/www/doc/classes/String.src/M000313.html +40 -0
- data/pub/www/doc/classes/String.src/M000314.html +31 -0
- data/pub/www/doc/classes/String.src/M000316.html +33 -0
- data/pub/www/doc/classes/String.src/M000317.html +37 -0
- data/pub/www/doc/classes/String.src/M000318.html +30 -0
- data/pub/www/doc/classes/String.src/M000319.html +32 -0
- data/pub/www/doc/classes/String.src/M000320.html +33 -0
- data/pub/www/doc/classes/String.src/M000321.html +34 -0
- data/pub/www/doc/classes/String.src/M000322.html +34 -0
- data/pub/www/doc/classes/String.src/M000323.html +30 -0
- data/pub/www/doc/classes/String.src/M000324.html +34 -0
- data/pub/www/doc/classes/String.src/M000325.html +34 -0
- data/pub/www/doc/classes/String.src/M000326.html +30 -0
- data/pub/www/doc/classes/String.src/M000327.html +32 -0
- data/pub/www/doc/classes/String.src/M000328.html +42 -0
- data/pub/www/doc/classes/String.src/M000329.html +34 -0
- data/pub/www/doc/classes/String.src/M000330.html +30 -0
- data/pub/www/doc/classes/String.src/M000331.html +35 -0
- data/pub/www/doc/classes/String.src/M000332.html +30 -0
- data/pub/www/doc/classes/String.src/M000333.html +31 -0
- data/pub/www/doc/classes/String.src/M000334.html +43 -0
- data/pub/www/doc/classes/String.src/M000335.html +30 -0
- data/pub/www/doc/classes/String.src/M000336.html +30 -0
- data/pub/www/doc/classes/String.src/M000337.html +30 -0
- data/pub/www/doc/classes/String.src/M000338.html +32 -0
- data/pub/www/doc/classes/String.src/M000339.html +30 -0
- data/pub/www/doc/classes/String.src/M000340.html +44 -0
- data/pub/www/doc/classes/String.src/M000341.html +31 -0
- data/pub/www/doc/classes/String.src/M000342.html +35 -0
- data/pub/www/doc/classes/String.src/M000343.html +39 -0
- data/pub/www/doc/classes/String.src/M000344.html +51 -0
- data/pub/www/doc/classes/String.src/M000345.html +30 -0
- data/pub/www/doc/classes/String.src/M000346.html +36 -0
- data/pub/www/doc/classes/String.src/M000347.html +30 -0
- data/pub/www/doc/classes/String.src/M000348.html +40 -0
- data/pub/www/doc/classes/String.src/M000349.html +36 -0
- data/pub/www/doc/classes/String.src/M000350.html +30 -0
- data/pub/www/doc/classes/String.src/M000352.html +33 -0
- data/pub/www/doc/classes/String.src/M000353.html +33 -0
- data/pub/www/doc/classes/String.src/M000354.html +30 -0
- data/pub/www/doc/classes/String.src/M000355.html +69 -0
- data/pub/www/doc/classes/String.src/M000356.html +30 -0
- data/pub/www/doc/classes/String.src/M000357.html +30 -0
- data/pub/www/doc/classes/Symbol.html +269 -0
- data/pub/www/doc/classes/Symbol.src/M000015.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000016.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000017.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000018.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000019.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000020.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000021.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000022.html +34 -0
- data/pub/www/doc/classes/Symbol.src/M000023.html +38 -0
- data/pub/www/doc/classes/Symbol.src/M000024.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000025.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000026.html +30 -0
- data/pub/www/doc/classes/Symbol.src/M000027.html +30 -0
- data/pub/www/doc/classes/Time.html +198 -0
- data/pub/www/doc/classes/Time.src/M000031.html +39 -0
- data/pub/www/doc/classes/Time.src/M000032.html +31 -0
- data/pub/www/doc/classes/Time.src/M000033.html +34 -0
- data/pub/www/doc/classes/Time.src/M000034.html +43 -0
- data/pub/www/doc/classes/Time.src/M000035.html +30 -0
- data/pub/www/doc/classes/Time.src/M000036.html +33 -0
- data/pub/www/doc/classes/TrueClass.html +105 -0
- data/pub/www/doc/classes/TrueClass.src/M000358.html +30 -0
- data/pub/www/doc/created.rid +1 -0
- data/pub/www/doc/files/COPYING.html +155 -0
- data/pub/www/doc/files/README.html +311 -0
- data/pub/www/doc/files/lib/nano/array/%5B%5D%3D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/%5B%5D_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/at_rand%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/at_rand_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/bulk_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/delete_unless_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/delete_values_at_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/delete_values_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/first%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/first%3D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/foot_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/head_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/last%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/last%3D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/last_index_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/mid_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/middle_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/pick%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/pick_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/pos_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/rand_index_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/rand_subset_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/range_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/rotate%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/rotate_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/select%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/shuffle%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/shuffle_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/array/slap_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/store_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/tail_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/thru_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/to_b_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array/to_h_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/array_rb.html +127 -0
- data/pub/www/doc/files/lib/nano/base_rb.html +124 -0
- data/pub/www/doc/files/lib/nano/binding/%3A%3Aof_caller_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/%5B%5D%3D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/%5B%5D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/__DIR___rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/__FILE___rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/__LINE___rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/call_stack_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/binding/called_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/caller_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/defined%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/eval_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/binding/local_variables_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/method_name_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/of_caller_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding/self_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/binding_rb.html +109 -0
- data/pub/www/doc/files/lib/nano/class/by_name_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/class/descendents_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/class/remove_descendents_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/class/remove_subclasses_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/class/subclasses_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/class_rb.html +100 -0
- data/pub/www/doc/files/lib/nano/comparable/at_least_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/comparable/at_most_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/comparable/cap_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/comparable/clip_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/comparable/cmp_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/comparable_rb.html +100 -0
- data/pub/www/doc/files/lib/nano/continuation/%3A%3Acreate_rb.html +146 -0
- data/pub/www/doc/files/lib/nano/continuation_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/date/days_in_month_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/date/days_of_month_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/date/stamp_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/date/to_date_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/date/to_s_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/date/to_time_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/date_rb.html +101 -0
- data/pub/www/doc/files/lib/nano/dir/%3A%3Als_r_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/dir/%3A%3Arecurse_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/dir_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/enumerable/%25_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/%2A%2A_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/%3A%3Acombinations_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/%3A%3Across_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/collect_with_counter_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/collect_with_index_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/commonality_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/compact_collect_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/compact_map_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/cross_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/eF_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/each_by_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/each_combination_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/each_permutation_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/each_slice_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/each_unique_pair_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/entropy_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/enumerable/filter_collect_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/filter_map_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/find_collisions_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/frequency_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/graph_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/ideal_entropy_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/map_with_counter_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/map_with_index_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/enumerable/none%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/occur_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/one%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/partition_by_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/probability_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/to_h_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable/unique_by_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/enumerable_rb.html +127 -0
- data/pub/www/doc/files/lib/nano/file/%3A%3Acreate_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/file/%3A%3Aopen_as_string_rb.html +120 -0
- data/pub/www/doc/files/lib/nano/file/%3A%3Asplit_all_rb.html +101 -0
- data/pub/www/doc/files/lib/nano/file_rb.html +98 -0
- data/pub/www/doc/files/lib/nano/fileutils/head_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/fileutils/safe_ln_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/fileutils/slice_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/fileutils/tail_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/fileutils/wc_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/fileutils/whereis_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/fileutils/which_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/fileutils_rb.html +102 -0
- data/pub/www/doc/files/lib/nano/float/approx?_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/float/round_at_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/float/round_off_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/float/round_to_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/float_rb.html +99 -0
- data/pub/www/doc/files/lib/nano/full_rb.html +448 -0
- data/pub/www/doc/files/lib/nano/hash/%3A%3Azipnew_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/%3C%3C_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/%5B%5D%3D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/%5B%5D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/alias%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/assert_has_keys_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/assert_has_only_keys_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/at_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/collate%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/collate_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/delete_unless_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/each_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/graph%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/has_keys%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/has_only_keys%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/inverse_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/join_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/keys_to_s%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/keys_to_s_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/keys_to_sym%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/keys_to_sym_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/rand_key_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/rand_pair_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/rand_value_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/replace_each_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/shuffle%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/shuffle_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/slice_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/swap%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/swapkey%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/to_h_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/to_ostruct_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/to_ostruct_recurse_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/traverse%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/traverse_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/hash/update_each_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash/weave_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/hash_rb.html +129 -0
- data/pub/www/doc/files/lib/nano/inflect_rb.html +117 -0
- data/pub/www/doc/files/lib/nano/integer/even%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/integer/fact_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/integer/factorial_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/integer/multiple%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/integer/odd%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/integer/ordinal_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/integer/times_collect_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/integer/times_map_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/integer_rb.html +103 -0
- data/pub/www/doc/files/lib/nano/kernel/__require___rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/autoreload_glob_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/autoreload_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/bug%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/call_stack_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/called_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/demo_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/fn_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/get_by_id_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/here_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/maybe_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/method_name_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/nack_rb.html +98 -0
- data/pub/www/doc/files/lib/nano/kernel/p_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/require_all_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/require_esc_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/kernel/require_local_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/require_nano_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/kernel/resc_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/returning_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/silence_warnings_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/kernel/silently_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel/warn_with_line_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/kernel_rb.html +118 -0
- data/pub/www/doc/files/lib/nano/logger/format_message_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/logger/format_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/matchdata/match_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/matchdata/matchset_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/matchdata/matchtree_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/matchdata_rb.html +98 -0
- data/pub/www/doc/files/lib/nano/module/abstract_rb.html +105 -0
- data/pub/www/doc/files/lib/nano/module/alias_module_function_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/attr_setter_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/attr_tester_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/basename_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/by_name_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/cattr_accessor_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/module/cattr_reader_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/module/cattr_writer_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/module/clone_removing_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/clone_renaming_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/clone_using_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/dirname_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/equate_on_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/generate_instance_method_name_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/include_as_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/initializer_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/instance_methods_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/integrate_rb.html +100 -0
- data/pub/www/doc/files/lib/nano/module/memoize_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/modspace_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/module/namespace_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/redef_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/redefine_method_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/redirect_method_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/redirect_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/remove_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/rename_method_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/rename_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/sattr_accessor_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/sattr_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/module/sattr_reader_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/sattr_setter_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/sattr_tester_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/sattr_writer_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module/sort_on_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/undef_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/wrap_method_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/module/wrap_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/module_rb.html +129 -0
- data/pub/www/doc/files/lib/nano/nil_as_emptiness_rb.html +117 -0
- data/pub/www/doc/files/lib/nano/nilclass/%5B%5D_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/nilclass/empty%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/nilclass/include%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/nilclass/length_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/nilclass/method_missing_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/nilclass/size_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/nilclass/to_f_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/nilclass/to_h_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/nilclass_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/numeric/ceil_multiple_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/numeric/distance_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/numeric/pred_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/numeric/succ_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/numeric/to_b_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/numeric_rb.html +100 -0
- data/pub/www/doc/files/lib/nano/object/__class___rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/assign_from_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/object/assign_with_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/object/bool%3F_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/object/constant_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/copy_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/deep_copy_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/false%3F_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/object/generate_method_name_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/in%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/metaclass_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/method%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/methods_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/object/new_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/object_class_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/object_hexid_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/set_from_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/object/set_with_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/object/singleton_class_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/special_class_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/super_method_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/super_send_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/superup_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/object/to_b_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/to_bool_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/true%3F_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/object/val%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/object/with_accessor_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/object/with_reader_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/object/with_writer_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/object_rb.html +123 -0
- data/pub/www/doc/files/lib/nano/ostruct/%5B%5D%3D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/ostruct/%5B%5D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/ostruct/ostruct_update_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/ostruct_rb.html +98 -0
- data/pub/www/doc/files/lib/nano/pathname/ascend_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/pathname/descend_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/pathname_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/proc/%2A_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/proc/compose_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/proc/to_method_rb.html +113 -0
- data/pub/www/doc/files/lib/nano/proc/to_method_rb.src/M000001.html +40 -0
- data/pub/www/doc/files/lib/nano/proc_rb.html +98 -0
- data/pub/www/doc/files/lib/nano/random_rb.html +120 -0
- data/pub/www/doc/files/lib/nano/range/to_r_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/range/to_range_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/range/umbrella_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/range/within%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/range_rb.html +99 -0
- data/pub/www/doc/files/lib/nano/regexp/arity_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/regexp/to_re_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/regexp/to_regexp_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/regexp_rb.html +98 -0
- data/pub/www/doc/files/lib/nano/string/%3A%3Apatterns_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/%3A%3Arand_letter_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/%3A%3Arandom_rb.html +99 -0
- data/pub/www/doc/files/lib/nano/string/align_center_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/align_left_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/align_right_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/at_rand%21_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/at_rand_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/at_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/basename_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/blank%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/bracket%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/bracket_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/brief_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/bytes_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/camelcase_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/camelize_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/capitalized%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/chars_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/cmp_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/demodulize_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/dequote_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/downcase%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/dresner%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/dresner_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/each_char_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/each_word_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/first%21_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/first%3D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/first_char_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/first_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/fold_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/frequency_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/humanize_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/indent_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/index_all_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/last%21_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/last%3D_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/last_char_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/last_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/line_wrap_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/lines_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/lowercase%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/margin_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/mscan_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/natcmp_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/nchar_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/ordinal_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/plural_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/pop_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/probability_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/push_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/quote_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/rand_byte%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/rand_byte_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/rand_index_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/range_all_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/range_of_line_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/range_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/shatter_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/shift_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/shuffle_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/similarity_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/singular_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/slap_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/soundex_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/succ_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/tab_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/tabto_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/to_a_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/to_arr_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/to_b_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/to_const_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/to_date_rb.html +97 -0
- data/pub/www/doc/files/lib/nano/string/to_proc_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/to_re_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/to_time_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/underscore_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/unix_crypt%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/unix_crypt_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/unpack_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/unshift_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/upcase%3F_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/uppercase%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/whitespace%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/word_filter%21_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string/word_filter_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/word_wrap%21_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/word_wrap_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/string/words_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/string_as_array_rb.html +109 -0
- data/pub/www/doc/files/lib/nano/string_rb.html +183 -0
- data/pub/www/doc/files/lib/nano/symbol/camelcase_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/symbol/camelize_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/symbol/capitalized%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/symbol/downcase%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/symbol/not_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/symbol/pad_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/symbol/succ_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/symbol/to_const_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/symbol/to_proc_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/symbol/to_str_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/symbol/underscore_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/symbol/upcase%3F_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/symbol_rb.html +107 -0
- data/pub/www/doc/files/lib/nano/time/%3A%3Adays_extrema_rb.html +114 -0
- data/pub/www/doc/files/lib/nano/time/change_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/time/elapse_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/time/stamp_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/time/to_date_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/time/to_s_rb.html +96 -0
- data/pub/www/doc/files/lib/nano/time/to_time_rb.html +92 -0
- data/pub/www/doc/files/lib/nano/time_rb.html +101 -0
- data/pub/www/doc/files/lib/nano_rb.html +96 -0
- data/pub/www/doc/files/lib/nanoreq_rb.html +97 -0
- data/pub/www/doc/files/lib/nanosys_rb.html +97 -0
- data/pub/www/doc/fr_class_index.html +80 -0
- data/pub/www/doc/fr_file_index.html +476 -0
- data/pub/www/doc/fr_method_index.html +465 -0
- data/pub/www/doc/index.html +28 -0
- data/pub/www/doc/rdoc-style.css +175 -0
- data/pub/www/images/atom_logo_sm.jpg +0 -0
- data/pub/www/images/gray.jpg +0 -0
- data/pub/www/images/ruby-lg.png +0 -0
- data/pub/www/images/ruby.gif +0 -0
- data/pub/www/index.html +195 -0
- data/pub/www/methods.html +439 -0
- data/setup.rb +1361 -0
- data/test/array/tc_array.rb +324 -0
- data/test/binding/tc_binding.rb +108 -0
- data/test/binding/tc_binding_call_stack.rb +12 -0
- data/test/binding/tc_binding_of_caller.rb +20 -0
- data/test/class/tc_class.rb +48 -0
- data/test/comparable/tc_comparable.rb +62 -0
- data/test/continuation/tc_continuation.rb +12 -0
- data/test/date/tc_date.rb +54 -0
- data/test/dir/TEST/A.txt +0 -0
- data/test/dir/TEST/A/B.txt +0 -0
- data/test/dir/TEST/A/B/C.txt +0 -0
- data/test/dir/tc_dir.rb +31 -0
- data/test/enumerable/tc_enumerable.rb +370 -0
- data/test/file/TEST1 +1 -0
- data/test/file/TEST2 +1 -0
- data/test/file/tc_file.rb +41 -0
- data/test/fileutils/tc_fileutils.rb +77 -0
- data/test/fileutils/tc_wc.rb +48 -0
- data/test/fileutils/tc_whereis.rb +36 -0
- data/test/fileutils/tc_which.rb +41 -0
- data/test/fileutils/test_file.txt +25 -0
- data/test/fileutils/test_file2.txt +25 -0
- data/test/float/tc_float.rb +64 -0
- data/test/hash/tc_each.rb +25 -0
- data/test/hash/tc_hash.rb +296 -0
- data/test/hash/tc_slice-op.rb +98 -0
- data/test/integer/tc_integer.rb +77 -0
- data/test/kernel/TEST/test.rb +4 -0
- data/test/kernel/tc_kernel.rb +165 -0
- data/test/matchdata/tc_matchdata.rb +62 -0
- data/test/module/tc_abstract.rb +24 -0
- data/test/module/tc_cloning.rb +44 -0
- data/test/module/tc_instance_methods.rb +45 -0
- data/test/module/tc_memoize.rb +38 -0
- data/test/module/tc_module.rb +349 -0
- data/test/nilclass/tc_method_missing.rb +12 -0
- data/test/nilclass/tc_nilclass.rb +59 -0
- data/test/numeric/tc_numeric.rb +61 -0
- data/test/object/tc_methods.rb +39 -0
- data/test/object/tc_object.rb +299 -0
- data/test/object/tc_superup.rb +64 -0
- data/test/object/tc_val%3F.rb +33 -0
- data/test/ostruct/tc_ostruct.rb +35 -0
- data/test/proc/tc_proc.rb +40 -0
- data/test/range/tc_range.rb +49 -0
- data/test/regexp/tc_regexp.rb +38 -0
- data/test/string/tc_at.rb +25 -0
- data/test/string/tc_basename.rb +23 -0
- data/test/string/tc_demodulize.rb +23 -0
- data/test/string/tc_margin.rb +105 -0
- data/test/string/tc_pop.rb +24 -0
- data/test/string/tc_push.rb +24 -0
- data/test/string/tc_quote.rb +33 -0
- data/test/string/tc_shift.rb +24 -0
- data/test/string/tc_slap.rb +24 -0
- data/test/string/tc_soundex.rb +24 -0
- data/test/string/tc_string.rb +705 -0
- data/test/string/tc_to_a.rb +13 -0
- data/test/string/tc_unshift.rb +23 -0
- data/test/symbol/tc_symbol.rb +105 -0
- data/test/tc_fixtures/filelist/testfile.txt +1 -0
- data/test/tc_fixtures/filelist/testfile2.txt +1 -0
- data/test/tc_nil_as_emptiness.rb +20 -0
- data/test/time/tc_time.rb +70 -0
- metadata +1546 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html>
|
6
|
+
<head><title>to_range (Range)</title>
|
7
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
8
|
+
<style>
|
9
|
+
.ruby-comment { color: green; font-style: italic }
|
10
|
+
.ruby-constant { color: #4433aa; font-weight: bold; }
|
11
|
+
.ruby-identifier { color: #222222; }
|
12
|
+
.ruby-ivar { color: #2233dd; }
|
13
|
+
.ruby-keyword { color: #3333FF; font-weight: bold }
|
14
|
+
.ruby-node { color: #777777; }
|
15
|
+
.ruby-operator { color: #111111; }
|
16
|
+
.ruby-regexp { color: #662222; }
|
17
|
+
.ruby-value { color: #662222; font-style: italic }
|
18
|
+
.kw { color: #3333FF; font-weight: bold }
|
19
|
+
.cmt { color: green; font-style: italic }
|
20
|
+
.str { color: #662222; font-style: italic }
|
21
|
+
.re { color: #662222; }
|
22
|
+
</style>
|
23
|
+
</head>
|
24
|
+
<body bgcolor="white">
|
25
|
+
<pre><span class="ruby-comment cmt"># File lib/nano/range/to_range.rb, line 9</span>
|
26
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_range</span>
|
27
|
+
<span class="ruby-keyword kw">self</span>
|
28
|
+
<span class="ruby-keyword kw">end</span></pre>
|
29
|
+
</body>
|
30
|
+
</html>
|
@@ -0,0 +1,155 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html>
|
6
|
+
<head>
|
7
|
+
<title>Class: Regexp</title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
+
|
11
|
+
<script language="JavaScript" type="text/javascript">
|
12
|
+
// <![CDATA[
|
13
|
+
|
14
|
+
function toggleSource( id )
|
15
|
+
{
|
16
|
+
var elem
|
17
|
+
var link
|
18
|
+
|
19
|
+
if( document.getElementById )
|
20
|
+
{
|
21
|
+
elem = document.getElementById( id )
|
22
|
+
link = document.getElementById( "l_" + id )
|
23
|
+
}
|
24
|
+
else if ( document.all )
|
25
|
+
{
|
26
|
+
elem = eval( "document.all." + id )
|
27
|
+
link = eval( "document.all.l_" + id )
|
28
|
+
}
|
29
|
+
else
|
30
|
+
return false;
|
31
|
+
|
32
|
+
if( elem.style.display == "block" )
|
33
|
+
{
|
34
|
+
elem.style.display = "none"
|
35
|
+
link.innerHTML = "show source"
|
36
|
+
}
|
37
|
+
else
|
38
|
+
{
|
39
|
+
elem.style.display = "block"
|
40
|
+
link.innerHTML = "hide source"
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
function openCode( url )
|
45
|
+
{
|
46
|
+
window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
|
47
|
+
}
|
48
|
+
// ]]>
|
49
|
+
</script>
|
50
|
+
</head>
|
51
|
+
|
52
|
+
<body>
|
53
|
+
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
+
<td class="file-title"><span class="file-title-prefix">Class</span><br />Regexp</td>
|
55
|
+
<td align="right">
|
56
|
+
<table cellspacing=0 cellpadding=2>
|
57
|
+
<tr valign="top">
|
58
|
+
<td>In:</td>
|
59
|
+
<td>
|
60
|
+
<a href="../files/lib/nano/regexp/to_regexp_rb.html">lib/nano/regexp/to_regexp.rb</a>
|
61
|
+
<a href="../files/lib/nano/regexp/to_re_rb.html">lib/nano/regexp/to_re.rb</a>
|
62
|
+
<a href="../files/lib/nano/regexp/arity_rb.html">lib/nano/regexp/arity.rb</a>
|
63
|
+
</td>
|
64
|
+
</tr>
|
65
|
+
<tr>
|
66
|
+
<td>Parent:</td>
|
67
|
+
<td>
|
68
|
+
<a href="Object.html">
|
69
|
+
Object
|
70
|
+
</a>
|
71
|
+
</td>
|
72
|
+
</tr>
|
73
|
+
</table>
|
74
|
+
</td>
|
75
|
+
</tr>
|
76
|
+
</table>
|
77
|
+
<!-- banner header -->
|
78
|
+
|
79
|
+
<div id="bodyContent">
|
80
|
+
<div id="content">
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<div class="sectiontitle">Methods</div>
|
86
|
+
<ul>
|
87
|
+
<li><a href="#M000030">arity</a></li>
|
88
|
+
<li><a href="#M000029">to_re</a></li>
|
89
|
+
<li><a href="#M000028">to_regexp</a></li>
|
90
|
+
</ul>
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<div class="sectiontitle">Public Instance methods</div>
|
98
|
+
<div class="method">
|
99
|
+
<div class="title">
|
100
|
+
<a name="M000030"></a><b>arity</b>()
|
101
|
+
[ <a href="javascript:openCode('Regexp.src/M000030.html')">source</a> ]
|
102
|
+
</div>
|
103
|
+
<div class="description">
|
104
|
+
<p>
|
105
|
+
Returns the number of backreferencing subexpressions.
|
106
|
+
</p>
|
107
|
+
<pre>
|
108
|
+
/(a)(b)(c)/.arity #=> 3
|
109
|
+
/(a(b(c)))/.arity #=> 3
|
110
|
+
</pre>
|
111
|
+
<p>
|
112
|
+
Note: This is not perfect, especially with regards to \x and embedded
|
113
|
+
comments.
|
114
|
+
</p>
|
115
|
+
</div>
|
116
|
+
</div>
|
117
|
+
<div class="method">
|
118
|
+
<div class="title">
|
119
|
+
<a name="M000029"></a><b>to_re</b>( esc=false )
|
120
|
+
[ <a href="javascript:openCode('Regexp.src/M000029.html')">source</a> ]
|
121
|
+
</div>
|
122
|
+
<div class="description">
|
123
|
+
<p>
|
124
|
+
Simply returns itself. Helpful when converting strings to regular
|
125
|
+
expressions, where regexp might occur as well —in the same vien as
|
126
|
+
using to_s on symbols. The parameter is actaully a dummy parameter to
|
127
|
+
coincide with <a href="String.html#M000318">String#to_re</a>.
|
128
|
+
</p>
|
129
|
+
<pre>
|
130
|
+
/abc/.to_re #=> /abc/
|
131
|
+
</pre>
|
132
|
+
</div>
|
133
|
+
</div>
|
134
|
+
<div class="method">
|
135
|
+
<div class="title">
|
136
|
+
<a name="M000028"></a><b>to_regexp</b>()
|
137
|
+
[ <a href="javascript:openCode('Regexp.src/M000028.html')">source</a> ]
|
138
|
+
</div>
|
139
|
+
<div class="description">
|
140
|
+
<p>
|
141
|
+
Like <a href="Regexp.html#M000029">to_re</a>, but following Ruby’s
|
142
|
+
formal definitions, only a Regular expression type object will respond to
|
143
|
+
this.
|
144
|
+
</p>
|
145
|
+
<p>
|
146
|
+
Note: To be of much real use this should be defined in core Ruby.
|
147
|
+
</p>
|
148
|
+
</div>
|
149
|
+
</div>
|
150
|
+
</div>
|
151
|
+
|
152
|
+
</div>
|
153
|
+
|
154
|
+
</body>
|
155
|
+
</html>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html>
|
6
|
+
<head><title>to_regexp (Regexp)</title>
|
7
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
8
|
+
<style>
|
9
|
+
.ruby-comment { color: green; font-style: italic }
|
10
|
+
.ruby-constant { color: #4433aa; font-weight: bold; }
|
11
|
+
.ruby-identifier { color: #222222; }
|
12
|
+
.ruby-ivar { color: #2233dd; }
|
13
|
+
.ruby-keyword { color: #3333FF; font-weight: bold }
|
14
|
+
.ruby-node { color: #777777; }
|
15
|
+
.ruby-operator { color: #111111; }
|
16
|
+
.ruby-regexp { color: #662222; }
|
17
|
+
.ruby-value { color: #662222; font-style: italic }
|
18
|
+
.kw { color: #3333FF; font-weight: bold }
|
19
|
+
.cmt { color: green; font-style: italic }
|
20
|
+
.str { color: #662222; font-style: italic }
|
21
|
+
.re { color: #662222; }
|
22
|
+
</style>
|
23
|
+
</head>
|
24
|
+
<body bgcolor="white">
|
25
|
+
<pre><span class="ruby-comment cmt"># File lib/nano/regexp/to_regexp.rb, line 7</span>
|
26
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_regexp</span>
|
27
|
+
<span class="ruby-keyword kw">self</span>
|
28
|
+
<span class="ruby-keyword kw">end</span></pre>
|
29
|
+
</body>
|
30
|
+
</html>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html>
|
6
|
+
<head><title>to_re (Regexp)</title>
|
7
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
8
|
+
<style>
|
9
|
+
.ruby-comment { color: green; font-style: italic }
|
10
|
+
.ruby-constant { color: #4433aa; font-weight: bold; }
|
11
|
+
.ruby-identifier { color: #222222; }
|
12
|
+
.ruby-ivar { color: #2233dd; }
|
13
|
+
.ruby-keyword { color: #3333FF; font-weight: bold }
|
14
|
+
.ruby-node { color: #777777; }
|
15
|
+
.ruby-operator { color: #111111; }
|
16
|
+
.ruby-regexp { color: #662222; }
|
17
|
+
.ruby-value { color: #662222; font-style: italic }
|
18
|
+
.kw { color: #3333FF; font-weight: bold }
|
19
|
+
.cmt { color: green; font-style: italic }
|
20
|
+
.str { color: #662222; font-style: italic }
|
21
|
+
.re { color: #662222; }
|
22
|
+
</style>
|
23
|
+
</head>
|
24
|
+
<body bgcolor="white">
|
25
|
+
<pre><span class="ruby-comment cmt"># File lib/nano/regexp/to_re.rb, line 11</span>
|
26
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_re</span>( <span class="ruby-identifier">esc</span>=<span class="ruby-keyword kw">false</span> )
|
27
|
+
<span class="ruby-keyword kw">self</span> <span class="ruby-comment cmt"># Of course, things really should know how to say "I" ;)</span>
|
28
|
+
<span class="ruby-keyword kw">end</span></pre>
|
29
|
+
</body>
|
30
|
+
</html>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html>
|
6
|
+
<head><title>arity (Regexp)</title>
|
7
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
8
|
+
<style>
|
9
|
+
.ruby-comment { color: green; font-style: italic }
|
10
|
+
.ruby-constant { color: #4433aa; font-weight: bold; }
|
11
|
+
.ruby-identifier { color: #222222; }
|
12
|
+
.ruby-ivar { color: #2233dd; }
|
13
|
+
.ruby-keyword { color: #3333FF; font-weight: bold }
|
14
|
+
.ruby-node { color: #777777; }
|
15
|
+
.ruby-operator { color: #111111; }
|
16
|
+
.ruby-regexp { color: #662222; }
|
17
|
+
.ruby-value { color: #662222; font-style: italic }
|
18
|
+
.kw { color: #3333FF; font-weight: bold }
|
19
|
+
.cmt { color: green; font-style: italic }
|
20
|
+
.str { color: #662222; font-style: italic }
|
21
|
+
.re { color: #662222; }
|
22
|
+
</style>
|
23
|
+
</head>
|
24
|
+
<body bgcolor="white">
|
25
|
+
<pre><span class="ruby-comment cmt"># File lib/nano/regexp/arity.rb, line 9</span>
|
26
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">arity</span>
|
27
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">source</span>.<span class="ruby-identifier">scan</span>( <span class="ruby-regexp re">/(?!\\)[(](?!\?[#=:!>-imx])/</span> ).<span class="ruby-identifier">length</span>
|
28
|
+
<span class="ruby-keyword kw">end</span></pre>
|
29
|
+
</body>
|
30
|
+
</html>
|
@@ -0,0 +1,92 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html>
|
6
|
+
<head>
|
7
|
+
<title>Class: ScriptBug</title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
+
|
11
|
+
<script language="JavaScript" type="text/javascript">
|
12
|
+
// <![CDATA[
|
13
|
+
|
14
|
+
function toggleSource( id )
|
15
|
+
{
|
16
|
+
var elem
|
17
|
+
var link
|
18
|
+
|
19
|
+
if( document.getElementById )
|
20
|
+
{
|
21
|
+
elem = document.getElementById( id )
|
22
|
+
link = document.getElementById( "l_" + id )
|
23
|
+
}
|
24
|
+
else if ( document.all )
|
25
|
+
{
|
26
|
+
elem = eval( "document.all." + id )
|
27
|
+
link = eval( "document.all.l_" + id )
|
28
|
+
}
|
29
|
+
else
|
30
|
+
return false;
|
31
|
+
|
32
|
+
if( elem.style.display == "block" )
|
33
|
+
{
|
34
|
+
elem.style.display = "none"
|
35
|
+
link.innerHTML = "show source"
|
36
|
+
}
|
37
|
+
else
|
38
|
+
{
|
39
|
+
elem.style.display = "block"
|
40
|
+
link.innerHTML = "hide source"
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
function openCode( url )
|
45
|
+
{
|
46
|
+
window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
|
47
|
+
}
|
48
|
+
// ]]>
|
49
|
+
</script>
|
50
|
+
</head>
|
51
|
+
|
52
|
+
<body>
|
53
|
+
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
+
<td class="file-title"><span class="file-title-prefix">Class</span><br />ScriptBug</td>
|
55
|
+
<td align="right">
|
56
|
+
<table cellspacing=0 cellpadding=2>
|
57
|
+
<tr valign="top">
|
58
|
+
<td>In:</td>
|
59
|
+
<td>
|
60
|
+
<a href="../files/lib/nano/kernel/bug%21_rb.html">lib/nano/kernel/bug%21.rb</a>
|
61
|
+
</td>
|
62
|
+
</tr>
|
63
|
+
<tr>
|
64
|
+
<td>Parent:</td>
|
65
|
+
<td>
|
66
|
+
Exception
|
67
|
+
</td>
|
68
|
+
</tr>
|
69
|
+
</table>
|
70
|
+
</td>
|
71
|
+
</tr>
|
72
|
+
</table>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
<div id="content">
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
</div>
|
88
|
+
|
89
|
+
</div>
|
90
|
+
|
91
|
+
</body>
|
92
|
+
</html>
|
@@ -0,0 +1,1672 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html>
|
6
|
+
<head>
|
7
|
+
<title>Class: String</title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
+
|
11
|
+
<script language="JavaScript" type="text/javascript">
|
12
|
+
// <![CDATA[
|
13
|
+
|
14
|
+
function toggleSource( id )
|
15
|
+
{
|
16
|
+
var elem
|
17
|
+
var link
|
18
|
+
|
19
|
+
if( document.getElementById )
|
20
|
+
{
|
21
|
+
elem = document.getElementById( id )
|
22
|
+
link = document.getElementById( "l_" + id )
|
23
|
+
}
|
24
|
+
else if ( document.all )
|
25
|
+
{
|
26
|
+
elem = eval( "document.all." + id )
|
27
|
+
link = eval( "document.all.l_" + id )
|
28
|
+
}
|
29
|
+
else
|
30
|
+
return false;
|
31
|
+
|
32
|
+
if( elem.style.display == "block" )
|
33
|
+
{
|
34
|
+
elem.style.display = "none"
|
35
|
+
link.innerHTML = "show source"
|
36
|
+
}
|
37
|
+
else
|
38
|
+
{
|
39
|
+
elem.style.display = "block"
|
40
|
+
link.innerHTML = "hide source"
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
function openCode( url )
|
45
|
+
{
|
46
|
+
window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
|
47
|
+
}
|
48
|
+
// ]]>
|
49
|
+
</script>
|
50
|
+
</head>
|
51
|
+
|
52
|
+
<body>
|
53
|
+
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
+
<td class="file-title"><span class="file-title-prefix">Class</span><br />String</td>
|
55
|
+
<td align="right">
|
56
|
+
<table cellspacing=0 cellpadding=2>
|
57
|
+
<tr valign="top">
|
58
|
+
<td>In:</td>
|
59
|
+
<td>
|
60
|
+
<a href="../files/lib/nano/enumerable/entropy_rb.html">lib/nano/enumerable/entropy.rb</a>
|
61
|
+
<a href="../files/lib/nano/string/word_filter%21_rb.html">lib/nano/string/word_filter%21.rb</a>
|
62
|
+
<a href="../files/lib/nano/string/push_rb.html">lib/nano/string/push.rb</a>
|
63
|
+
<a href="../files/lib/nano/string/shift_rb.html">lib/nano/string/shift.rb</a>
|
64
|
+
<a href="../files/lib/nano/string/dresner_rb.html">lib/nano/string/dresner.rb</a>
|
65
|
+
<a href="../files/lib/nano/string/plural_rb.html">lib/nano/string/plural.rb</a>
|
66
|
+
<a href="../files/lib/nano/string/word_filter_rb.html">lib/nano/string/word_filter.rb</a>
|
67
|
+
<a href="../files/lib/nano/string/unix_crypt_rb.html">lib/nano/string/unix_crypt.rb</a>
|
68
|
+
<a href="../files/lib/nano/string/camelcase_rb.html">lib/nano/string/camelcase.rb</a>
|
69
|
+
<a href="../files/lib/nano/string/%3A%3Apatterns_rb.html">lib/nano/string/%3A%3Apatterns.rb</a>
|
70
|
+
<a href="../files/lib/nano/string/humanize_rb.html">lib/nano/string/humanize.rb</a>
|
71
|
+
<a href="../files/lib/nano/string/at_rb.html">lib/nano/string/at.rb</a>
|
72
|
+
<a href="../files/lib/nano/string/margin_rb.html">lib/nano/string/margin.rb</a>
|
73
|
+
<a href="../files/lib/nano/string/dequote_rb.html">lib/nano/string/dequote.rb</a>
|
74
|
+
<a href="../files/lib/nano/string/word_wrap_rb.html">lib/nano/string/word_wrap.rb</a>
|
75
|
+
<a href="../files/lib/nano/string/last_rb.html">lib/nano/string/last.rb</a>
|
76
|
+
<a href="../files/lib/nano/string/unpack_rb.html">lib/nano/string/unpack.rb</a>
|
77
|
+
<a href="../files/lib/nano/string/at_rand%21_rb.html">lib/nano/string/at_rand%21.rb</a>
|
78
|
+
<a href="../files/lib/nano/string/rand_index_rb.html">lib/nano/string/rand_index.rb</a>
|
79
|
+
<a href="../files/lib/nano/string/nchar_rb.html">lib/nano/string/nchar.rb</a>
|
80
|
+
<a href="../files/lib/nano/string/singular_rb.html">lib/nano/string/singular.rb</a>
|
81
|
+
<a href="../files/lib/nano/string/brief_rb.html">lib/nano/string/brief.rb</a>
|
82
|
+
<a href="../files/lib/nano/string/similarity_rb.html">lib/nano/string/similarity.rb</a>
|
83
|
+
<a href="../files/lib/nano/string/rand_byte_rb.html">lib/nano/string/rand_byte.rb</a>
|
84
|
+
<a href="../files/lib/nano/string/first%21_rb.html">lib/nano/string/first%21.rb</a>
|
85
|
+
<a href="../files/lib/nano/string/first%3D_rb.html">lib/nano/string/first%3D.rb</a>
|
86
|
+
<a href="../files/lib/nano/string/to_proc_rb.html">lib/nano/string/to_proc.rb</a>
|
87
|
+
<a href="../files/lib/nano/string/demodulize_rb.html">lib/nano/string/demodulize.rb</a>
|
88
|
+
<a href="../files/lib/nano/string/to_date_rb.html">lib/nano/string/to_date.rb</a>
|
89
|
+
<a href="../files/lib/nano/string/dresner%21_rb.html">lib/nano/string/dresner%21.rb</a>
|
90
|
+
<a href="../files/lib/nano/string/chars_rb.html">lib/nano/string/chars.rb</a>
|
91
|
+
<a href="../files/lib/nano/string/slap_rb.html">lib/nano/string/slap.rb</a>
|
92
|
+
<a href="../files/lib/nano/string/downcase%3F_rb.html">lib/nano/string/downcase%3F.rb</a>
|
93
|
+
<a href="../files/lib/nano/string/first_char_rb.html">lib/nano/string/first_char.rb</a>
|
94
|
+
<a href="../files/lib/nano/string/%3A%3Arand_letter_rb.html">lib/nano/string/%3A%3Arand_letter.rb</a>
|
95
|
+
<a href="../files/lib/nano/string/bracket%21_rb.html">lib/nano/string/bracket%21.rb</a>
|
96
|
+
<a href="../files/lib/nano/string/unix_crypt%21_rb.html">lib/nano/string/unix_crypt%21.rb</a>
|
97
|
+
<a href="../files/lib/nano/string/bytes_rb.html">lib/nano/string/bytes.rb</a>
|
98
|
+
<a href="../files/lib/nano/string/basename_rb.html">lib/nano/string/basename.rb</a>
|
99
|
+
<a href="../files/lib/nano/string/succ_rb.html">lib/nano/string/succ.rb</a>
|
100
|
+
<a href="../files/lib/nano/string/probability_rb.html">lib/nano/string/probability.rb</a>
|
101
|
+
<a href="../files/lib/nano/string/cmp_rb.html">lib/nano/string/cmp.rb</a>
|
102
|
+
<a href="../files/lib/nano/string/whitespace%3F_rb.html">lib/nano/string/whitespace%3F.rb</a>
|
103
|
+
<a href="../files/lib/nano/string/at_rand_rb.html">lib/nano/string/at_rand.rb</a>
|
104
|
+
<a href="../files/lib/nano/string/upcase%3F_rb.html">lib/nano/string/upcase%3F.rb</a>
|
105
|
+
<a href="../files/lib/nano/string/first_rb.html">lib/nano/string/first.rb</a>
|
106
|
+
<a href="../files/lib/nano/string/uppercase%3F_rb.html">lib/nano/string/uppercase%3F.rb</a>
|
107
|
+
<a href="../files/lib/nano/string/word_wrap%21_rb.html">lib/nano/string/word_wrap%21.rb</a>
|
108
|
+
<a href="../files/lib/nano/string/fold_rb.html">lib/nano/string/fold.rb</a>
|
109
|
+
<a href="../files/lib/nano/string/camelize_rb.html">lib/nano/string/camelize.rb</a>
|
110
|
+
<a href="../files/lib/nano/string/lowercase%3F_rb.html">lib/nano/string/lowercase%3F.rb</a>
|
111
|
+
<a href="../files/lib/nano/string/range_rb.html">lib/nano/string/range.rb</a>
|
112
|
+
<a href="../files/lib/nano/string/to_a_rb.html">lib/nano/string/to_a.rb</a>
|
113
|
+
<a href="../files/lib/nano/string/to_b_rb.html">lib/nano/string/to_b.rb</a>
|
114
|
+
<a href="../files/lib/nano/string/to_re_rb.html">lib/nano/string/to_re.rb</a>
|
115
|
+
<a href="../files/lib/nano/string/last_char_rb.html">lib/nano/string/last_char.rb</a>
|
116
|
+
<a href="../files/lib/nano/string/line_wrap_rb.html">lib/nano/string/line_wrap.rb</a>
|
117
|
+
<a href="../files/lib/nano/string/tabto_rb.html">lib/nano/string/tabto.rb</a>
|
118
|
+
<a href="../files/lib/nano/string/align_center_rb.html">lib/nano/string/align_center.rb</a>
|
119
|
+
<a href="../files/lib/nano/string/words_rb.html">lib/nano/string/words.rb</a>
|
120
|
+
<a href="../files/lib/nano/string/indent_rb.html">lib/nano/string/indent.rb</a>
|
121
|
+
<a href="../files/lib/nano/string/align_right_rb.html">lib/nano/string/align_right.rb</a>
|
122
|
+
<a href="../files/lib/nano/string/to_const_rb.html">lib/nano/string/to_const.rb</a>
|
123
|
+
<a href="../files/lib/nano/string/pop_rb.html">lib/nano/string/pop.rb</a>
|
124
|
+
<a href="../files/lib/nano/string/align_left_rb.html">lib/nano/string/align_left.rb</a>
|
125
|
+
<a href="../files/lib/nano/string/tab_rb.html">lib/nano/string/tab.rb</a>
|
126
|
+
<a href="../files/lib/nano/string/range_of_line_rb.html">lib/nano/string/range_of_line.rb</a>
|
127
|
+
<a href="../files/lib/nano/string/frequency_rb.html">lib/nano/string/frequency.rb</a>
|
128
|
+
<a href="../files/lib/nano/string/to_time_rb.html">lib/nano/string/to_time.rb</a>
|
129
|
+
<a href="../files/lib/nano/string/to_arr_rb.html">lib/nano/string/to_arr.rb</a>
|
130
|
+
<a href="../files/lib/nano/string/ordinal_rb.html">lib/nano/string/ordinal.rb</a>
|
131
|
+
<a href="../files/lib/nano/string/shuffle_rb.html">lib/nano/string/shuffle.rb</a>
|
132
|
+
<a href="../files/lib/nano/string/each_char_rb.html">lib/nano/string/each_char.rb</a>
|
133
|
+
<a href="../files/lib/nano/string/unshift_rb.html">lib/nano/string/unshift.rb</a>
|
134
|
+
<a href="../files/lib/nano/string/each_word_rb.html">lib/nano/string/each_word.rb</a>
|
135
|
+
<a href="../files/lib/nano/string/bracket_rb.html">lib/nano/string/bracket.rb</a>
|
136
|
+
<a href="../files/lib/nano/string/index_all_rb.html">lib/nano/string/index_all.rb</a>
|
137
|
+
<a href="../files/lib/nano/string/quote_rb.html">lib/nano/string/quote.rb</a>
|
138
|
+
<a href="../files/lib/nano/string/soundex_rb.html">lib/nano/string/soundex.rb</a>
|
139
|
+
<a href="../files/lib/nano/string/last%21_rb.html">lib/nano/string/last%21.rb</a>
|
140
|
+
<a href="../files/lib/nano/string/last%3D_rb.html">lib/nano/string/last%3D.rb</a>
|
141
|
+
<a href="../files/lib/nano/string/range_all_rb.html">lib/nano/string/range_all.rb</a>
|
142
|
+
<a href="../files/lib/nano/string/mscan_rb.html">lib/nano/string/mscan.rb</a>
|
143
|
+
<a href="../files/lib/nano/string/blank%3F_rb.html">lib/nano/string/blank%3F.rb</a>
|
144
|
+
<a href="../files/lib/nano/string/rand_byte%21_rb.html">lib/nano/string/rand_byte%21.rb</a>
|
145
|
+
<a href="../files/lib/nano/string/shatter_rb.html">lib/nano/string/shatter.rb</a>
|
146
|
+
<a href="../files/lib/nano/string/underscore_rb.html">lib/nano/string/underscore.rb</a>
|
147
|
+
<a href="../files/lib/nano/string/natcmp_rb.html">lib/nano/string/natcmp.rb</a>
|
148
|
+
<a href="../files/lib/nano/string/capitalized%3F_rb.html">lib/nano/string/capitalized%3F.rb</a>
|
149
|
+
<a href="../files/lib/nano/string/lines_rb.html">lib/nano/string/lines.rb</a>
|
150
|
+
</td>
|
151
|
+
</tr>
|
152
|
+
<tr>
|
153
|
+
<td>Parent:</td>
|
154
|
+
<td>
|
155
|
+
<a href="Object.html">
|
156
|
+
Object
|
157
|
+
</a>
|
158
|
+
</td>
|
159
|
+
</tr>
|
160
|
+
</table>
|
161
|
+
</td>
|
162
|
+
</tr>
|
163
|
+
</table>
|
164
|
+
<!-- banner header -->
|
165
|
+
|
166
|
+
<div id="bodyContent">
|
167
|
+
<div id="content">
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
<div class="sectiontitle">Methods</div>
|
173
|
+
<ul>
|
174
|
+
<li><a href="#M000322">align_center</a></li>
|
175
|
+
<li><a href="#M000329">align_left</a></li>
|
176
|
+
<li><a href="#M000325">align_right</a></li>
|
177
|
+
<li><a href="#M000276">at</a></li>
|
178
|
+
<li><a href="#M000308">at_rand</a></li>
|
179
|
+
<li><a href="#M000282">at_rand!</a></li>
|
180
|
+
<li><a href="#M000304">basename</a></li>
|
181
|
+
<li><a href="#M000350">blank?</a></li>
|
182
|
+
<li><a href="#M000341">bracket</a></li>
|
183
|
+
<li><a href="#M000301">bracket!</a></li>
|
184
|
+
<li><a href="#M000287">brief</a></li>
|
185
|
+
<li><a href="#M000303">bytes</a></li>
|
186
|
+
<li><a href="#M000273">camelcase</a></li>
|
187
|
+
<li><a href="#M000314">camelize</a></li>
|
188
|
+
<li><a href="#M000356">capitalized?</a></li>
|
189
|
+
<li><a href="#M000296">chars</a></li>
|
190
|
+
<li><a href="#M000307">cmp</a></li>
|
191
|
+
<li><a href="#M000278">dequote</a></li>
|
192
|
+
<li><a href="#M000298">downcase?</a></li>
|
193
|
+
<li><a href="#M000268">dresner</a></li>
|
194
|
+
<li><a href="#M000295">dresner!</a></li>
|
195
|
+
<li><a href="#M000338">each_char</a></li>
|
196
|
+
<li><a href="#M000340">each_word</a></li>
|
197
|
+
<li><a href="#M000264">entropy</a></li>
|
198
|
+
<li><a href="#M000310">first</a></li>
|
199
|
+
<li><a href="#M000291">first!</a></li>
|
200
|
+
<li><a href="#M000292">first=</a></li>
|
201
|
+
<li><a href="#M000299">first_char</a></li>
|
202
|
+
<li><a href="#M000313">fold</a></li>
|
203
|
+
<li><a href="#M000332">frequency</a></li>
|
204
|
+
<li><a href="#M000289">fuzzy_match</a></li>
|
205
|
+
<li><a href="#M000275">humanize</a></li>
|
206
|
+
<li><a href="#M000324">indent</a></li>
|
207
|
+
<li><a href="#M000342">index_all</a></li>
|
208
|
+
<li><a href="#M000280">last</a></li>
|
209
|
+
<li><a href="#M000346">last!</a></li>
|
210
|
+
<li><a href="#M000347">last=</a></li>
|
211
|
+
<li><a href="#M000319">last_char</a></li>
|
212
|
+
<li><a href="#M000320">line_wrap</a></li>
|
213
|
+
<li><a href="#M000357">lines</a></li>
|
214
|
+
<li><a href="#M000315">lowercase?</a></li>
|
215
|
+
<li><a href="#M000277">margin</a></li>
|
216
|
+
<li><a href="#M000349">mscan</a></li>
|
217
|
+
<li><a href="#M000355">natcmp</a></li>
|
218
|
+
<li><a href="#M000284">nchar</a></li>
|
219
|
+
<li><a href="#M000335">ordinal</a></li>
|
220
|
+
<li><a href="#M000274">patterns</a></li>
|
221
|
+
<li><a href="#M000269">plural</a></li>
|
222
|
+
<li><a href="#M000270">pluralize</a></li>
|
223
|
+
<li><a href="#M000327">pop</a></li>
|
224
|
+
<li><a href="#M000306">probability</a></li>
|
225
|
+
<li><a href="#M000266">push</a></li>
|
226
|
+
<li><a href="#M000343">quote</a></li>
|
227
|
+
<li><a href="#M000290">rand_byte</a></li>
|
228
|
+
<li><a href="#M000352">rand_byte!</a></li>
|
229
|
+
<li><a href="#M000283">rand_index</a></li>
|
230
|
+
<li><a href="#M000300">rand_letter</a></li>
|
231
|
+
<li><a href="#M000328">random</a></li>
|
232
|
+
<li><a href="#M000316">range</a></li>
|
233
|
+
<li><a href="#M000348">range_all</a></li>
|
234
|
+
<li><a href="#M000331">range_of_line</a></li>
|
235
|
+
<li><a href="#M000353">shatter</a></li>
|
236
|
+
<li><a href="#M000267">shift</a></li>
|
237
|
+
<li><a href="#M000336">shuffle</a></li>
|
238
|
+
<li><a href="#M000337">shuffle!</a></li>
|
239
|
+
<li><a href="#M000288">similarity</a></li>
|
240
|
+
<li><a href="#M000285">singular</a></li>
|
241
|
+
<li><a href="#M000286">singularize</a></li>
|
242
|
+
<li><a href="#M000297">slap</a></li>
|
243
|
+
<li><a href="#M000344">soundex</a></li>
|
244
|
+
<li><a href="#M000345">soundex_code</a></li>
|
245
|
+
<li><a href="#M000305">succ</a></li>
|
246
|
+
<li><a href="#M000330">tab</a></li>
|
247
|
+
<li><a href="#M000321">tabto</a></li>
|
248
|
+
<li><a href="#M000334">to_arr</a></li>
|
249
|
+
<li><a href="#M000317">to_b</a></li>
|
250
|
+
<li><a href="#M000326">to_const</a></li>
|
251
|
+
<li><a href="#M000294">to_date</a></li>
|
252
|
+
<li><a href="#M000293">to_proc</a></li>
|
253
|
+
<li><a href="#M000318">to_re</a></li>
|
254
|
+
<li><a href="#M000333">to_time</a></li>
|
255
|
+
<li><a href="#M000354">underscore</a></li>
|
256
|
+
<li><a href="#M000272">unix_crypt</a></li>
|
257
|
+
<li><a href="#M000302">unix_crypt!</a></li>
|
258
|
+
<li><a href="#M000281">unpack</a></li>
|
259
|
+
<li><a href="#M000339">unshift</a></li>
|
260
|
+
<li><a href="#M000309">upcase?</a></li>
|
261
|
+
<li><a href="#M000311">uppercase?</a></li>
|
262
|
+
<li><a href="#M000351">whitespace?</a></li>
|
263
|
+
<li><a href="#M000271">word_filter</a></li>
|
264
|
+
<li><a href="#M000265">word_filter!</a></li>
|
265
|
+
<li><a href="#M000279">word_wrap</a></li>
|
266
|
+
<li><a href="#M000312">word_wrap!</a></li>
|
267
|
+
<li><a href="#M000323">words</a></li>
|
268
|
+
</ul>
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
<div class="sectiontitle">Constants</div>
|
274
|
+
<table border='0' cellpadding='5'>
|
275
|
+
<tr valign='top'>
|
276
|
+
<td class="attr-name">PLURAL_RULES</td>
|
277
|
+
<td>=</td>
|
278
|
+
<td class="attr-value">[ [/^(ox)$/i, '\1\2en'], # ox [/([m|l])ouse$/i, '\1ice'], # mouse, louse [/(matr|vert)ix|ex$/i, '\1ices'], # matrix, vertex, index [/(x|ch|ss|sh)$/i, '\1es'], # search, switch, fix, box, process, address [/([^aeiouy]|qu)ies$/i, '\1y'], [/([^aeiouy]|qu)y$/i, '\1ies'], # query, ability, agency [/(hive)$/i, '\1s'], # archive, hive [/(?:([^f])fe|([lr])f)$/i, '\1\2ves'], # half, safe, wife [/sis$/i, 'ses'], # basis, diagnosis [/([ti])um$/i, '\1a'], # datum, medium [/(p)erson$/i, '\1eople'], # person, salesperson [/(m)an$/i, '\1en'], # man, woman, spokesman [/(c)hild$/i, '\1hildren'], # child [/(buffal|tomat|potat)o$/i, '\1\2oes'], # buffalo, tomato [/(bu)s$/i, '\1\2ses'], # bus [/(alias)/i, '\1es'], # alias [/(octop|vir)us$/i, '\1i'], # octopus, virus - virus has no defined plural, but viri is better than viruses/viruss [/(ax|cri|test)is$/i, '\1es'], # axis, crisis [/s$/i, 's'], # no change (compatibility) [/$/, 's']</td>
|
279
|
+
</tr>
|
280
|
+
<tr valign='top'>
|
281
|
+
<td class="attr-name">SINGULAR_RULES</td>
|
282
|
+
<td>=</td>
|
283
|
+
<td class="attr-value">[ [/(matr)ices$/i, '\1ix'], [/(vert)ices$/i, '\1ex'], [/^(ox)en/i, '\1'], [/(alias)es$/i, '\1'], [/([octop|vir])i$/i, '\1us'], [/(cris|ax|test)es$/i, '\1is'], [/(shoe)s$/i, '\1'], [/(o)es$/i, '\1'], [/(bus)es$/i, '\1'], [/([m|l])ice$/i, '\1ouse'], [/(x|ch|ss|sh)es$/i, '\1'], [/(m)ovies$/i, '\1\2ovie'], [/(s)eries$/i, '\1\2eries'], [/([^aeiouy]|qu)ies$/i, '\1y'], [/([lr])ves$/i, '\1f'], [/(tive)s$/i, '\1'], [/(hive)s$/i, '\1'], [/([^f])ves$/i, '\1fe'], [/(^analy)ses$/i, '\1sis'], [/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i, '\1\2sis'], [/([ti])a$/i, '\1um'], [/(p)eople$/i, '\1\2erson'], [/(m)en$/i, '\1an'], [/(s)tatus$/i, '\1\2tatus'], [/(c)hildren$/i, '\1\2hild'], [/(n)ews$/i, '\1\2ews'], [/s$/i, '']</td>
|
284
|
+
</tr>
|
285
|
+
<tr valign='top'>
|
286
|
+
<td class="attr-name">BRA_KET</td>
|
287
|
+
<td>=</td>
|
288
|
+
<td class="attr-value">{ '['=>']', '('=>')', '{'=>'}', '<'=>'>' }</td>
|
289
|
+
</tr>
|
290
|
+
</table>
|
291
|
+
|
292
|
+
|
293
|
+
<div class="sectiontitle">Public Class methods</div>
|
294
|
+
<div class="method">
|
295
|
+
<div class="title">
|
296
|
+
<a name="M000274"></a><b>patterns</b>( pattern )
|
297
|
+
[ <a href="javascript:openCode('String.src/M000274.html')">source</a> ]
|
298
|
+
</div>
|
299
|
+
<div class="description">
|
300
|
+
<p>
|
301
|
+
Returns a <a href="Regexp.html">Regexp</a> pattern based on the given
|
302
|
+
pattern string or symbolic name.
|
303
|
+
</p>
|
304
|
+
<p>
|
305
|
+
Recognized names are:
|
306
|
+
</p>
|
307
|
+
<ul>
|
308
|
+
<li>:char
|
309
|
+
|
310
|
+
</li>
|
311
|
+
<li>:word
|
312
|
+
|
313
|
+
</li>
|
314
|
+
<li>:line
|
315
|
+
|
316
|
+
</li>
|
317
|
+
</ul>
|
318
|
+
<p>
|
319
|
+
They are also recognizied in plural form.
|
320
|
+
</p>
|
321
|
+
</div>
|
322
|
+
</div>
|
323
|
+
<div class="method">
|
324
|
+
<div class="title">
|
325
|
+
<a name="M000300"></a><b>rand_letter</b>()
|
326
|
+
[ <a href="javascript:openCode('String.src/M000300.html')">source</a> ]
|
327
|
+
</div>
|
328
|
+
<div class="description">
|
329
|
+
<p>
|
330
|
+
<a href="Module.html">Module</a> method to generate a random letter.
|
331
|
+
</p>
|
332
|
+
<pre>
|
333
|
+
String::Random.rand_letter #=> "q"
|
334
|
+
String::Random.rand_letter #=> "r"
|
335
|
+
String::Random.rand_letter #=> "a"
|
336
|
+
</pre>
|
337
|
+
</div>
|
338
|
+
</div>
|
339
|
+
<div class="method">
|
340
|
+
<div class="title">
|
341
|
+
<a name="M000328"></a><b>random</b>(max_length = 8, char_re = /[\w\d]/)
|
342
|
+
[ <a href="javascript:openCode('String.src/M000328.html')">source</a> ]
|
343
|
+
</div>
|
344
|
+
<div class="description">
|
345
|
+
<p>
|
346
|
+
Returns a randomly generated string. One possible use is password
|
347
|
+
initialization. Takes a max legnth of characters (default 8) and an
|
348
|
+
optional valid char <a href="Regexp.html">Regexp</a> (default /\w\d/).
|
349
|
+
</p>
|
350
|
+
</div>
|
351
|
+
</div>
|
352
|
+
<div class="method">
|
353
|
+
<div class="title">
|
354
|
+
<a name="M000345"></a><b>soundex_code</b>(character)
|
355
|
+
[ <a href="javascript:openCode('String.src/M000345.html')">source</a> ]
|
356
|
+
</div>
|
357
|
+
<div class="description">
|
358
|
+
<p>
|
359
|
+
Support function for <a href="String.html#M000344">String#soundex</a>.
|
360
|
+
Returns code for a single character.
|
361
|
+
</p>
|
362
|
+
</div>
|
363
|
+
</div>
|
364
|
+
<div class="sectiontitle">Public Instance methods</div>
|
365
|
+
<div class="method">
|
366
|
+
<div class="title">
|
367
|
+
<a name="M000322"></a><b>align_center</b>( n, sep="\n", c=' ' )
|
368
|
+
[ <a href="javascript:openCode('String.src/M000322.html')">source</a> ]
|
369
|
+
</div>
|
370
|
+
<div class="description">
|
371
|
+
<p>
|
372
|
+
Centers each line of a string.
|
373
|
+
</p>
|
374
|
+
<pre>
|
375
|
+
s = <<-EOS
|
376
|
+
This is a test
|
377
|
+
and
|
378
|
+
so on
|
379
|
+
EOS
|
380
|
+
puts s.align_center(14)
|
381
|
+
</pre>
|
382
|
+
<p>
|
383
|
+
<em>produces</em>
|
384
|
+
</p>
|
385
|
+
<pre>
|
386
|
+
This is a test
|
387
|
+
and
|
388
|
+
so on
|
389
|
+
</pre>
|
390
|
+
<p>
|
391
|
+
Align a string to the center. The defualt alignment seperation is a new
|
392
|
+
line ("/n") This can be changed as can be the padding string
|
393
|
+
which defaults to a single space (’ ’).
|
394
|
+
</p>
|
395
|
+
</div>
|
396
|
+
</div>
|
397
|
+
<div class="method">
|
398
|
+
<div class="title">
|
399
|
+
<a name="M000329"></a><b>align_left</b>( n, sep="\n", c=' ' )
|
400
|
+
[ <a href="javascript:openCode('String.src/M000329.html')">source</a> ]
|
401
|
+
</div>
|
402
|
+
<div class="description">
|
403
|
+
<p>
|
404
|
+
Align a string to the left. The defualt alignment seperation is a new line
|
405
|
+
("/n") This can be changes as can be the padding string which
|
406
|
+
defaults to a single space (’ ’).
|
407
|
+
</p>
|
408
|
+
</div>
|
409
|
+
</div>
|
410
|
+
<div class="method">
|
411
|
+
<div class="title">
|
412
|
+
<a name="M000325"></a><b>align_right</b>( n, sep="\n", c=' ' )
|
413
|
+
[ <a href="javascript:openCode('String.src/M000325.html')">source</a> ]
|
414
|
+
</div>
|
415
|
+
<div class="description">
|
416
|
+
<p>
|
417
|
+
Align a string to the right. The defualt alignment seperation is a new line
|
418
|
+
("/n") This can be changes as can be the padding string which
|
419
|
+
defaults to a single space (’ ’).
|
420
|
+
</p>
|
421
|
+
</div>
|
422
|
+
</div>
|
423
|
+
<div class="method">
|
424
|
+
<div class="title">
|
425
|
+
<a name="M000276"></a><b>at</b>(index)
|
426
|
+
[ <a href="javascript:openCode('String.src/M000276.html')">source</a> ]
|
427
|
+
</div>
|
428
|
+
</div>
|
429
|
+
<div class="method">
|
430
|
+
<div class="title">
|
431
|
+
<a name="M000308"></a><b>at_rand</b>( separator=// )
|
432
|
+
[ <a href="javascript:openCode('String.src/M000308.html')">source</a> ]
|
433
|
+
</div>
|
434
|
+
<div class="description">
|
435
|
+
<p>
|
436
|
+
Return a random separation of the string. Default separation is by
|
437
|
+
charaacter.
|
438
|
+
</p>
|
439
|
+
<pre>
|
440
|
+
"Ruby rules".at_rand(' ') #=> ["Ruby"]
|
441
|
+
</pre>
|
442
|
+
</div>
|
443
|
+
</div>
|
444
|
+
<div class="method">
|
445
|
+
<div class="title">
|
446
|
+
<a name="M000282"></a><b>at_rand!</b>( separator=// )
|
447
|
+
[ <a href="javascript:openCode('String.src/M000282.html')">source</a> ]
|
448
|
+
</div>
|
449
|
+
<div class="description">
|
450
|
+
<p>
|
451
|
+
Return a random separation while removing it from the string. Default
|
452
|
+
separation is by character.
|
453
|
+
</p>
|
454
|
+
<pre>
|
455
|
+
s = "Ruby rules"
|
456
|
+
s = at_rand!(' ') #=> "Ruby"
|
457
|
+
s #=> "rules"
|
458
|
+
</pre>
|
459
|
+
</div>
|
460
|
+
</div>
|
461
|
+
<div class="method">
|
462
|
+
<div class="title">
|
463
|
+
<a name="M000304"></a><b>basename</b>()
|
464
|
+
[ <a href="javascript:openCode('String.src/M000304.html')">source</a> ]
|
465
|
+
</div>
|
466
|
+
<div class="description">
|
467
|
+
<p>
|
468
|
+
Removes prepend module namespace.
|
469
|
+
</p>
|
470
|
+
<pre>
|
471
|
+
"Test::Unit".basename #=> "Unit"
|
472
|
+
</pre>
|
473
|
+
</div>
|
474
|
+
</div>
|
475
|
+
<div class="method">
|
476
|
+
<div class="title">
|
477
|
+
<a name="M000350"></a><b>blank?</b>()
|
478
|
+
[ <a href="javascript:openCode('String.src/M000350.html')">source</a> ]
|
479
|
+
</div>
|
480
|
+
<div class="description">
|
481
|
+
<p>
|
482
|
+
Is this string just whitespace?
|
483
|
+
</p>
|
484
|
+
<pre>
|
485
|
+
"abc".blank? #=> false
|
486
|
+
" ".blank? #=> true
|
487
|
+
</pre>
|
488
|
+
</div>
|
489
|
+
<div class="aka">
|
490
|
+
This method is also aliased as
|
491
|
+
<a href="String.html#M000351">whitespace?</a>
|
492
|
+
</div>
|
493
|
+
</div>
|
494
|
+
<div class="method">
|
495
|
+
<div class="title">
|
496
|
+
<a name="M000341"></a><b>bracket</b>(bra, ket=nil)
|
497
|
+
[ <a href="javascript:openCode('String.src/M000341.html')">source</a> ]
|
498
|
+
</div>
|
499
|
+
<div class="description">
|
500
|
+
<p>
|
501
|
+
Return a new string embraced by given brakets. If only one bracket char is
|
502
|
+
given it will be placed on either side.
|
503
|
+
</p>
|
504
|
+
<pre>
|
505
|
+
"wrap me".bracket('{') #=> "{wrap me}"
|
506
|
+
"wrap me".bracket('--','!') #=> "--wrap me!"
|
507
|
+
</pre>
|
508
|
+
</div>
|
509
|
+
</div>
|
510
|
+
<div class="method">
|
511
|
+
<div class="title">
|
512
|
+
<a name="M000301"></a><b>bracket!</b>(bra, ket=nil)
|
513
|
+
[ <a href="javascript:openCode('String.src/M000301.html')">source</a> ]
|
514
|
+
</div>
|
515
|
+
<div class="description">
|
516
|
+
<p>
|
517
|
+
Inplace version of braket.
|
518
|
+
</p>
|
519
|
+
</div>
|
520
|
+
</div>
|
521
|
+
<div class="method">
|
522
|
+
<div class="title">
|
523
|
+
<a name="M000287"></a><b>brief</b>(string, count = 128, force_cutoff = false, ellipsis="...")
|
524
|
+
[ <a href="javascript:openCode('String.src/M000287.html')">source</a> ]
|
525
|
+
</div>
|
526
|
+
<div class="description">
|
527
|
+
<p>
|
528
|
+
Returns short abstract of long strings (first ‘count’
|
529
|
+
characters, chopped at the nearest word, appended by ’…’)
|
530
|
+
force_cutoff: break forcibly at ‘count’ chars. Does not accept
|
531
|
+
count < 2.
|
532
|
+
</p>
|
533
|
+
</div>
|
534
|
+
</div>
|
535
|
+
<div class="method">
|
536
|
+
<div class="title">
|
537
|
+
<a name="M000303"></a><b>bytes</b>()
|
538
|
+
[ <a href="javascript:openCode('String.src/M000303.html')">source</a> ]
|
539
|
+
</div>
|
540
|
+
<div class="description">
|
541
|
+
<p>
|
542
|
+
Upacks string ginto bytes.
|
543
|
+
</p>
|
544
|
+
</div>
|
545
|
+
</div>
|
546
|
+
<div class="method">
|
547
|
+
<div class="title">
|
548
|
+
<a name="M000273"></a><b>camelcase</b>( first=false, on='_\s' )
|
549
|
+
[ <a href="javascript:openCode('String.src/M000273.html')">source</a> ]
|
550
|
+
</div>
|
551
|
+
<div class="description">
|
552
|
+
<p>
|
553
|
+
Converts a string to camelcase. By default capitalization occurs on
|
554
|
+
whitespace and underscores. By setting the first parameter to <tt>true</tt>
|
555
|
+
the first character can also be captizlized. The second parameter can be
|
556
|
+
assigned a valid Regualr Expression characeter set to determine which
|
557
|
+
characters to match for capitalizing subsequent parts of the string.
|
558
|
+
</p>
|
559
|
+
<pre>
|
560
|
+
"this_is a test".camelcase #=> "thisIsATest"
|
561
|
+
"this_is a test".camelcase(true) #=> "ThisIsATest"
|
562
|
+
"this_is a test".camelcase(true, ' ') #=> "This_isATest"
|
563
|
+
</pre>
|
564
|
+
</div>
|
565
|
+
</div>
|
566
|
+
<div class="method">
|
567
|
+
<div class="title">
|
568
|
+
<a name="M000314"></a><b>camelize</b>()
|
569
|
+
[ <a href="javascript:openCode('String.src/M000314.html')">source</a> ]
|
570
|
+
</div>
|
571
|
+
<div class="description">
|
572
|
+
<p>
|
573
|
+
Variation of coverting a string to camelcase. This is unlike <a
|
574
|
+
href="String.html#M000273">camelcase</a> in that it is geared toward code
|
575
|
+
reflection use.
|
576
|
+
</p>
|
577
|
+
<pre>
|
578
|
+
"this/is_a_test".camelize #=> This::IsATest
|
579
|
+
</pre>
|
580
|
+
</div>
|
581
|
+
</div>
|
582
|
+
<div class="method">
|
583
|
+
<div class="title">
|
584
|
+
<a name="M000356"></a><b>capitalized?</b>()
|
585
|
+
[ <a href="javascript:openCode('String.src/M000356.html')">source</a> ]
|
586
|
+
</div>
|
587
|
+
<div class="description">
|
588
|
+
<p>
|
589
|
+
Return true if the string is capitalized, otherwise false.
|
590
|
+
</p>
|
591
|
+
<pre>
|
592
|
+
"THIS".capitalized? #=> true
|
593
|
+
"This".capitalized? #=> true
|
594
|
+
"this".capitalized? #=> false
|
595
|
+
</pre>
|
596
|
+
</div>
|
597
|
+
</div>
|
598
|
+
<div class="method">
|
599
|
+
<div class="title">
|
600
|
+
<a name="M000296"></a><b>chars</b>()
|
601
|
+
[ <a href="javascript:openCode('String.src/M000296.html')">source</a> ]
|
602
|
+
</div>
|
603
|
+
<div class="description">
|
604
|
+
<p>
|
605
|
+
Returns an array of characters.
|
606
|
+
</p>
|
607
|
+
<pre>
|
608
|
+
"abc".chars #=> ["a","b","c"]
|
609
|
+
</pre>
|
610
|
+
</div>
|
611
|
+
</div>
|
612
|
+
<div class="method">
|
613
|
+
<div class="title">
|
614
|
+
<a name="M000307"></a><b>cmp</b>(other)
|
615
|
+
[ <a href="javascript:openCode('String.src/M000307.html')">source</a> ]
|
616
|
+
</div>
|
617
|
+
<div class="description">
|
618
|
+
<p>
|
619
|
+
Compare method that takes length into account. Unlike #<=>, this is
|
620
|
+
compatible with <a href="String.html#M000305">succ</a>.
|
621
|
+
</p>
|
622
|
+
<pre>
|
623
|
+
"abc".cmp("abc") #=> 0
|
624
|
+
"abcd".cmp("abc") #=> 1
|
625
|
+
"abc".cmp("abcd") #=> -1
|
626
|
+
"xyz".cmp("abc") #=> 1
|
627
|
+
</pre>
|
628
|
+
</div>
|
629
|
+
</div>
|
630
|
+
<div class="method">
|
631
|
+
<div class="title">
|
632
|
+
<a name="M000278"></a><b>dequote</b>()
|
633
|
+
[ <a href="javascript:openCode('String.src/M000278.html')">source</a> ]
|
634
|
+
</div>
|
635
|
+
</div>
|
636
|
+
<div class="method">
|
637
|
+
<div class="title">
|
638
|
+
<a name="M000298"></a><b>downcase?</b>()
|
639
|
+
[ <a href="javascript:openCode('String.src/M000298.html')">source</a> ]
|
640
|
+
</div>
|
641
|
+
<div class="description">
|
642
|
+
<p>
|
643
|
+
Return true if the string is lowercase (downcase), otherwise false.
|
644
|
+
</p>
|
645
|
+
<pre>
|
646
|
+
"THIS".downcase? #=> false
|
647
|
+
"This".downcase? #=> false
|
648
|
+
"this".downcase? #=> true
|
649
|
+
</pre>
|
650
|
+
</div>
|
651
|
+
<div class="aka">
|
652
|
+
This method is also aliased as
|
653
|
+
<a href="String.html#M000315">lowercase?</a>
|
654
|
+
</div>
|
655
|
+
</div>
|
656
|
+
<div class="method">
|
657
|
+
<div class="title">
|
658
|
+
<a name="M000268"></a><b>dresner</b>()
|
659
|
+
[ <a href="javascript:openCode('String.src/M000268.html')">source</a> ]
|
660
|
+
</div>
|
661
|
+
<div class="description">
|
662
|
+
<p>
|
663
|
+
Scramble the inner characters of words leaving the text still readable
|
664
|
+
(research at Cambridge University, code by KurtDresner).
|
665
|
+
</p>
|
666
|
+
<p>
|
667
|
+
For example, the above text may result in:
|
668
|
+
</p>
|
669
|
+
<pre>
|
670
|
+
Srblamce the iennr cchrteaars of wodrs lvenaig the txet stlil rbeaadle
|
671
|
+
(rreceash at Cbamigdre Uverintisy, cdoe by KrneruestDr?)
|
672
|
+
</pre>
|
673
|
+
</div>
|
674
|
+
</div>
|
675
|
+
<div class="method">
|
676
|
+
<div class="title">
|
677
|
+
<a name="M000295"></a><b>dresner!</b>()
|
678
|
+
[ <a href="javascript:openCode('String.src/M000295.html')">source</a> ]
|
679
|
+
</div>
|
680
|
+
<div class="description">
|
681
|
+
<p>
|
682
|
+
Inplace version of <a href="String.html#M000268">dresner</a> method.
|
683
|
+
</p>
|
684
|
+
</div>
|
685
|
+
</div>
|
686
|
+
<div class="method">
|
687
|
+
<div class="title">
|
688
|
+
<a name="M000338"></a><b>each_char</b>( {|| ...}
|
689
|
+
[ <a href="javascript:openCode('String.src/M000338.html')">source</a> ]
|
690
|
+
</div>
|
691
|
+
<div class="description">
|
692
|
+
<p>
|
693
|
+
Iterates through each character.
|
694
|
+
</p>
|
695
|
+
</div>
|
696
|
+
</div>
|
697
|
+
<div class="method">
|
698
|
+
<div class="title">
|
699
|
+
<a name="M000340"></a><b>each_word</b>( &yld )
|
700
|
+
[ <a href="javascript:openCode('String.src/M000340.html')">source</a> ]
|
701
|
+
</div>
|
702
|
+
<div class="description">
|
703
|
+
<p>
|
704
|
+
Iterate through each word of a string.
|
705
|
+
</p>
|
706
|
+
<pre>
|
707
|
+
"a string".each_word { |word, range| ... }
|
708
|
+
</pre>
|
709
|
+
</div>
|
710
|
+
</div>
|
711
|
+
<div class="method">
|
712
|
+
<div class="title">
|
713
|
+
<a name="M000264"></a><b>entropy</b>()
|
714
|
+
[ <a href="javascript:openCode('String.src/M000264.html')">source</a> ]
|
715
|
+
</div>
|
716
|
+
</div>
|
717
|
+
<div class="method">
|
718
|
+
<div class="title">
|
719
|
+
<a name="M000310"></a><b>first</b>(separator_pattern=//)
|
720
|
+
[ <a href="javascript:openCode('String.src/M000310.html')">source</a> ]
|
721
|
+
</div>
|
722
|
+
<div class="description">
|
723
|
+
<p>
|
724
|
+
Returns the first separation of a string. Default seperation is by
|
725
|
+
character.
|
726
|
+
</p>
|
727
|
+
<pre>
|
728
|
+
"Hello World".first #=> "H"
|
729
|
+
"Hello World".first(' ') #=> "Hello"
|
730
|
+
</pre>
|
731
|
+
</div>
|
732
|
+
</div>
|
733
|
+
<div class="method">
|
734
|
+
<div class="title">
|
735
|
+
<a name="M000291"></a><b>first!</b>(separator_pattern=//)
|
736
|
+
[ <a href="javascript:openCode('String.src/M000291.html')">source</a> ]
|
737
|
+
</div>
|
738
|
+
<div class="description">
|
739
|
+
<p>
|
740
|
+
Removes the first separation from a string. Defualt separation is by
|
741
|
+
characters.
|
742
|
+
</p>
|
743
|
+
<pre>
|
744
|
+
a = "Hello World"
|
745
|
+
a.first! #=> "H"
|
746
|
+
a #=> "ello World"
|
747
|
+
|
748
|
+
a = "Hello World"
|
749
|
+
a.first!(' ') #=> "Hello"
|
750
|
+
a #=> "World"
|
751
|
+
</pre>
|
752
|
+
</div>
|
753
|
+
</div>
|
754
|
+
<div class="method">
|
755
|
+
<div class="title">
|
756
|
+
<a name="M000292"></a><b>first=</b>( x )
|
757
|
+
[ <a href="javascript:openCode('String.src/M000292.html')">source</a> ]
|
758
|
+
</div>
|
759
|
+
<div class="description">
|
760
|
+
<p>
|
761
|
+
Prepends to a string.
|
762
|
+
</p>
|
763
|
+
<pre>
|
764
|
+
"Hello World".first = "Hello," #=> "Hello, Hello World"
|
765
|
+
</pre>
|
766
|
+
</div>
|
767
|
+
</div>
|
768
|
+
<div class="method">
|
769
|
+
<div class="title">
|
770
|
+
<a name="M000299"></a><b>first_char</b>(n=1)
|
771
|
+
[ <a href="javascript:openCode('String.src/M000299.html')">source</a> ]
|
772
|
+
</div>
|
773
|
+
<div class="description">
|
774
|
+
<p>
|
775
|
+
Returns first <em>n</em> characters.
|
776
|
+
</p>
|
777
|
+
<pre>
|
778
|
+
"Hello World".first_char(3) #=> "Hel"
|
779
|
+
</pre>
|
780
|
+
</div>
|
781
|
+
</div>
|
782
|
+
<div class="method">
|
783
|
+
<div class="title">
|
784
|
+
<a name="M000313"></a><b>fold</b>()
|
785
|
+
[ <a href="javascript:openCode('String.src/M000313.html')">source</a> ]
|
786
|
+
</div>
|
787
|
+
<div class="description">
|
788
|
+
<p>
|
789
|
+
Returns a new string with all new lines removed from adjacent lines of
|
790
|
+
text.
|
791
|
+
</p>
|
792
|
+
<pre>
|
793
|
+
s = "This is\na test.\n\nIt clumps\nlines of text."
|
794
|
+
s.fold
|
795
|
+
</pre>
|
796
|
+
<p>
|
797
|
+
<em>produces</em>
|
798
|
+
</p>
|
799
|
+
<pre>
|
800
|
+
"This is a test.\n\nIt clumps lines of text. "
|
801
|
+
</pre>
|
802
|
+
</div>
|
803
|
+
</div>
|
804
|
+
<div class="method">
|
805
|
+
<div class="title">
|
806
|
+
<a name="M000332"></a><b>frequency</b>(*args)
|
807
|
+
[ <a href="javascript:openCode('String.src/M000332.html')">source</a> ]
|
808
|
+
</div>
|
809
|
+
</div>
|
810
|
+
<div class="method">
|
811
|
+
<div class="title">
|
812
|
+
<a name="M000289"></a><b>fuzzy_match</b>( str_in )
|
813
|
+
</div>
|
814
|
+
<div class="description">
|
815
|
+
<p>
|
816
|
+
Alias for <a href="String.html#M000288">similarity</a>
|
817
|
+
</p>
|
818
|
+
</div>
|
819
|
+
</div>
|
820
|
+
<div class="method">
|
821
|
+
<div class="title">
|
822
|
+
<a name="M000275"></a><b>humanize</b>()
|
823
|
+
[ <a href="javascript:openCode('String.src/M000275.html')">source</a> ]
|
824
|
+
</div>
|
825
|
+
<div class="description">
|
826
|
+
<p>
|
827
|
+
Replaces underscores with spaces and capitalizes word.
|
828
|
+
</p>
|
829
|
+
</div>
|
830
|
+
</div>
|
831
|
+
<div class="method">
|
832
|
+
<div class="title">
|
833
|
+
<a name="M000324"></a><b>indent</b>(n)
|
834
|
+
[ <a href="javascript:openCode('String.src/M000324.html')">source</a> ]
|
835
|
+
</div>
|
836
|
+
<div class="description">
|
837
|
+
<p>
|
838
|
+
Indent left or right by n spaces. (This used to be called <a
|
839
|
+
href="String.html#M000330">tab</a> and aliased as <a
|
840
|
+
href="String.html#M000324">indent</a>.)
|
841
|
+
</p>
|
842
|
+
</div>
|
843
|
+
</div>
|
844
|
+
<div class="method">
|
845
|
+
<div class="title">
|
846
|
+
<a name="M000342"></a><b>index_all</b>(s, reuse=false)
|
847
|
+
[ <a href="javascript:openCode('String.src/M000342.html')">source</a> ]
|
848
|
+
</div>
|
849
|
+
<div class="description">
|
850
|
+
<p>
|
851
|
+
Like index but returns an array of all index locations. The reuse flag
|
852
|
+
allows the trailing portion of a match to be reused for subsquent matches.
|
853
|
+
</p>
|
854
|
+
<pre>
|
855
|
+
"abcabcabc".index_all('a') #=> [0,3,6]
|
856
|
+
</pre>
|
857
|
+
</div>
|
858
|
+
</div>
|
859
|
+
<div class="method">
|
860
|
+
<div class="title">
|
861
|
+
<a name="M000280"></a><b>last</b>(separator_pattern=//)
|
862
|
+
[ <a href="javascript:openCode('String.src/M000280.html')">source</a> ]
|
863
|
+
</div>
|
864
|
+
<div class="description">
|
865
|
+
<p>
|
866
|
+
Returns the last separation of a string. Default separation is by
|
867
|
+
character.
|
868
|
+
</p>
|
869
|
+
<pre>
|
870
|
+
"Hello World".last(' ') #=> "World"
|
871
|
+
</pre>
|
872
|
+
</div>
|
873
|
+
</div>
|
874
|
+
<div class="method">
|
875
|
+
<div class="title">
|
876
|
+
<a name="M000346"></a><b>last!</b>(separator_pattern=//)
|
877
|
+
[ <a href="javascript:openCode('String.src/M000346.html')">source</a> ]
|
878
|
+
</div>
|
879
|
+
<div class="description">
|
880
|
+
<p>
|
881
|
+
Removes the last separation from a string. Default seperation is by
|
882
|
+
characeter.
|
883
|
+
</p>
|
884
|
+
<pre>
|
885
|
+
a = "Hello World"
|
886
|
+
a.last! #=> "d"
|
887
|
+
a #=> "Hello Worl"
|
888
|
+
|
889
|
+
a = "Hello World"
|
890
|
+
a.last!(' ') #=> "World"
|
891
|
+
a #=> "Hello"
|
892
|
+
</pre>
|
893
|
+
</div>
|
894
|
+
</div>
|
895
|
+
<div class="method">
|
896
|
+
<div class="title">
|
897
|
+
<a name="M000347"></a><b>last=</b>(str)
|
898
|
+
[ <a href="javascript:openCode('String.src/M000347.html')">source</a> ]
|
899
|
+
</div>
|
900
|
+
<div class="description">
|
901
|
+
<p>
|
902
|
+
Appends to a string.
|
903
|
+
</p>
|
904
|
+
<pre>
|
905
|
+
"Hello World".last = ", Bye." #=> "Hello World, Bye."
|
906
|
+
</pre>
|
907
|
+
</div>
|
908
|
+
</div>
|
909
|
+
<div class="method">
|
910
|
+
<div class="title">
|
911
|
+
<a name="M000319"></a><b>last_char</b>(n=1)
|
912
|
+
[ <a href="javascript:openCode('String.src/M000319.html')">source</a> ]
|
913
|
+
</div>
|
914
|
+
<div class="description">
|
915
|
+
<p>
|
916
|
+
Returns last <em>n</em> characters.
|
917
|
+
</p>
|
918
|
+
<pre>
|
919
|
+
"Hello World".last_char(3) #=> "rld"
|
920
|
+
</pre>
|
921
|
+
</div>
|
922
|
+
</div>
|
923
|
+
<div class="method">
|
924
|
+
<div class="title">
|
925
|
+
<a name="M000320"></a><b>line_wrap</b>(width)
|
926
|
+
[ <a href="javascript:openCode('String.src/M000320.html')">source</a> ]
|
927
|
+
</div>
|
928
|
+
<div class="description">
|
929
|
+
<p>
|
930
|
+
Line wrap at width.
|
931
|
+
</p>
|
932
|
+
<pre>
|
933
|
+
puts "1234567890".line_wrap(5)
|
934
|
+
</pre>
|
935
|
+
<p>
|
936
|
+
<em>produces</em>
|
937
|
+
</p>
|
938
|
+
<pre>
|
939
|
+
12345
|
940
|
+
67890
|
941
|
+
</pre>
|
942
|
+
</div>
|
943
|
+
</div>
|
944
|
+
<div class="method">
|
945
|
+
<div class="title">
|
946
|
+
<a name="M000357"></a><b>lines</b>()
|
947
|
+
[ <a href="javascript:openCode('String.src/M000357.html')">source</a> ]
|
948
|
+
</div>
|
949
|
+
<div class="description">
|
950
|
+
<p>
|
951
|
+
Returns an array of characters.
|
952
|
+
</p>
|
953
|
+
<pre>
|
954
|
+
"abc\n123".lines #=> ["abc","123"]
|
955
|
+
</pre>
|
956
|
+
</div>
|
957
|
+
</div>
|
958
|
+
<div class="method">
|
959
|
+
<div class="title">
|
960
|
+
<a name="M000315"></a><b>lowercase?</b>()
|
961
|
+
</div>
|
962
|
+
<div class="description">
|
963
|
+
<p>
|
964
|
+
Alias for <a href="String.html#M000298">downcase?</a>
|
965
|
+
</p>
|
966
|
+
</div>
|
967
|
+
</div>
|
968
|
+
<div class="method">
|
969
|
+
<div class="title">
|
970
|
+
<a name="M000277"></a><b>margin</b>(n=0)
|
971
|
+
[ <a href="javascript:openCode('String.src/M000277.html')">source</a> ]
|
972
|
+
</div>
|
973
|
+
<div class="description">
|
974
|
+
<p>
|
975
|
+
Provides a margin controlled string.
|
976
|
+
</p>
|
977
|
+
<pre>
|
978
|
+
x = %Q{
|
979
|
+
| This
|
980
|
+
| is
|
981
|
+
| margin controlled!
|
982
|
+
}.margin
|
983
|
+
</pre>
|
984
|
+
</div>
|
985
|
+
</div>
|
986
|
+
<div class="method">
|
987
|
+
<div class="title">
|
988
|
+
<a name="M000349"></a><b>mscan</b>(re) {|| ...}
|
989
|
+
[ <a href="javascript:openCode('String.src/M000349.html')">source</a> ]
|
990
|
+
</div>
|
991
|
+
<div class="description">
|
992
|
+
<p>
|
993
|
+
Like scan but returns <a href="MatchData.html">MatchData</a> ($~) rather
|
994
|
+
then matched string ($&).
|
995
|
+
</p>
|
996
|
+
</div>
|
997
|
+
</div>
|
998
|
+
<div class="method">
|
999
|
+
<div class="title">
|
1000
|
+
<a name="M000355"></a><b>natcmp</b>(str2, caseInsensitive=false)
|
1001
|
+
[ <a href="javascript:openCode('String.src/M000355.html')">source</a> ]
|
1002
|
+
</div>
|
1003
|
+
<div class="description">
|
1004
|
+
<p>
|
1005
|
+
‘Natural order’ comparison of two strings, e.g.
|
1006
|
+
</p>
|
1007
|
+
<pre>
|
1008
|
+
"my_prog_v1.1.0" < "my_prog_v1.2.0" < "my_prog_v1.10.0"
|
1009
|
+
</pre>
|
1010
|
+
<p>
|
1011
|
+
which does not follow alphabetically. A secondary parameter, if set to
|
1012
|
+
<em>true</em>, makes the comparison case insensitive.
|
1013
|
+
</p>
|
1014
|
+
<pre>
|
1015
|
+
"Hello.10".natcmp("Hello.1") #=> -1
|
1016
|
+
</pre>
|
1017
|
+
</div>
|
1018
|
+
</div>
|
1019
|
+
<div class="method">
|
1020
|
+
<div class="title">
|
1021
|
+
<a name="M000284"></a><b>nchar</b>( n, replacement=nil )
|
1022
|
+
[ <a href="javascript:openCode('String.src/M000284.html')">source</a> ]
|
1023
|
+
</div>
|
1024
|
+
<div class="description">
|
1025
|
+
<p>
|
1026
|
+
Retrns <em>n</em> characters of the string. If <em>n</em> is positive the
|
1027
|
+
characters are from the beginning of the string. If <em>n</em> is negative
|
1028
|
+
from the end of the string.
|
1029
|
+
</p>
|
1030
|
+
<p>
|
1031
|
+
Alternatively a replacement string can be given, which will replace the
|
1032
|
+
<em>n</em> characters.
|
1033
|
+
</p>
|
1034
|
+
</div>
|
1035
|
+
</div>
|
1036
|
+
<div class="method">
|
1037
|
+
<div class="title">
|
1038
|
+
<a name="M000335"></a><b>ordinal</b>()
|
1039
|
+
[ <a href="javascript:openCode('String.src/M000335.html')">source</a> ]
|
1040
|
+
</div>
|
1041
|
+
</div>
|
1042
|
+
<div class="method">
|
1043
|
+
<div class="title">
|
1044
|
+
<a name="M000269"></a><b>plural</b>()
|
1045
|
+
[ <a href="javascript:openCode('String.src/M000269.html')">source</a> ]
|
1046
|
+
</div>
|
1047
|
+
<div class="description">
|
1048
|
+
<p>
|
1049
|
+
Convert an English word from singular to plurel.
|
1050
|
+
</p>
|
1051
|
+
<pre>
|
1052
|
+
"boy".plural #=> boys
|
1053
|
+
"tomato".plural #=> tomatoes
|
1054
|
+
</pre>
|
1055
|
+
</div>
|
1056
|
+
<div class="aka">
|
1057
|
+
This method is also aliased as
|
1058
|
+
<a href="String.html#M000270">pluralize</a>
|
1059
|
+
</div>
|
1060
|
+
</div>
|
1061
|
+
<div class="method">
|
1062
|
+
<div class="title">
|
1063
|
+
<a name="M000270"></a><b>pluralize</b>()
|
1064
|
+
</div>
|
1065
|
+
<div class="description">
|
1066
|
+
<p>
|
1067
|
+
Alias for <a href="String.html#M000269">plural</a>
|
1068
|
+
</p>
|
1069
|
+
</div>
|
1070
|
+
</div>
|
1071
|
+
<div class="method">
|
1072
|
+
<div class="title">
|
1073
|
+
<a name="M000327"></a><b>pop</b>()
|
1074
|
+
[ <a href="javascript:openCode('String.src/M000327.html')">source</a> ]
|
1075
|
+
</div>
|
1076
|
+
</div>
|
1077
|
+
<div class="method">
|
1078
|
+
<div class="title">
|
1079
|
+
<a name="M000306"></a><b>probability</b>(*args)
|
1080
|
+
[ <a href="javascript:openCode('String.src/M000306.html')">source</a> ]
|
1081
|
+
</div>
|
1082
|
+
</div>
|
1083
|
+
<div class="method">
|
1084
|
+
<div class="title">
|
1085
|
+
<a name="M000266"></a><b>push</b>(str=' ')
|
1086
|
+
[ <a href="javascript:openCode('String.src/M000266.html')">source</a> ]
|
1087
|
+
</div>
|
1088
|
+
</div>
|
1089
|
+
<div class="method">
|
1090
|
+
<div class="title">
|
1091
|
+
<a name="M000343"></a><b>quote</b>(type=:s)
|
1092
|
+
[ <a href="javascript:openCode('String.src/M000343.html')">source</a> ]
|
1093
|
+
</div>
|
1094
|
+
<div class="description">
|
1095
|
+
<p>
|
1096
|
+
Return a new string embraced by given quotes. If no quotes are specified,
|
1097
|
+
then assumes single quotes.
|
1098
|
+
</p>
|
1099
|
+
<pre>
|
1100
|
+
"quote me".quote #=> "'quote me'"
|
1101
|
+
"quote me".quote(2) #=> "\"quote me\""
|
1102
|
+
</pre>
|
1103
|
+
</div>
|
1104
|
+
</div>
|
1105
|
+
<div class="method">
|
1106
|
+
<div class="title">
|
1107
|
+
<a name="M000290"></a><b>rand_byte</b>()
|
1108
|
+
[ <a href="javascript:openCode('String.src/M000290.html')">source</a> ]
|
1109
|
+
</div>
|
1110
|
+
<div class="description">
|
1111
|
+
<p>
|
1112
|
+
Return a random byte of <em>self</em>.
|
1113
|
+
</p>
|
1114
|
+
<pre>
|
1115
|
+
"Ruby rules".rand_byte #=> 121
|
1116
|
+
</pre>
|
1117
|
+
</div>
|
1118
|
+
</div>
|
1119
|
+
<div class="method">
|
1120
|
+
<div class="title">
|
1121
|
+
<a name="M000352"></a><b>rand_byte!</b>()
|
1122
|
+
[ <a href="javascript:openCode('String.src/M000352.html')">source</a> ]
|
1123
|
+
</div>
|
1124
|
+
<div class="description">
|
1125
|
+
<p>
|
1126
|
+
Destructive <a href="String.html#M000290">rand_byte</a>. Delete a random
|
1127
|
+
byte of <em>self</em> and return it.
|
1128
|
+
</p>
|
1129
|
+
<pre>
|
1130
|
+
s = "Ruby rules"
|
1131
|
+
s.rand_byte! #=> 121
|
1132
|
+
s #=> "Rub rules"
|
1133
|
+
</pre>
|
1134
|
+
</div>
|
1135
|
+
</div>
|
1136
|
+
<div class="method">
|
1137
|
+
<div class="title">
|
1138
|
+
<a name="M000283"></a><b>rand_index</b>()
|
1139
|
+
[ <a href="javascript:openCode('String.src/M000283.html')">source</a> ]
|
1140
|
+
</div>
|
1141
|
+
<div class="description">
|
1142
|
+
<p>
|
1143
|
+
Return a random string index.
|
1144
|
+
</p>
|
1145
|
+
<pre>
|
1146
|
+
"Ruby rules".rand_index #=> 3
|
1147
|
+
</pre>
|
1148
|
+
</div>
|
1149
|
+
</div>
|
1150
|
+
<div class="method">
|
1151
|
+
<div class="title">
|
1152
|
+
<a name="M000316"></a><b>range</b>(s, offset=0)
|
1153
|
+
[ <a href="javascript:openCode('String.src/M000316.html')">source</a> ]
|
1154
|
+
</div>
|
1155
|
+
<div class="description">
|
1156
|
+
<p>
|
1157
|
+
Like index but returns a <a href="Range.html">Range</a>.
|
1158
|
+
</p>
|
1159
|
+
<pre>
|
1160
|
+
"This is a test!".range('test') #=> 10..13
|
1161
|
+
</pre>
|
1162
|
+
</div>
|
1163
|
+
</div>
|
1164
|
+
<div class="method">
|
1165
|
+
<div class="title">
|
1166
|
+
<a name="M000348"></a><b>range_all</b>(s, reuse=false)
|
1167
|
+
[ <a href="javascript:openCode('String.src/M000348.html')">source</a> ]
|
1168
|
+
</div>
|
1169
|
+
<div class="description">
|
1170
|
+
<p>
|
1171
|
+
Like <a href="String.html#M000342">index_all</a> but returns an array of
|
1172
|
+
Ranges.
|
1173
|
+
</p>
|
1174
|
+
<pre>
|
1175
|
+
"abc123abc123".range_all('abc') #=> [0..2, 6..8]
|
1176
|
+
</pre>
|
1177
|
+
</div>
|
1178
|
+
</div>
|
1179
|
+
<div class="method">
|
1180
|
+
<div class="title">
|
1181
|
+
<a name="M000331"></a><b>range_of_line</b>()
|
1182
|
+
[ <a href="javascript:openCode('String.src/M000331.html')">source</a> ]
|
1183
|
+
</div>
|
1184
|
+
<div class="description">
|
1185
|
+
<p>
|
1186
|
+
Returns an array of ranges mapping the characters per line.
|
1187
|
+
</p>
|
1188
|
+
<pre>
|
1189
|
+
"this\nis\na\ntest".range_of_line
|
1190
|
+
#=> [0..4, 5..7, 8..9, 10..13]
|
1191
|
+
</pre>
|
1192
|
+
</div>
|
1193
|
+
</div>
|
1194
|
+
<div class="method">
|
1195
|
+
<div class="title">
|
1196
|
+
<a name="M000353"></a><b>shatter</b>( re )
|
1197
|
+
[ <a href="javascript:openCode('String.src/M000353.html')">source</a> ]
|
1198
|
+
</div>
|
1199
|
+
<div class="description">
|
1200
|
+
<p>
|
1201
|
+
Breaks a string up into an array based on a regular expression. Similar to
|
1202
|
+
scan, but includes the matches.
|
1203
|
+
</p>
|
1204
|
+
<pre>
|
1205
|
+
s = "<p>This<b>is</b>a test.</p>"
|
1206
|
+
s.shatter( /\<.*?\>/ )
|
1207
|
+
</pre>
|
1208
|
+
<p>
|
1209
|
+
<em>produces</em>
|
1210
|
+
</p>
|
1211
|
+
<pre>
|
1212
|
+
["<p>", "This", "<b>", "is", "</b>", "a test.", "</p>"]
|
1213
|
+
</pre>
|
1214
|
+
</div>
|
1215
|
+
</div>
|
1216
|
+
<div class="method">
|
1217
|
+
<div class="title">
|
1218
|
+
<a name="M000267"></a><b>shift</b>()
|
1219
|
+
[ <a href="javascript:openCode('String.src/M000267.html')">source</a> ]
|
1220
|
+
</div>
|
1221
|
+
</div>
|
1222
|
+
<div class="method">
|
1223
|
+
<div class="title">
|
1224
|
+
<a name="M000336"></a><b>shuffle</b>(separator=//)
|
1225
|
+
[ <a href="javascript:openCode('String.src/M000336.html')">source</a> ]
|
1226
|
+
</div>
|
1227
|
+
<div class="description">
|
1228
|
+
<p>
|
1229
|
+
Return the string with seperated sections arranged in a random order. The
|
1230
|
+
default seperation is by character.
|
1231
|
+
</p>
|
1232
|
+
<pre>
|
1233
|
+
"Ruby rules".shuffle #=> "e lybRsuur"
|
1234
|
+
</pre>
|
1235
|
+
</div>
|
1236
|
+
</div>
|
1237
|
+
<div class="method">
|
1238
|
+
<div class="title">
|
1239
|
+
<a name="M000337"></a><b>shuffle!</b>(separator=//)
|
1240
|
+
[ <a href="javascript:openCode('String.src/M000337.html')">source</a> ]
|
1241
|
+
</div>
|
1242
|
+
<div class="description">
|
1243
|
+
<p>
|
1244
|
+
In place version of shuffle.
|
1245
|
+
</p>
|
1246
|
+
</div>
|
1247
|
+
</div>
|
1248
|
+
<div class="method">
|
1249
|
+
<div class="title">
|
1250
|
+
<a name="M000288"></a><b>similarity</b>( str_in )
|
1251
|
+
[ <a href="javascript:openCode('String.src/M000288.html')">source</a> ]
|
1252
|
+
</div>
|
1253
|
+
<div class="description">
|
1254
|
+
<p>
|
1255
|
+
A fuzzy matching mechanism. Returns a score from 0-1, based on the number
|
1256
|
+
of shared edges. To be effective, the strings must be of length 2 or
|
1257
|
+
greater.
|
1258
|
+
</p>
|
1259
|
+
<pre>
|
1260
|
+
"Alexsander".fuzzy_match( "Aleksander" ) #=> 0.9
|
1261
|
+
</pre>
|
1262
|
+
<p>
|
1263
|
+
The way it works:
|
1264
|
+
</p>
|
1265
|
+
<ul>
|
1266
|
+
<li>Converts each string into a "graph like" object, with edges
|
1267
|
+
|
1268
|
+
<pre>
|
1269
|
+
"alexsander" -> [ alexsander, alexsand, alexsan ... lexsand ... san ... an, etc ]
|
1270
|
+
"aleksander" -> [ aleksander, aleksand ... etc. ]
|
1271
|
+
</pre>
|
1272
|
+
</li>
|
1273
|
+
<li>Perform match, then remove any subsets from this matched set (i.e. a hit on
|
1274
|
+
"san" is a subset of a hit on "sander")
|
1275
|
+
|
1276
|
+
<pre>
|
1277
|
+
Above example, once reduced -> [ ale, sander ]
|
1278
|
+
</pre>
|
1279
|
+
</li>
|
1280
|
+
<li>See’s how many of the matches remain, and calculates a score based on
|
1281
|
+
how many matches, their length, and compare to the length of the larger of
|
1282
|
+
the two words.
|
1283
|
+
|
1284
|
+
</li>
|
1285
|
+
</ul>
|
1286
|
+
</div>
|
1287
|
+
<div class="aka">
|
1288
|
+
This method is also aliased as
|
1289
|
+
<a href="String.html#M000289">fuzzy_match</a>
|
1290
|
+
</div>
|
1291
|
+
</div>
|
1292
|
+
<div class="method">
|
1293
|
+
<div class="title">
|
1294
|
+
<a name="M000285"></a><b>singular</b>()
|
1295
|
+
[ <a href="javascript:openCode('String.src/M000285.html')">source</a> ]
|
1296
|
+
</div>
|
1297
|
+
<div class="description">
|
1298
|
+
<p>
|
1299
|
+
Convert an English word from plurel to singular.
|
1300
|
+
</p>
|
1301
|
+
<pre>
|
1302
|
+
"boys".singular #=> boy
|
1303
|
+
"tomatoes".singular #=> tomato
|
1304
|
+
</pre>
|
1305
|
+
</div>
|
1306
|
+
<div class="aka">
|
1307
|
+
This method is also aliased as
|
1308
|
+
<a href="String.html#M000286">singularize</a>
|
1309
|
+
</div>
|
1310
|
+
</div>
|
1311
|
+
<div class="method">
|
1312
|
+
<div class="title">
|
1313
|
+
<a name="M000286"></a><b>singularize</b>()
|
1314
|
+
</div>
|
1315
|
+
<div class="description">
|
1316
|
+
<p>
|
1317
|
+
Alias for <a href="String.html#M000285">singular</a>
|
1318
|
+
</p>
|
1319
|
+
</div>
|
1320
|
+
</div>
|
1321
|
+
<div class="method">
|
1322
|
+
<div class="title">
|
1323
|
+
<a name="M000297"></a><b>slap</b>( str=' ' )
|
1324
|
+
[ <a href="javascript:openCode('String.src/M000297.html')">source</a> ]
|
1325
|
+
</div>
|
1326
|
+
<div class="description">
|
1327
|
+
<p>
|
1328
|
+
Like push but works from the other end of the string.
|
1329
|
+
</p>
|
1330
|
+
</div>
|
1331
|
+
</div>
|
1332
|
+
<div class="method">
|
1333
|
+
<div class="title">
|
1334
|
+
<a name="M000344"></a><b>soundex</b>()
|
1335
|
+
[ <a href="javascript:openCode('String.src/M000344.html')">source</a> ]
|
1336
|
+
</div>
|
1337
|
+
<div class="description">
|
1338
|
+
<p>
|
1339
|
+
Implementation of the soundex algorithm as described by Knuth in volume 3
|
1340
|
+
of The Art of Computer Programming. Returns nil if the value couldn’t
|
1341
|
+
be calculated b/c of empty-string or invalid character.
|
1342
|
+
</p>
|
1343
|
+
<pre>
|
1344
|
+
"Ruby".soundex #=> "R100"
|
1345
|
+
</pre>
|
1346
|
+
</div>
|
1347
|
+
</div>
|
1348
|
+
<div class="method">
|
1349
|
+
<div class="title">
|
1350
|
+
<a name="M000305"></a><b>succ</b>(n=1)
|
1351
|
+
[ <a href="javascript:openCode('String.src/M000305.html')">source</a> ]
|
1352
|
+
</div>
|
1353
|
+
<div class="description">
|
1354
|
+
<p>
|
1355
|
+
Allows <a href="String.html#M000305">succ</a> to take <em>n</em> step
|
1356
|
+
increments.
|
1357
|
+
</p>
|
1358
|
+
<pre>
|
1359
|
+
"abc".succ #=> "abd"
|
1360
|
+
"abc".succ(4) #=> "abg"
|
1361
|
+
"abc".succ(24) #=> "aca"
|
1362
|
+
</pre>
|
1363
|
+
</div>
|
1364
|
+
</div>
|
1365
|
+
<div class="method">
|
1366
|
+
<div class="title">
|
1367
|
+
<a name="M000330"></a><b>tab</b>(n)
|
1368
|
+
[ <a href="javascript:openCode('String.src/M000330.html')">source</a> ]
|
1369
|
+
</div>
|
1370
|
+
<div class="description">
|
1371
|
+
<p>
|
1372
|
+
Aligns each line n spaces. (This used to be taballto.)
|
1373
|
+
</p>
|
1374
|
+
</div>
|
1375
|
+
</div>
|
1376
|
+
<div class="method">
|
1377
|
+
<div class="title">
|
1378
|
+
<a name="M000321"></a><b>tabto</b>(n)
|
1379
|
+
[ <a href="javascript:openCode('String.src/M000321.html')">source</a> ]
|
1380
|
+
</div>
|
1381
|
+
<div class="description">
|
1382
|
+
<p>
|
1383
|
+
Preserves relative tabbing. The first non-empty line ends up with n spaces
|
1384
|
+
before nonspace.
|
1385
|
+
</p>
|
1386
|
+
</div>
|
1387
|
+
</div>
|
1388
|
+
<div class="method">
|
1389
|
+
<div class="title">
|
1390
|
+
<a name="M000334"></a><b>to_arr</b>(mode=nil)
|
1391
|
+
[ <a href="javascript:openCode('String.src/M000334.html')">source</a> ]
|
1392
|
+
</div>
|
1393
|
+
<div class="description">
|
1394
|
+
<p>
|
1395
|
+
Split a string into an array according to ath egiven mode. The mode is a
|
1396
|
+
recognized symbol or a regexp. If no mode is given the default mode :char
|
1397
|
+
(same as regular expression //) is used.
|
1398
|
+
</p>
|
1399
|
+
<p>
|
1400
|
+
Symbolized modes include :byte, :char, :word, :line and :enum.
|
1401
|
+
</p>
|
1402
|
+
<p>
|
1403
|
+
The :enum mode passes the call up to the Enumerable#to_a, thus providing a
|
1404
|
+
means to Ruby’s current built-in behavior.
|
1405
|
+
</p>
|
1406
|
+
<pre>
|
1407
|
+
'abc 123'.to_arr #=> ['a','b','c',' ','1','2','3']
|
1408
|
+
'abc 123'.to_arr(:word) #=> ['abc','123']
|
1409
|
+
</pre>
|
1410
|
+
</div>
|
1411
|
+
</div>
|
1412
|
+
<div class="method">
|
1413
|
+
<div class="title">
|
1414
|
+
<a name="M000317"></a><b>to_b</b>()
|
1415
|
+
[ <a href="javascript:openCode('String.src/M000317.html')">source</a> ]
|
1416
|
+
</div>
|
1417
|
+
<div class="description">
|
1418
|
+
<p>
|
1419
|
+
Interpret common affirmative string meanings as true, otherwise false.
|
1420
|
+
Balnk sapce and case are ignored. The following strings that will return
|
1421
|
+
true:
|
1422
|
+
</p>
|
1423
|
+
<pre>
|
1424
|
+
<tt>true</tt>,<tt>yes</tt>,<tt>on</tt>,<tt>t</tt>,<tt>1</tt>,<tt>y</tt>,<tt>==</tt>
|
1425
|
+
</pre>
|
1426
|
+
<p>
|
1427
|
+
Examples:
|
1428
|
+
</p>
|
1429
|
+
<pre>
|
1430
|
+
"true".to_b #=> true
|
1431
|
+
"yes".to_b #=> true
|
1432
|
+
"no".to_b #=> false
|
1433
|
+
"123".to_b #=> false
|
1434
|
+
</pre>
|
1435
|
+
</div>
|
1436
|
+
</div>
|
1437
|
+
<div class="method">
|
1438
|
+
<div class="title">
|
1439
|
+
<a name="M000326"></a><b>to_const</b>()
|
1440
|
+
[ <a href="javascript:openCode('String.src/M000326.html')">source</a> ]
|
1441
|
+
</div>
|
1442
|
+
<div class="description">
|
1443
|
+
<p>
|
1444
|
+
Get a constant by a given string name.
|
1445
|
+
</p>
|
1446
|
+
<pre>
|
1447
|
+
"Class".to_const #=> Class
|
1448
|
+
</pre>
|
1449
|
+
<p>
|
1450
|
+
Note this method is not as verstile as it should be, since it can not
|
1451
|
+
access contants relative to the current execution context. But without a
|
1452
|
+
binding_of_caller that does not seem possible.
|
1453
|
+
</p>
|
1454
|
+
</div>
|
1455
|
+
</div>
|
1456
|
+
<div class="method">
|
1457
|
+
<div class="title">
|
1458
|
+
<a name="M000294"></a><b>to_date</b>()
|
1459
|
+
[ <a href="javascript:openCode('String.src/M000294.html')">source</a> ]
|
1460
|
+
</div>
|
1461
|
+
</div>
|
1462
|
+
<div class="method">
|
1463
|
+
<div class="title">
|
1464
|
+
<a name="M000293"></a><b>to_proc</b>(context=nil)
|
1465
|
+
[ <a href="javascript:openCode('String.src/M000293.html')">source</a> ]
|
1466
|
+
</div>
|
1467
|
+
<div class="description">
|
1468
|
+
<p>
|
1469
|
+
Evaluates a <a href="String.html">String</a> as a <a
|
1470
|
+
href="Proc.html">Proc</a>.
|
1471
|
+
</p>
|
1472
|
+
<pre>
|
1473
|
+
xyp = "|x,y| x + y".to_proc
|
1474
|
+
xyp.class #=> Proc
|
1475
|
+
xyp.call(1,2) #=> 3
|
1476
|
+
</pre>
|
1477
|
+
</div>
|
1478
|
+
</div>
|
1479
|
+
<div class="method">
|
1480
|
+
<div class="title">
|
1481
|
+
<a name="M000318"></a><b>to_re</b>(esc=true)
|
1482
|
+
[ <a href="javascript:openCode('String.src/M000318.html')">source</a> ]
|
1483
|
+
</div>
|
1484
|
+
<div class="description">
|
1485
|
+
<p>
|
1486
|
+
Turns a string into a regular expression. By default it will escape all
|
1487
|
+
characters. Use <tt>false</tt> argument to turn off escaping.
|
1488
|
+
</p>
|
1489
|
+
<pre>
|
1490
|
+
"[".to_re #=> /\[/
|
1491
|
+
</pre>
|
1492
|
+
</div>
|
1493
|
+
</div>
|
1494
|
+
<div class="method">
|
1495
|
+
<div class="title">
|
1496
|
+
<a name="M000333"></a><b>to_time</b>()
|
1497
|
+
[ <a href="javascript:openCode('String.src/M000333.html')">source</a> ]
|
1498
|
+
</div>
|
1499
|
+
</div>
|
1500
|
+
<div class="method">
|
1501
|
+
<div class="title">
|
1502
|
+
<a name="M000354"></a><b>underscore</b>(
|
1503
|
+
[ <a href="javascript:openCode('String.src/M000354.html')">source</a> ]
|
1504
|
+
</div>
|
1505
|
+
<div class="description">
|
1506
|
+
<p>
|
1507
|
+
Underscore string based on camelcase characteristics.
|
1508
|
+
</p>
|
1509
|
+
</div>
|
1510
|
+
</div>
|
1511
|
+
<div class="method">
|
1512
|
+
<div class="title">
|
1513
|
+
<a name="M000272"></a><b>unix_crypt</b>()
|
1514
|
+
[ <a href="javascript:openCode('String.src/M000272.html')">source</a> ]
|
1515
|
+
</div>
|
1516
|
+
<div class="description">
|
1517
|
+
<p>
|
1518
|
+
Common Unix cryptography method.
|
1519
|
+
</p>
|
1520
|
+
</div>
|
1521
|
+
</div>
|
1522
|
+
<div class="method">
|
1523
|
+
<div class="title">
|
1524
|
+
<a name="M000302"></a><b>unix_crypt!</b>()
|
1525
|
+
[ <a href="javascript:openCode('String.src/M000302.html')">source</a> ]
|
1526
|
+
</div>
|
1527
|
+
<div class="description">
|
1528
|
+
<p>
|
1529
|
+
Common Unix cryptography in-place method.
|
1530
|
+
</p>
|
1531
|
+
</div>
|
1532
|
+
</div>
|
1533
|
+
<div class="method">
|
1534
|
+
<div class="title">
|
1535
|
+
<a name="M000281"></a><b>unpack</b>(format, offset=nil)
|
1536
|
+
[ <a href="javascript:openCode('String.src/M000281.html')">source</a> ]
|
1537
|
+
</div>
|
1538
|
+
<div class="description">
|
1539
|
+
<p>
|
1540
|
+
Upack with offset. Extends <a href="String.html#M000281">unpack</a> to
|
1541
|
+
allow a string to be unpacked starting at an offset position within it.
|
1542
|
+
</p>
|
1543
|
+
</div>
|
1544
|
+
</div>
|
1545
|
+
<div class="method">
|
1546
|
+
<div class="title">
|
1547
|
+
<a name="M000339"></a><b>unshift</b>( str=' ' )
|
1548
|
+
[ <a href="javascript:openCode('String.src/M000339.html')">source</a> ]
|
1549
|
+
</div>
|
1550
|
+
</div>
|
1551
|
+
<div class="method">
|
1552
|
+
<div class="title">
|
1553
|
+
<a name="M000309"></a><b>upcase?</b>()
|
1554
|
+
[ <a href="javascript:openCode('String.src/M000309.html')">source</a> ]
|
1555
|
+
</div>
|
1556
|
+
<div class="description">
|
1557
|
+
<p>
|
1558
|
+
Is the string upcase/uppercase?
|
1559
|
+
</p>
|
1560
|
+
<pre>
|
1561
|
+
"THIS".upcase? #=> true
|
1562
|
+
"This".upcase? #=> false
|
1563
|
+
"this".upcase? #=> false
|
1564
|
+
</pre>
|
1565
|
+
</div>
|
1566
|
+
<div class="aka">
|
1567
|
+
This method is also aliased as
|
1568
|
+
<a href="String.html#M000311">uppercase?</a>
|
1569
|
+
</div>
|
1570
|
+
</div>
|
1571
|
+
<div class="method">
|
1572
|
+
<div class="title">
|
1573
|
+
<a name="M000311"></a><b>uppercase?</b>()
|
1574
|
+
</div>
|
1575
|
+
<div class="description">
|
1576
|
+
<p>
|
1577
|
+
Alias for <a href="String.html#M000309">upcase?</a>
|
1578
|
+
</p>
|
1579
|
+
</div>
|
1580
|
+
</div>
|
1581
|
+
<div class="method">
|
1582
|
+
<div class="title">
|
1583
|
+
<a name="M000351"></a><b>whitespace?</b>()
|
1584
|
+
</div>
|
1585
|
+
<div class="description">
|
1586
|
+
<p>
|
1587
|
+
Alias for <a href="String.html#M000350">blank?</a>
|
1588
|
+
</p>
|
1589
|
+
</div>
|
1590
|
+
</div>
|
1591
|
+
<div class="method">
|
1592
|
+
<div class="title">
|
1593
|
+
<a name="M000271"></a><b>word_filter</b>( &blk )
|
1594
|
+
[ <a href="javascript:openCode('String.src/M000271.html')">source</a> ]
|
1595
|
+
</div>
|
1596
|
+
<div class="description">
|
1597
|
+
<p>
|
1598
|
+
Filters out words from a string based on block test.
|
1599
|
+
</p>
|
1600
|
+
<pre>
|
1601
|
+
"a string".word_filter { |word| word =~ /^a/ } #=> "string"
|
1602
|
+
</pre>
|
1603
|
+
</div>
|
1604
|
+
</div>
|
1605
|
+
<div class="method">
|
1606
|
+
<div class="title">
|
1607
|
+
<a name="M000265"></a><b>word_filter!</b>( {|| ...}
|
1608
|
+
[ <a href="javascript:openCode('String.src/M000265.html')">source</a> ]
|
1609
|
+
</div>
|
1610
|
+
<div class="description">
|
1611
|
+
<p>
|
1612
|
+
In place version of <a href="String.html#M000271">word_filter</a>.
|
1613
|
+
</p>
|
1614
|
+
<pre>
|
1615
|
+
"a string".word_filter { |word| ... }
|
1616
|
+
</pre>
|
1617
|
+
</div>
|
1618
|
+
</div>
|
1619
|
+
<div class="method">
|
1620
|
+
<div class="title">
|
1621
|
+
<a name="M000279"></a><b>word_wrap</b>(max=80)
|
1622
|
+
[ <a href="javascript:openCode('String.src/M000279.html')">source</a> ]
|
1623
|
+
</div>
|
1624
|
+
<div class="description">
|
1625
|
+
<p>
|
1626
|
+
Word wrap a string not exceeding max width.
|
1627
|
+
</p>
|
1628
|
+
<pre>
|
1629
|
+
puts "this is a test".word_wrap(4)
|
1630
|
+
</pre>
|
1631
|
+
<p>
|
1632
|
+
<em>produces</em>
|
1633
|
+
</p>
|
1634
|
+
<pre>
|
1635
|
+
this
|
1636
|
+
is a
|
1637
|
+
test
|
1638
|
+
</pre>
|
1639
|
+
</div>
|
1640
|
+
</div>
|
1641
|
+
<div class="method">
|
1642
|
+
<div class="title">
|
1643
|
+
<a name="M000312"></a><b>word_wrap!</b>(max=80)
|
1644
|
+
[ <a href="javascript:openCode('String.src/M000312.html')">source</a> ]
|
1645
|
+
</div>
|
1646
|
+
<div class="description">
|
1647
|
+
<p>
|
1648
|
+
As with <a href="String.html#M000279">word_wrap</a>, but modifies the
|
1649
|
+
string in place.
|
1650
|
+
</p>
|
1651
|
+
</div>
|
1652
|
+
</div>
|
1653
|
+
<div class="method">
|
1654
|
+
<div class="title">
|
1655
|
+
<a name="M000323"></a><b>words</b>()
|
1656
|
+
[ <a href="javascript:openCode('String.src/M000323.html')">source</a> ]
|
1657
|
+
</div>
|
1658
|
+
<div class="description">
|
1659
|
+
<p>
|
1660
|
+
Returns an array of characters.
|
1661
|
+
</p>
|
1662
|
+
<pre>
|
1663
|
+
"abc 123".words #=> ["abc","123"]
|
1664
|
+
</pre>
|
1665
|
+
</div>
|
1666
|
+
</div>
|
1667
|
+
</div>
|
1668
|
+
|
1669
|
+
</div>
|
1670
|
+
|
1671
|
+
</body>
|
1672
|
+
</html>
|