view vendor/plugins/coderay-0.9.2/lib/coderay/encoders/null.rb @ 87:6cdfe738a02d cannam

Restore luisf changes to locales file (lost in confusion because I had somehow ended up changing every line with Windows line endings)
author Chris Cannam
date Thu, 16 Dec 2010 10:22:51 +0000
parents 513646585e45
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