Sha256: a650a80af18aa63174819524b23fc01b1a31f033f22d4b8a266e68d8005f15f3

Contents?: true

Size: 479 Bytes

Versions: 4

Compression:

Stored size: 479 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
        create_config
      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

4 entries across 4 versions & 1 rubygems

Version Path
dry-configurable-0.7.0 lib/dry/configurable/test_interface.rb
dry-configurable-0.6.2 lib/dry/configurable/test_interface.rb
dry-configurable-0.6.1 lib/dry/configurable/test_interface.rb
dry-configurable-0.6.0 lib/dry/configurable/test_interface.rb