C0 code coverage information
Generated on Sun Dec 21 22:36:24 +0000 2008 with
rcov 0.8.1.2
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 PostalMethods 2
module DocumentProcessor
3 4 def document=(doc)
5 unless doc.class == File
6 doc = open(doc)
7 end 8 9 self.to_send = {} if self.to_send.nil? 10 11 self.to_send[:extension] =
doc.path.to_s.split('.').last 12 self.to_send[:bytes] = doc.read 13 self.to_send[:name] =
File.basename(doc.path) 14
self.to_send[:file_obj] = doc 15 end 16 17
def document? 18 true
unless self.to_send.nil? 19 end 20 21
def document 22
self.to_send 23 end
24 end 25 end
Generated using the rcov
code coverage analysis tool for Ruby version 0.8.1.2.