Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Socket
/
//opt/alt/ruby21/share/ri/2.1.0/system/Socket/gethostname-c.ri
U:RDoc::AnyMethod[iI"gethostname:ETI"Socket::gethostname;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"Returns the hostname.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"$p Socket.gethostname #=> "hal" ;T:@format0o; ; [I"oNote that it is not guaranteed to be able to convert to IP address using gethostbyname, getaddrinfo, etc. ;TI">If you need local IP address, use Socket.ip_address_list.;T: @fileI"ext/socket/socket.c;T:0@omit_headings_from_table_of_contents_below0I"$Socket.gethostname => hostname ;T0[ I"();T@FI"Socket;TcRDoc::NormalClass00