@@ -361,7 +361,7 @@ def add_class(class_type, given_name, superclass = '::Object')
361361 klass = @store . classes_hash [ full_name ]
362362
363363 if klass then
364- # if TopLevel , it may not be registered in the classes:
364+ # if File , it may not be registered in the classes:
365365 enclosing . classes_hash [ name ] = klass
366366
367367 # update the superclass if needed
@@ -397,7 +397,7 @@ def add_class(class_type, given_name, superclass = '::Object')
397397 ##
398398 # Adds the class or module +mod+ to the modules or
399399 # classes Hash +self_hash+, and to +all_hash+ (either
400- # <tt>TopLevel ::modules_hash</tt> or <tt>TopLevel ::classes_hash</tt>),
400+ # <tt>File ::modules_hash</tt> or <tt>File ::classes_hash</tt>),
401401 # unless #done_documenting is +true+. Sets the #parent of +mod+
402402 # to +self+, and its #section to #current_section. Returns +mod+.
403403
@@ -568,7 +568,7 @@ def add_module_alias(from, from_name, to, file)
568568 def add_require ( require )
569569 return require unless @document_self
570570
571- if RDoc ::TopLevel === self then
571+ if RDoc ::File === self then
572572 add_to @requires , require
573573 else
574574 parent . add_require require
@@ -632,7 +632,7 @@ def any_content(includes = true)
632632 def child_name ( name )
633633 if name =~ /^:+/
634634 $' #'
635- elsif RDoc ::TopLevel === self then
635+ elsif RDoc ::File === self then
636636 name
637637 else
638638 "#{ self . full_name } ::#{ name } "
@@ -894,14 +894,14 @@ def find_symbol_module(symbol)
894894 mod = searched . find_module_named ( top )
895895 break unless mod
896896 result = @store . find_class_or_module "#{ mod . full_name } ::#{ suffix } "
897- break if result || searched . is_a? ( RDoc ::TopLevel )
897+ break if result || searched . is_a? ( RDoc ::File )
898898 searched = searched . parent
899899 end
900900 else
901901 searched = self
902902 while searched do
903903 result = searched . find_module_named ( symbol )
904- break if result || searched . is_a? ( RDoc ::TopLevel )
904+ break if result || searched . is_a? ( RDoc ::File )
905905 searched = searched . parent
906906 end
907907 end
@@ -936,7 +936,7 @@ def http_url
936936 path = path . gsub ( /<<\s *(\w *)/ , 'from-\1' ) if path =~ /<</
937937 path = path . split ( '::' )
938938
939- File . join ( *path . compact ) + '.html'
939+ :: File . join ( *path . compact ) + '.html'
940940 end
941941
942942 ##
@@ -1033,10 +1033,10 @@ def ongoing_visibility=(visibility)
10331033 end
10341034
10351035 ##
1036- # Record +top_level + as a file +self+ is in.
1036+ # Record +file + as a file +self+ is in.
10371037
1038- def record_location ( top_level )
1039- @in_files << top_level unless @in_files . include? ( top_level )
1038+ def record_location ( file )
1039+ @in_files << file unless @in_files . include? ( file )
10401040 end
10411041
10421042 ##
@@ -1197,7 +1197,7 @@ def to_s # :nodoc:
11971197 def top_level
11981198 return @top_level if defined? @top_level
11991199 @top_level = self
1200- @top_level = @top_level . parent until RDoc ::TopLevel === @top_level
1200+ @top_level = @top_level . parent until RDoc ::File === @top_level
12011201 @top_level
12021202 end
12031203
0 commit comments