Class: Benchmark::Driver::Configuration
- Inherits:
-
Struct
- Object
- Struct
- Benchmark::Driver::Configuration
- Defined in:
- lib/benchmark/driver/configuration.rb
Overview
Defined Under Namespace
Classes: Executable, Job, OutputOptions, RunnerOptions
Constant Summary collapse
- DEFAULT_EXECUTABLES =
[Executable.new(RUBY_VERSION, RbConfig.ruby)]
Instance Attribute Summary collapse
-
#jobs ⇒ Object
Returns the value of attribute jobs.
-
#output_options ⇒ Object
Returns the value of attribute output_options.
-
#runner_options ⇒ Object
Returns the value of attribute runner_options.
Class Method Summary collapse
Instance Attribute Details
#jobs ⇒ Object
Returns the value of attribute jobs
4 5 6 |
# File 'lib/benchmark/driver/configuration.rb', line 4 def jobs @jobs end |
#output_options ⇒ Object
Returns the value of attribute output_options
4 5 6 |
# File 'lib/benchmark/driver/configuration.rb', line 4 def end |
#runner_options ⇒ Object
Returns the value of attribute runner_options
4 5 6 |
# File 'lib/benchmark/driver/configuration.rb', line 4 def end |
Class Method Details
.camelize(str) ⇒ Object
61 62 63 64 |
# File 'lib/benchmark/driver/configuration.rb', line 61 def self.camelize(str) return str if str !~ /_/ && str =~ /[A-Z]+.*/ str.split('_').map { |e| e.capitalize }.join end |
.symbolize_keys!(config) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/benchmark/driver/configuration.rb', line 48 def self.symbolize_keys!(config) case config when Hash config.keys.each do |key| config[key.to_sym] = symbolize_keys!(config.delete(key)) end when Array config.map! { |c| symbolize_keys!(c) } end config end |