socket problem

P

Picky Mendoza

I just started to learn how to use sockets in Ruby and my Problems
begun.
When i put in IRB require 'socket' it returns false.
I use Ruby 1.8.6 installed with oneclickinstaller on Wista.
What shell i download more to have access to sockets Library??
 
J

Jesús Gabriel y Galán

I just started to learn how to use sockets in Ruby and my Problems
begun.
When i put in IRB require 'socket' it returns false.
I use Ruby 1.8.6 installed with oneclickinstaller on Wista.
What shell i download more to have access to sockets Library??

require only loads a resource once. If it was already required
previously, it will return false, since it does nothing further. You
shouldn't worry about the return value of require, only if it raises
any exception:

irb(main):001:0> require 'socket'
=> true
irb(main):002:0> require 'socket'
=> false

Jesus.
 

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

Members online

No members online now.

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,404
Latest member
PerryRutt

Latest Threads

Top