Module: OpenHAB::YARD::CLI::Stats

Defined in:
lib/openhab/yard/cli/stats.rb

Instance Method Summary collapse

Instance Method Details

#stats_for_constantsObject



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/openhab/yard/cli/stats.rb', line 9

def stats_for_constants
  objs = all_objects.select { |m| m.type == :constant }
  undoc = objs.find_all do |m|
    # allow constants that are simple aliases
    # to not have additional documentation
    m.docstring.blank? && m.target.nil?
  end
  @undoc_list |= undoc if @undoc_list

  output "Constants", objs.size, undoc.size
end