def add_tag(*tags)
      tags.each_with_index do |tag, i|
        case tag
        when Tags::Tag
          tag.object = object
          @tags << tag
        when Tags::RefTag, Tags::RefTagList
          @ref_tags << tag
        else
          raise ArgumentError, "expected Tag or RefTag, got #{tag.class} (at index #{i})"
        end
      end
    end
def add_tag(*tags)
      tags.each_with_index do |tag, i|
        case tag
        when Tags::Tag
          tag.object = object
          @tags << tag
        when Tags::RefTag, Tags::RefTagList
          @ref_tags << tag
        else
          raise ArgumentError, "expected Tag or RefTag, got #{tag.class} (at index #{i})"
        end
      end
    end
@group Creating and Accessing Meta-data
 Adds a tag or reftag object to the tag list. If you want to parse
 tag data based on the {Tags::DefaultFactory} tag factory, use
 {DocstringParser} instead.

 @param [Tags::Tag, Tags::RefTag] tags list of tag objects to add
 @return [void]