Class: Watchr::ReekMetric::Report
- Inherits:
-
Object
- Object
- Watchr::ReekMetric::Report
- Defined in:
- lib/watchr/metrics/reek/report.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ Report
constructor
A new instance of Report.
- #smells ⇒ Object
Constructor Details
#initialize(path) ⇒ Report
Returns a new instance of Report.
6 7 8 |
# File 'lib/watchr/metrics/reek/report.rb', line 6 def initialize(path) @warnings = Reek::Examiner.new(path).all_active_smells end |
Instance Method Details
#smells ⇒ Object
10 11 12 |
# File 'lib/watchr/metrics/reek/report.rb', line 10 def smells @warnings end |