annotate vendor/plugins/coderay-0.9.2/lib/coderay/encoders/null.rb @ 479:7be2c5d9ffa5 feature_36

correctly saving ONE authorship model when creating new publication.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 30 Jun 2011 12:54:10 +0100
parents 513646585e45
children
rev   line source
Chris@0 1 module CodeRay
Chris@0 2 module Encoders
Chris@0 3
Chris@0 4 # = Null Encoder
Chris@0 5 #
Chris@0 6 # Does nothing and returns an empty string.
Chris@0 7 class Null < Encoder
Chris@0 8
Chris@0 9 include Streamable
Chris@0 10 register_for :null
Chris@0 11
Chris@0 12 # Defined for faster processing
Chris@0 13 def to_proc
Chris@0 14 proc {}
Chris@0 15 end
Chris@0 16
Chris@0 17 protected
Chris@0 18
Chris@0 19 def token(*)
Chris@0 20 # do nothing
Chris@0 21 end
Chris@0 22
Chris@0 23 end
Chris@0 24
Chris@0 25 end
Chris@0 26 end