Class: GitHubDiff::Hunk
- Inherits:
-
Object
- Object
- GitHubDiff::Hunk
- Defined in:
- lib/diff-suggester/diff/hunk.rb
Instance Method Summary collapse
- #body ⇒ Object
- #end_line ⇒ Object
-
#initialize(body:, start_line:, end_line:) ⇒ Hunk
constructor
A new instance of Hunk.
- #start_line ⇒ Object
Constructor Details
#initialize(body:, start_line:, end_line:) ⇒ Hunk
Returns a new instance of Hunk.
4 5 6 7 8 |
# File 'lib/diff-suggester/diff/hunk.rb', line 4 def initialize(body:, start_line:, end_line:) @body = body @start_line = start_line @end_line = end_line end |
Instance Method Details
#body ⇒ Object
10 11 12 |
# File 'lib/diff-suggester/diff/hunk.rb', line 10 def body return @body end |
#end_line ⇒ Object
18 19 20 |
# File 'lib/diff-suggester/diff/hunk.rb', line 18 def end_line return @end_line end |
#start_line ⇒ Object
14 15 16 |
# File 'lib/diff-suggester/diff/hunk.rb', line 14 def start_line return @start_line end |