view vendor/gems/coderay-0.9.7/lib/coderay/encoders/count.rb @ 715:3c1257f96b79 feature_36_js_refactoring

not working: tried to add js to edit/save button
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 28 Sep 2011 18:08:41 +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