Class: Issuesrc::GitFile

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

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.



34
35
36
37
38
# File 'lib/issuesrc/file.rb', line 34

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.



32
33
34
# File 'lib/issuesrc/file.rb', line 32

def branch
  @branch
end

#path_in_repoObject (readonly)

Returns the value of attribute path_in_repo.



31
32
33
# File 'lib/issuesrc/file.rb', line 31

def path_in_repo
  @path_in_repo
end

#repoObject (readonly)

Returns the value of attribute repo.



30
31
32
# File 'lib/issuesrc/file.rb', line 30

def repo
  @repo
end