Class: GitHubDiff::Hunk

Inherits:
Object
  • Object
show all
Defined in:
lib/diff-suggester/diff/hunk.rb

Instance Method Summary collapse

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

#bodyObject



10
11
12
# File 'lib/diff-suggester/diff/hunk.rb', line 10

def body
  return @body
end

#end_lineObject



18
19
20
# File 'lib/diff-suggester/diff/hunk.rb', line 18

def end_line
  return @end_line
end

#start_lineObject



14
15
16
# File 'lib/diff-suggester/diff/hunk.rb', line 14

def start_line
  return @start_line
end