lib/benchmark/driver/configuration.rb in benchmark_driver-0.4.5 vs lib/benchmark/driver/configuration.rb in benchmark_driver-0.5.0

- old
+ new

@@ -19,21 +19,21 @@ super || guessed_count end end # @param [String] name - # @param [Array<String>] command + # @param [Array<String>] command - ["ruby", "-w", ...]. First element should be path to ruby command Executable = Struct.new(:name, :command) DEFAULT_EXECUTABLES = [Executable.new(RUBY_VERSION, [RbConfig.ruby])] # @param [Symbol] type - Type of runner # @param [Array<Benchmark::Driver::Configuration::Executable>] executables # @param [Integer,nil] repeat_count - Times to repeat benchmarks. When this is not nil, benchmark_driver will use the best result. class RunnerOptions < Struct.new(:type, :executables, :repeat_count) def initialize(*) super - self.executables = DEFAULT_EXECUTABLES + self.executables ||= DEFAULT_EXECUTABLES end def executables_specified? executables != DEFAULT_EXECUTABLES end