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

hostname

        # URI::Generic.hostname

(from ruby core)
### Implementation from Generic
---
    hostname()

---

Extract the host part of the URI and unwrap brackets for IPv6 addresses.

This method is the same as URI::Generic#host except brackets for IPv6
(and future IP) addresses are removed.

    uri = URI("http://[::1]/bar")
    uri.hostname      #=> "::1"
    uri.host          #=> "[::1]"



      

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.