Sha256: 64fad8e4720a588ecd5c3d5feac89af6e9b5294d3371387d4f742528413c69b5

Contents?: true

Size: 318 Bytes

Versions: 10

Compression:

Stored size: 318 Bytes

Contents

# frozen_string_literal: true

require 'active_support'

module DHC
  module ConfigurationConcern
    extend ActiveSupport::Concern

    module ClassMethods
      def config
        DHC::Config.instance
      end

      def configure
        DHC::Config.instance.reset
        yield config
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dhc-3.0.0 lib/dhc/concerns/dhc/configuration_concern.rb
dhc-2.4.0 lib/dhc/concerns/dhc/configuration_concern.rb
dhc-2.3.0 lib/dhc/concerns/dhc/configuration_concern.rb
dhc-2.2.1 lib/dhc/concerns/dhc/configuration_concern.rb
dhc-2.2.0 lib/dhc/concerns/dhc/configuration_concern.rb
dhc-2.1.1 lib/dhc/concerns/dhc/configuration_concern.rb
dhc-2.1.0 lib/dhc/concerns/dhc/configuration_concern.rb
dhc-2.0.1 lib/dhc/concerns/dhc/configuration_concern.rb
dhc-2.0.0 lib/dhc/concerns/dhc/configuration_concern.rb
dhc-1.0.0 lib/dhc/concerns/dhc/configuration_concern.rb