Class: Sendxmpp::InternalConfiguration

Inherits:
Hashr
  • Object
show all
Defined in:
lib/sendxmpp/config.rb

Overview

Private: This class provides access to the main configuration

Should not be used without Config module

Class Method Summary collapse

Class Method Details

.configObject

Public: Static singleton

Gets a singleton object



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

def self.config
  @conf ||= self.new
end

.merge_config(newconfig) ⇒ Object

Public: Merge new configuration

Use Config.update_config instead!

Returns nothing



21
22
23
# File 'lib/sendxmpp/config.rb', line 21

def self.merge_config(newconfig)
  @conf = self.new(newconfig)
end