class CodeRay::Encoders::Encoder

def compile tokens, options = {}

Tokens object.
The already created +tokens+ object must be used; it must be a

Do the encoding.
def compile tokens, options = {}
  content = nil
  for item in tokens
    if item.is_a? Array
      raise ArgumentError, 'Two-element array tokens are no longer supported.'
    end
    if content
      token content, item
      content = nil
    else
      content = item
    end
  end
  raise 'odd number list for Tokens' if content
end