ruby-changes:11733
From: akr <ko1@a...>
Date: Sat, 9 May 2009 20:01:57 +0900 (JST)
Subject: [ruby-changes:11733] Ruby:r23379 (trunk): rdoc update.
akr 2009-05-09 20:01:47 +0900 (Sat, 09 May 2009) New Revision: 23379 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23379 Log: rdoc update. Modified files: trunk/string.c Index: string.c =================================================================== --- string.c (revision 23378) +++ string.c (revision 23379) @@ -6882,7 +6882,16 @@ * 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 @@ * 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/