Module: Irc::Bot::Config

Defined in:
lib/rbot/message.rb,
lib/rbot/rbotconfig.rb,
lib/rbot/config.rb

Defined Under Namespace

Classes: ArrayValue, BooleanValue, EnumValue, FloatValue, IntegerValue, ManagerClass, StringValue, Value, Wizard

Constant Summary collapse

@@datadir =
defaultdatadir
@@coredir =
defaultcoredir

Class Method Summary collapse

Class Method Details

.coredirObject



65
66
67
# File 'lib/rbot/rbotconfig.rb', line 65

def Config.coredir
  @@coredir
end

.datadirObject



61
62
63
# File 'lib/rbot/rbotconfig.rb', line 61

def Config.datadir
  @@datadir
end

.managerObject

Returns the only Irc::Bot::Config::ManagerClass



354
355
356
# File 'lib/rbot/config.rb', line 354

def Config.manager
  return ManagerClass.instance
end

.register(item) ⇒ Object

Register a config value



359
360
361
# File 'lib/rbot/config.rb', line 359

def Config.register(item)
  Config.manager.register(item)
end