| Server IP : 162.214.74.102 / Your IP : 216.73.217.46 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/URI/Generic/ |
Upload File : |
U:RDoc::Attr[iI" host:ETI"URI::Generic#host;TI"R;T:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"+returns the host component of the URI.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I".URI("http://foo/bar/baz").host #=> "foo"
;T:@format0o;
; [I")It returns nil if no host component.;T@o;; [I"0URI("mailto:foo@example.org").host #=> nil
;T;
0o;
; [I"4The component doesn't contains the port number.;T@o;; [I"3URI("http://foo:8080/bar/baz").host #=> "foo"
;T;
0o;
; [ I";Since IPv6 addresses are wrapped by brackets in URIs, ;TI"=this method returns IPv6 addresses wrapped by brackets. ;TI"QThis form is not appropriate to pass socket methods such as TCPSocket.open. ;TI"AIf unwrapped host names are required, use "hostname" method.;T@o;; [I"2URI("http://[::1]/bar/baz").host #=> "[::1]"
;TI"3URI("http://[::1]/bar/baz").hostname #=> "::1";T;
0:
@fileI"lib/uri/generic.rb;T:0@omit_headings_from_table_of_contents_below0F@)I"URI::Generic;TcRDoc::NormalClass0