るりまサーチ

最速Rubyリファレンスマニュアル検索!
201件ヒット [201-201件を表示] (0.046秒)

別のキーワード

  1. string []=
  2. string []
  3. string slice
  4. string slice!
  5. string gsub

ライブラリ

キーワード

検索結果

<< < 1 2 3 >>

Symbol#start_with?(*prefixes) -> bool (14.0)

self の先頭が prefixes のいずれかであるとき true を返します。

...れかであるとき true を返します。

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

@param prefixes パターンを表す文字列または正規表現 (のリスト)

@see Symbol#end_with?

@see String#start_with?

//emlist[][ruby]{
:hello.start_with?("hell") #=> true
:hello.sta...
<< < 1 2 3 >>