102件ヒット
[101-102件を表示]
(0.042秒)
ライブラリ
- ビルトイン (30)
-
rexml
/ document (60) -
rubygems
/ package / tar _ header (12)
クラス
-
Gem
:: Package :: TarHeader (12) -
REXML
:: Attribute (12) -
REXML
:: Attributes (12) -
REXML
:: Element (24) - String (24)
- Symbol (6)
モジュール
-
REXML
:: Namespace (12)
キーワード
-
delete
_ prefix (8) -
delete
_ prefix! (8) - namespace (12)
- prefixes (24)
-
start
_ with? (14)
検索結果
-
Symbol
# start _ with?(*prefixes) -> bool (207.0) -
self の先頭が prefixes のいずれかであるとき true を返します。
...self の先頭が prefixes のいずれかであるとき true を返します。
(self.to_s.start_with?と同じです。)
@param prefixes パターンを表す文字列または正規表現 (のリスト)
@see Symbol#end_with?
@see String#start_with?
//emlist[][ruby]{
:hello.start_with?("hel......l") #=> true
:hello.start_with?(/H/i) #=> true
# returns true if one of the prefixes matches.
:hello.start_with?("heaven", "hell") #=> true
:hello.start_with?("heaven", "paradise") #=> false
//}...