Class: Sendxmpp::InternalConfiguration
- Inherits:
-
Hashr
- Object
- Hashr
- Sendxmpp::InternalConfiguration
- 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
-
.config ⇒ Object
Public: Static singleton.
-
.merge_config(newconfig) ⇒ Object
Public: Merge new configuration.
Class Method Details
.config ⇒ Object
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 |