[RCR] Kernel#hostname

A

Ara.T.Howard

this one is short, so i'm inlining it here:

having to include 'socket' only to do 'Socket.gethostname' definitely is not
in line with POLS - IMHO

i understand _why_ (not the lucky one) #gethostname should be part of the
Socket module, but i think

host = hostname # Kernel.hostname

would be a nice addition to ruby.

-a
--

ATTN: please update your address books with address below!

===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
| STP :: http://www.ngdc.noaa.gov/stp/
| NGDC :: http://www.ngdc.noaa.gov/
| NESDIS :: http://www.nesdis.noaa.gov/
| NOAA :: http://www.noaa.gov/
| US DOC :: http://www.commerce.gov/
|
| The difference between art and science is that science is what we
| understand well enough to explain to a computer.
| Art is everything else.
| -- Donald Knuth, "Discover"
|
| /bin/sh -c 'for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done'
===============================================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

tk file dialog and directories 3
puts(derived_from_array) 0
RCR - 'struct flock*' wrapper for rb_io_fcntl 7
make MISSING=flock.o 0
io/nonblock 4
pp equiv of #inspect 1
ruby advocacy 3
[BUG] greedy gsub 1

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top