Method: RDoc::Parser::Ruby#record_location

Defined in:
lib/rdoc/parser/ruby.rb

#record_location(container) ⇒ Object

Records the location of this container in the file for this parser and adds it to the list of classes and modules in the file.



2146
2147
2148
2149
2150
2151
2152
2153
# File 'lib/rdoc/parser/ruby.rb', line 2146

def record_location container # :nodoc:
  case container
  when RDoc::ClassModule then
    @top_level.add_to_classes_or_modules container
  end

  container.record_location @top_level
end