Class: Rugged::Diff::Line

### Home Classes Methods

### In Files

- lib/rugged/diff/line.rb

### Parent

Object

### Methods

- #addition?
- #binary?
- #context?
- #deletion?
- #eof_newline_added?
- #eof_newline_removed?
- #eof_no_newline?
- #file_header?
- #hunk_header?
- #inspect

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

### Attributes

content[R]
content_offset[R]
hunk[R]
line_origin[R]
new_lineno[R]
old_lineno[R]
owner[R]

### Public Instance Methods

addition?() click to toggle source

    # File lib/rugged/diff/line.rb, line 12
    def addition?
      @line_origin == :addition
    end

binary?() click to toggle source

    # File lib/rugged/diff/line.rb, line 40
    def binary?
      @line_origin == :binary
    end

context?() click to toggle source

    # File lib/rugged/diff/line.rb, line 8
    def context?
      @line_origin == :context
    end

deletion?() click to toggle source

    # File lib/rugged/diff/line.rb, line 16
    def deletion?
      @line_origin == :deletion
    end

eof_newline_added?() click to toggle source

    # File lib/rugged/diff/line.rb, line 24
    def eof_newline_added?
      @line_origin == :eof_newline_added
    end

eof_newline_removed?() click to toggle source

    # File lib/rugged/diff/line.rb, line 28
    def eof_newline_removed?
      @line_origin == :eof_newline_removed
    end

eof_no_newline?() click to toggle source

    # File lib/rugged/diff/line.rb, line 20
    def eof_no_newline?
      @line_origin == :eof_no_newline
    end

file_header?() click to toggle source

    # File lib/rugged/diff/line.rb, line 32
    def file_header?
      @line_origin == :file_header
    end

hunk_header?() click to toggle source

    # File lib/rugged/diff/line.rb, line 36
    def hunk_header?
      @line_origin == :hunk_header
    end

inspect() click to toggle source

    # File lib/rugged/diff/line.rb, line 44
    def inspect
      "#<#{self.class.name}:#{object_id} {line_origin: #{line_origin.inspect}, content: #{content.inspect}>"
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.