Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
lib/fumoffu/java_mapping.rb | 22 | 13 | 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 # #################################### |
2 # CUSTOM CLASSES |
3 # #################################### |
4 |
5 # |
6 # Object and Classes are overidden to make it easier for to |
7 # exchange data between the Java accessor and Ruby accessor |
8 # |
9 |
10 class Object |
11 def self.attr_java(*args) |
12 args.each do |arg| |
13 str_arg = arg.to_s |
14 define_method str_arg do |
15 send "get"+str_arg.split("_").collect(){|n| n.capitalize}.to_s |
16 end |
17 define_method str_arg.to_s+"=" do |val| |
18 send "set"+str_arg.split("_").collect(){|n| n.capitalize}.to_s, val |
19 end |
20 end |
21 end |
22 end |
Generated on Tue Apr 19 07:59:25 +0200 2011 with rcov 0.9.8