Sha256: 2fd16d0683b48ef625dd613548860974aa37675337afe998411dc55d3ce4671a
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 Bytes
Contents
module Rugged class Diff class Patch include Enumerable alias each each_hunk alias size hunk_count alias count hunk_count attr_accessor :owner alias diff owner def inspect "#<#{self.class.name}:#{object_id}>" end # Returns the number of changes in the patch. def changes additions + deletions end # Returns an Array containing all hunks of the patch. def hunks each_hunk.to_a end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rugged-0.19.0 | lib/rugged/diff/patch.rb |