This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

port=

        # URI::Generic.port=

(from ruby core)
### Implementation from Generic
---
    port=(v)

---

## 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
    uri.to_s  #=> "http://my.example.com:8080"



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.