F
Finn Koch
Hi, I'm just learning ruby and I'm working on a server connection. I
have the following code:
class IRCBot
....
def connect
puts "Connecting to #{@server}..."
@conn = TCPSocket.new( @server, @port )
handle_server_registration
end
end
I have another class that needs to perform a '@conn.send("asdf",0)'.
Can anyone help me figure out how I can have this external class access
the @conn instance variable?
Thanks!
upenox
have the following code:
class IRCBot
....
def connect
puts "Connecting to #{@server}..."
@conn = TCPSocket.new( @server, @port )
handle_server_registration
end
end
I have another class that needs to perform a '@conn.send("asdf",0)'.
Can anyone help me figure out how I can have this external class access
the @conn instance variable?
Thanks!
upenox