Class: Rugged::Diff::Delta

### Home Classes Methods

### In Files

- lib/rugged/diff/delta.rb

### Parent

Object

### Methods

- #added?
- #copied?
- #deleted?
- #ignored?
- #inspect
- #modified?
- #renamed?
- #typechange?
- #untracked?

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

### Attributes

binary[R]
binary?[R]
diff[R]
new_file[R]
old_file[R]
owner[R]
similarity[R]
status[R]
status_char[R]

### Public Instance Methods

added?() click to toggle source

    # File lib/rugged/diff/delta.rb, line 16
    def added?
      status == :added
    end

copied?() click to toggle source

    # File lib/rugged/diff/delta.rb, line 32
    def copied?
      status == :copied
    end

deleted?() click to toggle source

    # File lib/rugged/diff/delta.rb, line 20
    def deleted?
      status == :deleted
    end

ignored?() click to toggle source

    # File lib/rugged/diff/delta.rb, line 36
    def ignored?
      status == :ignored
    end

inspect() click to toggle source

    # File lib/rugged/diff/delta.rb, line 48
    def inspect
      "#<#{self.class.name}:#{object_id} {old_file: #{old_file.inspect}, new_file: #{new_file.inspect}, similarity: #{similarity.inspect}, status: #{status.inspect}>"
    end

modified?() click to toggle source

    # File lib/rugged/diff/delta.rb, line 24
    def modified?
      status == :modified
    end

renamed?() click to toggle source

    # File lib/rugged/diff/delta.rb, line 28
    def renamed?
      status == :renamed
    end

typechange?() click to toggle source

    # File lib/rugged/diff/delta.rb, line 44
    def typechange?
      status == :typechange
    end

untracked?() click to toggle source

    # File lib/rugged/diff/delta.rb, line 40
    def untracked?
      status == :untracked
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.