From: Finn Koch Date: 2007-08-23T11:15:48+09:00 Subject: Class method access instance variable? 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 -- Posted via http://www.ruby-forum.com/.