るりまサーチ (Ruby 2.2.0)

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

別のキーワード

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

ライブラリ

クラス

検索結果

URI::Generic.default_port -> Integer | nil (55336.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::M...

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

self.class.default_port を返します。

self.class.default_port を返します。

@see URI::Generic.default_port