Class: Issuesrc::GitFile

Inherits:
FSFile
  • Object
show all
Defined in:
lib/issuesrc/file.rb

Overview

A file from the filesystem that is indexed in a Git repository.

Instance Attribute Summary collapse

Attributes inherited from FSFile

#path, #type

Instance Method Summary collapse

Methods inherited from FSFile

#body, #replace_at

Constructor Details

#initialize(path, path_in_repo, branch) ⇒ GitFile

Returns a new instance of GitFile.


60
61
62
63
64
# File 'lib/issuesrc/file.rb', line 60

def initialize(path, path_in_repo, branch)
  super(path)
  @path_in_repo = path_in_repo
  @branch = branch
end

Instance Attribute Details

#branchObject (readonly)

Returns the value of attribute branch


58
59
60
# File 'lib/issuesrc/file.rb', line 58

def branch
  @branch
end

#path_in_repoObject (readonly)

Returns the value of attribute path_in_repo


57
58
59
# File 'lib/issuesrc/file.rb', line 57

def path_in_repo
  @path_in_repo
end

#repoObject (readonly)

Returns the value of attribute repo


56
57
58
# File 'lib/issuesrc/file.rb', line 56

def repo
  @repo
end