Class: GitCli::Delta::NewDir
Instance Attribute Summary
Attributes inherited from VCSItem
Instance Method Summary collapse
- #has_files? ⇒ Boolean
-
#initialize(path, full) ⇒ NewDir
constructor
A new instance of NewDir.
- #to_s ⇒ Object
Methods inherited from VCSItem
Constructor Details
#initialize(path, full) ⇒ NewDir
Returns a new instance of NewDir.
49 50 51 |
# File 'lib/git_cli/delta.rb', line 49 def initialize(path, full) super(:dir, path, full) end |
Instance Method Details
#has_files? ⇒ Boolean
55 56 57 |
# File 'lib/git_cli/delta.rb', line 55 def has_files? not Dir.glob(File.join(full,"**/**")).empty? end |
#to_s ⇒ Object
52 53 54 |
# File 'lib/git_cli/delta.rb', line 52 def to_s "[N] #{@path}" end |