Method: Codebot::IPCServer#initialize

Defined in:
lib/codebot/ipc_server.rb

#initialize(core, pipe = nil) ⇒ IPCServer

Creates a new IPC server.

Parameters:

  • core (Core)

    the bot this server belongs to

  • pipe (String) (defaults to: nil)

    the path to the named pipe, or nil to use the default pipe for this user



18
19
20
21
22
# File 'lib/codebot/ipc_server.rb', line 18

def initialize(core, pipe = nil)
  super()
  @core = core
  @pipe = pipe || self.class.default_pipe
end