Class: GitDiff::StatsCalculator
- Inherits:
-
Object
- Object
- GitDiff::StatsCalculator
- Defined in:
- lib/git_diff/stats_calculator.rb
Instance Attribute Summary collapse
-
#collector ⇒ Object
readonly
Returns the value of attribute collector.
Instance Method Summary collapse
-
#initialize(collector) ⇒ StatsCalculator
constructor
A new instance of StatsCalculator.
- #total ⇒ Object
Constructor Details
#initialize(collector) ⇒ StatsCalculator
Returns a new instance of StatsCalculator.
7 8 9 |
# File 'lib/git_diff/stats_calculator.rb', line 7 def initialize(collector) @collector = collector end |
Instance Attribute Details
#collector ⇒ Object (readonly)
Returns the value of attribute collector.
5 6 7 |
# File 'lib/git_diff/stats_calculator.rb', line 5 def collector @collector end |