summaryrefslogtreecommitdiff
path: root/lib/coderay/helpers
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-04-20 23:37:13 +0000
committermurphy <murphy@rubychan.de>2009-04-20 23:37:13 +0000
commitd9e3116a9f3d6aa3da0acd8d540d113f2a51bea1 (patch)
treea1a63628b041584094b535422057ef05271987e1 /lib/coderay/helpers
parent32701fcf0c5f0e54d7172ceb86e44664aa4bae10 (diff)
downloadcoderay-d9e3116a9f3d6aa3da0acd8d540d113f2a51bea1.tar.gz
FIXED: CaseIgnoringWordList respects default value (closes #97).
* Test cases added.
Diffstat (limited to 'lib/coderay/helpers')
-rw-r--r--lib/coderay/helpers/word_list.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/coderay/helpers/word_list.rb b/lib/coderay/helpers/word_list.rb
index 5196a5d..c8cc7ac 100644
--- a/lib/coderay/helpers/word_list.rb
+++ b/lib/coderay/helpers/word_list.rb
@@ -104,6 +104,7 @@ class CaseIgnoringWordList < WordList
h[k] = h.fetch k.downcase, default
end
else
+ super(default, false)
def self.[] key # :nodoc:
super(key.downcase)
end