rdoc 8.0.0 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +1 -3
  3. data/RI.md +75 -75
  4. data/exe/rdoc +2 -2
  5. data/lib/rdoc/code_object/alias.rb +71 -69
  6. data/lib/rdoc/code_object/any_method.rb +305 -303
  7. data/lib/rdoc/code_object/attr.rb +150 -148
  8. data/lib/rdoc/code_object/class_module.rb +798 -792
  9. data/lib/rdoc/code_object/constant.rb +175 -173
  10. data/lib/rdoc/code_object/context/section.rb +142 -138
  11. data/lib/rdoc/code_object/context.rb +926 -958
  12. data/lib/rdoc/code_object/extend.rb +7 -5
  13. data/lib/rdoc/code_object/include.rb +7 -5
  14. data/lib/rdoc/code_object/method_attr.rb +326 -319
  15. data/lib/rdoc/code_object/mixin.rb +97 -95
  16. data/lib/rdoc/code_object/normal_class.rb +77 -78
  17. data/lib/rdoc/code_object/normal_module.rb +61 -59
  18. data/lib/rdoc/code_object/require.rb +23 -39
  19. data/lib/rdoc/code_object/single_class.rb +21 -19
  20. data/lib/rdoc/code_object/top_level.rb +212 -219
  21. data/lib/rdoc/code_object.rb +305 -303
  22. data/lib/rdoc/comment.rb +275 -273
  23. data/lib/rdoc/cross_reference.rb +192 -190
  24. data/lib/rdoc/encoding.rb +105 -103
  25. data/lib/rdoc/erb_partial.rb +13 -11
  26. data/lib/rdoc/erbio.rb +29 -27
  27. data/lib/rdoc/generator/aliki.rb +161 -153
  28. data/lib/rdoc/generator/darkfish.rb +645 -635
  29. data/lib/rdoc/generator/json_index.rb +233 -229
  30. data/lib/rdoc/generator/markup.rb +164 -146
  31. data/lib/rdoc/generator/pot/message_extractor.rb +57 -51
  32. data/lib/rdoc/generator/pot/po.rb +52 -51
  33. data/lib/rdoc/generator/pot/po_entry.rb +138 -132
  34. data/lib/rdoc/generator/pot.rb +85 -81
  35. data/lib/rdoc/generator/ri.rb +23 -19
  36. data/lib/rdoc/generator/template/aliki/DESIGN.md +6 -4
  37. data/lib/rdoc/generator/template/aliki/_footer.rhtml +1 -1
  38. data/lib/rdoc/generator/template/aliki/_head.rhtml +10 -10
  39. data/lib/rdoc/generator/template/aliki/_header.rhtml +29 -44
  40. data/lib/rdoc/generator/template/aliki/_sidebar_search.rhtml +4 -4
  41. data/lib/rdoc/generator/template/aliki/css/rdoc.css +207 -178
  42. data/lib/rdoc/generator/template/aliki/js/aliki.js +60 -84
  43. data/lib/rdoc/generator/template/darkfish/_footer.rhtml +1 -1
  44. data/lib/rdoc/generator.rb +48 -46
  45. data/lib/rdoc/i18n/locale.rb +99 -95
  46. data/lib/rdoc/i18n/text.rb +109 -105
  47. data/lib/rdoc/i18n.rb +7 -5
  48. data/lib/rdoc/markdown/byte_runtime.rb +80 -0
  49. data/lib/rdoc/markdown.kpeg +15 -11
  50. data/lib/rdoc/markdown.rb +40 -47
  51. data/lib/rdoc/markup/block_quote.rb +12 -8
  52. data/lib/rdoc/markup/document.rb +127 -123
  53. data/lib/rdoc/markup/formatter.rb +219 -215
  54. data/lib/rdoc/markup/include.rb +33 -29
  55. data/lib/rdoc/markup/indented_paragraph.rb +37 -33
  56. data/lib/rdoc/markup/inline_parser.rb +281 -277
  57. data/lib/rdoc/markup/list.rb +80 -88
  58. data/lib/rdoc/markup/list_item.rb +73 -85
  59. data/lib/rdoc/markup/paragraph.rb +23 -19
  60. data/lib/rdoc/markup/parser.rb +501 -497
  61. data/lib/rdoc/markup/pre_process.rb +283 -279
  62. data/lib/rdoc/markup/raw.rb +2 -2
  63. data/lib/rdoc/markup/rule.rb +16 -12
  64. data/lib/rdoc/markup/to_ansi.rb +143 -139
  65. data/lib/rdoc/markup/to_bs.rb +72 -68
  66. data/lib/rdoc/markup/to_html.rb +594 -565
  67. data/lib/rdoc/markup/to_html_crossref.rb +234 -230
  68. data/lib/rdoc/markup/to_html_snippet.rb +232 -227
  69. data/lib/rdoc/markup/to_joined_paragraph.rb +36 -32
  70. data/lib/rdoc/markup/to_label.rb +63 -59
  71. data/lib/rdoc/markup/to_markdown.rb +212 -208
  72. data/lib/rdoc/markup/to_rdoc.rb +336 -332
  73. data/lib/rdoc/markup/to_table_of_contents.rb +66 -62
  74. data/lib/rdoc/markup/to_test.rb +60 -56
  75. data/lib/rdoc/markup/to_tt_only.rb +84 -80
  76. data/lib/rdoc/markup/verbatim.rb +62 -58
  77. data/lib/rdoc/markup.rb +198 -196
  78. data/lib/rdoc/options.rb +1063 -1061
  79. data/lib/rdoc/parser/c.rb +1039 -1037
  80. data/lib/rdoc/parser/changelog.rb +319 -315
  81. data/lib/rdoc/parser/markdown.rb +17 -13
  82. data/lib/rdoc/parser/rbs.rb +239 -235
  83. data/lib/rdoc/parser/rd.rb +17 -13
  84. data/lib/rdoc/parser/ruby.rb +1245 -1124
  85. data/lib/rdoc/parser/ruby_colorizer.rb +263 -213
  86. data/lib/rdoc/parser/simple.rb +31 -27
  87. data/lib/rdoc/parser/text.rb +12 -8
  88. data/lib/rdoc/parser.rb +228 -220
  89. data/lib/rdoc/rbs_helper.rb +1 -1
  90. data/lib/rdoc/rd/inline.rb +57 -53
  91. data/lib/rdoc/rd.rb +90 -88
  92. data/lib/rdoc/rdoc.rb +500 -491
  93. data/lib/rdoc/ri/driver.rb +1140 -1135
  94. data/lib/rdoc/ri/formatter.rb +7 -3
  95. data/lib/rdoc/ri/paths.rb +140 -136
  96. data/lib/rdoc/ri/servlet.rb +354 -350
  97. data/lib/rdoc/ri/store.rb +4 -2
  98. data/lib/rdoc/ri/task.rb +55 -51
  99. data/lib/rdoc/ri.rb +14 -12
  100. data/lib/rdoc/rubygems_hook.rb +183 -181
  101. data/lib/rdoc/server.rb +349 -347
  102. data/lib/rdoc/stats/normal.rb +46 -42
  103. data/lib/rdoc/stats/quiet.rb +39 -35
  104. data/lib/rdoc/stats/verbose.rb +35 -31
  105. data/lib/rdoc/stats.rb +365 -363
  106. data/lib/rdoc/store.rb +888 -902
  107. data/lib/rdoc/task.rb +260 -256
  108. data/lib/rdoc/text.rb +135 -133
  109. data/lib/rdoc/token_stream.rb +101 -93
  110. data/lib/rdoc/tom_doc.rb +203 -201
  111. data/lib/rdoc/version.rb +1 -1
  112. metadata +4 -5
  113. data/lib/rdoc/markdown/literals.kpeg +0 -21
  114. data/lib/rdoc/markdown/literals.rb +0 -454
data/lib/rdoc/task.rb CHANGED
@@ -36,311 +36,315 @@ require_relative '../rdoc'
36
36
  require 'rake'
37
37
  require 'rake/tasklib'
38
38
 
39
- ##
40
- # RDoc::Task creates the following rake tasks to generate and clean up RDoc
41
- # output:
42
- #
43
- # [rdoc]
44
- # Main task for this RDoc task.
45
- #
46
- # [clobber_rdoc]
47
- # Delete all the rdoc files. This target is automatically added to the main
48
- # clobber target.
49
- #
50
- # [rerdoc]
51
- # Rebuild the rdoc files from scratch, even if they are not out of date.
52
- #
53
- # [rdoc:coverage]
54
- # Print RDoc coverage report for all rdoc files.
55
- #
56
- # Simple Example:
57
- #
58
- # require 'rdoc/task'
59
- #
60
- # RDoc::Task.new do |rdoc|
61
- # rdoc.main = "README.md"
62
- # rdoc.rdoc_files.include("README.md", "lib/**/*.rb")
63
- # end
64
- #
65
- # The +rdoc+ object passed to the block is an RDoc::Task object. See the
66
- # attributes list for the RDoc::Task class for available customization options.
67
- #
68
- # == Specifying different task names
69
- #
70
- # You may wish to give the task a different name, such as if you are
71
- # generating two sets of documentation. For instance, if you want to have a
72
- # development set of documentation including private methods:
73
- #
74
- # require 'rdoc/task'
75
- #
76
- # RDoc::Task.new :rdoc_dev do |rdoc|
77
- # rdoc.main = "README.md"
78
- # rdoc.rdoc_files.include("README.md", "lib/**/*.rb")
79
- # rdoc.options << "--all"
80
- # end
81
- #
82
- # The tasks would then be named :<em>rdoc_dev</em>,
83
- # :clobber_<em>rdoc_dev</em>, and :re<em>rdoc_dev</em>.
84
- #
85
- # If you wish to have completely different task names, then pass a Hash as
86
- # first argument. With the <tt>:rdoc</tt>, <tt>:clobber_rdoc</tt> and
87
- # <tt>:rerdoc</tt> options, you can customize the task names to your liking.
88
- #
89
- # For example:
90
- #
91
- # require 'rdoc/task'
92
- #
93
- # RDoc::Task.new(:rdoc => "rdoc", :clobber_rdoc => "rdoc:clean",
94
- # :rerdoc => "rdoc:force")
95
- #
96
- # This will create the tasks <tt>:rdoc</tt>, <tt>:rdoc:clean</tt>,
97
- # <tt>:rdoc:force</tt>, and <tt>:rdoc:coverage</tt>.
98
-
99
- class RDoc::Task < Rake::TaskLib
100
-
101
- ##
102
- # Name of the main, top level task. (default is :rdoc)
103
-
104
- attr_accessor :name
105
-
106
- ##
107
- # The markup format; one of: +rdoc+ (the default), +markdown+, +rd+, +tomdoc+.
108
- # See {Markup Formats}[rdoc-ref:RDoc::Markup@Markup+Formats].
109
- attr_accessor :markup
110
-
111
- ##
112
- # Name of directory to receive the html output files. (default is "html")
113
-
114
- attr_accessor :rdoc_dir
115
-
116
- ##
117
- # Title of RDoc documentation. (defaults to rdoc's default)
118
-
119
- attr_accessor :title
120
-
121
- ##
122
- # Name of file to be used as the main, top level file of the RDoc. (default
123
- # is none)
124
-
125
- attr_accessor :main
126
-
127
- ##
128
- # Name of template to be used by rdoc. (defaults to rdoc's default)
129
-
130
- attr_accessor :template
131
-
132
- ##
133
- # Name of format generator (<tt>--format</tt>) used by rdoc. (defaults to
134
- # rdoc's default)
135
-
136
- attr_accessor :generator
137
-
39
+ module RDoc
138
40
  ##
139
- # List of files to be included in the rdoc generation. (default is [])
140
-
141
- attr_accessor :rdoc_files
41
+ # RDoc::Task creates the following rake tasks to generate and clean up RDoc
42
+ # output:
43
+ #
44
+ # [rdoc]
45
+ # Main task for this RDoc task.
46
+ #
47
+ # [clobber_rdoc]
48
+ # Delete all the rdoc files. This target is automatically added to the main
49
+ # clobber target.
50
+ #
51
+ # [rerdoc]
52
+ # Rebuild the rdoc files from scratch, even if they are not out of date.
53
+ #
54
+ # [rdoc:coverage]
55
+ # Print RDoc coverage report for all rdoc files.
56
+ #
57
+ # Simple Example:
58
+ #
59
+ # require 'rdoc/task'
60
+ #
61
+ # RDoc::Task.new do |rdoc|
62
+ # rdoc.main = "README.md"
63
+ # rdoc.rdoc_files.include("README.md", "lib/**/*.rb")
64
+ # end
65
+ #
66
+ # The +rdoc+ object passed to the block is an RDoc::Task object. See the
67
+ # attributes list for the RDoc::Task class for available customization options.
68
+ #
69
+ # == Specifying different task names
70
+ #
71
+ # You may wish to give the task a different name, such as if you are
72
+ # generating two sets of documentation. For instance, if you want to have a
73
+ # development set of documentation including private methods:
74
+ #
75
+ # require 'rdoc/task'
76
+ #
77
+ # RDoc::Task.new :rdoc_dev do |rdoc|
78
+ # rdoc.main = "README.md"
79
+ # rdoc.rdoc_files.include("README.md", "lib/**/*.rb")
80
+ # rdoc.options << "--all"
81
+ # end
82
+ #
83
+ # The tasks would then be named :<em>rdoc_dev</em>,
84
+ # :clobber_<em>rdoc_dev</em>, and :re<em>rdoc_dev</em>.
85
+ #
86
+ # If you wish to have completely different task names, then pass a Hash as
87
+ # first argument. With the <tt>:rdoc</tt>, <tt>:clobber_rdoc</tt> and
88
+ # <tt>:rerdoc</tt> options, you can customize the task names to your liking.
89
+ #
90
+ # For example:
91
+ #
92
+ # require 'rdoc/task'
93
+ #
94
+ # RDoc::Task.new(:rdoc => "rdoc", :clobber_rdoc => "rdoc:clean",
95
+ # :rerdoc => "rdoc:force")
96
+ #
97
+ # This will create the tasks <tt>:rdoc</tt>, <tt>:rdoc:clean</tt>,
98
+ # <tt>:rdoc:force</tt>, and <tt>:rdoc:coverage</tt>.
99
+
100
+ class Task < Rake::TaskLib
101
+
102
+ ##
103
+ # Name of the main, top level task. (default is :rdoc)
104
+
105
+ attr_accessor :name
106
+
107
+ ##
108
+ # The markup format; one of: +rdoc+ (the default), +markdown+, +rd+, +tomdoc+.
109
+ # See {Markup Formats}[rdoc-ref:RDoc::Markup@Markup+Formats].
110
+ attr_accessor :markup
111
+
112
+ ##
113
+ # Name of directory to receive the html output files. (default is "html")
114
+
115
+ attr_accessor :rdoc_dir
116
+
117
+ ##
118
+ # Title of RDoc documentation. (defaults to rdoc's default)
119
+
120
+ attr_accessor :title
121
+
122
+ ##
123
+ # Name of file to be used as the main, top level file of the RDoc. (default
124
+ # is none)
125
+
126
+ attr_accessor :main
127
+
128
+ ##
129
+ # Name of template to be used by rdoc. (defaults to rdoc's default)
130
+
131
+ attr_accessor :template
132
+
133
+ ##
134
+ # Name of format generator (<tt>--format</tt>) used by rdoc. (defaults to
135
+ # rdoc's default)
136
+
137
+ attr_accessor :generator
138
+
139
+ ##
140
+ # List of files to be included in the rdoc generation. (default is [])
141
+
142
+ attr_accessor :rdoc_files
143
+
144
+ ##
145
+ # Additional list of options to be passed rdoc. (default is [])
146
+
147
+ attr_accessor :options
148
+
149
+ ##
150
+ # Whether to run the rdoc process as an external shell (default is false)
151
+
152
+ attr_accessor :external
153
+
154
+ ##
155
+ # Create an RDoc task with the given name. See the RDoc::Task class overview
156
+ # for documentation.
157
+
158
+ def initialize(name = :rdoc) # :yield: self
159
+ defaults
160
+
161
+ check_names name
142
162
 
143
- ##
144
- # Additional list of options to be passed rdoc. (default is [])
163
+ @name = name
145
164
 
146
- attr_accessor :options
165
+ yield self if block_given?
147
166
 
148
- ##
149
- # Whether to run the rdoc process as an external shell (default is false)
150
-
151
- attr_accessor :external
152
-
153
- ##
154
- # Create an RDoc task with the given name. See the RDoc::Task class overview
155
- # for documentation.
156
-
157
- def initialize(name = :rdoc) # :yield: self
158
- defaults
159
-
160
- check_names name
161
-
162
- @name = name
163
-
164
- yield self if block_given?
165
-
166
- define
167
- end
167
+ define
168
+ end
168
169
 
169
- ##
170
- # Ensures that +names+ only includes names for the :rdoc, :clobber_rdoc and
171
- # :rerdoc. If other names are given an ArgumentError is raised.
170
+ ##
171
+ # Ensures that +names+ only includes names for the :rdoc, :clobber_rdoc and
172
+ # :rerdoc. If other names are given an ArgumentError is raised.
172
173
 
173
- def check_names(names)
174
- return unless Hash === names
174
+ def check_names(names)
175
+ return unless Hash === names
175
176
 
176
- invalid_options =
177
- names.keys.map { |k| k.to_sym } - [:rdoc, :clobber_rdoc, :rerdoc]
177
+ invalid_options =
178
+ names.keys.map { |k| k.to_sym } - [:rdoc, :clobber_rdoc, :rerdoc]
178
179
 
179
- unless invalid_options.empty? then
180
- raise ArgumentError, "invalid options: #{invalid_options.join ', '}"
180
+ unless invalid_options.empty?
181
+ raise ArgumentError, "invalid options: #{invalid_options.join ', '}"
182
+ end
181
183
  end
182
- end
183
184
 
184
- ##
185
- # Task description for the clobber rdoc task or its renamed equivalent
186
-
187
- def clobber_task_description
188
- "Remove RDoc HTML files"
189
- end
185
+ ##
186
+ # Task description for the clobber rdoc task or its renamed equivalent
190
187
 
191
- ##
192
- # Sets default task values
193
-
194
- def defaults
195
- @name = :rdoc
196
- @rdoc_files = Rake::FileList.new
197
- @rdoc_dir = 'html'
198
- @main = nil
199
- @title = nil
200
- @template = nil
201
- @generator = nil
202
- @options = []
203
- end
204
-
205
- ##
206
- # Create the tasks defined by this task lib.
188
+ def clobber_task_description
189
+ "Remove RDoc HTML files"
190
+ end
207
191
 
208
- def define
209
- desc rdoc_task_description
210
- task rdoc_task_name
192
+ ##
193
+ # Sets default task values
194
+
195
+ def defaults
196
+ @name = :rdoc
197
+ @rdoc_files = Rake::FileList.new
198
+ @rdoc_dir = 'html'
199
+ @main = nil
200
+ @title = nil
201
+ @template = nil
202
+ @generator = nil
203
+ @options = []
204
+ end
211
205
 
212
- desc rerdoc_task_description
213
- task rerdoc_task_name => [clobber_task_name, rdoc_task_name]
206
+ ##
207
+ # Create the tasks defined by this task lib.
214
208
 
215
- desc clobber_task_description
216
- task clobber_task_name do
217
- rm_r @rdoc_dir rescue nil
218
- end
209
+ def define
210
+ desc rdoc_task_description
211
+ task rdoc_task_name
219
212
 
220
- task :clobber => [clobber_task_name]
213
+ desc rerdoc_task_description
214
+ task rerdoc_task_name => [clobber_task_name, rdoc_task_name]
221
215
 
222
- directory @rdoc_dir
216
+ desc clobber_task_description
217
+ task clobber_task_name do
218
+ rm_r @rdoc_dir rescue nil
219
+ end
223
220
 
224
- rdoc_target_deps = [
225
- @rdoc_files,
226
- Rake.application.rakefile
227
- ].flatten.compact
221
+ task :clobber => [clobber_task_name]
228
222
 
229
- task rdoc_task_name => [rdoc_target]
230
- file rdoc_target => rdoc_target_deps do
231
- @before_running_rdoc.call if @before_running_rdoc
232
- args = option_list + @rdoc_files
223
+ directory @rdoc_dir
233
224
 
234
- $stderr.puts "rdoc #{args.join ' '}" if Rake.application.options.trace
235
- RDoc::RDoc.new.document args
236
- end
225
+ rdoc_target_deps = [
226
+ @rdoc_files,
227
+ Rake.application.rakefile
228
+ ].flatten.compact
237
229
 
238
- namespace rdoc_task_name do
239
- desc coverage_task_description
240
- task coverage_task_name do
230
+ task rdoc_task_name => [rdoc_target]
231
+ file rdoc_target => rdoc_target_deps do
241
232
  @before_running_rdoc.call if @before_running_rdoc
242
- opts = option_list << "-C"
243
- args = opts + @rdoc_files
233
+ args = option_list + @rdoc_files
244
234
 
245
235
  $stderr.puts "rdoc #{args.join ' '}" if Rake.application.options.trace
246
- RDoc::RDoc.new.document args
236
+ RDoc.new.document args
247
237
  end
248
238
 
249
- desc server_task_description
250
- task "server" do
251
- @before_running_rdoc.call if @before_running_rdoc
252
- args = option_list + ["--server"] + @rdoc_files
253
-
254
- $stderr.puts "rdoc #{args.join ' '}" if Rake.application.options.trace
255
- RDoc::RDoc.new.document args
239
+ namespace rdoc_task_name do
240
+ desc coverage_task_description
241
+ task coverage_task_name do
242
+ @before_running_rdoc.call if @before_running_rdoc
243
+ opts = option_list << "-C"
244
+ args = opts + @rdoc_files
245
+
246
+ $stderr.puts "rdoc #{args.join ' '}" if Rake.application.options.trace
247
+ RDoc.new.document args
248
+ rescue SystemExit => exit
249
+ raise "RDoc coverage is incomplete" unless exit.success?
250
+ end
251
+
252
+ desc server_task_description
253
+ task "server" do
254
+ @before_running_rdoc.call if @before_running_rdoc
255
+ args = option_list + ["--server"] + @rdoc_files
256
+
257
+ $stderr.puts "rdoc #{args.join ' '}" if Rake.application.options.trace
258
+ RDoc.new.document args
259
+ end
256
260
  end
257
- end
258
261
 
259
- self
260
- end
262
+ self
263
+ end
261
264
 
262
- ##
263
- # List of options that will be supplied to RDoc
264
-
265
- def option_list
266
- result = @options.dup
267
- result << "-o" << @rdoc_dir
268
- result << "--main" << main if main
269
- result << "--markup" << markup if markup
270
- result << "--title" << title if title
271
- result << "-T" << template if template
272
- result << '-f' << generator if generator
273
- result
274
- end
265
+ ##
266
+ # List of options that will be supplied to RDoc
267
+
268
+ def option_list
269
+ result = @options.dup
270
+ result << "-o" << @rdoc_dir
271
+ result << "--main" << main if main
272
+ result << "--markup" << markup if markup
273
+ result << "--title" << title if title
274
+ result << "-T" << template if template
275
+ result << '-f' << generator if generator
276
+ result
277
+ end
275
278
 
276
- ##
277
- # The block passed to this method will be called just before running the
278
- # RDoc generator. It is allowed to modify RDoc::Task attributes inside the
279
- # block.
279
+ ##
280
+ # The block passed to this method will be called just before running the
281
+ # RDoc generator. It is allowed to modify RDoc::Task attributes inside the
282
+ # block.
280
283
 
281
- def before_running_rdoc(&block)
282
- @before_running_rdoc = block
283
- end
284
+ def before_running_rdoc(&block)
285
+ @before_running_rdoc = block
286
+ end
284
287
 
285
- ##
286
- # Task description for the rdoc task or its renamed equivalent
288
+ ##
289
+ # Task description for the rdoc task or its renamed equivalent
287
290
 
288
- def rdoc_task_description
289
- 'Build RDoc HTML files'
290
- end
291
+ def rdoc_task_description
292
+ 'Build RDoc HTML files'
293
+ end
291
294
 
292
- ##
293
- # Task description for the rerdoc task or its renamed description
295
+ ##
296
+ # Task description for the rerdoc task or its renamed description
294
297
 
295
- def rerdoc_task_description
296
- "Rebuild RDoc HTML files"
297
- end
298
+ def rerdoc_task_description
299
+ "Rebuild RDoc HTML files"
300
+ end
298
301
 
299
- ##
300
- # Task description for the coverage task or its renamed description
302
+ ##
303
+ # Task description for the coverage task or its renamed description
301
304
 
302
- def coverage_task_description
303
- "Print RDoc coverage report"
304
- end
305
+ def coverage_task_description
306
+ "Print RDoc coverage report"
307
+ end
305
308
 
306
- ##
307
- # Task description for the server task
309
+ ##
310
+ # Task description for the server task
308
311
 
309
- def server_task_description
310
- "Start a live-reloading documentation server"
311
- end
312
+ def server_task_description
313
+ "Start a live-reloading documentation server"
314
+ end
312
315
 
313
316
  private
314
317
 
315
- def rdoc_target
316
- "#{rdoc_dir}/created.rid"
317
- end
318
+ def rdoc_target
319
+ "#{rdoc_dir}/created.rid"
320
+ end
318
321
 
319
- def rdoc_task_name
320
- case name
321
- when Hash then (name[:rdoc] || "rdoc").to_s
322
- else name.to_s
322
+ def rdoc_task_name
323
+ case name
324
+ when Hash then (name[:rdoc] || "rdoc").to_s
325
+ else name.to_s
326
+ end
327
+ end
328
+
329
+ def clobber_task_name
330
+ case name
331
+ when Hash then (name[:clobber_rdoc] || "clobber_rdoc").to_s
332
+ else "clobber_#{name}"
333
+ end
323
334
  end
324
- end
325
335
 
326
- def clobber_task_name
327
- case name
328
- when Hash then (name[:clobber_rdoc] || "clobber_rdoc").to_s
329
- else "clobber_#{name}"
336
+ def rerdoc_task_name
337
+ case name
338
+ when Hash then (name[:rerdoc] || "rerdoc").to_s
339
+ else "re#{name}"
340
+ end
330
341
  end
331
- end
332
342
 
333
- def rerdoc_task_name
334
- case name
335
- when Hash then (name[:rerdoc] || "rerdoc").to_s
336
- else "re#{name}"
343
+ def coverage_task_name
344
+ "coverage"
337
345
  end
338
- end
339
346
 
340
- def coverage_task_name
341
- "coverage"
342
347
  end
343
-
344
348
  end
345
349
 
346
350
  # :stopdoc: