Sha256: a4f3dc4c39e746238b8cd800f1a74f56db0885cb7f3aa85ab791eb52c12d4786

Contents?: true

Size: 497 Bytes

Versions: 3

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

module Lite
  module Measurements

    class Configuration

      attr_accessor :monkey_patches

      def initialize
        @monkey_patches = true
      end

    end

    class << self

      attr_writer :configuration

      def configuration
        @configuration ||= Configuration.new
      end

      def configure
        yield(configuration)
      end

      def reset_configuration!
        @configuration = Configuration.new
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lite-measurements-1.1.1 lib/lite/measurements/configuration.rb
lite-measurements-1.1.0 lib/lite/measurements/configuration.rb
lite-measurements-1.0.2 lib/lite/measurements/configuration.rb