lib/active_notifier/configurable.rb in active_notifier-0.2.0 vs lib/active_notifier/configurable.rb in active_notifier-0.3.0
- old
+ new
@@ -1,18 +1,19 @@
module ActiveNotifier
module Configurable
extend ActiveSupport::Concern
module ClassMethods
- # Configure for ActiveNotifier
- # @yield [config] Give a Configuration instance for settings
- # @raise [ConfigureError]
+ # Configure for ActiveNotifier.
+ #
# @example
# ActiveNotifier.configure do |config|
# config.const_name = :Message
# config.adapter = :slack
# # ...
# end
+ # @yield [config] Give a Configuration instance for settings
+ # @raise [ConfigureError]
def configure
yield config
end
def config