Sha256: d63065d544d499d98c9fe99ccc4d41b149857d07a7321be03a0e96ac09c85e6f

Contents?: true

Size: 382 Bytes

Versions: 2

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

require 'logger'

module RakeDependencies
  class NullLogger < Logger
    def initialize
      super(StringIO.new)
    end

    def add(severity, message = nil, progname = nil)
      # no-op
    end

    def <<(msg)
      # no-op
    end

    def ==(other)
      self.class == other.class
    end

    def hash
      self.class.hash
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rake_dependencies-3.7.0 lib/rake_dependencies/null_logger.rb
rake_dependencies-3.6.0.pre.8 lib/rake_dependencies/null_logger.rb