Returns an array of all classes recorded thus far.
Returns an array of RDoc::AnyMethod objects representing all methods recorded thus far.
Returns an array of all modules recorded thus far.
Returns a RDoc::TopLevel object containing information parsed from the given code string. This information is also added to the global TopLevel class state, so you can access it via the class methods of the TopLevel class.
If the file name (which signifies the origin of the given code) is given, it MUST have a “.c” or “.rb” file extension. Otherwise, RDoc will ignore the given code string! :-(
Returns a RDoc::TopLevel object containing information parsed from the code in the given file. This information is also added to the global TopLevel class state, so you can access it via the class methods of the TopLevel class.
The given file name MUST have a “.c” or “.rb” file extension. Otherwise, RDoc will ignore the file! :-(
Update the return value of the all_classes_and_modules() method to really include every class and every module seen thus far.
# File lib/erbook/rdoc.rb, line 39 def self.refresh_all_classes_and_modules visit = lambda do |node| if node.is_a? NormalClass or node.is_a? SingleClass @all_classes[node.full_name] = node elsif node.is_a? NormalModule @all_modules[node.full_name] = node end (node.classes + node.modules).each {|n| visit[n] } end all_classes_and_modules.each {|n| visit[n] } end