Sha256: 72dfbf4652d671829911b878eb6012fc46947db0f6986106bd764b6a87c803f8

Contents?: true

Size: 358 Bytes

Versions: 4

Compression:

Stored size: 358 Bytes

Contents

require 'logger'

module SchemaExpectations
  def self.configure(&block)
    @config.instance_eval(&block)
  end

  def self.error_logger
    @config.error_logger
  end

  class Config
    attr_accessor :error_logger

    def initialize
      reset!
    end

    def reset!
      @error_logger = Logger.new($stderr)
    end
  end

  @config = Config.new
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
schema_expectations-0.5.0 lib/schema_expectations/config.rb
schema_expectations-0.4.0 lib/schema_expectations/config.rb
schema_expectations-0.3.0 lib/schema_expectations/config.rb
schema_expectations-0.2.0 lib/schema_expectations/config.rb