Class: Bench::Benchmark

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fileObject (readonly)

Returns the value of attribute file.



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

def file
  @file
end

#flagsObject (readonly)

Returns the value of attribute flags.



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

def flags
  @flags
end

#nameObject (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_sObject



23
24
25
# File 'lib/bench9000/benchmark.rb', line 23

def to_s
  @name
end