Sha256: 505585dbf0248fb560af5b2393a1c7cd2e56664abd7fda6825a67530b5701923

Contents?: true

Size: 376 Bytes

Versions: 6

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true

require_relative '../services/configuration_loader_service'

module Dsu
  module Support
    # This module provides a way to configure a class, so that it can
    # be used in a test environment.
    module Configurable
      def configuration
        @configuration ||= Services::ConfigurationLoaderService.new.call
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dsu-1.2.1 lib/dsu/support/configurable.rb
dsu-1.2.0 lib/dsu/support/configurable.rb
dsu-1.1.2 lib/dsu/support/configurable.rb
dsu-1.1.1 lib/dsu/support/configurable.rb
dsu-1.1.0.alpha.2 lib/dsu/support/configurable.rb
dsu-1.1.0.alpha.1 lib/dsu/support/configurable.rb