11件ヒット
[1-11件を表示]
(0.059秒)
ライブラリ
- ビルトイン (11)
検索結果
-
String
# start _ with?(*prefixes) -> bool (27250.0) -
self の先頭が prefixes のいずれかであるとき true を返します。
...st[例][ruby]{
"string".start_with?("str") # => true
"string".start_with?("ing") # => false
"string".start_with?("ing", "str") # => true
"string".start_with?(/\w/) # => true
"string".start_with?(/\d/) # => false
//}
@see String#end_with?
@see String#delete_pr... -
String
# start _ with?(*strs) -> bool (27226.0) -
self の先頭が strs のいずれかであるとき true を返します。
...れかであるとき 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?...