instance method URI::Generic#port

port -> String | nil[permalink][rdoc][edit]

自身の port を文字列で返します。設定されていない場合は nil を返します。