Sha256: 93c5ad733ec2d734e8016bf128b0d1da09f479cce358c9b4830e7f8f8c48f3e2

Contents?: true

Size: 287 Bytes

Versions: 50

Compression:

Stored size: 287 Bytes

Contents

require 'active_support'

module LHC
  module ConfigurationConcern
    extend ActiveSupport::Concern

    module ClassMethods
      def config
        LHC::Config.instance
      end

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

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
lhc-10.1.2 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-10.1.1 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-10.1.0 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-10.0.2 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-9.4.4 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-10.0.1 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-10.0.0 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-9.4.3 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-9.4.2 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-9.4.1 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-9.4.0 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-9.3.1 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-9.3.0 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-9.2.0 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-9.1.2 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-9.1.2.pre lib/lhc/concerns/lhc/configuration_concern.rb
lhc-9.1.1 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-8.1.1 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-9.1.0 lib/lhc/concerns/lhc/configuration_concern.rb
lhc-9.0.0 lib/lhc/concerns/lhc/configuration_concern.rb