Class: Bench::Benchmark
- Inherits:
-
Object
- Object
- Bench::Benchmark
- Defined in:
- lib/bench9000/benchmark.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, file, flags) ⇒ Benchmark
constructor
A new instance of Benchmark.
- #to_s ⇒ Object
Constructor Details
#initialize(name, file, flags) ⇒ Benchmark
Returns a new instance of Benchmark.
17 18 19 20 21 |
# File 'lib/bench9000/benchmark.rb', line 17 def initialize(name, file, flags) @name = name @file = file @flags = flags end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
14 15 16 |
# File 'lib/bench9000/benchmark.rb', line 14 def file @file end |
#flags ⇒ Object (readonly)
Returns the value of attribute flags.
15 16 17 |
# File 'lib/bench9000/benchmark.rb', line 15 def flags @flags end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'lib/bench9000/benchmark.rb', line 13 def name @name end |
Instance Method Details
#to_s ⇒ Object
23 24 25 |
# File 'lib/bench9000/benchmark.rb', line 23 def to_s @name end |