C0 code coverage information
Generated on Sat Feb 02 17:44:22 +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 |
|
examples/css.rb
|
37
|
29
|
|
|
1 require 'rubygems'
2 require 'ramaze'
3
4 # delete cached css after inline template is changed
5 module Ramaze::SourceReloadHooks
6 module_function
7 def after_safe_load file
8 Ramaze::Cache.actions.delete '/css/style.css' if file == __FILE__
9 end
10 end
11
12 class CSSController < Ramaze::Controller
13 engine :Sass
14
15 helper :aspect
16 before_all do
17 response['Content-Type'] = 'text/css'
18 nil
19 end
20
21 define_method('style.css') do
22 %(
23 body
24 font:
25 family: sans-serif
26 size: 11px
27 margin: 0.5em
28 padding: 1em
29 )
30 end
31
32 helper :cache
33 cache 'style.css'
34 end
35
36 # http://localhost:81/css/style.css
37 Ramaze.start :adapter => :mongrel, :port => 81
Generated using the rcov code coverage analysis tool for Ruby version 0.8.1.2.