Sha256: 69e752a62925b7e32f1f5ad7242aa67b8d66d71ade10008d7f89020606481d5a

Contents?: true

Size: 335 Bytes

Versions: 10

Compression:

Stored size: 335 Bytes

Contents

# -*- coding: utf-8 -*- #

module Rouge
  module Formatters
    # A formatter which renders nothing.
    class Null < Formatter
      tag 'null'

      def initialize(*)
      end

      def stream(tokens, &b)
        tokens.each do |tok, val|
          yield "#{tok.qualname} #{val.inspect}\n"
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/rouge-2.2.1/lib/rouge/formatters/null.rb
rouge-3.2.1 lib/rouge/formatters/null.rb
rouge-3.2.0 lib/rouge/formatters/null.rb
rouge_ecl-1.0.0 lib/rouge/formatters/null.rb
rouge_ecl-0.0.1 lib/rouge/formatters/null.rb
rouge-3.1.1 lib/rouge/formatters/null.rb
rouge-3.1.0 lib/rouge/formatters/null.rb
rouge-3.0.0 lib/rouge/formatters/null.rb
rouge-2.2.1 lib/rouge/formatters/null.rb
rouge-2.2.0 lib/rouge/formatters/null.rb