Class: Work
- Inherits:
-
Queue
- Object
- Queue
- Work
- Defined in:
- lib/minitest/test_task.rb
Instance Method Summary collapse
-
#initialize(jobs = []) ⇒ Work
constructor
A new instance of Work.
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 |