Class: Watchr::Stats::Report
- Inherits:
-
Object
- Object
- Watchr::Stats::Report
- Defined in:
- lib/watchr/metrics/stats/report.rb
Instance Attribute Summary collapse
-
#code_loc ⇒ Object
readonly
Returns the value of attribute code_loc.
-
#loc ⇒ Object
readonly
Returns the value of attribute loc.
Instance Method Summary collapse
-
#initialize(file_name) ⇒ Report
constructor
A new instance of Report.
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_loc ⇒ Object (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 |
#loc ⇒ Object (readonly)
Returns the value of attribute loc.
4 5 6 |
# File 'lib/watchr/metrics/stats/report.rb', line 4 def loc @loc end |