Returns the number of tokens.

Text and block tokens are counted.

Methods
Public Instance methods
begin_group(kind)
--- This method is also aliased as end_group begin_line end_line ---
# File lib/coderay/encoders/count.rb, line 29
    def begin_group kind
      @count += 1
    end
begin_line(kind)

Alias for begin_group

end_group(kind)

Alias for begin_group

end_line(kind)

Alias for begin_group

text_token(text, kind)
# File lib/coderay/encoders/count.rb, line 25
    def text_token text, kind
      @count += 1
    end