Class: Hashira::Hotspots::Rollup
- Inherits:
-
Object
- Object
- Hashira::Hotspots::Rollup
- Defined in:
- lib/hashira/hotspots/rollup.rb
Instance Method Summary collapse
- #files ⇒ Object
-
#initialize(complexity, duplication, churn) ⇒ Rollup
constructor
A new instance of Rollup.
Constructor Details
#initialize(complexity, duplication, churn) ⇒ Rollup
Returns a new instance of Rollup.
6 7 8 9 10 |
# File 'lib/hashira/hotspots/rollup.rb', line 6 def initialize(complexity, duplication, churn) @complexity = complexity @duplication = duplication @churn = churn end |
Instance Method Details
#files ⇒ Object
12 |
# File 'lib/hashira/hotspots/rollup.rb', line 12 def files = costs.reject { it.cost.zero? }.sort_by { [-it.rank, it.file] } |