Method: YARD::CLI::Stats#stats_for_attributes
- Defined in:
- lib/yard/cli/stats.rb
#stats_for_attributes ⇒ Object
Statistics for attributes
135 136 137 138 139 140 141 |
# File 'lib/yard/cli/stats.rb', line 135 def stats_for_attributes objs = all_objects.select {|m| m.type == :method && m.is_attribute? } objs.uniq! {|m| m.name.to_s.gsub(/=$/, '') } undoc = objs.select {|m| m.docstring.blank? } @undoc_list |= undoc if @undoc_list output "Attributes", objs.size, undoc.size end |