aboutsummaryrefslogtreecommitdiffstats
path: root/community/Golang
ModeNameSize
-rw-r--r--Go.AllowList.gitignore389logstatsplain
-rw-r--r--Hugo.gitignore219logstatsplain
edmine.git/tree/vendor/plugins/coderay-0.9.2/lib/coderay?h=1.0.1'>coderay/encoders/count.rb
blob: c9a6dfdeaa793f632ee19493947dbd480910211c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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