Class: Central::Devtools::Flay::Scale
- Inherits:
-
Object
- Object
- Central::Devtools::Flay::Scale
- Includes:
- Adamantium
- Defined in:
- lib/central/devtools/flay.rb
Overview
Measure flay mass relative to size of duplicated sexps
Instance Method Summary collapse
-
#flay_report ⇒ undefined
private
Report flay output.
-
#measure ⇒ Array<Rational>
private
Measure duplication mass.
Instance Method Details
#flay_report ⇒ undefined
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Report flay output
26 27 28 |
# File 'lib/central/devtools/flay.rb', line 26 def flay_report flay.report end |
#measure ⇒ Array<Rational>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Measure duplication mass
16 17 18 19 20 |
# File 'lib/central/devtools/flay.rb', line 16 def measure flay.masses.map do |hash, mass| Rational(mass, flay.hashes.fetch(hash).size) end end |