Method: RDoc::Stats#report_attributes

Defined in:
lib/rdoc/stats.rb

#report_attributes(cm) ⇒ Object

Returns a report on undocumented attributes in ClassModule cm



259
260
261
262
263
264
265
266
267
268
269
270
271
272
# File 'lib/rdoc/stats.rb', line 259

def report_attributes cm
  return if cm.attributes.empty?

  report = []

  cm.each_attribute do |attr|
    next if attr.documented?
    line = attr.line ? ":#{attr.line}" : nil
    report << "  #{attr.definition} :#{attr.name} # in file #{attr.file.full_name}#{line}\n"
    report << "\n"
  end

  report
end