るりまサーチ (Ruby 2.7.0)

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

別のキーワード

  1. _builtin end
  2. ripper end_seen?
  3. _builtin exclude_end?
  4. _builtin end_with?
  5. string end_with?

ライブラリ

クラス

検索結果

Symbol#end_with?(*suffixes) -> bool (117337.0)

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

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

(self.to_s.end_with?と同じです。)

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

@see Symbol#start_with?

@see String#end_with?

//emlist[][ruby]{
:hello.end_with?("ello") #=> true

# returns true if one of the +suffixes+ matches.
:hello.end_with?("heaven", "...