るりまサーチ

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

別のキーワード

  1. string b
  2. _builtin b
  3. b string
  4. b _builtin
  5. b

ライブラリ

検索結果

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

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

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

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

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

@see String#sta...
...rt_with?...
...rt_with?
@see String#delete_suffix, String#delete_suffix!...