Sha256: cce303efed3e096df396d73068a74064f3129bf51758463fe4fb2c7d67c69f33
Contents?: true
Size: 422 Bytes
Versions: 1
Compression:
Stored size: 422 Bytes
Contents
class SiteHub module Logging class LogWrapper attr_reader :logger def initialize(logger) @logger = logger end def write(msg) if logger.respond_to?(:<<) logger << msg elsif logger.respond_to?(:write) logger.write(msg) end end def ==(other) other.is_a?(LogWrapper) && logger == other.logger end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sitehub-0.4.3 | lib/sitehub/logging/log_wrapper.rb |