Method: Codebot::IRCConnection#initialize

Defined in:
lib/codebot/irc_connection.rb

#initialize(core, network) ⇒ IRCConnection

Constructs a new IRC connection.

Parameters:

  • core (Core)

    the bot this connection belongs to

  • network (Network)

    the network to connect to



22
23
24
25
26
27
# File 'lib/codebot/irc_connection.rb', line 22

def initialize(core, network)
  @core     = core
  @network  = network
  @messages = Queue.new
  @ready    = Queue.new
end