Method: Bitlogger::BufferDecorator#empty
- Defined in:
- lib/bitlogger/buffer_decorator.rb
#empty ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/bitlogger/buffer_decorator.rb', line 20 def empty @last_emptying = Time.now return if @queue.empty? to_send = [] @queue.size.times { to_send << @queue.pop } @target.send(@method, to_send) end |