class Rouge::Formatters::Null

A formatter which renders nothing.

Public Class Methods

new(*) click to toggle source
# File lib/rouge/formatters/null.rb, line 9
def initialize(*)
end

Public Instance Methods

stream(tokens) { |"#{qualname} #{inspect}\n"| ... } click to toggle source
# File lib/rouge/formatters/null.rb, line 12
def stream(tokens, &b)
  tokens.each do |tok, val|
    yield "#{tok.qualname} #{val.inspect}\n"
  end
end