module Differential::Calculator::HasTotals
There are multiple classes that all need calculation support (The Total class.) Instead of using inheritance, those classes can use this mix-in for composition.
Public Instance Methods
totals()
click to toggle source
# File lib/differential/calculator/has_totals.rb, line 19 def totals @totals ||= ::Differential::Calculator::Totals.new end