るりまサーチ

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

別のキーワード

  1. string []=
  2. string slice!
  3. string slice
  4. string []
  5. string gsub

ライブラリ

検索結果

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

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

...ずれかであるとき 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?...
...ます。

@
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_...