class Rouge::Formatter

def format(tokens, &b)

Format a token stream.
def format(tokens, &b)
  return stream(tokens, &b) if block_given?
  out = ''
  stream(tokens) { |piece| out << piece }
  out
end