From a1b70369d0c68f2cf62453a5b087a82a09d47ef3 Mon Sep 17 00:00:00 2001 From: coezbek Date: Sun, 30 Oct 2016 22:58:32 +0100 Subject: [PATCH] Fix documentation bug, NotFound should be StandardError Making NotFound an Exception will make them put on par with a syntax error, which it is not. --- lib/diskcached.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/diskcached.rb b/lib/diskcached.rb index 263fb52..2e16233 100644 --- a/lib/diskcached.rb +++ b/lib/diskcached.rb @@ -120,7 +120,7 @@ def set key, value # or raises Diskcache::NotFound # - if 'key' is an Array returns only keys # which exist and aren't expired, it raises - # Diskcache::NotFound if none are available + # Diskcached::NotFound if none are available def get key if key.is_a? Array ret = {} @@ -177,7 +177,7 @@ def ensure_store_directory FileUtils.mkpath( store ) unless File.directory?( store ) end - class NotFound < Exception + class NotFound < StandardError end end