C0 code coverage information

Generated on Sat Feb 02 17:44:26 +0100 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.
Name Total lines Lines of code Total coverage Code coverage
lib/ramaze/helper/markaby.rb 33 17
100.0% 
100.0% 
 1 #          Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com
 2 # All files in this distribution are subject to the terms of the Ruby license.
 3 
 4 module Ramaze
 5 
 6   # Allows you to use some shortcuts for markaby in your Controller.
 7 
 8   module MarkabyHelper
 9     private
10 
11     # use this inside your controller to directly build Markaby
12     # Refer to the Markaby-documentation and testsuite for more examples.
13     # Usage:
14     #   mab { h1 "Apples & Oranges"}                    #=> "<h1>Apples &amp; Oranges</h1>"
15     #   mab { h1 'Apples', :class => 'fruits&floots' }  #=> "<h1 class=\"fruits&amp;floots\">Apples</h1>"
16 
17     def markaby(ivs = {}, helpers = nil, &block)
18       builder = ::Markaby::Builder
19       builder.extend(Ramaze::Helper)
20       builder.send(:helper, :link)
21 
22       iv_hash = {}
23       instance_variables.each do |iv|
24         key, value = iv.gsub('@', '').to_sym, instance_variable_get(iv)
25         iv_hash[key] = value
26       end
27 
28       builder.new(iv_hash.merge(ivs), helpers, &block).to_s
29     end
30 
31     alias mab markaby
32   end
33 end

Generated using the rcov code coverage analysis tool for Ruby version 0.8.1.2.

Valid XHTML 1.0! Valid CSS!