Sha256: a77477ec431262596aaa76aa0ddcc2a5523d251a81cfa9982348dd115e20587e

Contents?: true

Size: 231 Bytes

Versions: 3

Compression:

Stored size: 231 Bytes

Contents

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

3 entries across 3 versions & 1 rubygems

Version Path
rouge-1.5.0 lib/rouge/formatters/null.rb
rouge-1.4.0 lib/rouge/formatters/null.rb
rouge-1.3.4 lib/rouge/formatters/null.rb