Class: Benny::Configuration
- Inherits:
-
Object
- Object
- Benny::Configuration
show all
- Defined in:
- lib/benny/configuration.rb
Defined Under Namespace
Classes: EnvironmentEntry
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#environments ⇒ Object
Returns the value of attribute environments.
5
6
7
|
# File 'lib/benny/configuration.rb', line 5
def environments
@environments
end
|
Instance Method Details
#benchmark_path(path = nil) ⇒ Object
31
32
33
34
|
# File 'lib/benny/configuration.rb', line 31
def benchmark_path(path = nil)
@benchmark_path = path unless path.nil?
@benchmark_path || 'benchmarks/**/*_bench.rb'
end
|
#environment(name, &block) ⇒ Object
21
22
23
24
|
# File 'lib/benny/configuration.rb', line 21
def environment(name, &block)
@environments ||= []
@environments << EnvironmentEntry.new(name, &block)
end
|
#reporter(reporter = nil) ⇒ Object
26
27
28
29
|
# File 'lib/benny/configuration.rb', line 26
def reporter(reporter = nil)
@reporter = reporter
@reporter || Reporters::Stdout.new
end
|