class DTK::Common::GritAdapter::FileAccess::DiffMixin::Diff

Constants

AttributeAssignFn
Attributes

Public Class Methods

new(hash_input) click to toggle source
# File lib/grit_adapter/file_access/diff.rb, line 76
def initialize(hash_input)
  hash_input.each{|a,v|send(AttributeAssignFn[a],v)}
end

Public Instance Methods

file_added() click to toggle source
# File lib/grit_adapter/file_access/diff.rb, line 80
def file_added()
  @new_file && {:path => @a_path}
end
file_deleted() click to toggle source
# File lib/grit_adapter/file_access/diff.rb, line 88
def file_deleted()
  @deleted_file && {:path => @a_path}
end
file_modified() click to toggle source
# File lib/grit_adapter/file_access/diff.rb, line 92
def file_modified()
  ((@new_file or @deleted_file or @renamed_file) ? nil : true) && {:path => @a_path} 
end
file_renamed() click to toggle source
# File lib/grit_adapter/file_access/diff.rb, line 84
def file_renamed()
  @renamed_file && {:old_path => @b_path, :new_path => @a_path}
end