def attr_doc(type, kind)
      attrs = []

      type.allattrs.each do |name|
        if type.attrtype(name) == kind && name != :provider
          attrs.push(:name => name, :doc => type.attrclass(name).doc)
        end
      end

      attrs
    end
def attr_doc(type, kind)
      attrs = []

      type.allattrs.each do |name|
        if type.attrtype(name) == kind && name != :provider
          attrs.push(:name => name, :doc => type.attrclass(name).doc)
        end
      end

      attrs
    end
Return an array of hashes representing this +type+'s attrs of +kind+
 (e.g. :param or :property), each containing :name and :doc.