Sha256: a4ebf58e3ac11737a2b7269fcdff0cc58a729b9a9663ac8eee2c92a897e347cb

Contents?: true

Size: 307 Bytes

Versions: 4

Compression:

Stored size: 307 Bytes

Contents

require 'rugged/diff/hunk'
require 'rugged/diff/line'
require 'rugged/diff/delta'

module Rugged
  class Diff
    include Enumerable
    alias each each_patch

    attr_reader :owner
    alias tree owner

    def patches
      each_patch.to_a
    end

    def deltas
      each_delta.to_a
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rugged-0.21.4 lib/rugged/diff.rb
rugged-0.21.3 lib/rugged/diff.rb
rugged-0.21.2 lib/rugged/diff.rb
rugged-0.21.0 lib/rugged/diff.rb