C0 code coverage information
Generated on Mon May 21 22:36:02 -0400 2007 with rcov 0.8.0
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 require 'rools/errors'
2 require 'rools/default_parameter_proc'
3 require 'rools/base'
4
5 #
6 # Facts are collections or recordsets created by the user
7 #
8 module Rools
9 class Facts < Base
10 attr_reader :name, :fact_value
11
12 def initialize(rule_set, name, b)
13 @name = name
14 @fact_value = instance_eval( &b )
15 #logger.debug "New Facts: #{@fact_value}" if logger
16 end
17
18 def value
19 if @fact_value.size == 1
20 @fact_value[0]
21 else
22 @fact_value
23 end
24 end
25
26 def to_s
27 "facts: #{name} #{fact_value.to_s}"
28 end
29 end
30 end
Generated using the rcov code coverage analysis tool for Ruby version 0.8.0.