Class: Vetinari::Configuration
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Vetinari::Configuration
- Defined in:
- lib/vetinari/configuration.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(&block) ⇒ Configuration
Returns a new instance of Configuration.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/vetinari/configuration.rb', line 3 def initialize(&block) super self.server = 'chat.freenode.org' self.port = 6667 self.ssl = false self.nick = "Vetinari#{rand(10_000)}" self.username = 'Vetinari' self.real_name = 'Havelock Vetinari' self.verbose = true self.logging = false self.logger = nil self.reconnect = true self.reconnect_interval = 10 self.hide_ping_pongs = true self.rejoin_after_kick = false self.password = nil self.isupport = ISupport.new self.dcc = OpenStruct.new self.dcc.ports = [] block.call(self) if block_given? setup_loggers end |