method
create_class_cache

v1_9_1_378 -
Show latest stable
-
0 notes -
Class: Driver
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180
- 1_9_3_125
- 1_9_3_392
- 2_1_10
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
create_class_cache()
public
Hide source
# File lib/rdoc/ri/driver.rb, line 377 def create_class_cache class_cache = OpenStructHash.new if(@use_cache) # Dump the documentation directories to a file in the cache, so that # we only will use the cache for future instantiations with identical # documentation directories. File.open @cache_doc_dirs_path, "wb" do |fp| fp << @doc_dirs.join("\n") end end classes = map_dirs('**/cdesc*.yaml') { |f| Dir[f] } warn "Updating class cache with #{classes.size} classes..." populate_class_cache class_cache, classes write_cache class_cache, class_cache_file_path class_cache end