lib/bundle_notification.rb in bundle_notification-0.1.0 vs lib/bundle_notification.rb in bundle_notification-0.2.0
- old
+ new
@@ -1,7 +1,17 @@
# frozen_string_literal: true
+
require 'bundle_notification/mailer_helper'
require 'bundle_notification/version'
+require 'bundle_notification/config'
module BundleNotification
- # Your code goes here...
+ def self.configure
+ @config = Config.new
+ yield(@config)
+ @config
+ end
+
+ def self.config
+ @config ||= Config.new
+ end
end