class Disloku::FileChange

Attributes

changeType[RW]
dirty[RW]
repository[RW]

Public Class Methods

new(repository, fullPath, changeType, dirty) click to toggle source
# File lib/disloku/FileChange.rb, line 7
def initialize(repository, fullPath, changeType, dirty)
        @repository = repository
        @fullPath = fullPath
        @changeType = changeType
        @dirty = dirty
end

Public Instance Methods

getFile(target) click to toggle source
# File lib/disloku/FileChange.rb, line 14
def getFile(target)
        return Util::File.new(@fullPath, @repository.root, target, self)
end
to_s() click to toggle source
# File lib/disloku/FileChange.rb, line 18
def to_s()
        return "<#{@changeType}> #{@fullPath}" + (@dirty ? " (dirty)" : "")
end