Returns the number of changes in the patch.
# File lib/rugged/diff/patch.rb, line 18 def changes additions + deletions end
Returns an Array containing all hunks of the patch.
# File lib/rugged/diff/patch.rb, line 23 def hunks each_hunk.to_a end
# File lib/rugged/diff/patch.rb, line 13 def inspect "#<#{self.class.name}:#{object_id}>" end