view vendor/gems/coderay-0.9.7/lib/coderay/encoders/.svn/text-base/null.rb.svn-base @ 683:c3e6c51170fa feature_36

Feature #238 - the New Publication now shows all fields correctly.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 16 Sep 2011 11:14:10 +0100
parents 0579821a129a
children
line wrap: on
line source
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