In Files

Parent

Methods

Files

Git::Diff::DiffFile

Attributes

patch[RW]
path[RW]
mode[RW]
src[RW]
dst[RW]
type[RW]

Public Class Methods

new(base, hash) click to toggle source
    # File lib/git/diff.rb, line 72
72:       def initialize(base, hash)
73:         @base = base
74:         @patch = hash[:patch]
75:         @path = hash[:path]
76:         @mode = hash[:mode]
77:         @src = hash[:src]
78:         @dst = hash[:dst]
79:         @type = hash[:type]
80:         @binary = hash[:binary]
81:       end

Public Instance Methods

binary?() click to toggle source
    # File lib/git/diff.rb, line 83
83:       def binary?
84:         !!@binary
85:       end
blob(type = :dst) click to toggle source
    # File lib/git/diff.rb, line 87
87:       def blob(type = :dst)
88:         if type == :src
89:           @base.object(@src) if @src != '0000000'
90:         else
91:           @base.object(@dst) if @dst != '0000000'
92:         end
93:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.