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