class CodeRay::Encoders::Count
Text and block tokens are counted.
Returns the number of tokens.
def begin_group kind
def begin_group kind @count += 1 end
def finish options
def finish options output @count end
def setup options
def setup options super @count = 0 end
def text_token text, kind
def text_token text, kind @count += 1 end