Class: GitCli::Delta::StagedDir

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

Returns a new instance of StagedDir.



85
86
87
# File 'lib/git_cli/delta.rb', line 85

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

Instance Method Details

#to_sObject



88
89
90
# File 'lib/git_cli/delta.rb', line 88

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