るりまサーチ

最速Rubyリファレンスマニュアル検索!
507件ヒット [501-507件を表示] (0.073秒)

別のキーワード

  1. rexml/document prefix
  2. ipaddr prefix
  3. ipaddr prefix=
  4. gem prefix
  5. rss prefix

検索結果

<< < ... 4 5 6 >>

String#delete_suffix(suffix) -> String (7.0)

文字列の末尾から suffix を削除した文字列のコピーを返します。

...

@return 文字列の末尾から suffix を削除した文字列のコピー

//emlist[][ruby]{
"hello".delete_suffix("llo") # => "he"
"hello".delete_suffix("hel") # => "hello"
//}

@see String#chomp
@see String#chop
@see String#delete_prefix
@see String#delete_suffix!
@see String#end_with?...
<< < ... 4 5 6 >>