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.
Name Total lines Lines of code Total coverage Code coverage
lib/ramaze/global/dsl.rb 39 23
100.0% 
100.0% 
 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   CLIOption = Struct.new('CLIOption', :name, :default, :doc, :cli, :short)
 6   OPTIONS     = {}
 7   CLI_OPTIONS = []
 8 
 9   # DSL for specifying Globap options before initializing Global
10 
11   module GlobalDSL
12     class << self
13 
14       # The method that takes the block containing the DSL, used like in
15       # lib/ramaze/global.rb
16 
17       def option_dsl(&block)
18         instance_eval(&block)
19       end
20 
21       # Takes a doc-string and then the option as hash, another :cli key can
22       # be given that will expose this option via the bin/ramaze.
23 
24       def o(doc, options = {})
25         cli_given = options.has_key?(:cli)
26         cli = options.delete(:cli)
27         short = options.delete(:short)
28         name, default = options.to_a.flatten
29 
30         if cli_given
31           option = CLIOption.new(name, default, doc, cli, short)
32           CLI_OPTIONS << option
33         end
34 
35         OPTIONS.merge!(options)
36       end
37     end
38   end
39 end

Generated using the rcov code coverage analysis tool for Ruby version 0.8.1.2.

Valid XHTML 1.0! Valid CSS!