Class: GitCli::Delta::DeletedFile

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) ⇒ DeletedFile

Returns a new instance of DeletedFile.



77
78
79
# File 'lib/git_cli/delta.rb', line 77

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

Instance Method Details

#to_sObject



80
81
82
# File 'lib/git_cli/delta.rb', line 80

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