save_cache()public
Writes the cache file for this store
# File lib/rdoc/store.rb, line 760
def save_cache
clean_cache_collection @cache[:ancestors]
clean_cache_collection @cache[:attributes]
clean_cache_collection @cache[:class_methods]
clean_cache_collection @cache[:instance_methods]
@cache[:modules].uniq!
@cache[:modules].sort!
@cache[:pages].uniq!
@cache[:pages].sort!
@cache[:encoding] = @encoding # this gets set twice due to assert_cache
@cache[:c_class_variables].merge! @c_class_variables
@cache[:c_singleton_class_variables].merge! @c_singleton_class_variables
return if @dry_run
marshal = Marshal.dump @cache
open cache_path, 'wb' do |io|
io.write marshal
end
end Related methods
- Instance methods
- add_c_enclosure
- add_c_variables
- add_file
- all_classes
- all_classes_and_modules
- all_files
- all_modules
- ancestors
- attributes
- cache_path
- class_file
- class_methods
- class_path
- classes_hash
- clean_cache_collection
- complete
- files_hash
- find_c_enclosure
- find_class_named
- find_class_named_from
- find_class_or_module
- find_file_named
- find_module_named
- find_text_page
- find_unique
- fix_basic_object_inheritance
- friendly_path
- inspect
- instance_methods
- load_all
- load_cache
- load_class
- load_class_data
- load_method
- load_page
- main
- main=
- make_variable_map
- method_file
- module_names
- modules_hash
- page
- page_file
- remove_nodoc
- save
- save_cache
- save_class
- save_method
- save_page
- source
- title
- title=
- unique_classes
- unique_classes_and_modules
- unique_modules
- Class methods
- new