るりまサーチ (Ruby 3.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.042秒)
トップページ > クエリ:|[x] > クエリ:-[x] > クエリ:default[x] > バージョン:3.0[x] > ライブラリ:uri[x]

別のキーワード

  1. _builtin |
  2. ipaddr |
  3. set |
  4. array |
  5. integer |

検索結果

URI::Generic.default_port -> Integer | nil (19039.0)

スキームに対応するデフォルトのポート番号を整数で返します。

...ます。

require 'uri'
URI
::Generic.default_port # => nil
URI
::FTP.default_port # => 21
URI
::HTTP.default_port # => 80
URI
::HTTPS.default_port # => 443
URI
::LDAP.default_port # => 389
URI
::LDAPS.default_port # => 636
URI
::MailTo.default_port...

URI::Generic#default_port -> Integer | nil (18979.0)

self.class.default_port を返します。

...self.class.default_port を返します。

@see URI::Generic.default_port...