Class: NRSER::Log::Appender::Sync::FakeQueue

Inherits:
Object
  • Object
show all
Defined in:
lib/nrser/log/appender/sync.rb

Overview

A fake Queue that just implements a FakeQueue.size method that returns ‘0`.

Sync appender doesn’t need a queue, but Semantic Logger expects one, so telling it the length is always zero seems to make sense.

Class Method Summary collapse

Class Method Details

.size0

Returns Fake queue is always empty.

Returns:

  • (0)

    Fake queue is always empty.



64
65
66
# File 'lib/nrser/log/appender/sync.rb', line 64

def self.size
  0
end