2件ヒット
[1-2件を表示]
(0.038秒)
別のキーワード
クラス
- String (2)
キーワード
-
end
_ with? (1) -
start
_ with? (1)
検索結果
-
String
# start _ with?(*strs) -> bool (18667.0) -
self の先頭が strs のいずれかであるとき true を返します。
self の先頭が strs のいずれかであるとき true を返します。
@param strs パターンを表す文字列 (のリスト)
//emlist[例][ruby]{
"string".start_with?("str") # => true
"string".start_with?("ing") # => false
"string".start_with?("ing", "str") # => true
//}
@see String#end_with? -
String
# end _ with?(*strs) -> bool (328.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?