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.



4
5
6
7
# File 'lib/hashira/report/text.rb', line 4

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

Instance Method Details



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

def print
  coupling if @view.graph
  complexity if @view.complexity
  hotspots if @view.hotspots
  findings
  0
end