るりまサーチ

最速Rubyリファレンスマニュアル検索!
8件ヒット [1-8件を表示] (0.122秒)
トップページ > クエリ:t[x] > クエリ:Ruby[x] > 種類:インスタンスメソッド[x] > クエリ:self[x] > クエリ:delete[x] > クラス:String[x] > クエリ:end_with?[x]

別のキーワード

  1. _builtin delete
  2. _builtin delete_if
  3. cgi delete
  4. cgi/session delete
  5. pop delete_all

ライブラリ

検索結果

String#end_with?(*strs) -> bool (24236.0)

self の末尾が strs のいずれかであるとき true を返します。

...
self
の末尾が strs のいずれかであるとき true を返します。

@param strs パターンを表す文字列 (のリスト)

//emlist[例][ruby]{
"string".end_with?("ing") # => true
"string".end_with?("str") # => false
"string".end_with?("str", "ing") # => true
/...
.../}

@see String#start_with?
@see String#delete_suffix, String#delete_suffix!...