class Rugged::Diff::Hunk

Attributes

count[R]
delta[R]
header[R]
line_count[R]
owner[R]
range[R]
size[R]

Public Instance Methods

inspect() click to toggle source
# File lib/rugged/diff/hunk.rb, line 13
def inspect
  "#<#{self.class.name}:#{object_id} {header: #{header.inspect}, range: #{range.inspect}>"
end
lines() click to toggle source

Returns an Array containing all lines of the hunk.

# File lib/rugged/diff/hunk.rb, line 18
def lines
  each_line.to_a
end