Class: Hashira::Report::Text
- Inherits:
-
Object
- Object
- Hashira::Report::Text
- Defined in:
- lib/hashira/report/text.rb
Instance Method Summary collapse
-
#initialize(project, graph, findings, io: $stdout) ⇒ Text
constructor
A new instance of Text.
- #print ⇒ Object
Constructor Details
#initialize(project, graph, findings, io: $stdout) ⇒ Text
Returns a new instance of Text.
6 7 8 9 10 11 |
# File 'lib/hashira/report/text.rb', line 6 def initialize(project, graph, findings, io: $stdout) @project = project @graph = graph @findings = findings @io = io end |
Instance Method Details
#print ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/hashira/report/text.rb', line 13 def print header MetricsTable.new(@graph, io: @io).print DependencyMap.new(@graph, io: @io).print findings_section 0 end |