Module: Ircbot::DM

Defined in:
lib/ircbot/dm.rb

Defined Under Namespace

Modules: Connection

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



9
10
11
12
13
14
# File 'lib/ircbot/dm.rb', line 9

def self.included(base)
  base.class_eval do
    extend Connection
    super
  end
end

Instance Method Details

#connect(path = nil) ⇒ Object



16
17
18
# File 'lib/ircbot/dm.rb', line 16

def connect(path = nil)
  @connection ||= self.class.establish_connection(path)
end