port=

port=(v)
Instance Public methods

Args

v

String

Description

public setter for the port component v. (with validation)

see also URI::Generic.check_port

Usage

require 'uri'

uri = URI.parse("http://my.example.com")
uri.port = 8080
# =>  8080
uri
#=> #<URI::HTTP:0x000000008e89e8 URL:http://my.example.com:8080>
doc_ruby_on_rails
2015-06-10 06:21:19
Comments
Leave a Comment

Please login to continue.