Module: Busted::Countable
- Included in:
- Profiler::Default, Profiler::Sandwich
- Defined in:
- lib/busted/countable.rb
Instance Attribute Summary collapse
-
#counter ⇒ Object
readonly
Returns the value of attribute counter.
-
#report ⇒ Object
writeonly
Sets the attribute report.
Instance Method Summary collapse
Instance Attribute Details
#counter ⇒ Object (readonly)
Returns the value of attribute counter.
4 5 6 |
# File 'lib/busted/countable.rb', line 4 def counter @counter end |
#report=(value) ⇒ Object (writeonly)
Sets the attribute report
5 6 7 |
# File 'lib/busted/countable.rb', line 5 def report=(value) @report = value end |
Instance Method Details
#finish_counter ⇒ Object
13 14 15 16 17 |
# File 'lib/busted/countable.rb', line 13 def finish_counter counter.finish report[:invalidations] = counter.report end |