summaryrefslogtreecommitdiff
path: root/lib/coderay
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2010-10-15 22:50:49 +0000
committermurphy <murphy@rubychan.de>2010-10-15 22:50:49 +0000
commit6d98be4440b773e1fa311ee4fc621d63f29b41dc (patch)
treecc11e3b8201454cf9215cac11beda8b443687416 /lib/coderay
parent538f21599549e3a6f74f9d14cd56cae8793babcc (diff)
downloadcoderay-6d98be4440b773e1fa311ee4fc621d63f29b41dc.tar.gz
Fixed Null encoder.
Diffstat (limited to 'lib/coderay')
-rw-r--r--lib/coderay/encoders/null.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/coderay/encoders/null.rb b/lib/coderay/encoders/null.rb
index 00de909..73ba47d 100644
--- a/lib/coderay/encoders/null.rb
+++ b/lib/coderay/encoders/null.rb
@@ -1,20 +1,18 @@
module CodeRay
module Encoders
-
+
# = Null Encoder
#
# Does nothing and returns an empty string.
class Null < Encoder
-
+
register_for :null
-
- protected
-
- def token(*)
+
+ def text_token text, kind
# do nothing
end
-
+
end
-
+
end
end