diff options
author | murphy <murphy@rubychan.de> | 2010-10-15 22:50:49 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-10-15 22:50:49 +0000 |
commit | 6d98be4440b773e1fa311ee4fc621d63f29b41dc (patch) | |
tree | cc11e3b8201454cf9215cac11beda8b443687416 /lib/coderay/encoders | |
parent | 538f21599549e3a6f74f9d14cd56cae8793babcc (diff) | |
download | coderay-6d98be4440b773e1fa311ee4fc621d63f29b41dc.tar.gz |
Fixed Null encoder.
Diffstat (limited to 'lib/coderay/encoders')
-rw-r--r-- | lib/coderay/encoders/null.rb | 14 |
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 |