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 :Remarkably
7
8 include Remarkably::Common
9
10 def index
11 %{ #{A 'Home', :href => :/} | #{A(:internal)} | #{A(:external)} }
12 end
13
14 def internal *args
15 @place = :internal
16 html do
17 head do
18 title "Template::Remarkably internal"
19 end
20 body do
21 h1 "The #@place Template for Remarkably"
22 a("Home", :href => R(:/))
23 P do
24 text "Here you can pass some stuff if you like, parameters are just passed like this:"
25 br
26 a("#@place/one", :href => Rs( @place, :one))
27 br
28 a("#@place/one/two/three", :href => Rs( @place, :one, :two, :three))
29 br
30 a("#@place/one?foo=bar", :href => Rs( @place, :one, :foo => :bar))
31 br
32 end
33 div do
34 text "The arguments you have passed to this action are:"
35 if args.empty?
36 "none"
37 else
38 args.each do |arg|
39 span arg
40 end
41 end
42 end
43 div request.params.inspect
44 end
45 end
46 end
47
48 def external *args
49 @args = args
50 @place = :external
51 @request = request
52 end
53 end
54
55 Ramaze.start
Generated using the rcov code coverage analysis tool for Ruby version 0.8.1.2.