るりまサーチ (Ruby 2.6.0)

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

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method gets
  4. irb/input-method new
  5. matrix -

検索結果

URI::Generic.default_port -> Integer | nil (55039.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 (54979.0)

self.class.default_port を返します。

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

@see URI::Generic.default_port...