るりまサーチ (Ruby 2.6.0)

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

別のキーワード

  1. net/imap param
  2. win32ole win32ole_param
  3. win32ole_param input?
  4. win32ole_param new
  5. win32ole_param output?

ライブラリ

クラス

検索結果

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