Class: DtkCommon::GitRepo::Adapter::Rugged::Branch
- Inherits:
-
Object
- Object
- DtkCommon::GitRepo::Adapter::Rugged::Branch
- Defined in:
- lib/git_repo/adapters/rugged/common.rb
Instance Attribute Summary collapse
-
#branch ⇒ Object
readonly
Returns the value of attribute branch.
-
#rugged_repo ⇒ Object
readonly
Returns the value of attribute rugged_repo.
Instance Method Summary collapse
-
#initialize(rugged_repo, branch) ⇒ Branch
constructor
A new instance of Branch.
Constructor Details
#initialize(rugged_repo, branch) ⇒ Branch
Returns a new instance of Branch.
22 23 24 25 |
# File 'lib/git_repo/adapters/rugged/common.rb', line 22 def initialize(rugged_repo,branch) @rugged_repo = rugged_repo @branch = branch end |
Instance Attribute Details
#branch ⇒ Object (readonly)
Returns the value of attribute branch.
21 22 23 |
# File 'lib/git_repo/adapters/rugged/common.rb', line 21 def branch @branch end |
#rugged_repo ⇒ Object (readonly)
Returns the value of attribute rugged_repo.
21 22 23 |
# File 'lib/git_repo/adapters/rugged/common.rb', line 21 def rugged_repo @rugged_repo end |