class Rouge::Formatter

def format(tokens, &b)

Format a token stream.
def format(tokens, &b)
  tokens = enum_for(:filter_escapes, tokens) unless Formatter.escape_enabled?
  return stream(tokens, &b) if block_given?
  out = String.new('')
  stream(tokens) { |piece| out << piece }
  out
end