breunigs/hipsterpizza

View on GitHub
lib/queue_to_array_writer.rb

Summary

Maintainability
A
0 mins
Test Coverage
# encoding: utf-8

class QueueToArrayWriter
  def initialize
    @log = []
  end

  def write(*args)
    @log << args
  end

  def close
  end

  def get
    r, @log = @log, []
    r
  end
end