Class: Hashira::Report::Text

Inherits:
Object
  • Object
show all
Defined in:
lib/hashira/report/text.rb

Instance Method Summary collapse

Constructor Details

#initialize(view, io: $stdout) ⇒ Text

Returns a new instance of Text.



6
7
8
9
# File 'lib/hashira/report/text.rb', line 6

def initialize(view, io: $stdout)
  @view = view
  @io = io
end

Instance Method Details



11
12
13
14
15
16
17
# File 'lib/hashira/report/text.rb', line 11

def print
  coupling_sections if @view.graph
  complexity_section if @view.complexity
  hotspot_section if @view.hotspots
  findings_section
  0
end