craigisrael/daemon_objects

View on GitHub
lib/daemon_objects/configuration.rb

Summary

Maintainability
A
0 mins
Test Coverage
module DaemonObjects
  class Configuration

    attr_accessor :error_handler, :log_to_stdout

    def initialize
      @error_handler = Proc.new{|e| nil }
      @log_to_stdout = false
    end

    def handle_error(error)
      @error_handler.call(error) if @error_handler
    end

  end
end