Class: GitHubDiff::Diff
- Inherits:
-
Object
- Object
- GitHubDiff::Diff
- Defined in:
- lib/diff-suggester/diff/diff.rb
Instance Method Summary collapse
- #file_path ⇒ Object
- #hunks ⇒ Object
-
#initialize(file_path:, hunks:) ⇒ Diff
constructor
A new instance of Diff.
Constructor Details
#initialize(file_path:, hunks:) ⇒ Diff
Returns a new instance of Diff.
4 5 6 7 |
# File 'lib/diff-suggester/diff/diff.rb', line 4 def initialize(file_path:, hunks:) @file_path = file_path @hunks = hunks end |
Instance Method Details
#file_path ⇒ Object
9 10 11 |
# File 'lib/diff-suggester/diff/diff.rb', line 9 def file_path return @file_path end |
#hunks ⇒ Object
13 14 15 |
# File 'lib/diff-suggester/diff/diff.rb', line 13 def hunks return @hunks end |