Module: Bender

Defined in:
lib/bender.rb,
lib/spunk.rb,
lib/config.rb,
lib/process.rb,
lib/version.rb,
lib/irc_listener.rb,
lib/base_servlet.rb,
lib/http_listener.rb,
lib/base_processer.rb

Overview

Top level Bender module

-- Provides some top-level class methods for working with Bender
Author

Michael Heijmans ([email protected])

Copyright

Copyright © 2013-2015 Michael Heijmans

License

MIT

Defined Under Namespace

Modules: HTTP, HttpListener, IrcListener, Process, Processor, Spunk Classes: BaseProcessor, BaseServlet, Config

Constant Summary collapse

VERSION =
'0.1.1'

Class Method Summary collapse

Class Method Details

.botObject

returns the SpunkBot object


27
28
29
# File 'lib/bender.rb', line 27

def self.bot
  Bender::Config.instance.bot
end

.bot=(bot) ⇒ Object

Sets the SpunkBot object


32
33
34
# File 'lib/bender.rb', line 32

def self.bot=(bot)
  Bender::Config.instance.bot = bot
end

.configObject

returns the Bender::Config instance


22
23
24
# File 'lib/bender.rb', line 22

def self.config
  Bender::Config.instance
end

.logObject

returns the Bender log object


12
13
14
# File 'lib/bender.rb', line 12

def self.log
  Bender::Config.instance.log
end

.nicknameObject

returns the Bot's nickname


17
18
19
# File 'lib/bender.rb', line 17

def self.nickname
  Bender::Config.instance.nickname
end