Module: Benchmark::Output
- Defined in:
- lib/benchmark/output.rb
Defined Under Namespace
Classes: Ips, Markdown, Memory, Time
Class Method Summary collapse
-
.find(name) ⇒ Object
Benchmark::Output is pluggable.
Class Method Details
.find(name) ⇒ Object
Benchmark::Output is pluggable. Create ‘Benchmark::Output::FooBar` as benchmark-output-foo_bar.gem and specify `output: foo_bar`.
7 8 9 10 |
# File 'lib/benchmark/output.rb', line 7 def find(name) class_name = Benchmark::Driver::Configuration.camelize(name.to_s) Benchmark::Output.const_get(class_name, false) end |