ahawkins/harness

View on GitHub
lib/harness/sync_queue.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Harness
  class SyncQueue
    def push(msg)
      method_name = msg.first
      args = msg.last

      collector.__send__ method_name, *args
    end

    def collector
      Harness.collector
    end
  end
end