Class: DtkCommon::GitRepo::Adapter::Rugged::Branch

Inherits:
Object
  • Object
show all
Defined in:
lib/git_repo/adapters/rugged/common.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#branchObject (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_repoObject (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