In: |
benchmark.rb
|
Parent: | Object |
A Job is a sequence of labelled blocks to be processed by the Benchmark.bmbm method. It is of little direct interest to the user.
list | [R] | An array of 2-element arrays, consisting of label and block pairs. |
width | [R] | Length of the widest label in the list, plus one. |
Returns an initialized Job instance. Usually, one doesn’t call this method directly, as new Job objects are created by the bmbm method. width is a initial value for the label offset used in formatting; the bmbm method passes its width argument to this constructor.
# File benchmark.rb, line 359 def initialize(width) @width = width @list = [] end