Sha256: 504e23c18db697af28037a5bd5b3239339ff4eb6bfbbd2b35aefeec82900ba38
Contents?: true
Size: 453 Bytes
Versions: 3
Compression:
Stored size: 453 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, [] config :abort_on_exception, false end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
untied-consumer-0.0.5 | lib/untied-consumer/config.rb |
untied-consumer-0.0.4 | lib/untied-consumer/config.rb |
untied-consumer-0.0.3 | lib/untied-consumer/config.rb |