1件ヒット
[1-1件を表示]
(0.172秒)
検索結果
-
Symbol
# end _ with?(*suffixes) -> bool (63676.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", "...