summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2010-05-18 06:16:54 +0000
committermurphy <murphy@rubychan.de>2010-05-18 06:16:54 +0000
commitf9da00a9da5fc15d08cd455884180d49417c5fe4 (patch)
treef1aa7df4595e12e436020cc37028cbbe300a5d0d /lib
parentf24a2b9eaf968dd31c614c626888aa8e6e6cfebc (diff)
downloadcoderay-f9da00a9da5fc15d08cd455884180d49417c5fe4.tar.gz
Tokens#<encoder name> raises a NoMethodError when encoder was not found.
Diffstat (limited to 'lib')
-rw-r--r--lib/coderay/tokens.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/coderay/tokens.rb b/lib/coderay/tokens.rb
index c85c2f1..50b6834 100644
--- a/lib/coderay/tokens.rb
+++ b/lib/coderay/tokens.rb
@@ -109,6 +109,8 @@ module CodeRay
# is used to highlight the tokens.
def method_missing meth, options = {}
encode_with meth, options
+ rescue PluginHost::PluginNotFound
+ super
end
def encode_with encoder, options = {}