Sha256: a3d4a1b84f96f5f01d6d19a3b05d9ba27405e1c9265e2ea0eaeab28e47b2d549

Contents?: true

Size: 258 Bytes

Versions: 6

Compression:

Stored size: 258 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.to_a
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rouge-1.7.2 lib/rouge/formatters/null.rb
rouge-1.7.1 lib/rouge/formatters/null.rb
rouge-1.7.0 lib/rouge/formatters/null.rb
rouge-1.6.2 lib/rouge/formatters/null.rb
rouge-1.6.1 lib/rouge/formatters/null.rb
rouge-1.5.1 lib/rouge/formatters/null.rb