Module: Balotelli::Config

Defined in:
lib/balotelli/config.rb

Constant Summary collapse

FREENODE =
['chat.freenode.net'.freeze, 6667].freeze
QUAKENET =
['irc.quakenet.org'.freeze, 6667].freeze
RIZON =
['irc.rizon.net'.freeze, 6667].freeze
PIRC =
['irc.pirc.pl'.freeze, 6667].freeze
MOZNET =
['irc.mozilla.org'.freeze, 6667].freeze

Class Method Summary collapse

Class Method Details

.build(server, name = format('balotelli%03d', rand(1000)), pass = nil) ⇒ Object



11
12
13
# File 'lib/balotelli/config.rb', line 11

def build(server, name = format('balotelli%03d', rand(1000)), pass = nil)
  const_get(server.upcase).dup.push(name, pass)
end