Class: Issuesrc::GitFile
Overview
A file from the filesystem that is indexed in a Git repository.
Instance Attribute Summary collapse
-
#branch ⇒ Object
readonly
Returns the value of attribute branch.
-
#path_in_repo ⇒ Object
readonly
Returns the value of attribute path_in_repo.
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
Attributes inherited from FSFile
Instance Method Summary collapse
-
#initialize(path, path_in_repo, branch) ⇒ GitFile
constructor
A new instance of GitFile.
Methods inherited from FSFile
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
#branch ⇒ Object (readonly)
Returns the value of attribute branch.
58 59 60 |
# File 'lib/issuesrc/file.rb', line 58 def branch @branch end |
#path_in_repo ⇒ Object (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 |
#repo ⇒ Object (readonly)
Returns the value of attribute repo.
56 57 58 |
# File 'lib/issuesrc/file.rb', line 56 def repo @repo end |