diff options
Diffstat (limited to 'vendor/gems/coderay-1.0.0/lib/coderay/encoders/null.rb')
-rw-r--r-- | vendor/gems/coderay-1.0.0/lib/coderay/encoders/null.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/gems/coderay-1.0.0/lib/coderay/encoders/null.rb b/vendor/gems/coderay-1.0.0/lib/coderay/encoders/null.rb new file mode 100644 index 000000000..73ba47d35 --- /dev/null +++ b/vendor/gems/coderay-1.0.0/lib/coderay/encoders/null.rb @@ -0,0 +1,18 @@ +module CodeRay +module Encoders + + # = Null Encoder + # + # Does nothing and returns an empty string. + class Null < Encoder + + register_for :null + + def text_token text, kind + # do nothing + end + + end + +end +end |