Class: Bench::Measurements
- Inherits:
-
Object
- Object
- Bench::Measurements
- Defined in:
- lib/bench9000/measurement.rb
Instance Method Summary collapse
- #[](b, i) ⇒ Object
- #[]=(b, i, m) ⇒ Object
-
#initialize ⇒ Measurements
constructor
A new instance of Measurements.
- #measurements ⇒ Object
- #total_time ⇒ Object
Constructor Details
#initialize ⇒ Measurements
Returns a new instance of Measurements.
47 48 49 |
# File 'lib/bench9000/measurement.rb', line 47 def initialize @hash = {} end |
Instance Method Details
#[](b, i) ⇒ Object
55 56 57 |
# File 'lib/bench9000/measurement.rb', line 55 def [](b, i) @hash[[b, i]] end |
#[]=(b, i, m) ⇒ Object
51 52 53 |
# File 'lib/bench9000/measurement.rb', line 51 def []=(b, i, m) @hash[[b, i]] = m end |
#measurements ⇒ Object
59 60 61 |
# File 'lib/bench9000/measurement.rb', line 59 def measurements @hash end |