method
uninstall_doc
ruby latest stable - Class:
Gem::DocManager
Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.
uninstall_doc()public
# File lib/rubygems/doc_manager.rb, line 220
def uninstall_doc
base_dir = @spec.base_dir
raise Gem::FilePermissionError.new base_dir unless File.writable? base_dir
# TODO: ok... that's twice... ugh
old_name = [
@spec.name, @spec.version, @spec.original_platform].join '-'
doc_dir = @spec.doc_dir
unless File.directory? doc_dir then
doc_dir = File.join File.dirname(doc_dir), old_name
end
ri_dir = @spec.ri_dir
unless File.directory? ri_dir then
ri_dir = File.join File.dirname(ri_dir), old_name
end
FileUtils.rm_rf doc_dir
FileUtils.rm_rf ri_dir
end Related methods
- Instance methods
- generate_rdoc
- generate_ri
- install_rdoc
- install_ri
- rdoc_installed?
- ri_installed?
- run_rdoc
- setup_rdoc
- uninstall_doc
- Class methods
- configured_args
- configured_args=
- load_rdoc
- new
- rdoc_version
- update_ri_cache