るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.056秒)
トップページ > クラス:String[x] > クエリ:string[x] > クエリ:tr[x] > クエリ:b[x] > クエリ:end_with?[x] > バージョン:2.3.0[x]

別のキーワード

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

ライブラリ

検索結果

String#end_with?(*strs) -> bool (90976.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?...