From 6d98be4440b773e1fa311ee4fc621d63f29b41dc Mon Sep 17 00:00:00 2001 From: murphy Date: Fri, 15 Oct 2010 22:50:49 +0000 Subject: Fixed Null encoder. --- lib/coderay/encoders/null.rb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'lib/coderay') 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 -- cgit v1.2.1