mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Deal with case where first file processed contains a :stopdoc:
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
65db4654f6
commit
47d12ab8d0
2 changed files with 20 additions and 1 deletions
|
|
@ -1276,7 +1276,20 @@ module Generators
|
|||
end
|
||||
end
|
||||
|
||||
ref = @files[0].path unless ref
|
||||
unless ref
|
||||
for file in @files
|
||||
if file.document_self
|
||||
ref = file.path
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
unless ref
|
||||
$stderr.puts "Couldn't find anything to document"
|
||||
$stderr.puts "Perhaps you've used :stopdoc: in all classes"
|
||||
exit(1)
|
||||
end
|
||||
|
||||
ref
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue