class VcsFile

Represents version control details about a file

Attributes

path[R]
status[R]

Public Class Methods

new(path, status) click to toggle source
# File lib/core/vcs_file.rb, line 5
def initialize(path, status)
  @path = path
  @status = status
end

Public Instance Methods

to_s() click to toggle source
# File lib/core/vcs_file.rb, line 10
def to_s
  format "%-9s %-9s %s", @status[:staged], @status[:unstaged], @path
end