| Name | Total Lines | Lines of Code | Total Coverage | Code Coverage | 
|---|---|---|---|---|
| lib/asir/additional_data.rb | 25 | 19 | 48.00% | 36.84% | 
Code reported as executed by Ruby looks like this...and this: this line is also marked as covered.Lines considered as run by rcov, but not reported by Ruby, look like this,and this: these lines were inferred by rcov (using simple heuristics).Finally, here's a line marked as not executed.
| 1 module ASIR | 
| 2 # !SLIDE | 
| 3 # Addtional Data | 
| 4 # | 
| 5 # Support additional data attached to any object. | 
| 6 module AdditionalData | 
| 7 def additional_data | 
| 8 @additional_data || EMPTY_HASH | 
| 9 end | 
| 10 def additional_data! | 
| 11 @additional_data ||= { } | 
| 12 end | 
| 13 def additional_data= x | 
| 14 @additional_data = x | 
| 15 end | 
| 16 def [] key | 
| 17 @additional_data && @additional_data[key] | 
| 18 end | 
| 19 def []= key, value | 
| 20 (@additional_data ||= { })[key] = value | 
| 21 end | 
| 22 end | 
| 23 # !SLIDE END | 
| 24 end | 
| 25 | 
Generated on Fri Jan 27 17:37:46 -0600 2012 with rcov 0.9.8