Class: Cuporter::NameReport

Inherits:
Report
  • Object
show all
Defined in:
lib/cuporter/report/name_report.rb

Instance Attribute Summary

Attributes inherited from Report

#filter, #title

Instance Method Summary collapse

Methods inherited from Report

create, #files, #initialize

Constructor Details

This class inherits a constructor from Cuporter::Report

Instance Method Details

#report_nodeObject



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/cuporter/report/name_report.rb', line 5

def report_node
  names = TagListNode.new("report", @filter)
  files.each do |file|
    feature = FeatureParser.name_list(file, @filter)
    if feature && feature.has_children?
      names.add_child(feature)
    end
  end
  names.sort_all_descendants!
  names.number_all_descendants
  names
end