view vendor/gems/coderay-0.9.7/lib/coderay/encoders/count.rb @ 593:f12948591050 feature_14

Import redmine_tags plugin (from https://github.com/ixti/redmine_tags.git commit f09ad441f5dc39104b06) for testing
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Mon, 15 Aug 2011 15:13:37 +0100
parents 0579821a129a
children
line wrap: on
line source
module CodeRay
module Encoders

  class Count < Encoder

    include Streamable
    register_for :count

    protected

    def setup options
      @out = 0
    end

    def token text, kind
      @out += 1
    end
  end

end
end