Mercurial > hg > soundsoftware-site
comparison vendor/gems/coderay-0.9.7/lib/coderay/encoders/.svn/text-base/null.rb.svn-base @ 210:0579821a129a
Update to Redmine trunk rev 4802
author | Chris Cannam |
---|---|
date | Tue, 08 Feb 2011 13:51:46 +0000 |
parents | vendor/plugins/coderay-0.9.2/lib/coderay/encoders/null.rb@513646585e45 |
children |
comparison
equal
deleted
inserted
replaced
128:07fa8a8b56a8 | 210:0579821a129a |
---|---|
1 module CodeRay | |
2 module Encoders | |
3 | |
4 # = Null Encoder | |
5 # | |
6 # Does nothing and returns an empty string. | |
7 class Null < Encoder | |
8 | |
9 include Streamable | |
10 register_for :null | |
11 | |
12 # Defined for faster processing | |
13 def to_proc | |
14 proc {} | |
15 end | |
16 | |
17 protected | |
18 | |
19 def token(*) | |
20 # do nothing | |
21 end | |
22 | |
23 end | |
24 | |
25 end | |
26 end |