class Diffs::GitDiff
Public Instance Methods
changed?(changed_line)
click to toggle source
# File lib/ducalis/diffs.rb, line 24 def changed?(changed_line) patch.line_for(changed_line).changed? end
patch_line(changed_line)
click to toggle source
# File lib/ducalis/diffs.rb, line 28 def patch_line(changed_line) patch.line_for(changed_line).patch_position end
Private Instance Methods
patch()
click to toggle source
# File lib/ducalis/diffs.rb, line 34 def patch Ducalis::Patch.new(diff.patch) end