| Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
|---|---|---|---|---|
| lib/dagnabit/node/configuration.rb | 26 | 12 | 100.00%
|
100.00%
|
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 Dagnabit |
2 module Node |
3 # |
4 # Configuration mechanism for nodes in a dagnabit-managed dag. |
5 # |
6 module Configuration |
7 # |
8 # Writes accessors for configuration data into a node. |
9 # |
10 # The following accessors are available: |
11 # [link_class_name] |
12 # The name of the model used to link nodes of this class. |
13 # |
14 def self.extended(base) |
15 base.class_inheritable_accessor :link_class_name |
16 end |
17 |
18 # |
19 # Configure node behavior. |
20 # |
21 def configure_acts_as_dag_node(link_class_name) |
22 self.link_class_name = link_class_name |
23 end |
24 end |
25 end |
26 end |
Generated on Tue Dec 08 04:06:14 -0600 2009 with rcov 0.9.6