Module: BenchmarkDriver::Output

Defined in:
lib/benchmark_driver/output.rb

Defined Under Namespace

Classes: Compare, Markdown, Record, Simple

Class Method Summary collapse

Class Method Details

.find(type) ⇒ Object

BenchmarkDriver::Output is pluggable. Create BenchmarkDriver::Output::Foo as benchmark_dirver-output-foo.gem and specify ‘-o foo`.

Parameters:

  • type (String)


14
15
16
17
18
19
20
# File 'lib/benchmark_driver/output.rb', line 14

def find(type)
  if type.include?(':')
    raise ArgumentError.new("Output type '#{type}' cannot contain ':'")
  end

  ::BenchmarkDriver::Output.const_get(camelize(type), false)
end