Class: Benny::Configuration
- Inherits:
-
Object
- Object
- Benny::Configuration
- Defined in:
- lib/benny/configuration.rb
Defined Under Namespace
Classes: EnvironmentEntry
Instance Attribute Summary collapse
-
#environments ⇒ Object
readonly
Returns the value of attribute environments.
Instance Method Summary collapse
- #benchmark_path(path = nil) ⇒ Object
- #environment(name, &block) ⇒ Object
- #reporter(reporter = nil) ⇒ Object
Instance Attribute Details
#environments ⇒ Object (readonly)
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 |