зеркало из https://github.com/github/ruby.git
* string.c: [DOC] Make #end_with? example doc symmetry
with #start_with? [fix GH-992][ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a6cf2a9412
Коммит
8322c36a9b
|
@ -1,3 +1,8 @@
|
|||
Tue Aug 11 10:58:42 2015 Juanito Fatas <juanitofatas@gmail.com>
|
||||
|
||||
* string.c: [DOC] Make #end_with? example doc symmetry
|
||||
with #start_with? [fix GH-992][ci skip]
|
||||
|
||||
Tue Aug 11 10:51:19 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_array.rb: Add test for `Array#flatten` with level 1
|
||||
|
|
6
string.c
6
string.c
|
@ -8219,6 +8219,12 @@ rb_str_start_with(int argc, VALUE *argv, VALUE str)
|
|||
* str.end_with?([suffixes]+) -> true or false
|
||||
*
|
||||
* Returns true if +str+ ends with one of the +suffixes+ given.
|
||||
*
|
||||
* "hello".end_with?("ello") #=> true
|
||||
*
|
||||
* # returns true if one of the +suffixes+ matches.
|
||||
* "hello".end_with?("heaven", "ello") #=> true
|
||||
* "hello".end_with?("heaven", "paradise") #=> false
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
|
Загрузка…
Ссылка в новой задаче