C0 code coverage information
Generated on Sat Feb 02 17:44:27 +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 require 'syslog'
5
6 module Ramaze
7
8 # Informer for Syslog from rubys standard-library.
9
10 class Syslog
11 include ::Syslog
12
13 # opens syslog
14
15 def initialize
16 open unless ::Syslog.opened?
17 end
18
19 # alias for default syslog methods so they match ramaze
20 alias error err
21 alias warn warning
22 alias dev debug
23
24 # just sends all messages received to ::Syslog
25 def inform(tag, *args)
26 self.__send__(tag, *args)
27 end
28
29 public :error, :warn
30
31 # Has to call the modules singleton-method.
32 def inspect
33 ::Syslog.inspect
34 end
35 end
36 end
Generated using the rcov code coverage analysis tool for Ruby version 0.8.1.2.