Class: MultiGit::GitBackend::Ref

Inherits:
Object
  • Object
show all
Includes:
Ref
Defined in:
lib/multi_git/git_backend/ref.rb

Instance Attribute Summary collapse

Attributes included from Ref

#name, #repository

Instance Method Summary collapse

Methods included from Ref

#[], #commit, #delete, #detached?, #direct?, #exists?, #reload, #resolve, #symbolic?, #update

Methods included from Utils::AbstractMethods

#abstract

Constructor Details

#initialize(repository, name) ⇒ Ref

Returns a new instance of Ref.



11
12
13
14
# File 'lib/multi_git/git_backend/ref.rb', line 11

def initialize(repository, name)
  super(repository, name)
  read!
end

Instance Attribute Details

#targetObject (readonly)

Returns the value of attribute target.



9
10
11
# File 'lib/multi_git/git_backend/ref.rb', line 9

def target
  @target
end