Method: CodePoetry::Stat#initialize

Defined in:
lib/code_poetry/stat.rb

#initialize(file) ⇒ Stat

Returns a new instance of Stat.



14
15
16
17
18
19
20
21
22
# File 'lib/code_poetry/stat.rb', line 14

def initialize(file)
  @file = file
  @lines_of_code, @churns = 0, 0
  @complexity, @complexity_per_method, @definition_complexity = 0, 0, 0
  @methods, @smells, @duplications = [], [], []
  @lines = {}

  parse_file
end