class Rugged::Diff::Hunk
Attributes
Public Instance Methods
If given a block, yields each line that is part of the current hunk.
If no block is given, an enumerator is returned instead.
Alias for: each
Source
# File lib/rugged/diff/hunk.rb, line 13 def inspect "#<#{self.class.name}:#{object_id} {header: #{header.inspect}, count: #{count.inspect}}>" end
Source
# File lib/rugged/diff/hunk.rb, line 18 def lines each_line.to_a end
Returns an Array containing all lines of the hunk.