Sha256: 420f315c4ee2112bd5902ee55e90af4e80616bee36914c8d4ce800fd4fa180b9
Contents?: true
Size: 641 Bytes
Versions: 3
Compression:
Stored size: 641 Bytes
Contents
module Dry module Configurable # Methods meant to be used in a testing scenario module TestInterface # Resets configuration to default values # # @return [Dry::Configurable::Config] # # @api public def reset_config @config = if self.is_a?(Module) _settings.create_config else self.class._settings.create_config end end end # Mixes in test interface into the configurable module # # @api public def enable_test_interface extend Dry::Configurable::TestInterface end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dry-configurable-0.9.0 | lib/dry/configurable/test_interface.rb |
dry-configurable-0.8.3 | lib/dry/configurable/test_interface.rb |
dry-configurable-0.8.2 | lib/dry/configurable/test_interface.rb |