# File lib/mime/composite_media_type.rb, line 22
    def add_entity entity
      raise Error.new('can only add MediaType objects')  unless entity.is_a? MediaType
      @entities.unshift(entity)
    end