Method: CodeKeeper::Metrics::AbcMetric#initialize

Defined in:
lib/code_keeper/metrics/abc_metric.rb

#initialize(file_path) ⇒ AbcMetric

Returns a new instance of AbcMetric.



10
11
12
13
14
15
16
17
# File 'lib/code_keeper/metrics/abc_metric.rb', line 10

def initialize(file_path)
  ps = Parser.parse(file_path)
  @path = file_path
  @body = ps.ast
  @assignments = 0
  @branches = 0
  @conditionals = 0
end