class Pronto::BigFiles::PatchWrapper
Add convenience methods on top of Pronto::Git::Patch
Attributes
patch[R]
Public Class Methods
new(patch)
click to toggle source
# File lib/pronto/bigfiles/patch_wrapper.rb, line 11 def initialize(patch) @patch = patch end
Public Instance Methods
added_to?()
click to toggle source
# File lib/pronto/bigfiles/patch_wrapper.rb, line 15 def added_to? (patch.additions - patch.deletions).positive? end
first_added_line()
click to toggle source
# File lib/pronto/bigfiles/patch_wrapper.rb, line 23 def first_added_line patch.added_lines.first end
path()
click to toggle source
# File lib/pronto/bigfiles/patch_wrapper.rb, line 19 def path patch.delta.new_file[:path] end