487: def build_attribute_list(section)
488: atts = @context.attributes.sort
489: res = []
490: atts.each do |att|
491: next unless att.section == section
492: if att.visibility == :public || att.visibility == :protected || @options.show_all
493: entry = {
494: "name" => CGI.escapeHTML(att.name),
495: "rw" => att.rw,
496: "a_desc" => markup(att.comment, true)
497: }
498: unless att.visibility == :public || att.visibility == :protected
499: entry["rw"] << "-"
500: end
501: res << entry
502: end
503: end
504: res
505: end