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.
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 # The purpose of this class is to provide an easy way of setting/retrieving
7 # from the current flash.
8 #
9 # Flash is a way to keep a temporary pairs of keys and values for the duration
10 # of two requests, the current and following.
11 #
12 # Very vague Example:
13 #
14 # On the first request, for example on registering:
15 #
16 # flash[:error] = "You should reconsider your username, it's taken already"
17 # redirect R(self, :register)
18 #
19 # This is the request from the redirect:
20 #
21 # do_stuff if flash[:error]
22 #
23 # On the request after this, flash[:error] is gone.
24
25 module FlashHelper
26 private
27
28 # answers with Session.current.flash
29
30 def flash
31 Session.current.flash
32 end
33 end
34 end
Generated using the rcov code coverage analysis tool for Ruby version 0.8.1.2.