Sha256: d27a35949fcc8a669a78db55a4c892235b5f18efe09e4414232455d06692d0bf

Contents?: true

Size: 629 Bytes

Versions: 1

Compression:

Stored size: 629 Bytes

Contents

require "warnings_logger/configuration"
require "warnings_logger/filesystem"
require "warnings_logger/partitioner"
require "warnings_logger/reader"
require "warnings_logger/reporter"
require "warnings_logger/spy"

module WarningsLogger
  class << self
    attr_writer :configuration

    def configure(&block)
      configuration.update!(&block)
    end

    def configuration
      # rubocop:disable Naming/MemoizedInstanceVariableName
      @configuration ||= Configuration.new
      # rubocop:enable Naming/MemoizedInstanceVariableName
    end

    def enable
      WarningsLogger::Spy.enable(configuration)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
warnings_logger-0.1.1 lib/warnings_logger.rb