Class: Rugged::Patch

### Home Classes Methods

### In Files

- lib/rugged/patch.rb

### Parent

Object

### Methods

- #changes
- #hunks
- #inspect

### Included Modules

- Enumerable

### 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::Patch

### Attributes

diff[RW]
owner[RW]

### Public Instance Methods

changes() click to toggle source

Returns the number of changes in the patch.

    # File lib/rugged/patch.rb, line 17
    def changes
      stat.reduce { |t,v| t + v }
    end

hunks() click to toggle source

Returns an Array containing all hunks of the patch.

    # File lib/rugged/patch.rb, line 22
    def hunks
      each_hunk.to_a
    end

inspect() click to toggle source

    # File lib/rugged/patch.rb, line 12
    def inspect
      "#<#{self.class.name}:#{object_id}>"
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.