Module: Sendxmpp::Config
Overview
Public: Configuration module. Should be included
Usage
include Config
def some_method
config.configbla
end
Instance Method Summary collapse
-
#config ⇒ Object
Public: Gets the configuration from InternalConfiguration.
-
#update_config(new) ⇒ Object
Public: Updates the configuration of InternalConfiguration.
Instance Method Details
#config ⇒ Object
Public: Gets the configuration from InternalConfiguration
Returns a singleton object of InternalConfiguration
39 40 41 |
# File 'lib/sendxmpp/config.rb', line 39 def config InternalConfiguration.config end |
#update_config(new) ⇒ Object
Public: Updates the configuration of InternalConfiguration
45 46 47 |
# File 'lib/sendxmpp/config.rb', line 45 def update_config(new) InternalConfiguration.merge_config(new) end |