Method: Benchmark::Report#initialize
- Defined in:
- lib/benchmark.rb
#initialize(width = 0, format = nil) ⇒ Report
Returns an initialized Report instance. Usually, one doesn’t call this method directly, as new Report objects are created by the #benchmark and #bm methods. width and format are the label offset and format string used by Tms#format.
393 394 395 |
# File 'lib/benchmark.rb', line 393 def initialize(width = 0, format = nil) @width, @format, @list = width, format, [] end |