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
rougegal-2.1.2 lib/rouge/formatters/null.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/rouge-2.0.7/lib/rouge/formatters/null.rb
tdiary-5.0.5 vendor/bundle/gems/rouge-2.1.1/lib/rouge/formatters/null.rb
tdiary-5.0.5 vendor/bundle/gems/rouge-2.0.7/lib/rouge/formatters/null.rb
rouge-2.1.1 lib/rouge/formatters/null.rb
rouge-2.1.0 lib/rouge/formatters/null.rb
tdiary-5.0.4 vendor/bundle/gems/rouge-2.0.7/lib/rouge/formatters/null.rb
rouge-2.0.7 lib/rouge/formatters/null.rb
rouge-2.0.6 lib/rouge/formatters/null.rb
rouge-2.0.5 lib/rouge/formatters/null.rb
rouge-2.0.3 lib/rouge/formatters/null.rb
rouge-2.0.2 lib/rouge/formatters/null.rb
rouge-2.0.1 lib/rouge/formatters/null.rb
rouge-2.0.0 lib/rouge/formatters/null.rb
rouge-1.11.1 lib/rouge/formatters/null.rb
rouge-1.11.0 lib/rouge/formatters/null.rb
rouge-1.10.1 lib/rouge/formatters/null.rb
rouge-1.10.0 lib/rouge/formatters/null.rb
gitlab-rouge-1.9.2 lib/rouge/formatters/null.rb
rouge-1.9.1 lib/rouge/formatters/null.rb