Mercurial > hg > soundsoftware-site
comparison vendor/plugins/coderay-0.9.2/lib/coderay/encoders/null.rb @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:513646585e45 |
---|---|
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 |