Class: GitCli::Delta::ModifiedFile

Inherits:
VCSItem
  • Object
show all
Defined in:
lib/git_cli/delta.rb

Instance Attribute Summary

Attributes inherited from VCSItem

#full, #path, #type

Instance Method Summary collapse

Methods inherited from VCSItem

#<=>

Constructor Details

#initialize(path, full) ⇒ ModifiedFile

Returns a new instance of ModifiedFile.



61
62
63
# File 'lib/git_cli/delta.rb', line 61

def initialize(path, full)
  super(:file, path, full)
end

Instance Method Details

#to_sObject



64
65
66
# File 'lib/git_cli/delta.rb', line 64

def to_s
  "[M] #{@path}"
end