C0 code coverage information
Generated on Sat Feb 02 17:44:23 +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.
1 require 'rubygems'
2 require 'ramaze'
3
4 class MainController < Ramaze::Controller
5 template_root __DIR__/'template'
6 engine :Markaby
7
8 helper :markaby
9
10 def index
11 %{ #{A 'Home', :href => :/} | #{A(:internal)} | #{A(:external)} }
12 end
13
14 def internal *args
15 options = {:place => :internal, :action => 'internal',
16 :args => args, :request => request, :this => self}
17 mab options do
18 html do
19 head do
20 title "Template::Markaby #@place"
21 end
22 body do
23 h1 "The #@place Template for Markaby"
24 a("Home", :href => R(@this))
25 p do
26 text "Here you can pass some stuff if you like, parameters are just passed like this:"
27 br
28 a("#@place/one", :href => R(@this, @place, :one))
29 br
30 a("#@place/one/two/three", :href => R(@this, @place, :one, :two, :three))
31 br
32 a("#@place/one?foo=bar", :href => R(@this, @place, :one, :foo => :bar))
33 br
34 end
35 div do
36 text "The arguments you have passed to this action are:"
37 if @args.empty?
38 text "none"
39 else
40 args.each do |arg|
41 span arg
42 end
43 end
44 end
45 div @request.params.inspect
46 end
47 end
48 end.to_s
49 end
50
51 def external *args
52 @args = args
53 @request = request
54 @place = :external
55 end
56 end
57
58 Ramaze.start
Generated using the rcov code coverage analysis tool for Ruby version 0.8.1.2.