We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeb788d commit 9ac3627Copy full SHA for 9ac3627
lib/rdoc/require.rb
@@ -39,10 +39,12 @@ def to_s # :nodoc:
39
def top_level
40
@top_level ||= begin
41
tl = RDoc::TopLevel.all_files_hash[name + '.rb']
42
- if tl.nil? && RDoc::TopLevel.all_files.first.full_name =~ %r(^lib/)
+
43
+ if tl.nil? and RDoc::TopLevel.all_files.first.full_name =~ %r(^lib/) then
44
# second chance
45
tl = RDoc::TopLevel.all_files_hash['lib/' + name + '.rb']
46
end
47
48
tl
49
50
0 commit comments