Sha256: c113325648ee990781e17f3c397378496894bd076c56851024fe2abec599ff70

Contents?: true

Size: 337 Bytes

Versions: 49

Compression:

Stored size: 337 Bytes

Contents

module Rugged
  class Diff
    class Hunk
      def delta
        @owner
      end

      def inspect
        "#<#{self.class.name}:#{object_id} {header: #{header.inspect}, count: #{count.inspect}}>"
      end

      # Returns an Array containing all lines of the hunk.
      def lines
        each_line.to_a
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 2 rubygems

Version Path
rugged-0.24.6.1 lib/rugged/diff/hunk.rb
rugged-0.24.5 lib/rugged/diff/hunk.rb
rugged-0.25.0b10 lib/rugged/diff/hunk.rb
rugged-0.25.0b9 lib/rugged/diff/hunk.rb
rugged-0.25.0b8 lib/rugged/diff/hunk.rb
rugged-0.25.0b7 lib/rugged/diff/hunk.rb
rugged-0.25.0b6 lib/rugged/diff/hunk.rb
rugged-0.25.0b5 lib/rugged/diff/hunk.rb
rugged-0.25.0b4 lib/rugged/diff/hunk.rb
rugged-0.25.0b3 lib/rugged/diff/hunk.rb
rugged-0.25.0b2 lib/rugged/diff/hunk.rb
rugged-0.25.0b1 lib/rugged/diff/hunk.rb
rugged-0.24.0 lib/rugged/diff/hunk.rb
rugged-0.24.0b14 lib/rugged/diff/hunk.rb
rugged-0.24.0b13 lib/rugged/diff/hunk.rb
rdavila-rugged-0.24.0b13 lib/rugged/diff/hunk.rb
rugged-0.24.0b12 lib/rugged/diff/hunk.rb
rugged-0.24.0b11 lib/rugged/diff/hunk.rb
rugged-0.24.0b9 lib/rugged/diff/hunk.rb
rugged-0.24.0b8 lib/rugged/diff/hunk.rb