diff options
author | sonots <sonots@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-20 16:29:19 +0000 |
---|---|---|
committer | sonots <sonots@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-20 16:29:19 +0000 |
commit | 3f66a88944500e90b436cc9260d056046ddd0766 (patch) | |
tree | fe7aac93a03c37a673e943c1ee6935296e33fce3 /rational.c | |
parent | 8ed01a573f336d033f7f8fe242ce1b7954de168d (diff) | |
download | ruby-3f66a88944500e90b436cc9260d056046ddd0766.tar.gz |
string.c: add String#delete_suffix and String#delete_suffix!
to remove trailing suffix [Feature #13665] [Fix GH-1661]
* string.c (rb_str_delete_suffix_bang): add a new method
to remove suffix destuctively.
* string.c (rb_str_delete_suffix): add a new method
to remove suffix non-destuctively.
* test/ruby/test_string.rb: add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
0 files changed, 0 insertions, 0 deletions