Mercurial > hg > soundsoftware-site
comparison vendor/gems/coderay-0.9.7/lib/coderay/encoders/null.rb @ 523:0b6c82dead28 luisf
Merge from branch "cannam"
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 25 Jul 2011 14:23:37 +0100 |
parents | 0579821a129a |
children |
comparison
equal
deleted
inserted
replaced
318:f7c525dc7585 | 523:0b6c82dead28 |
---|---|
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 |