Class: Work

Inherits:
Queue
  • Object
show all
Defined in:
lib/minitest/test_task.rb

Instance Method Summary collapse

Constructor Details

#initialize(jobs = []) ⇒ Work

Returns a new instance of Work.



281
282
283
284
285
286
287
288
289
# File 'lib/minitest/test_task.rb', line 281

def initialize jobs = []
  super()

  jobs.each do |job|
    self << job
  end

  close
end