るりまサーチ

最速Rubyリファレンスマニュアル検索!
20件ヒット [1-20件を表示] (0.052秒)
トップページ > クエリ:d[x] > クエリ:start_with?[x]

別のキーワード

  1. smtp start
  2. net/smtp start
  3. pop start
  4. http start
  5. pop3 start

ライブラリ

クラス

検索結果

did_you_mean (26006.0)

名前のタイポによって NameError や NoMethodError が起きたと きに、自動的に他の似た名前を提案してくれるライブラリです。

...って NameError や NoMethodError が起きたと
きに、自動的に他の似た名前を提案してくれるライブラリです。

"Yuki".starts_with?("Y")
# => NoMethodError: undefined method `starts_with?' for "Yuki":String
# Did you mean? start_with?

デフォルトで有効...
...ドラインオプションで
--disable=did_you_mean を指定します。

このライブラリはbundled gem(gemファイルのみを同梱)です。詳しい内容は下
記のページを参照してください。

* rubygems.org: https://rubygems.org/gems/did_you_mean
* プロジェクト...
...ページ: https://github.com/ruby/did_you_mean
* リファレンス: https://www.rubydoc.info/gems/did_you_mean/...

String#start_with?(*prefixes) -> bool (18106.0)

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

...ing".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_prefix, String#delete...