Class: Watchr::Stats::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/watchr/metrics/stats/report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_name) ⇒ Report

Returns a new instance of Report.



6
7
8
9
10
11
12
13
14
# File 'lib/watchr/metrics/stats/report.rb', line 6

def initialize(file_name)
  @file_name = file_name

  @loc = 0
  @code_loc = 0
  @inside_comment = false

  calculate
end

Instance Attribute Details

#code_locObject (readonly)

Returns the value of attribute code_loc.



4
5
6
# File 'lib/watchr/metrics/stats/report.rb', line 4

def code_loc
  @code_loc
end

#locObject (readonly)

Returns the value of attribute loc.



4
5
6
# File 'lib/watchr/metrics/stats/report.rb', line 4

def loc
  @loc
end