Sha256: 83fe0dc56d525bf2a9bd5b9ed3b9e2e182ce8c6f6d66841128a819f31da39ed4
Contents?: true
Size: 776 Bytes
Versions: 6
Compression:
Stored size: 776 Bytes
Contents
require 'logger' module HermesMessengerOfTheGods class Configuration class << self def attr_accessor_with_default(meth, default) attr_writer meth define_method(meth) do if instance_variable_defined?("@#{meth}") instance_variable_get("@#{meth}") else instance_variable_set("@#{meth}", default) end end end end # Log location for HMOTG info messages. Should respond like your # typical Ruby Logger defaults to logging via STDOUT attr_accessor_with_default :logger, Logger.new(STDOUT) attr_accessor_with_default :quiet, false attr_accessor_with_default :stub_dispatch, false attr_accessor_with_default :kill_on_consecutive_failures, false end end
Version data entries
6 entries across 6 versions & 1 rubygems