emerald 0.0.1.alpha4 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,37 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
-
3
- # This mixin module contains the extra options Emerald
4
- # adds to the default RDoc ones. It is used in the
5
- # RDoc::Generator::Emerald::setup_options method.
6
- module RDoc::Generator::Emerald::Options
7
-
8
- # Tells RDoc’s OptionParser about the new options when
9
- # the RDoc::Options object is extended with this mixin.
10
- def self.extended(options)
11
- op = options.option_parser
12
-
13
- op.separator ""
14
- op.separator "Emerald generator options:"
15
- op.separator ""
16
-
17
- op.on("--[no-]generate-toc",
18
- "Enables or disables generation of the",
19
- "table of contents (ToC) for toplevel files."){|val| options.generate_toc = val}
20
- end
21
-
22
- # Whether or not to generate a Table of Contents (ToC) for
23
- # toplevel files. Defaults to true.
24
- #
25
- # Note that the mechanism is implemented in JavaScript,
26
- # which has therefore to be enabled in your browser.
27
- def generate_toc
28
- @generate_toc = true unless defined?(@generate_toc)
29
- @generate_toc
30
- end
31
-
32
- # Setter for #generate_toc.
33
- def generate_toc=(val)
34
- @generate_toc = val
35
- end
36
-
37
- end