1 2 3 4 5 6 7 8 9 10
thread_read_irc = Thread.new irc.read_irc thread_pinger = Thread.new irc.pinger console = Console.new thread_read_console = Thread.new console.read_console Thread.list.each { |t| puts "Thread: " + t } puts Thread.current
1
Line 1: undefined local variable or method `irc' for main:Object (NameError)