Sha256: 62ccece33c6df4a5e19dc26f53215becb29f40e0e480ce51ce99ce9cf1d0b2c8

Contents?: true

Size: 326 Bytes

Versions: 25

Compression:

Stored size: 326 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} #{val.inspect}\n"
        end
      end
    end
  end
end

Version data entries

25 entries across 23 versions & 4 rubygems

Version Path
rouge-1.9.0 lib/rouge/formatters/null.rb
rouge-1.8.0 lib/rouge/formatters/null.rb
rouge-1.7.7 lib/rouge/formatters/null.rb
rouge-1.7.4 lib/rouge/formatters/null.rb
rouge-1.7.3 lib/rouge/formatters/null.rb