From: "David A. Black" Date: 2007-08-23T22:56:02+09:00 Subject: Re: Class method access instance variable? Hi -- On Thu, 23 Aug 2007, Finn Koch wrote: > Daniel ----- wrote: >> On 8/23/07, Finn Koch wrote: >>>> Don't access the @conn instance variable directly. >>> the new instance of IRCBot: >>> def self.check_next( input ) >>> >>> Thanks again! :) >>> -- >>> Posted via http://www.ruby-forum.com/. >> >> >> Can you http://pastie.caboo.se/ your relevant code. In it's entirety. >> I >> can't see where in IRCCallback mybot is defined etc. >> >> It would sure help to see these. >> >> Thanx >> Daniel > > > http://pastie.caboo.se/90341 In this: class IRCCallback def self.check_next( input ) ro.conn.send("PRIVMSG testuser :hey", 0) puts "irc callback working" end end I don't see where ro is being defined. David -- * Books: RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242) RUBY FOR RAILS (http://www.manning.com/black) * Ruby/Rails training & consulting: Ruby Power and Light, LLC (http://www.rubypal.com)