Method: FileName::Manage#delete_cache

Defined in:
lib/filename.rb

#delete_cache(key) ⇒ Object



408
409
410
411
412
413
# File 'lib/filename.rb', line 408

def delete_cache(key)
  path = cache_directory(key)
  if File.exist?(path)
    FileUtils.rm(path)
  end
end