# File lib/puppet/util/rdoc/generators/puppet_generator.rb, line 549
549:     def build_attribute_list(section)
550:       atts = @context.attributes.sort
551:       res = []
552:       atts.each do |att|
553:         next unless att.section == section
554:         if att.visibility == :public || att.visibility == :protected || @options.show_all
555:           entry = {
556:             "name"   => CGI.escapeHTML(att.name),
557:             "rw"     => att.rw,
558:             "a_desc" => markup(att.comment, true)
559:           }
560:           unless att.visibility == :public || att.visibility == :protected
561:             entry["rw"] << "-"
562:           end
563:           res << entry
564:         end
565:       end
566:       res
567:     end