Method: RDoc::RubygemsHook#remove
- Defined in:
- lib/rdoc/rubygems_hook.rb
#remove ⇒ Object
Removes generated RDoc and ri data
225 226 227 228 229 230 231 232 |
# File 'lib/rdoc/rubygems_hook.rb', line 225 def remove base_dir = @spec.base_dir raise Gem::FilePermissionError, base_dir unless File.writable? base_dir FileUtils.rm_rf @rdoc_dir FileUtils.rm_rf @ri_dir end |