Class: Rugged::Diff::Hunk

### Home Classes Methods

### In Files

- lib/rugged/diff/hunk.rb

### Parent

Object

### Methods

- #delta
- #inspect
- #lines

### Class/Module Index

Quicksearch

- Rugged
- Rugged::Branch
- Rugged::Commit
- Rugged::Credentials
- Rugged::Credentials::Default
- Rugged::Credentials::SshKey
- Rugged::Credentials::SshKeyFromAgent
- Rugged::Credentials::UserPassword
- Rugged::Diff
- Rugged::Diff::Delta
- Rugged::Diff::Hunk
- Rugged::Diff::Line
- Rugged::Index
- Rugged::Object
- Rugged::Patch
- Rugged::Reference
- Rugged::Remote
- Rugged::Repository
- Rugged::Tag
- Rugged::Tag::Annotation
- Rugged::Tree
- Rugged::Walker
- Object

No matching classes.

# Rugged::Diff::Hunk

### Public Instance Methods

delta() click to toggle source

    # File lib/rugged/diff/hunk.rb, line 4
    def delta
      @owner
    end

inspect() click to toggle source

    # File lib/rugged/diff/hunk.rb, line 8
    def inspect
      "#<#{self.class.name}:#{object_id} {header: #{header.inspect}, count: #{count.inspect}}>"
    end

lines() click to toggle source

Returns an Array containing all lines of the hunk.

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.