Sha256: dcf83c36d8dd474b852daa15326079a2985ce98e82272af03e8d1e6d088b1e57

Contents?: true

Size: 219 Bytes

Versions: 3

Compression:

Stored size: 219 Bytes

Contents

class NullLogger
  def initialize(store=nil)
    @store = store
  end

  def messages
    @store
  end

  def write(msg)
  end

  def info(msg)
    @store << msg if @store.is_a?(Array)
  end

  def debug(msg)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
big_brother-0.8.8.1 spec/support/null_logger.rb
big_brother-0.8.8 spec/support/null_logger.rb
big_brother-0.8.7 spec/support/null_logger.rb