Class: Bench::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/bench9000/options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config, implementations, benchmarks, flags) ⇒ Options

Returns a new instance of Options.



18
19
20
21
22
23
24
25
26
27
# File 'lib/bench9000/options.rb', line 18

def initialize(
    config,
    implementations,
    benchmarks,
    flags)
  @config = config
  @implementations = implementations
  @benchmarks = benchmarks
  @flags = flags
end

Instance Attribute Details

#benchmarksObject (readonly)

Returns the value of attribute benchmarks.



15
16
17
# File 'lib/bench9000/options.rb', line 15

def benchmarks
  @benchmarks
end

#configObject (readonly)

Returns the value of attribute config.



13
14
15
# File 'lib/bench9000/options.rb', line 13

def config
  @config
end

#flagsObject (readonly)

Returns the value of attribute flags.



16
17
18
# File 'lib/bench9000/options.rb', line 16

def flags
  @flags
end

#implementationsObject (readonly)

Returns the value of attribute implementations.



14
15
16
# File 'lib/bench9000/options.rb', line 14

def implementations
  @implementations
end