diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-09 11:01:47 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-09 11:01:47 +0000 |
| commit | 189adb436ee4efe6387e40b4edc66ee8a65e3824 (patch) | |
| tree | 6d9c35d5312ea68710358a34dae2429de692bd86 /string.c | |
| parent | ecb1ab8a086ac8aef519bb71b7b419f8860bb8b3 (diff) | |
| download | ruby-189adb436ee4efe6387e40b4edc66ee8a65e3824.tar.gz ruby-189adb436ee4efe6387e40b4edc66ee8a65e3824.tar.xz ruby-189adb436ee4efe6387e40b4edc66ee8a65e3824.zip | |
rdoc update.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -6882,7 +6882,16 @@ rb_str_rpartition(VALUE str, VALUE sep) * call-seq: * str.start_with?([prefix]+) => true or false * - * Returns true if <i>str</i> starts with the prefix given. + * Returns true if <i>str</i> starts with a prefix given. + * + * p "hello".start_with?("hell") #=> true + * + * # returns true if one of prefix matches. + * p "hello".start_with?("heaven", "hell") #=> true + * p "hello".start_with?("heaven", "paradice") #=> false + * + * + * */ static VALUE @@ -6905,7 +6914,7 @@ rb_str_start_with(int argc, VALUE *argv, VALUE str) * call-seq: * str.end_with?([suffix]+) => true or false * - * Returns true if <i>str</i> ends with the suffix given. + * Returns true if <i>str</i> ends with a suffix given. */ static VALUE |
