Module: ActiveNotifier::Configurable::ClassMethods

Defined in:
lib/active_notifier/configurable.rb

Overview

Core functions for Configuration

Instance Method Summary collapse

Instance Method Details

#configObject


22
23
24
# File 'lib/active_notifier/configurable.rb', line 22

def config
  @config ||= Configuration.new
end

#configure {|config| ... } ⇒ Object

Configure for ActiveNotifier.

Examples:

ActiveNotifier.configure do |config|
  config.const_name = :Message
  config.adapter = :slack  # ...

end

Yields:

  • (config)

    Give a Configuration instance for settings

Raises:


18
19
20
# File 'lib/active_notifier/configurable.rb', line 18

def configure
  yield config
end