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