Class: Cuporter::TagReport

Inherits:
Report
  • Object
show all
Defined in:
lib/cuporter/report/tag_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
# File 'lib/cuporter/report/tag_report.rb', line 5

def report_node
  tags = TagListNode.new("report",[])
  files.each do |file|
    feature = FeatureParser.tag_list(file)
    tags.merge_tag_nodes(feature) if feature
  end
  tags.sort_all_descendants!
  tags
end