view vendor/gems/coderay-0.9.7/lib/coderay/encoders/count.rb @ 907:df51e8ff578d redmine-1.3

Remove .svn directories from subdirectories in preparation for merging from newer svn repo format
author Chris Cannam
date Fri, 24 Feb 2012 18:29:34 +0000
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