Method: RDoc::Parser::C#load_variable_map
- Defined in:
- lib/rdoc/parser/c.rb
#load_variable_map(map_name) ⇒ Object
Loads the variable map with the given name from the RDoc::Store, if present.
1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 |
# File 'lib/rdoc/parser/c.rb', line 1101 def load_variable_map map_name return {} unless files = @store.cache[map_name] return {} unless name_map = files[@file_name] class_map = {} name_map.each do |variable, name| next unless mod = @store.find_class_or_module(name) class_map[variable] = if map_name == :c_class_variables then mod else name end @known_classes[variable] = name end class_map end |