Sha256: ec716d38206d306c62a61eb97c43eabb490ec0f6152a59c2aa0d507ab03bf957
Contents?: true
Size: 648 Bytes
Versions: 6
Compression:
Stored size: 648 Bytes
Contents
# frozen_string_literal: true require "defra_ruby_features/engine" module DefraRubyFeatures # 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