class Rugged::Diff::Patch

Attributes

diff[RW]
owner[RW]

Public Instance Methods

changes() click to toggle source

Returns the number of changes in the patch.

# File lib/rugged/diff/patch.rb, line 18
def changes
  additions + deletions
end
hunks() click to toggle source

Returns an Array containing all hunks of the patch.

# File lib/rugged/diff/patch.rb, line 23
def hunks
  each_hunk.to_a
end
inspect() click to toggle source
# File lib/rugged/diff/patch.rb, line 13
def inspect
  "#<#{self.class.name}:#{object_id}>"
end