lib/cliutils/logger_delegator.rb in cliutils-1.2.8 vs lib/cliutils/logger_delegator.rb in cliutils-1.2.9
- old
+ new
@@ -14,10 +14,10 @@
@targets = targets
LoggerDelegator.delegate
end
# Attaches a new target to delegate to.
- # @param [Logger] target The targets to delegate to
+ # @param [Hash] target A hash describing a reference key and a Logger
# @return [void]
def attach(target)
fail "Cannot add invalid target: #{ target }" unless target.is_a?(Hash)
@targets.merge!(target)
LoggerDelegator.delegate