Sha256: f522f3a8acc4c99073f3e8b8693f50393e1eeab8866b0a238146f3c2a6b119e5
Contents?: true
Size: 642 Bytes
Versions: 6
Compression:
Stored size: 642 Bytes
Contents
# frozen_string_literal: true require "defra_ruby_email/engine" module DefraRubyEmail # Enable the ability to configure the gem from its host app, rather than # reading directly from env vars. Derived from # https://robots.thoughtbot.com/mygem-configure-block class << self attr_writer :configuration def configuration @configuration ||= Configuration.new end # Added for testing. Without we cannot test both a config object with and # with set values in the same rspec session def reset_configuration @configuration = nil end end def self.configure yield(configuration) end end
Version data entries
6 entries across 6 versions & 1 rubygems