Module: Sendxmpp::Config

Included in:
CLI, Log, Message
Defined in:
lib/sendxmpp/config.rb

Overview

Public: Configuration module. Should be included

Usage

include Config

def some_method
  config.configbla
end

Instance Method Summary collapse

Instance Method Details

#configObject

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