mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc/parsers/parse_rb.rb: Fix uninitialized variable warnings.
* lib/rdoc/generator/html.rb: ditto. * lib/rdoc/options.rb: Fix shadowed variable warning. * lib/webrick/httprequest.rb: Fix redefined method warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3467a1754c
commit
be710a0391
5 changed files with 17 additions and 5 deletions
|
@ -68,6 +68,7 @@ class RDoc::Generator::HTML
|
|||
def initialize(options) #:not-new:
|
||||
@options = options
|
||||
load_html_template
|
||||
@main_page_path = nil
|
||||
end
|
||||
|
||||
##
|
||||
|
@ -256,7 +257,7 @@ class RDoc::Generator::HTML
|
|||
end
|
||||
|
||||
unless @main_page_path then
|
||||
file = @files.find { |file| file.document_self }
|
||||
file = @files.find { |context| context.document_self }
|
||||
@main_page_path = file.path if file
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue