Sha256: f5b1e8efb9e168c461d60e0ee17c8fb53abff8bb29fadd10c3c190a6c77261fc

Contents?: true

Size: 413 Bytes

Versions: 2

Compression:

Stored size: 413 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'configurable'
require 'logger'

module Untied
  module Consumer
    def self.configure(&block)
      yield(config) if block_given?
      Processor.observers = config.observers
    end

    def self.config
      @config ||= Config.new
    end

    class Config
      include Configurable

      config :logger, Logger.new(STDOUT)
      config :observers, []
    end
  end
end


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
untied-consumer-0.0.2 lib/untied-consumer/config.rb
untied-consumer-0.0.1 lib/untied-consumer/config.rb