summaryrefslogtreecommitdiffstats
path: root/vendor/plugins/coderay-0.9.0/lib/coderay/encoders/null.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-11-07 09:08:13 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-11-07 09:08:13 +0000
commitbe41f7f473070d00302d1a485819248f3b114fc4 (patch)
treed51d116cc1e3b06f3ea67768470f7728af5e4952 /vendor/plugins/coderay-0.9.0/lib/coderay/encoders/null.rb
parent3b9d8c2a72f64b451db700e2d3dba6bb46e070af (diff)
downloadredmine-be41f7f473070d00302d1a485819248f3b114fc4.tar.gz
redmine-be41f7f473070d00302d1a485819248f3b114fc4.zip
Upgrade Coderay to 0.9.0.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3014 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor/plugins/coderay-0.9.0/lib/coderay/encoders/null.rb')
-rw-r--r--vendor/plugins/coderay-0.9.0/lib/coderay/encoders/null.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/plugins/coderay-0.9.0/lib/coderay/encoders/null.rb b/vendor/plugins/coderay-0.9.0/lib/coderay/encoders/null.rb
new file mode 100644
index 000000000..add3862a3
--- /dev/null
+++ b/vendor/plugins/coderay-0.9.0/lib/coderay/encoders/null.rb
@@ -0,0 +1,26 @@
+module CodeRay
+module Encoders
+
+ # = Null Encoder
+ #
+ # Does nothing and returns an empty string.
+ class Null < Encoder
+
+ include Streamable
+ register_for :null
+
+ # Defined for faster processing
+ def to_proc
+ proc {}
+ end
+
+ protected
+
+ def token(*)
+ # do nothing
+ end
+
+ end
+
+end
+end